* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --accent-color: #28a745;
    --text-color: #343a40;
    --text-light: #6c757d;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

nav {
    padding: 0.75rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
}

nav h1 a {
    text-decoration: none;
    color: inherit;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
    left: 0;
}

nav ul li a.support-btn,
nav ul li a.lang-btn {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    background: var(--accent-color);
}

nav ul li a.support-btn:hover,
nav ul li a.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 0.9;
}

#hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(40, 167, 69, 0.3);
    background-color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    box-shadow: 0 8px 15px rgba(255, 255, 255, 0.2);
}

.btn-small {
    padding: 0.4rem 1.2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--bg-color);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #e3f2fd;
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--primary-color);
}

.card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

#stats {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

footer {
    background-color: var(--card-bg);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 5px solid var(--border-color);
    margin-top: 0;
}

footer p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.text-center {
    text-align: center;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    nav ul {
        gap: 0.5rem;
    }

    #hero {
        padding: 4rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%);
    }

    #hero h2 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        margin-bottom: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--card-bg);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        text-align: center;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    nav ul li a::after {
        content: none;
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--primary-color);
        order: -1;
    }
}
.menu-toggle {
    display: none;
}
