
/* =========================
   GLOBAL
========================= */

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

:root {
    --bg: #eaf6ff;
    --bg-secondary: #dff0fc;
    --card: #f7fbff;
    --card-hover: #edf7ff;

    --white: #12334a;
    --text: #23465e;
    --muted: #58758b;

    --green: #0cae83;
    --green-dark: #078b69;

    --blue: #1683d8;
    --blue-light: #0874c5;

    --red: #e34e67;
    --red-dark: #c73550;

    --border: rgba(29, 91, 125, 0.16);

    --container: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(234, 246, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--green);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 0 25px rgba(12, 174, 131, 0.18);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--muted);
    font-size: 14px;
    transition: 0.25s;
}

nav a:hover {
    color: var(--white);
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

/* =========================
   BUTTONS
========================= */

.btn {
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s;
}

.btn-primary {
    background: var(--green);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(12, 174, 131, 0.18);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.btn-login {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-login:hover {
    background: var(--card);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--card);
}

.btn-large {
    padding: 15px 25px;
    font-size: 15px;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #eaf6ff 0%, #e5f3fd 100%);
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    left: -200px;
    top: 50px;
    background: rgba(47, 175, 219, 0.13);
    filter: blur(100px);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}

/* =========================
   HERO TEXT
========================= */

.hero-text {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 7px 13px;
    margin-bottom: 20px;
    border-radius: 50px;
    background: rgba(12, 174, 131, 0.09);
    border: 1px solid rgba(12, 174, 131, 0.24);
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--white);
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--green-dark);
}

