/* =========================
   1. ASOSIY QOIDALAR STILI
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;700&display=swap');

:root {
    --primary-blue: #2A6EAC;
    --bg-light: #F7F9FC;
    --text-dark: #1A202C;
    --text-muted: #4A5568;
    --border-color: #E2E8F0;
    --maxw: 1200px;
    --header-height: 80px;
    --success-green: #10B981;
}

* {
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.5;
    overflow-x: hidden;
        scroll-behavior: smooth;

}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading); 
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.3);
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.2s;
}
a:hover {
    color: #dcd6d6;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}


/* =======================================
   2. HEADER VA NAVIGATSIYA SECTION STILI
   ======================================= */

.header-wrapper {
    background-color: white;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05); 
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .nav a {
    transition: color 0.3s ease; 
}

.header .nav .active-link {
    color: var(--primary-blue);
    font-weight: 700;
}

.header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--primary-blue); 
}

.logo img {
    height: 50px;
    width: 50px;
    margin-right: 8px;
    transition: transform 0.3s; 
    border-radius: 12px;
}

.logo:hover img {
    transform: rotate(10deg) scale(1.1); 
}

.nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 28px;
    transition: color 0.2s, transform 0.2s; 
}

.nav a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px); 
}


/* ===========================================
   3. OVOZNI BOSHQARISH TUGMASI SECTION STILI
   =========================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-sound-control {
    background: white;
    color: var(--primary-blue);
    border: none;
    position: relative;
    overflow: hidden;
    padding: 10px 20px; 
    font-weight: 700; 
    font-size: 1rem; 
    cursor: pointer;
    border-radius: 8px;
    z-index: 1; 
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0,0,0,0.15); 
    min-width: 150px;
}

.btn-sound-control::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg, 
        rgba(66, 133, 244, 0.5) 0%,
        rgba(255, 160, 0, 0.5) 30%,
        rgba(0, 170, 0, 0.5) 60%,
        rgba(66, 133, 244, 0.5) 100% 
    );
    z-index: -1;
    animation: rotate 4s linear infinite;
}

.btn-sound-control::after {
    content: attr(data-text);
    position: absolute;
    top: 3px; 
    right: 3px; 
    bottom: 3px; 
    left: 3px;
    background: white; 
    border-radius: 5px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px; 
    font-size: 1rem; 
    z-index: 0;
    line-height: 1;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.btn-sound-control.active {
    animation: shake 0.3s infinite; 
}


/* ======================
   4. HERO SECTION STILI
   ====================== */

.hero-wrapper {
    background: linear-gradient(90deg, #FFFFFF 0%, #F7F9FC 100%); 
    min-height: calc(100vh - var(--header-height)); 
    display: flex; 
    align-items: center; 
    position: relative;
    overflow: hidden;
}

.hero-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-section {
    display: flex;
    align-items: center;
    padding: 60px 0;
    width: 100%;
    position: relative; 
    z-index: 1;
}

.hero-left {
    flex: 1;
    padding-right: 40px;
}

.hero-left h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-dark);
    color: white;
}

.hero-left p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.85);
}

.cta-row {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #357ae8;
    transform: translateY(-3px); 
    border-radius: 14px;
}

.btn-secondary {
    background-color: transparent; 
    color: white; 
    border-color: rgba(255, 255, 255, 0.5); 
}

.btn-secondary:hover {
    border-color: white;
    color: white;
    background-color: rgba(66, 133, 244, 0.4);
    transform: translateY(-3px); 
    border-radius: 14px;
}

.hero-right {
    flex-shrink: 0;
    width: 45%;
    max-width: 500px;
    position: relative;
}

.image-card {
    background-color: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    cursor: pointer; 
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
}

.image-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); 
}

.image-card img {
    display: block;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

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


/* ============================================
   5. UMUMIY BO'LIM SARLAVHALARI SECTION STILI
   ============================================ */

.section-title {
    text-align: center;
    padding: 30px 0 50px 0;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800; 
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}


/* ==========================
   6. FEATURES SECTION STILI
   ========================== */

.features-section {
    padding: 70px 0;
    background-color: white;
}

.features-header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.features-image-container {
    flex-basis: 40%;
    flex-shrink: 0;
    max-width: 400px;
    cursor:pointer;
}

.features-image-container img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    filter: drop-shadow(0 0 8px rgba(0, 98, 255, 0.5));
}

.features-image-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 8px rgb(0, 98, 255));
}

.features-text-content {
    flex-basis: 60%;
}

.features-text-content h2 {
    font-size: 2.5rem;
    font-weight: 800; 
    margin-bottom: 10px;
    color: var(--text-dark);
}

.features-text-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
}

.features-grid-wrapper {
    padding-top: 40px; 
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

.feature-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
    text-align: center; 
    min-height: 250px;
    cursor: pointer;
}

.feature-card:hover {
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.15);
    border-color: var(--primary-blue);
    transform: translateY(-5px); 
}

.feature-card .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background-color: var(--bg-light); 
    color: var(--primary-blue);
    stroke: var(--primary-blue);
    transition: background-color 0.3s, transform 0.3s, color 0.3s, stroke 0.3s;
}

