:root {
    --primary-green: #239f40;
    --primary-white: #FFFFFF;
    --primary-red: #da0000;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

[dir="rtl"] {
    font-family: 'Vazirmatn', sans-serif;
}

[dir="ltr"] {
    font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-green), var(--primary-white), var(--primary-red));
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.nav-logo {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-lang-item {
    list-style: none;
}

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-switcher button {
    background: none;
    border: 1px solid var(--text-dark);
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.lang-switcher button:hover {
    background: var(--text-dark);
    color: var(--primary-white);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(35, 159, 64, 0.4), rgba(218, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* About Us */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.statute-btn {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.statute-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 992px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}

.member-card {
    background: var(--primary-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('../images/flag.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.member-card:hover {
    transform: translateY(-10px);
}

.member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary-green);
}

.member-card h3 {
    margin-bottom: 5px;
}

.member-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.member-card a {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--primary-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
}

[dir="rtl"] .project-card {
    text-align: right;
}

.project-card:hover {
    transform: scale(1.03);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--primary-green);
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.project-link {
    display: inline-block;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--primary-white);
    padding: 40px 0;
    border-top: none;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.85rem;
    opacity: 0.7;
}

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

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-contact a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-white);
}

.footer-social {
    display: flex;
    align-items: center;
}

.social-icon {
    color: var(--primary-white);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--primary-red);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu logic in JS */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-white);
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-lang-item {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }
}