* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #172033;
    background: #ffffff;
    line-height: 1.6;
}


/* ================= HEADER ================= */

.header {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    background: white;
    border-bottom: 1px solid #edf0f5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 21px;
    font-weight: 700;
}

.logo span {
    color: #172033;
}

.logo strong {
    color: #1769e0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1769e0, #00b8d9);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: #4a5568;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

nav a:hover {
    color: #1769e0;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.login-btn,
.signup-btn {
    padding: 10px 19px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
}

.login-btn {
    background: white;
    border: 1px solid #d8dee9;
}

.signup-btn {
    background: #1769e0;
    color: white;
    border: none;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 27px;
}


/* ================= HERO ================= */

.hero {
    min-height: 650px;
    padding: 90px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background:
        radial-gradient(circle at 80% 20%, #dff5ff, transparent 35%),
        linear-gradient(135deg, #f7fbff, #eef6ff);
}

.hero-content {
    max-width: 620px;
}

.badge {
    display: inline-block;
    background: #e4f2ff;
    color: #1769e0;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.12;
    margin-bottom: 22px;
}

.hero h1 span {
    color: #1769e0;
}

.hero p {
    color: #5d687a;
    font-size: 18px;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 32px;
}

.primary-btn,
.secondary-btn {
    padding: 14px 23px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    border: none;
}

.primary-btn {
    background: #1769e0;
    color: white;
}

.secondary-btn {
    background: white;
    border: 1px solid #d6dce5;
    color: #26364d;
}

.hero-stats {
    display: flex;
    gap: 45px;
    margin-top: 45px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 23px;
}

.hero-stats span {
    color: #737d8c;
    font-size: 13px;
}


/* ================= HERO VIDEO ================= */

.hero-card {
    width: 450px;
}

.video-window {
    background: #101a2b;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(20, 50, 100, .2);
}

.video-header {
    height: 40px;
    background: #17243a;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-left: 16px;
}

.video-header span {
    width: 9px;
    height: 9px;
    background: #77849a;
    border-radius: 50%;
}

.video-content {
    height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.play-button {
    width: 72px;
    height: 72px;
    background: #1769e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 25px;
    margin-bottom: 22px;
}


/* ================= SECTIONS ================= */

section {
    padding: 90px 7%;
}

.section-title {
    text-align: center;
    max-width: 650px;
    margin: auto;
    margin-bottom: 55px;
}

.section-title span,
.about-content > span {
    color: #1769e0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.section-title h2 {
    font-size: 38px;
    margin: 8px 0 12px;
}

.section-title p {
    color: #687386;
}


/* ================= CATEGORIES ================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    padding: 30px;
    border: 1px solid #e7ebf2;
    border-radius: 14px;
    transition: .3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(20, 50, 100, .08);
}

.category-icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 8px;
}

.category-card p {
    color: #6b7483;
    font-size: 14px;
}


/* ================= COURSES ================= */

.courses {
    background: #f7f9fc;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.course-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8ecf2;
    transition: .3s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(20, 50, 100, .1);
}

.course-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 35px;
    font-weight: 800;
}

.java {
    background: linear-gradient(135deg, #1769e0, #00a8cc);
}

.web {
    background: linear-gradient(135deg, #6c42d8, #b54ce6);
}

.python {
    background: linear-gradient(135deg, #008b8b, #1769e0);
}

.course-body {
    padding: 23px;
}

.level {
    font-size: 11px;
    font-weight: 700;
    color: #1769e0;
}

.course-body h3 {
    margin: 8px 0;
    font-size: 20px;
}

.course-body p {
    color: #6c7584;
    font-size: 14px;
}

.course-info {
    display: flex;
    gap: 15px;
    margin: 18px 0;
    font-size: 12px;
    color: #6c7584;
}

.course-footer {
    border-top: 1px solid #edf0f4;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-footer strong {
    font-size: 20px;
}

.course-footer button {
    background: #1769e0;
    color: white;
    border: none;
    padding: 9px 14px;
    border-radius: 6px;
    cursor: pointer;
}


/* ================= FEATURES ================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 38px;
    margin-bottom: 15px;
}

.feature-card p {
    color: #6d7685;
    font-size: 14px;
    margin-top: 8px;
}


/* ================= PROCESS ================= */

.process {
    background: #f7f9fc;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.process-item {
    text-align: center;
}

.process-item > div {
    width: 60px;
    height: 60px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #e5f1ff;
    color: #1769e0;
    font-weight: 700;
    margin-bottom: 20px;
}

.process-item p {
    color: #70798a;
    font-size: 14px;
}


/* ================= ABOUT ================= */

.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.about-content {
    max-width: 600px;
}

.about-content h2 {
    font-size: 40px;
    margin: 12px 0 20px;
}

.about-content p {
    color: #657083;
    margin-bottom: 15px;
}

.about-box {
    width: 450px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-stat {
    padding: 35px;
    background: #f5f9ff;
    border-radius: 12px;
    text-align: center;
}

.about-stat strong {
    display: block;
    font-size: 30px;
    color: #1769e0;
}

.about-stat span {
    color: #657083;
}


/* ================= CTA ================= */

.cta {
    text-align: center;
    background: linear-gradient(135deg, #1769e0, #00a8c7);
    color: white;
}

.cta h2 {
    font-size: 40px;
}

.cta p {
    margin: 10px 0 25px;
    opacity: .9;
}

.cta button {
    padding: 14px 25px;
    border: none;
    border-radius: 7px;
    background: white;
    color: #1769e0;
    font-weight: 700;
    cursor: pointer;
}


/* ================= FOOTER ================= */

footer {
    background: #101a2b;
    color: white;
    padding: 60px 7% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-logo span {
    color: white;
}

footer p {
    color: #9ca7b8;
    margin-top: 12px;
    font-size: 14px;
}

footer h4 {
    margin-bottom: 15px;
}

footer a {
    display: block;
    color: #9ca7b8;
    text-decoration: none;
    margin-bottom: 9px;
    font-size: 14px;
}

footer a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid #293448;
    margin-top: 40px;
    padding-top: 20px;
    color: #7d899b;
    text-align: center;
    font-size: 13px;
}


/* ================= MODAL ================= */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(10,20,40,.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 35px;
    width: 400px;
    border-radius: 15px;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 8px;
}

.modal-content p {
    color: #687386;
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 13px;
    margin-bottom: 12px;
    border: 1px solid #dce1e8;
    border-radius: 7px;
}

.modal-content .primary-btn {
    width: 100%;
}

.close {
    position: absolute;
    right: 15px;
    top: 12px;
    border: none;
    background: none;
    font-size: 25px;
    cursor: pointer;
}


/* ================= MOBILE ================= */

@media(max-width: 900px) {

    nav,
    .header-buttons {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    nav.active {
        display: flex;
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 25px 7%;
        gap: 18px;
        box-shadow: 0 10px 25px rgba(0,0,0,.08);
    }

    .hero {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .hero-card {
        width: 100%;
        max-width: 500px;
    }

    .category-grid,
    .course-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-grid,
    .process-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about {
        flex-direction: column;
    }

    .about-box {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media(max-width: 600px) {

    section {
        padding: 65px 5%;
    }

    .hero {
        padding: 65px 5%;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        gap: 20px;
    }

    .category-grid,
    .course-grid,
    .feature-grid,
    .process-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .modal-content {
        width: 90%;
    }
}