:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #f72585;
    --dark: #0b0c15;
    --light: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

/* Orqa fon animatsiyasi (Gradient Blobs) */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite alternate;
}

.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: var(--primary); }
.blob-2 { bottom: -10%; right: -10%; width: 400px; height: 400px; background: var(--accent); animation-delay: 2s; }
.blob-3 { top: 40%; left: 40%; width: 300px; height: 300px; background: var(--secondary); animation-delay: 4s; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* --- NAVBAR --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.5s;
    backdrop-filter: blur(10px);
}

nav.scrolled {
    background: rgba(11, 12, 21, 0.9);
    padding: 15px 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li { margin: 0 20px; }

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: 0.3s;
}

.nav-links a:hover::after { width: 100%; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0; /* JS animatsiyasi uchun */
    transform: translateY(30px);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ddd;
    opacity: 0;
    transform: translateY(30px);
    transition-delay: 0.2s;
}

.btn {
    padding: 15px 40px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: 0.4s;
    box-shadow: 0 0 20px rgba(247, 37, 133, 0.4);
    opacity: 0;
    transform: translateY(30px);
    transition-delay: 0.4s;
    display: inline-block;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(247, 37, 133, 0.7);
}

/* --- FEATURES (GLASS CARDS) --- */
.section {
    padding: 100px 50px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-family: 'Montserrat', sans-serif;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    transition: 0.4s;
    text-align: center;
    opacity: 0; /* Scroll reveal uchun */
    transform: translateY(50px);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- STATS COUNTER --- */
.stats {
    background: linear-gradient(45deg, rgba(67, 97, 238, 0.2), rgba(247, 37, 133, 0.2));
    padding: 80px 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item h2 {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.2rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- FOOTER --- */
footer {
    background: #05060a;
    padding: 50px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-links a {
    color: #fff;
    margin: 0 15px;
    font-size: 1.5rem;
    transition: 0.3s;
}

.footer-links a:hover { color: var(--accent); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Mobil menyu vaqtincha o'chiq */
    nav { padding: 20px; }
    .stats { flex-direction: column; gap: 40px; }
}

/* Javascript Animatsiya klasslari */
/* TO'G'RILANGAN QISM */
.reveal.active, .reveal-hero.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

/* --- CONTACT SECTION STYLES --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: var(--glass);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-box {
    flex: 1;
    min-width: 300px;
}

.map-box {
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-right: 20px;
    margin-top: 5px;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 50%;
}

.info-item h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.info-item p {
    color: #ddd;
    font-size: 1rem;
}

.info-item a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.info-item a:hover {
    color: var(--accent);
}

.social-btn {
    display: inline-block;
    background: #0088cc; /* Telegram rangi */
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.6);
}

/* Mobil uchun moslashuv */
@media (max-width: 768px) {
    .contact-container {
        padding: 20px;
        flex-direction: column;
    }
}

/* --- QO'MITA A'ZOLARI RASMLARI UCHUN STIL --- */
.member-photo {
    width: 130px;           /* Rasmning eni */
    height: 130px;          /* Rasmning bo'yi */
    border-radius: 50%;     /* Rasmni yumaloq qiladi */
    object-fit: cover;      /* Rasm cho'zilib ketmasligi uchun */
    margin-bottom: 20px;    /* Pastdagi yozuvdan masofa */
    border: 3px solid var(--accent); /* Atrofiga chiroyli ramka */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Ozgina soya */
    transition: 0.3s;
}

.card:hover .member-photo {
    transform: scale(1.05); /* Sichqoncha borganda rasm sal kattalashadi */
}

/* =========================================
    MOBIL TELEFONLAR UCHUN MOSLASHUV (RESPONSIVE)
    ========================================= */
@media (max-width: 768px) {
    /* --- ABOUT BO'LIMI (Sustainability va Innovation) MOSLASHUVI --- */
    #about .reveal {
        padding: 20px !important; /* Katta bo'shliqni telefon uchun kichraytiramiz */
        box-sizing: border-box;
        width: 100%;
        overflow: hidden; /* Toshgan qismini kesib tashlash */
    }
    
    #about div[style*="flex: 1"] {
        min-width: 100% !important; /* 250px qoidasini bekor qilib, ekranga moslaymiz */
        box-sizing: border-box;
        margin-bottom: 15px; /* Ustma-ust tushganda orasida joy qoldirish */
    }

    /* 1. Menyuni moslash (sig'ishi uchun) */
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }
    
    /* 2. Bosh ekrandagi yozuvlarni kichraytirish */
    .hero h1 {
        font-size: 2.2rem !important;
    }
    .hero h2 {
        font-size: 1.1rem !important;
    }
    .hero p {
        font-size: 1rem !important;
    }

    /* 3. Kartochkalar (Topics, Committee, Fees) 1 ustun bo'lishi uchun */
    .grid {
        grid-template-columns: 1fr; /* Faqat 1 ta qator chiqadi */
        gap: 20px;
    }

    /* 4. Statistika raqamlarini ustun qilib joylash */
    .stats {
        flex-direction: column;
        gap: 40px;
    }

    /* 5. Aloqa bo'limi (Xarita pastga tushadi) */
    .contact-container {
        flex-direction: column;
        padding: 20px;
    }
    /* --- ALOQA BO'LIMI MOSLASHUVI --- */
    .contact-container {
        flex-direction: column;
        padding: 20px;
        box-sizing: border-box;
        width: 100%;
    }

    .contact-info-box {
        width: 100%;
        min-width: 100%; /* Asosiy kodagi 300px ni bekor qiladi */
        box-sizing: border-box;
    }

    /* Uzun matnlar toshib ketmasligi uchun */
    .info-item {
        width: 100%;
        box-sizing: border-box;
    }

    .info-item p, .info-item a {
        word-wrap: break-word;      /* Uzun so'zlarni bo'lib pastga tushiradi */
        overflow-wrap: break-word;  /* Uzun so'zlarni bo'lib pastga tushiradi */
    }

    .info-item i {
        flex-shrink: 0; /* Ikonka qisilib, qiyshayib qolmasligi uchun */
    }

    /* Karta toshib ketmasligi uchun fix */
    .map-box {
        width: 100%;
        min-width: 100%; 
        max-width: 100%;
        box-sizing: border-box;
        height: 300px;
        margin-top: 20px;
    }
    
    .map-box iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
    }
    /* Karta toshib ketmasligi uchun fix */
    .map-box {
        width: 100%;
        min-width: 100%; /* Asosiy kodagi min-width ni bekor qilamiz */
        max-width: 100%;
        box-sizing: border-box;
        height: 300px;
    }
    
    .map-box iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
    }
    
    /* Narxlar kartochkasi kattalashib ketmasligi uchun */
    #fees .card {
        transform: none !important;
    }
}
.lang-switcher {
    margin-left: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
}