.feature-card:hover .icon {
    background-color: var(--primary-blue); 
    color: white; 
    stroke: white; 
    transform: scale(1.1) rotate(-5deg); 
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* =========================
   7. COURSES SECTION STILI
   ========================= */

.courses-section {
    padding: 80px 0;
    background-color: var(--bg-light); 
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-blue); 
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.2);
}

.course-card .course-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.course-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.course-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.course-card .level-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: #E6F0FF;
    color: var(--primary-blue);
}


/* ==================================
   8. ONLINE RESOURCES SECTION STILI
   ================================== */

.online-resources-section {
    padding: 80px 0;
    background-color: white; 
}

.online-resources-section .section-title {
    padding: 0 0 50px 0;
}

.online-resources-section .section-title h2 {
    color: var(--primary-blue); 
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 45px;
}

.resource-card {
    background-color: white;
    padding: 15px;
    height: 100%; 
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center; 
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    cursor: pointer;
}

.resource-card:hover {
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.1);
    transform: scale(1.02); 
    border-color: var(--primary-blue); 
}

.resource-card .logo-img {
    height: auto;
    max-height: 100px; 
    width: auto;
    max-width: 80%;
    margin-bottom: 15px;
    object-fit: contain;
    border-radius: 12px;
}

.resource-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 15px; 
}


/* ==============================
   9. CAREER PATHS SECTION STILI
   ============================== */

.career-section {
    padding: 80px 0;
    background-color: var(--bg-light); 
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 40px;
}

.career-card {
    background-color: white; 
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--success-green);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.career-card .career-icon {
    font-size: 1.5rem;
    color: var(--success-green); 
    margin-bottom: 15px;
}

.career-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.career-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}


/* ========================
   10. STATS SECTION STILI
   ======================== */

.stats-banner {
    background-color: var(--primary-blue); 
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    color: white;
}

.stat-item {
    transition: transform 0.3s; 
}

.stat-item:hover {
    transform: scale(1.05); 
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.85;
}


/* ===================================
   11. FINAL CTA BANNER SECTION STILI
   =================================== */

.cta-banner {
    background-color: var(--bg-light); 
    color: var(--text-dark);
    padding: 80px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2.5rem; 
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.btn-cta-blue { 
    background-color: var(--primary-blue);
    color: white;
    font-weight: 700;
    padding: 15px 35px;
    font-size: 1.05rem;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s; 
    text-decoration: none; 
    display: inline-block;
}

.btn-cta-blue:hover {
    background-color: #357ae8;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(66, 133, 244, 0.5); 
}


/* ================================
   12. PROJECT STORY SECTION STILI
   ================================ */

.story-section {
    padding: 40px 0;
    background-color: var(--color-white);
}

.story-content-wrapper {
    display: flex;
    gap: 60px;
    align-items: center;
}

.story-image {
    flex: 0 0 40%;
    max-width: 40%;
    cursor: pointer;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: block;
    border: 4px solid transparent; 
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 8px rgb(0, 98, 255));
}

.story-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-blue);
}

.story-text {
    flex: 0 0 60%;
    max-width: 60%;
}

.story-text h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-weight: 900;
}

.story-text p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-dark); 
}


/* ==============================
   13. CORE VALUES SECTION STILI
   ============================== */

.core-values-section {
    padding: 40px 0 80px 0;
    background-color: var(--color-light-gray); 
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #e0e0e0;
    cursor: pointer;
}

.value-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
}

.value-card .icon {
    font-size: 3.2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: all 0.5s ease;
}

.value-card:hover .icon {
    color: var(--secondary-color); 
    transform: rotateY(360deg);
}

.value-card h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}


/* ===============================
   14. TEAM DETAILS SECTION STILI
   =============================== */

.team-details-section {
    padding: 10px 0 25px 0;
    text-align: center;
}

.team-members-list {
    display: flex;
    justify-content: center;
    gap: 20px; 
    flex-wrap: wrap;
}

.member-card {
    background: var(--color-white);
    padding: 40px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
    max-width: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.member-card:hover {
    transform: translateY(-12px); 
    box-shadow: 0 25px 50px #3567C7;
    border-radius: 70px;
}

.member-avatar {
    border-radius: 50%;
    width: 165px;
    height: 184px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 6px solid var(--primary-blue); 
    box-shadow: 0 0 0 10px rgba(0, 96, 168, 0.3); 
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
    transform: scale(1);
}

.member-card:hover .member-avatar {
    border-color: var(--secondary-color); 
    transform: scale(1.15) rotate(-3deg); 
    box-shadow: 0 0 0 10px #3567C7
}

.member-card h4 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-top: 10px;
}

.member-card p {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}


/* ===============================
   15. SOCIAL MEDIA SECTION STILI
   =============================== */

.social-section {
    padding:25px 0;
    background-color: #3567C7;
    text-align: center;
}

.social-section h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-link a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-blue); 
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s; 
}

.social-link a:hover {
    background-color: #7AAFFF; 
    transform: translateY(-2px) scale(1.05); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
}

