:root {
    --bg: #080d19;
    --bg-secondary: #0d1424;
    --card: rgba(17, 27, 47, 0.78);
    --text: #f4f7ff;
    --muted: #9aa8bf;
    --border: rgba(148, 163, 184, 0.15);
    --primary: #38bdf8;
    --secondary: #8b5cf6;
    --header: rgba(8, 13, 25, 0.82);
    --shadow: rgba(0, 0, 0, 0.25);
}

body.light {
    --bg: #f4f7fc;
    --bg-secondary: #eaf0f9;
    --card: rgba(255, 255, 255, 0.85);
    --text: #152039;
    --muted: #64748b;
    --border: rgba(71, 85, 105, 0.16);
    --primary: #0284c7;
    --secondary: #7c3aed;
    --header: rgba(244, 247, 252, 0.88);
    --shadow: rgba(30, 41, 59, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background 0.35s, color 0.35s;
}

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

button {
    font: inherit;
}

.container {
    width: min(1160px, 90%);
    margin: 0 auto;
}

.section-padding {
    padding: 110px 0;
}

/* Background */

.background-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.17;
    pointer-events: none;
    z-index: -1;
    animation: glowMove 10s ease-in-out infinite alternate;
}

.glow-one {
    top: 100px;
    left: -180px;
    background: #0ea5e9;
}

.glow-two {
    top: 500px;
    right: -180px;
    background: #7c3aed;
    animation-delay: 2s;
}

@keyframes glowMove {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(70px, 50px);
    }
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

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

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

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

.nav-links a:hover {
    color: var(--primary);
}

.theme-toggle,
.menu-toggle {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.25s, border-color 0.25s;
}

.theme-toggle:hover,
.menu-toggle:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 20px;
}

/* Hero */

.hero {
    min-height: 690px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    padding-top: 65px;
    padding-bottom: 75px;
}

.status-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.status-label {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--card);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 12px #22c55e;
}

.hero h1 {
    margin-top: 28px;
    max-width: 650px;
    font-size: clamp(42px, 5.5vw, 68px);
    line-height: 1.1;
    letter-spacing: -3px;
    font-weight: 800;
}

.hero h1 span,
.section-heading h2 span,
.about-box h2 span {
    background: linear-gradient(100deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content > p {
    max-width: 560px;
    margin-top: 25px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 15px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.25s, box-shadow 0.25s;
}

.btn:hover {
    transform: translateY(-4px);
}

.btn-primary {
    color: white;
    background: linear-gradient(110deg, #0284c7, #7c3aed);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.35);
}

.btn-secondary {
    border: 1px solid var(--border);
    background: var(--card);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 42px;
    margin-top: 55px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hero-stats strong {
    font-size: 24px;
}

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

/* Terminal */

.hero-visual {
    position: relative;
    padding: 25px;
}

.terminal-window {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 18px;
    background: #080f1d;
    box-shadow: 0 25px 80px var(--shadow);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s;
}

.terminal-window:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.terminal-header {
    height: 48px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #111c2e;
    color: #9aa8bf;
    font-size: 12px;
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f87171;
}

.terminal-dots span:nth-child(2) {
    background: #fbbf24;
}

.terminal-dots span:nth-child(3) {
    background: #4ade80;
}

.terminal-body {
    min-height: 310px;
    padding: 25px;
    font-family: monospace;
    font-size: 13px;
    line-height: 2;
    color: #d1d5db;
}

.terminal-green {
    color: #4ade80;
}

.terminal-blue {
    color: #38bdf8;
    padding-left: 15px;
}

.terminal-output {
    color: #c4b5fd;
    padding-left: 15px;
}

.cursor {
    animation: blink 1s infinite;
}

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

.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 35px var(--shadow);
    animation: float 4s ease-in-out infinite;
}

.floating-card > span {
    font-size: 25px;
}

.floating-card div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.floating-card strong {
    font-size: 12px;
}

.floating-card small {
    color: var(--muted);
    font-size: 10px;
}

.floating-top {
    top: -5px;
    right: -15px;
}

.floating-bottom {
    bottom: -15px;
    left: -15px;
    animation-delay: 1s;
}

@keyframes float {
    50% {
        transform: translateY(-12px);
    }
}

/* Section heading */

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

.section-heading h2 {
    margin-top: 15px;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1.5px;
}

.section-heading p {
    margin-top: 15px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Courses */

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

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

.course-card {
    position: relative;
    overflow: hidden;
    min-height: 255px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 10px 35px var(--shadow);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.course-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.07;
    filter: blur(35px);
}

.course-card:hover {
    transform: translateY(-9px);
    border-color: var(--primary);
    box-shadow: 0 18px 45px var(--shadow);
}

.course-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.1);
    font-size: 25px;
}

.course-number {
    position: absolute;
    top: 35px;
    right: 28px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.course-card h3 {
    margin-top: 22px;
    font-size: 19px;
}

.course-card p {
    margin-top: 12px;
    min-height: 65px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.course-card a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 17px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.course-card a span {
    transition: transform 0.2s;
}

.course-card a:hover span {
    transform: translateX(5px);
}

/* Roadmap */

.roadmap {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.roadmap::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 26px;
    width: 2px;
    background: linear-gradient(var(--primary), var(--secondary));
    opacity: 0.5;
}

.roadmap-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 35px;
}

.roadmap-marker {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid var(--primary);
    border-radius: 16px;
    background: var(--bg);
    color: var(--primary);
    font-weight: 800;
}

.roadmap-content {
    flex: 1;
    padding: 8px 0;
}

.roadmap-content > span {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.roadmap-content h3 {
    margin-top: 9px;
    font-size: 19px;
}

.roadmap-content p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* About */

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

.about-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 55px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card);
}

.about-box h2 {
    margin-top: 20px;
    font-size: clamp(35px, 4vw, 50px);
    line-height: 1.2;
    letter-spacing: -2px;
}

.about-description p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.about-description .btn {
    margin-top: 8px;
}

/* Footer */

.footer {
    padding: 35px 0;
    border-top: 1px solid var(--border);
}

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

.footer p,
.copyright {
    color: var(--muted);
    font-size: 12px;
}

/* Scroll reveal */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

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

    .hero-content {
        text-align: center;
    }

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

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

    .hero-visual {
        width: min(550px, 100%);
        margin: 0 auto;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-box {
        gap: 30px;
        padding: 35px;
    }
}

@media (max-width: 650px) {
    .section-padding {
        padding: 75px 0;
    }

    .navbar {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 12px 5%;
        border-bottom: 1px solid var(--border);
        background: var(--header);
        backdrop-filter: blur(18px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 15px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 65px;
    }

    .hero h1 {
        letter-spacing: -1.5px;
    }

    .hero-stats {
        gap: 22px;
    }

    .hero-stats strong {
        font-size: 20px;
    }

    .hero-visual {
        padding: 15px;
    }

    .terminal-body {
        padding: 18px;
        font-size: 11px;
    }

    .floating-card {
        padding: 10px;
    }

    .floating-top {
        right: -5px;
    }

    .floating-bottom {
        left: -5px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        min-height: auto;
    }

    .course-card p {
        min-height: auto;
    }

    .about-box {
        grid-template-columns: 1fr;
        padding: 28px;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
