
/* =========================
   1. GLOBAL SETTINGS
========================= */

:root {
    --black: #171717;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --border: #eeeeee;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

button {
    font-family: inherit;
}

/* =========================
   2. NAVBAR
========================= */

.navbar {
    width: 100%;
    min-height: 82px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 100;

    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.brand-icon {
    width: 37px;
    height: 37px;
    display: flex;
    justify-content: center;
    align-items: center;

    background: var(--black);
    color: var(--white);

    border-radius: 9px;
    font-size: 23px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: #555555;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #000000;
}

/* =========================
   3. MAIN CONTENT
========================= */

main {
    min-height: 70vh;
}

/* =========================
   4. BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 13px 23px;
    border-radius: 7px;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.25s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #333333;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 1px solid #dddddd;
}

.btn-secondary:hover {
    background: var(--light-gray);
}

/* =========================
   5. FOOTER
========================= */

.footer {
    background: #111111;
    color: #ffffff;

    padding: 65px 6% 25px;
    margin-top: 100px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand .brand-icon {
    background: #ffffff;
    color: #111111;
}

.footer-brand h3 {
    font-size: 19px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 12px;
    color: #aaaaaa;
    letter-spacing: 1px;
}

.copyright {
    border-top: 1px solid #333333;
    margin-top: 45px;
    padding-top: 22px;

    font-size: 12px;
    color: #888888;
    text-align: center;
}

/* =========================
   6. RESPONSIVE
========================= */

@media (max-width: 768px) {

    .navbar {
        padding: 0 5%;
        min-height: 70px;
        flex-wrap: wrap;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        gap: 22px;
        padding: 12px 0;
    }

    .nav-links a {
        white-space: nowrap;
        font-size: 12px;
    }

    .footer {
        padding: 45px 5% 20px;
        margin-top: 65px;
    }
}

/* INTERACTIVE BACKGROUND */

#background-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Sahifa elementlari canvas ustida turadi */
.navbar,
main,
.footer {
    position: relative;
}

.navbar {
    z-index: 10;
}


/* LOGO */

.brand img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.footer-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.brand-icon {
    display: none;
}

.nav-links a.active {
    background: #111;
    color: #fff;
    padding: 11px 19px;
    border-radius: 30px;
}

/* HERO SECTION */

.hero {
    max-width: 1470px;
    min-height: 730px;
    margin: 0 auto;
    padding: 75px 5.2% 55px;

    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 25px;

    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 720px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    background: #f3f4f5;
    padding: 9px 16px;
    border-radius: 30px;

    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.label-dot {
    width: 9px;
    height: 9px;
    background: #111;
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(43px, 4.6vw, 76px);
    line-height: 1.08;
    letter-spacing: -3.5px;
    font-weight: 800;
    margin-bottom: 24px;
}

.typing-cursor {
    font-weight: 400;
    animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
    50% {
        opacity: 0;
    }
}

.hero-description {
    max-width: 480px;
    font-size: 18px;
    line-height: 1.5;
    color: #454545;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-buttons .btn {
    min-height: 54px;
    padding: 0 28px;
    border-radius: 35px;
}

.hero-buttons .btn-primary span {
    font-size: 22px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.hero-visual img {
    width: min(100%, 430px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 28px 22px rgba(0, 0, 0, 0.15));
}

/* STATISTICS */

.hero-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: 700px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 30px;
    border-right: 1px solid #cccccc;
}

.stat-item:first-child {
    padding-left: 0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 27px;
    font-weight: 700;
}

.stat-item h2 {
    font-size: 29px;
    line-height: 1.2;
    font-weight: 800;
}

.stat-item p {
    color: #666;
    font-size: 12px;
}

/* FOOTER */

.footer {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding: 30px 4%;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 65px;
    }

    .hero-visual {
        display: none;
    }

    .hero h1 {
        font-size: clamp(42px, 8vw, 65px);
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 55px 6% 35px;
        min-height: auto;
    }

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

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-wrap: wrap;
        margin-bottom: 45px;
    }

    .hero-stats {
        gap: 22px;
    }

    .stat-item {
        padding: 0;
        border: none;
    }

    .stat-item h2 {
        font-size: 23px;
    }
}


#background-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
}

main {
    position: relative;
    z-index: 1;
}

.footer {
    position: relative;
    z-index: 2;
}

/* FOOTER — ROUNDED DESIGN */

.footer {
    margin: 35px 25px 20px;
    padding: 35px 4% 25px;

    border-radius: 24px;

    background: #111111;
    color: #ffffff;

    position: relative;
    z-index: 2;
}
@media (max-width: 600px) {
    .footer {
        margin: 20px 12px 12px;
        padding: 30px 22px 20px;
        border-radius: 18px;
    }
}


/* FOOTER */

.footer {
    margin: 35px 25px 20px;
    padding: 38px 4% 22px;

    background: #111111;
    color: #ffffff;

    border-radius: 24px;

    position: relative;
    z-index: 2;
}

/* FOOTER MAIN */

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

/* LOGO */

.footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.footer-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand h3 {
    font-size: 19px;
    font-weight: 700;
}

.footer-brand p {
    color: #aaaaaa;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* FOOTER LINKS */

.footer-links {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #dddddd;
    font-size: 13px;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* SOCIAL ICONS */

.footer-socials {
    display: flex;
    align-items: center;
    gap: 17px;
}

.footer-socials a {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    font-size: 20px;

    transition: all 0.25s ease;
}

.footer-socials a:hover {
    color: #aaaaaa;
    transform: translateY(-4px);
}

/* COPYRIGHT */

.footer-bottom {
    border-top: 1px solid #333333;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #888888;
    font-size: 12px;
}

/* TABLET */

@media (max-width: 1000px) {
    .footer-main {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .footer {
        margin: 20px 12px 12px;
        padding: 32px 18px 20px;
        border-radius: 20px;
    }

    .footer-main {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .footer-brand {
        justify-content: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 17px;
    }

    .footer-socials {
        justify-content: center;
        gap: 20px;
    }

    .footer-bottom {
        margin-top: 25px;
    }
}


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

.how-it-works {
    max-width: 1350px;
    margin: 30px auto 100px;
    padding: 75px 5.2%;
    position: relative;
    z-index: 1;
}

/* SECTION HEADING */

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

.section-label {
    display: inline-block;
    color: #777777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1.8px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-heading p {
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}

/* CARDS GRID */

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

/* CARD */

.step-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 20px;
    overflow: hidden;

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

/* VISUAL AREA */

.step-visual {
    height: 230px;
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-course {
    background: #f0f1f3;
}

.visual-learning {
    background: #e9ebee;
}

.visual-project {
    background: #f1f1f1;
}

.step-number {
    position: absolute;
    top: 17px;
    left: 19px;
    font-size: 13px;
    font-weight: 700;
    color: #777777;
    z-index: 2;
}

.visual-icon {
    width: 110px;
    height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border-radius: 28px;

    font-size: 48px;
    color: #171717;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.09);

    transform: rotate(-7deg);
    transition: transform 0.3s ease;

    z-index: 1;
}

.step-card:hover .visual-icon {
    transform: rotate(0deg) scale(1.08);
}

.visual-decoration {
    position: absolute;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
}

.decoration-one {
    width: 180px;
    height: 180px;
}

.decoration-two {
    width: 250px;
    height: 250px;
}

/* CARD CONTENT */

.step-content {
    padding: 27px 25px 30px;
}

.step-tag {
    color: #888888;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.step-content h3 {
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.5px;
    margin: 12px 0;
}

.step-content p {
    color: #666666;
    font-size: 13px;
    line-height: 1.8;
}


/* TABLET */

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

/* MOBILE */

@media (max-width: 600px) {
    .how-it-works {
        margin: 20px auto 60px;
        padding: 55px 6%;
    }

    .section-heading {
        margin-bottom: 35px;
    }

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

    .section-heading p {
        font-size: 14px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-visual {
        height: 200px;
    }

    .step-content {
        padding: 23px;
    }
}



/* Navbar autentifikatsiya tugmalari */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 25px;
    flex-shrink: 0;
}

.login-btn {
    color: #171717;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 16px;
    border-radius: 10px;
    transition: 0.25s ease;
}

.login-btn:hover {
    background: #f3f3f3;
}


.register-btn {
    color: #ffffff !important;
    background: #171717;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 18px;
    border-radius: 10px;
    transition: 0.25s ease;
}


.register-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.register-btn:hover {
    color: #ffffff !important;
    background: #333333;
    transform: translateY(-1px);
}

/* Navbar menyu animatsiyasi */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    position: relative;
    z-index: 1;
    padding: 11px 16px;
    border-radius: 10px;
    color: #171717;
    text-decoration: none;
    transition: color 0.3s ease;
}



/* Sichqoncha borganda */
.nav-links a:hover {
    color: #ffffff;
    background: #171717;
    transition: background 0.3s ease, color 0.3s ease;
}