.social-link .icon-label {
    font-size: 1.5rem;
}


/* =========================
   16. FOOTER SECTION STILI
   ========================= */

.footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background-color: white;
    border-top: 1px solid var(--border-color);
}


/* ===========================================
   17. HAMBURGER VA NAVIGATSIYA SECTION STILI
   =========================================== */

.nav-toggle {
    display: none; /* Desktopda yashirin */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-white); 
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    line-height: 1; 
    transition: color 0.3s ease;
}

.nav-toggle:hover {
    color: var(--secondary-color);
}

/* Close Ikonka ('X') stili */
.nav-toggle .fa-times {
    font-size: 2rem; 
}


/* ===========================================
   18. RESPONSIVE MEDIA QUERIES SECTION STILI
   =========================================== */

/* PLANSHEYLAR UCHUN (Maks. 992px gacha) */
@media (max-width: 992px) {
    
    /* --- 1. HEADER & MOBIL NAVIGATSIYA BOSHQARUVI --- */
    .header {
        display: flex; 
        justify-content: space-between;
        align-items: center;
        padding: 15px 0; 
    }
    
    .nav { 
        display: none; /* Desktop navigatsiyasini yashirish */
    }
    
    /* Hamburger ikonni ko'rsatish */
    .nav-toggle {
        display: block; 
    }
    
    .header-actions {
        display: flex; 
        align-items: center;
        flex-direction: row-reverse; 
        gap: 30px; 
    }
    .btn-sound-control {
        min-width: 120px;
    }
    
    #main-nav.nav { 
        display: flex; 
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; 
        width: 75%;
        max-width: 300px;
        height: 100vh;
        
        /* OQ BLUR EFFEKTI (85PX) */
        background-color: rgba(255, 255, 255, 0.15); 
        backdrop-filter: blur(85px); 
        -webkit-backdrop-filter: blur(85px); 
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        
        padding-top: 80px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }
    
    /* Menyuni ochish */
    #main-nav.nav.open {
        right: 0; 
    }
    
    .nav a {
        color: var(--color-white); 
        padding: 15px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    
    /* --- 2. HERO SECTION --- */
    .hero-section { 
        flex-direction: column; 
        text-align: center; 
        padding: 40px 0; 
    }
    .hero-left { 
        padding-right: 0; 
        order: 2; 
        margin-top: 30px; 
    }
    .hero-right { 
        width: 80%; 
        max-width: 450px; 
        order: 1; 
        margin: 0 auto;
    }
    .hero-left h1 { 
        font-size: 2.5rem; 
    }
    .cta-row { 
        justify-content: center; 
    }
    
    /* --- 3. PROJECT STORY --- */
    .story-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .story-image, .story-text {
        max-width: 100%;
        flex: none;
    }
    .story-image {
        order: 2;
        margin-top: 30px;
    }
    .story-image img {
        width: 80%;
        margin: 0 auto;
    }

    /* --- 4. GRID TIZIMLARI (Umumiy) --- */
    .grid, .course-grid, .resources-grid, .career-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    /* --- 5. STATS --- */
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; 
    }
    
    /* --- 6. FEATURES HEADER --- */
    .features-header-content {
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px;
    }
    .features-image-container {
        order: 1;
        max-width: 77%; 
        margin: 0 auto;
    }
    .features-text-content {
        order: 2;
        margin-top: 20px;
    }
    
    /* --- 7. CORE VALUES --- */
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


/* KICHIK PLANSHETLAR / KATTA MOBIL (768px dan past) */
@media (max-width: 768px) {
    .team-members-list {
        gap: 30px;
    }
}


/* MOBIL TELEFONLAR UCHUN (600px gacha) */
@media (max-width: 600px) {
    
    /* --- 1. GLOBAL & HEADER --- */
    .container {
        padding: 0 10px;
    }
    
    .header {
        display: flex;
        justify-content: space-between;
        padding: 15px 0;
    }
    .logo {
        font-size: 1rem;
    }
    
    .header-actions {
        flex-direction: row-reverse; 
        gap: 30px; 
    }
    .btn-sound-control {
        min-width: auto; 
        padding: 6px 14px; 
        white-space: nowrap; 
        font-size: 0.75rem; 
    }

    /* --- 2. HERO SECTION --- */
    .hero-left h1 { 
        font-size: 1.8rem; 
    }
    .hero-section p {
        font-size: 0.9rem;
    }
    .cta-row { 
        flex-direction: column; 
        gap: 10px; 
    }
    .btn, .btn-primary, .btn-secondary { 
        width: 100%; 
    }
    .hero-right { 
        display: none; 
    }
    
    /* --- 3. GRID TIZIMLARI --- */
    .grid, .course-grid, .resources-grid, .career-grid, .values-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    
    /* --- 4. STATS --- */
    .stats-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 15px; 
    }
    .stat-item h3 { 
        font-size: 2.2rem; 
    }
    
    /* --- 5. FEATURES & STORY --- */
    .features-image-container {
        max-width: 90%; 
        width: 90%;
    }

    .story-image img {
        max-width: 70%;
        width: 75%;
    }
}