.hero-text > p {
    max-width: 620px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

/* =========================
   FEATURES
========================= */

.features {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

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

.feature > span {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #e5f3fc;
    color: var(--green-dark);
    border: 1px solid var(--border);
}

.feature strong {
    display: block;
    font-size: 12px;
    color: var(--white);
}

.feature small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

/* =========================
   HERO VISUAL
========================= */

.hero-visual {
    min-height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}

.glow.green {
    width: 180px;
    height: 180px;
    background: var(--green);
    top: 50px;
    right: 50px;
}

.glow.blue {
    width: 150px;
    height: 150px;
    background: var(--blue);
    bottom: 70px;
    left: 50px;
}

.glow.red {
    width: 120px;
    height: 120px;
    background: var(--red);
    bottom: 20px;
    right: 80px;
}

.books {
    position: relative;
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: rotate(-5deg);
}

.book {
    padding: 22px 25px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 30px rgba(37, 93, 127, 0.12);
    transition: 0.3s;
}

.book:hover {
    transform: translateX(10px);
}

.book.blue {
    background: linear-gradient(135deg, #d8edff, #a9d7fa);
    color: #123d60;
}

.book.green {
    background: linear-gradient(135deg, #d6f8eb, #a6edd4);
    color: #075d47;
}

.book.red {
    background: linear-gradient(135deg, #ffe5eb, #ffc5d0);
    color: #84243a;
}

/* =========================
   AI CARD
========================= */

.ai-card {
    position: absolute;
    right: 10px;
    bottom: 30px;
    width: 235px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(37, 93, 127, 0.15);
    backdrop-filter: blur(20px);
}

.ai-circle {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 50%;
    background: var(--green);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.ai-card strong {
    display: block;
    color: var(--white);
    margin-bottom: 5px;
}

.ai-card span {
    color: var(--muted);
    font-size: 11px;
}

.progress {
    width: 100%;
    height: 6px;
    margin-top: 18px;
    background: #d4e7f4;
    border-radius: 20px;
    overflow: hidden;
}

.progress div {
    width: 72%;
    height: 100%;
    background: var(--green);
    border-radius: inherit;
}

/* =========================
   SECTIONS
========================= */

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 55px;
}

.section-title > span {
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-title h2 {
    color: var(--white);
    font-size: 38px;
    margin: 12px 0;
}

.section-title p {
    color: var(--muted);
}

/* =========================
   SUBJECTS
========================= */

.subjects {
    background: var(--bg-secondary);
}

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

.subject-card {
    padding: 32px;
    min-height: 280px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(35, 91, 125, 0.05);
}

.subject-card:hover {
    transform: translateY(-7px);
    background: #ffffff;
    border-color: rgba(12, 174, 131, 0.34);
}

.subject-card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    right: -60px;
    top: -60px;
    filter: blur(20px);
    opacity: 0.1;
}

.blue-card::after {
    background: var(--blue);
}

.green-card::after {
    background: var(--green);
}

.red-card::after {
    background: var(--red);
}

.subject-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border-radius: 14px;
    background: #e5f3fc;
    border: 1px solid var(--border);
    font-size: 25px;
}

.subject-card h3 {
    color: var(--white);
    font-size: 23px;
    margin-bottom: 10px;
}

.subject-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 25px;
}

.subject-card button {
    background: transparent;
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
}

.blue-card button {
    color: var(--blue-light);
}

.green-card button {
    color: var(--green-dark);
}

.red-card button {
    color: var(--red-dark);
}

/* =========================
   HOW IT WORKS
========================= */

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

.step {
    padding: 35px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(35, 91, 125, 0.05);
}

.step-number {
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 20px;
}

.step h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.step p {
    color: var(--muted);
    font-size: 14px;
}

/* =========================
   FOOTER
========================= */

footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: #d8ecfa;
}

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

.footer-content p {
    color: var(--muted);
    margin-top: 10px;
    font-size: 13px;
}

.footer-content > div:last-child {
    color: var(--muted);
    font-size: 12px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 950px) {
    nav {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features {
        justify-content: center;
    }

    .hero-visual {
        min-height: 430px;
    }

    .subject-grid,
    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-buttons .btn-login {
        display: none;
    }

    .nav-buttons .btn-primary {
        padding: 9px 12px;
        font-size: 12px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .hero {
        min-height: auto;
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .hero-text > p {
        font-size: 15px;
    }

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

    .features {
        flex-direction: column;
        align-items: flex-start;
        width: max-content;
        margin: 0 auto;
    }

    .books {
        width: 280px;
    }

    .book {
        padding: 18px;
        font-size: 15px;
    }

    .ai-card {
        right: 0;
        bottom: 15px;
        width: 200px;
    }

    section {
        padding: 70px 0;
    }

    .section-title h2 {
        font-size: 30px;
    }

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

/* =========================
   SUBJECT BUTTON
========================= */

.subject-button {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    background: var(--green);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.2s;
}

.subject-button:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

/* ===== AI SERTIFIKAT: YANGI DARK DIZAYN ===== */
:root {
    --bg: #070b10;
    --bg-secondary: #0d141c;
    --card: #111923;
    --card-hover: #17212d;

    --white: #f8fafc;
    --text: #e5e7eb;
    --muted: #94a3b8;

    --green: #20e39a;
    --green-dark: #20e39a;

    --blue: #2563eb;
    --blue-light: #3b82f6;

    --red: #ef4444;
    --red-dark: #dc2626;

    --border: rgba(148, 163, 184, 0.16);
}

html,
body {
    background-color: var(--bg);
    color: var(--text);
}

.hero h1 span {
    color: var(--green);
}

/* ==========================================
   AI SERTIFIKAT — YANGI DARK DIZAYN
   Fanlar va Qanday ishlaydi bo'limlari
========================================== */

:root {
    --bg: #070b10;
    --bg-secondary: #0b1017;
    --card: #111923;
    --green: #20e39a;
    --green-dark: #13c982;
}

body {
    background: #070b10 !important;
    color: #f8fafc;
}

.subjects,
.how-it-works {
    background: #070b10 !important;
    color: #f8fafc;
}

.subject-card,
.steps .step {
    background: #111923 !important;
    border: 1px solid #243244 !important;
    color: #f8fafc !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.subject-card:hover,
.steps .step:hover {
    background: #151f2b !important;
    border-color: #20e39a !important;
}

.subject-card h3,
.steps .step h3,
.section-title h2 {
    color: #f8fafc !important;
}

.subject-card p,
.steps .step p,
.section-title p {
    color: #a8b5c5 !important;
}

.section-title > span {
    color: #20e39a !important;
}

.subject-card button {
    color: #20e39a !important;
}

.step-number {
    color: #20e39a !important;
    background: rgba(32, 227, 154, 0.12) !important;
    border: 1px solid rgba(32, 227, 154, 0.25);
}


/* ===== FINAL DARK THEME FIX ===== */

body {
    background: #070b10 !important;
    color: #e5e7eb !important;
}

.subjects,
.how-it-works {
    background: #070b10 !important;
    color: #f8fafc !important;
}

.subjects .section-title h2,
.how-it-works .section-title h2,
.subjects .section-title p,
.how-it-works .section-title p {
    color: #f8fafc !important;
}

.subjects .section-title p,
.how-it-works .section-title p {
    color: #a8b5c5 !important;
}

.subject-card,
.steps .step {
    background: #111923 !important;
    color: #f8fafc !important;
    border: 1px solid #263445 !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22) !important;
}

.subject-card:hover,
.steps .step:hover {
    background: #17212d !important;
    border-color: #20e39a !important;
}

.subject-card h3,
.steps .step h3 {
    color: #f8fafc !important;
}

.subject-card p,
.steps .step p {
    color: #b6c2d0 !important;
}

.subject-card .subject-icon {
    background: #182735 !important;
    border-color: #2a3b4d !important;
}

.subject-card .subject-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #20e39a !important;
    font-weight: 700;
    text-decoration: none;
}

.subject-card .subject-button:hover {
    color: #13c982 !important;
}

.steps .step-number {
    color: #20e39a !important;
}

footer {
    background: #0b1017 !important;
    border-top: 1px solid #263445 !important;
}

footer,
footer p,
footer a {
    color: #a8b5c5 !important;
}