.lang-link {
    color: rgba(255,255,255,0.6);
    transition: 0.3s;
}

.lang-link.active {
    color: var(--accent); /* Sizning asosiy ko'k yoki tilla rangiz */
}

.lang-link:hover {
    color: white;
}

.divider {
    color: rgba(255,255,255,0.2);
    margin: 0 5px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Logotiplar orasidagi masofa */
}

.partner-item {
    width: 150px; /* Har bir blokning o'lchami */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.partner-item img {
    max-width: 100%;
    max-height: 80px; /* Barcha rasmlar bir xil balandlikda bo'ladi */
    object-fit: contain;
    filter: grayscale(100%); /* Oq-qora effekt */
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Sichqoncha borganda (Hover) */
.partner-item:hover img {
    filter: grayscale(0%); /* Rangli bo'ladi */
    opacity: 1;
    transform: scale(1.1); /* Biroz kattalashadi */
}

/* Mobil qurilmalar uchun moslashuv */
@media (max-width: 768px) {
    .partners-grid {
        gap: 20px;
    }
    .partner-item {
        width: 120px;
    }
}

.partner-item img:hover, .partner-item h3:hover {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.05);
    cursor: pointer;
}

@media (max-width: 768px) {
    .policy-content {
        grid-template-columns: 1fr !important; /* Mobilda ustunlar birma-bir tushadi */
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Avtomatik ustunlar */
    gap: 40px;
}

.footer-links-list, .footer-contact-list {
    list-style: none;
    padding: 0;
}

.footer-links-list li, .footer-contact-list li {
    margin-bottom: 15px;
}

.footer-links-list a {
    color: #b0b0b0;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links-list a:hover {
    color: var(--accent);
    padding-left: 5px; /* Hover bo'lganda ozgina siljiydi */
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Mobilga moslashuv */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Mobilda bitta ustun */
        text-align: center;
    }
    .social-icons {
        justify-content: center;
        display: flex;
    }
    .footer-links-list a:hover {
        padding-left: 0;
    }
}
