
/* =========================================
   NEXTGEN TECH ACADEMY
   Futuristic + Professional Website Design
========================================= */

/* 1. Brand colors and global settings */
:root {
    --bg-dark: #07111f;
    --bg-card: #101e31;
    --bg-light: #f4f8ff;

    --text-white: #f7faff;
    --text-dark: #101b2c;
    --text-muted: #aab8cc;

    --primary: #3986ff;
    --cyan: #38d9f5;
    --border: rgba(255, 255, 255, 0.12);

    --container-width: 1180px;
    --radius: 14px;
}

/* 2. Reset browser defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

img {
    display: block;
    max-width: 100%;
}

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

/* 3. Website header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 17, 31, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo span {
    max-width: 180px;
    line-height: 1.25;
}

/* Navigation links */
.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.main-nav a:hover {
    color: var(--cyan);
}

/* 4. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 23px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(
        120deg,
        var(--primary),
        #2464e8
    );
    box-shadow: 0 8px 28px rgba(57, 134, 255, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 10px 32px rgba(57, 134, 255, 0.4);
}

.btn-secondary {
    color: var(--text-white);
    border: 1px solid rgba(56, 217, 245, 0.45);
    background: rgba(56, 217, 245, 0.05);
}

.btn-secondary:hover {
    background: rgba(56, 217, 245, 0.12);
}

/* 5. Homepage hero section */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            ellipse at 85% 35%,
            rgba(57, 134, 255, 0.19),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 15% 90%,
            rgba(56, 217, 245, 0.08),
            transparent 35%
        ),
        var(--bg-dark);
}

/* Subtle digital grid */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(104, 157, 230, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(104, 157, 230, 0.055) 1px,
            transparent 1px
        );
    background-size: 48px 48px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 95%
    );
}

.hero-content {
    padding-top: 95px;
    padding-bottom: 105px;
    animation: fade-up 0.8s ease both;
}

/* Small introductory label */
.eyebrow {
    display: inline-block;
    margin-bottom: 25px;
    padding: 7px 13px;
    border: 1px solid rgba(56, 217, 245, 0.3);
    border-radius: 50px;
    background: rgba(56, 217, 245, 0.07);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Main heading */
.hero h1 {
    max-width: 850px;
    margin-bottom: 24px;
    font-size: clamp(42px, 6.5vw, 76px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -3px;
}

.hero h1 span {
    display: block;
    color: var(--cyan);
    background: linear-gradient(
        100deg,
        var(--cyan),
        #70aaff 70%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero description */
.hero-description {
    max-width: 620px;
    margin-bottom: 32px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-note {
    margin-top: 30px;
    color: #8294ad;
    font-size: 13px;
}

/* 6. Footer */
.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: #050d18;
    text-align: center;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 13px;
}

/* 7. Keyboard accessibility */
a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 5px;
}

/* 8. Entrance animation */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 9. Tablet and smaller screens */
@media (max-width: 1000px) {
    .site-header .container {
        gap: 18px;
    }

    .main-nav {
        gap: 16px;
    }

    .logo {
        font-size: 15px;
    }

    .logo img {
        width: 42px;
        height: 42px;
    }

    .site-header .btn {
        padding-inline: 16px;
    }
}

/* 10. Mobile screens */
@media (max-width: 760px) {
    .site-header .container {
        min-height: 72px;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 12px;
    }

    .logo {
        font-size: 14px;
        gap: 9px;
    }

    .logo img {
        width: 38px;
        height: 38px;
    }

    .logo span {
        max-width: 145px;
    }

    .site-header .container > .btn {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        gap: 22px;
        overflow-x: auto;
        padding: 5px 0 8px;
        scrollbar-width: thin;
    }

    .main-nav a {
        flex-shrink: 0;
        font-size: 13px;
    }

    .hero {
        min-height: 570px;
    }

    .hero-content {
        padding-top: 75px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: clamp(39px, 10vw, 60px);
        letter-spacing: -1.8px;
    }

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

    .hero-actions {
        align-items: stretch;
    }

    .hero-actions .btn {
        flex: 1 1 160px;
    }

    .hero-note {
        font-size: 12px;
    }
}

/* 11. Very small phones */
@media (max-width: 380px) {
    .logo span {
        max-width: 115px;
        font-size: 12px;
    }

    .site-header .container > .btn {
        padding-inline: 9px;
        font-size: 11px;
    }

    .main-nav {
        gap: 18px;
    }

    .hero h1 {
        font-size: 36px;
    }

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



/* =========================================
   NEXTGEN INTERACTIVE HOVER EFFECTS
========================================= */

/* Smooth pointer feedback on interactive elements */
a,
button,
.btn {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Buttons: lift and glow */
.btn {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-primary:hover {
    box-shadow:
        0 0 12px rgba(57, 134, 255, 0.55),
        0 0 32px rgba(56, 217, 245, 0.22);
}

.btn-secondary:hover {
    border-color: #38d9f5;
    box-shadow: 0 0 22px rgba(56, 217, 245, 0.16);
}

/* Navigation links: cyan underline animation */
.main-nav a {
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Logo hover */
.logo {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.logo:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Only apply hover movement on devices with a real hover pointer */
@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        filter: brightness(1.08);
    }
}

/* Accessible keyboard focus */
.btn:focus-visible,
.main-nav a:focus-visible,
.logo:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .main-nav a,
    .main-nav a::after,
    .logo {
        transition: none !important;
    }

    .btn:hover,
    .logo:hover {
        transform: none;
    }
}


/* =========================================
   CUSTOM CYAN CURSOR
========================================= */

.custom-cursor {
    display: none;
}

@media (hover: hover) and (pointer: fine)
       and (prefers-reduced-motion: no-preference) {
    body.has-custom-cursor {
        cursor: none;
    }

    body.has-custom-cursor a,
    body.has-custom-cursor button,
    body.has-custom-cursor .btn {
        cursor: none;
    }

    .custom-cursor {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 22px;
        height: 22px;
        border: 2px solid var(--cyan);
        border-radius: 50%;
        background: rgba(56, 217, 245, 0.08);
        box-shadow:
            0 0 10px rgba(56, 217, 245, 0.45),
            inset 0 0 8px rgba(56, 217, 245, 0.12);
        pointer-events: none;
        z-index: 9999;
        opacity: 0;
        transform: translate(-50%, -50%);
        transition:
            width 0.2s ease,
            height 0.2s ease,
            background 0.2s ease,
            opacity 0.2s ease;
    }

    body.has-custom-cursor .custom-cursor {
        opacity: 1;
    }

    .custom-cursor.is-hovering {
        width: 38px;
        height: 38px;
        background: rgba(56, 217, 245, 0.16);
    }
}



/* =================================
   NEXTGEN COURSE CARD EFFECTS
================================= */

.course-card,
.project-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        rgba(16, 30, 49, 0.98),
        rgba(7, 17, 31, 0.98)
    );
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

/* Course and project card hover */

.course-card:hover,
.project-card:hover {
    transform: translateY(-7px);
    border-color: var(--cyan);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.22),
        0 0 22px rgba(56, 217, 245, 0.12);
}

/* Highlight course icons */

.course-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border: 1px solid rgba(56, 217, 245, 0.25);
    border-radius: 14px;
    background: rgba(56, 217, 245, 0.08);
    color: var(--cyan);
    font-size: 1.5rem;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.course-card:hover .course-card-icon {
    transform: scale(1.08) rotate(-3deg);
    background: rgba(56, 217, 245, 0.16);
    box-shadow: 0 0 18px rgba(56, 217, 245, 0.16);
}

/* Card headings and descriptions */

.course-card h3,
.project-card h3 {
    color: var(--text-white);
    margin-bottom: 12px;
    transition: color 0.25s ease;
}

.course-card:hover h3,
.project-card:hover h3 {
    color: var(--cyan);
}

.course-card p,
.project-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Project preview image area */

.project-preview {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    background: var(--bg-card);
}

.project-preview img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.45s ease;
}

.project-card:hover .project-preview img {
    transform: scale(1.05);
}

/* Card links */

.course-card a,
.project-card a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
}

.course-card a:hover,
.project-card a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Keyboard accessibility */

.course-card:focus-within,
.project-card:focus-within {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* Reduce animation when requested */

@media (prefers-reduced-motion: reduce) {
    .course-card,
    .project-card,
    .course-card-icon,
    .project-preview img,
    .course-card h3,
    .project-card h3 {
        transition: none !important;
    }

    .course-card:hover,
    .project-card:hover,
    .course-card:hover .course-card-icon,
    .project-card:hover .project-preview img {
        transform: none;
    }
}


/* =================================
   NEXTGEN COURSES SECTION
================================= */

.courses-section {
    padding: 100px 0;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(57, 134, 255, 0.08),
            transparent 65%
        ),
        var(--bg-dark);
}

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

.section-heading h2 {
    margin: 12px 0 16px;
    color: var(--text-white);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.section-heading h2 span {
    color: var(--cyan);
}

.section-heading > p:last-child {
    color: var(--text-muted);
    line-height: 1.8;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-level {
    margin-bottom: 12px;
    color: var(--cyan);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.course-card h3 {
    font-size: 1.35rem;
    line-height: 1.4;
}

.course-card ul {
    display: grid;
    gap: 12px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.course-card li {
    position: relative;
    padding-left: 24px;
    color: var(--text-muted);
    line-height: 1.5;
}

.course-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: 700;
}

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    width: fit-content;
}

.course-link span {
    transition: transform 0.25s ease;
}

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

.featured-course {
    border-color: rgba(56, 217, 245, 0.35);
    background: linear-gradient(
        145deg,
        rgba(18, 43, 65, 0.98),
        rgba(7, 17, 31, 0.98)
    );
}

/* Responsive layouts */

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

    .featured-course {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .courses-section {
        padding: 70px 0;
    }

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

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

    .featured-course {
        grid-column: auto;
    }

    .course-card {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .course-link span {
        transition: none;
    }

    .course-link:hover span {
        transform: none;
    }
}


/* =================================
   NEXTGEN FREE LEARNING HUB
================================= */

.learning-section {
    padding: 100px 0;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(56, 217, 245, 0.06),
            transparent 65%
        ),
        #0a1525;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.learning-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-card);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.learning-card:hover {
    transform: translateY(-7px);
    border-color: var(--cyan);
    box-shadow: 0 12px 32px rgba(56, 217, 245, 0.12);
}

/* Responsive YouTube player */

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.learning-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    height: calc(100% - auto);
}

.video-label {
    margin-bottom: 10px;
    color: var(--cyan);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.learning-card h3 {
    margin-bottom: 12px;
    color: var(--text-white);
    font-size: 1.2rem;
    line-height: 1.4;
    transition: color 0.25s ease;
}

.learning-card:hover h3 {
    color: var(--cyan);
}

.learning-card-content > p:not(.video-label) {
    margin-bottom: 22px;
    color: var(--text-muted);
    line-height: 1.7;
}

.learning-card .course-link {
    margin-top: auto;
}

.learning-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
    text-align: center;
}

.learning-cta p {
    color: var(--text-white);
}

/* Tablet */

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

/* Mobile */

@media (max-width: 600px) {
    .learning-section {
        padding: 70px 0;
    }

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

    .learning-card-content {
        padding: 20px;
    }

    .learning-cta {
        flex-direction: column;
        margin-top: 32px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .learning-card,
    .learning-card h3 {
        transition: none !important;
    }

    .learning-card:hover {
        transform: none;
    }
}


/* =================================
   ABOUT NEXTGEN TECH ACADEMY
================================= */

.about-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 64px;
}

.about-content h2 {
    margin: 14px 0 24px;
    color: var(--text-white);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.2;
}

.about-content h2 span {
    display: block;
    margin-top: 8px;
    color: var(--cyan);
}

.about-content > p:not(.eyebrow) {
    margin-bottom: 18px;
    color: var(--text-muted);
    line-height: 1.85;
}

.about-content .btn {
    margin-top: 12px;
}

.about-highlights {
    display: grid;
    gap: 20px;
}

.about-highlight {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(16, 30, 49, 0.95),
        rgba(10, 21, 37, 0.95)
    );
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.about-highlight:hover {
    transform: translateX(5px);
    border-color: var(--cyan);
    box-shadow: 0 0 24px rgba(56, 217, 245, 0.08);
}

.highlight-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(56, 217, 245, 0.25);
    border-radius: 13px;
    background: rgba(56, 217, 245, 0.08);
    color: var(--cyan);
    font-size: 1.2rem;
    font-weight: 700;
}

.about-highlight h3 {
    margin-bottom: 8px;
    color: var(--text-white);
    font-size: 1.1rem;
}

.about-highlight p {
    color: var(--text-muted);
    line-height: 1.7;
}

.about-mission {
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    padding: 48px 32px;
    border: 1px solid rgba(56, 217, 245, 0.25);
    border-radius: 20px;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(56, 217, 245, 0.12),
            transparent 70%
        ),
        var(--bg-card);
    text-align: center;
}

.about-mission h3 {
    max-width: 800px;
    margin: 16px auto;
    color: var(--text-white);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.5;
}

.mission-tagline {
    margin-top: 22px;
    color: var(--cyan);
    font-weight: 700;
    letter-spacing: 2px;
}

/* Responsive layout */

@media (max-width: 800px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-highlights {
        gap: 16px;
    }

    .about-mission {
        margin-top: 48px;
    }
}

@media (max-width: 600px) {
    .about-section {
        padding: 70px 0;
    }

    .about-highlight {
        padding: 20px;
        gap: 14px;
    }

    .about-mission {
        padding: 36px 22px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .about-highlight {
        transition: none !important;
    }

    .about-highlight:hover {
        transform: none;
    }
}



/* =================================
   NEXTGEN ENROLLMENT SECTION
================================= */

.enrollment-section {
    padding: 100px 0;
    background:
        radial-gradient(
            ellipse at 0% 50%,
            rgba(57, 134, 255, 0.08),
            transparent 55%
        ),
        var(--bg-dark);
}

.enrollment-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.enrollment-info {
    padding-top: 18px;
}

.enrollment-info > h3 {
    margin: 14px 0 20px;
    color: var(--text-white);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.3;
}

.enrollment-info > p:not(.eyebrow, .enrollment-note) {
    margin-bottom: 30px;
    color: var(--text-muted);
    line-height: 1.8;
}

.enrollment-benefit {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.enrollment-benefit > span {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(56, 217, 245, 0.3);
    border-radius: 12px;
    background: rgba(56, 217, 245, 0.08);
    color: var(--cyan);
    font-size: 0.85rem;
    font-weight: 700;
}

.enrollment-benefit h4 {
    margin-bottom: 6px;
    color: var(--text-white);
}

.enrollment-benefit p {
    color: var(--text-muted);
    line-height: 1.7;
}

.enrollment-note {
    margin-top: 32px;
    padding-left: 14px;
    border-left: 2px solid var(--cyan);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.enrollment-form-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(
        145deg,
        rgba(16, 30, 49, 0.98),
        rgba(9, 20, 35, 0.98)
    );
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15);
}

.enrollment-form-card > h3 {
    margin-bottom: 8px;
    color: var(--text-white);
    font-size: 1.5rem;
}

.form-intro {
    margin-bottom: 28px;
    color: var(--text-muted);
    line-height: 1.7;
}

#enrollment-form {
    display: grid;
    gap: 20px;
}

.form-field {
    display: grid;
    gap: 9px;
}

.form-field label {
    color: var(--text-white);
    font-size: 0.92rem;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    outline: none;
    background: #0a1525;
    color: var(--text-white);
    font: inherit;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #8292a8;
}

.form-field select {
    cursor: pointer;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(56, 217, 245, 0.1);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
    outline: 1px solid var(--cyan);
    outline-offset: 2px;
}

.enrollment-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: none;
    font: inherit;
}

.enrollment-submit span {
    transition: transform 0.25s ease;
}

.enrollment-submit:hover span {
    transform: translateX(4px);
}

.form-privacy {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: center;
}

/* Responsive form layout */

@media (max-width: 850px) {
    .enrollment-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .enrollment-info {
        padding-top: 0;
    }
}

@media (max-width: 600px) {
    .enrollment-section {
        padding: 70px 0;
    }

    .enrollment-form-card {
        padding: 22px 18px;
    }

    #enrollment-form {
        gap: 18px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .form-field input,
    .form-field select,
    .form-field textarea,
    .enrollment-submit span {
        transition: none !important;
    }

    .enrollment-submit:hover span {
        transform: none;
    }
}



/* =================================
   NEXTGEN SCROLL-REVEAL ANIMATIONS
================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    will-change: opacity, transform;
}

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

/* Optional directions for different elements */

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
    transform: translateX(0);
}

/* Respect visitors who prefer less animation */

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}



/* =================================
   NEXTGEN SLIDING COURSE CAROUSEL
================================= */

.courses-carousel {
    position: relative;
    padding: 10px 48px;
}

.courses-carousel .courses-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 12px 4px 24px;
}

.courses-carousel .courses-grid::-webkit-scrollbar {
    display: none;
}

.courses-carousel .course-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

/* Carousel arrow buttons */

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;

    width: 42px;
    height: 42px;
    border: 1px solid rgba(56, 217, 245, 0.45);
    border-radius: 50%;

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

    background: #101e31;
    color: #38d9f5;
    font-size: 18px;
    cursor: pointer;

    box-shadow: 0 0 14px rgba(56, 217, 245, 0.12);
    transition:
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.carousel-arrow:hover {
    background: #3986ff;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(56, 217, 245, 0.35);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Tablet */

@media (max-width: 900px) {
    .courses-carousel .course-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

/* Mobile */

@media (max-width: 600px) {
    .courses-carousel {
        padding: 10px 0;
    }

    .courses-carousel .courses-grid {
        gap: 16px;
    }

    .courses-carousel .course-card {
        flex: 0 0 100%;
    }

    .carousel-arrow {
        top: auto;
        bottom: -8px;
        transform: none;
        width: 38px;
        height: 38px;
    }

    .carousel-prev {
        left: calc(50% - 48px);
    }

    .carousel-next {
        right: calc(50% - 48px);
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .courses-carousel .courses-grid {
        scroll-behavior: auto;
    }

    .carousel-arrow {
        transition: none;
    }
}



/* DISABLED COURSE CAROUSEL ARROWS */

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

.carousel-arrow:disabled:hover {
    background: #101e31;
    color: #38d9f5;
}



/* =================================
   NEXTGEN POLISHED HEADER
================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 17, 31, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(56, 217, 245, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-header .logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.site-header .logo span {
    font-weight: 700;
    color: var(--text-white);
}

.site-header .main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.site-header .main-nav a {
    position: relative;
    color: var(--text-muted);
    font-size: 0.92rem;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.25s ease;
}

.site-header .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(56, 217, 245, 0.55);
    transition: width 0.25s ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible {
    color: var(--text-white);
}

.site-header .main-nav a:hover::after,
.site-header .main-nav a:focus-visible::after {
    width: 100%;
}

.header-cta {
    flex-shrink: 0;
}

/* Hamburger button: hidden on desktop */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--cyan);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Tablet and mobile navigation */

@media (max-width: 1000px) {
    .header-inner {
        position: relative;
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

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

    .header-cta {
        display: none;
    }

    .site-header .main-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        border-top: 1px solid var(--border);
    }

    .site-header .main-nav.is-open {
        display: flex;
    }

    .site-header .main-nav a {
        padding: 13px 8px;
    }

    .site-header .main-nav a::after {
        display: none;
    }

    .site-header .main-nav a:hover {
        background: rgba(56, 217, 245, 0.07);
        border-radius: 8px;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .site-header .logo img {
        width: 38px;
        height: 38px;
    }

    .site-header .logo span {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header .main-nav a,
    .site-header .main-nav a::after,
    .menu-toggle span {
        transition: none;
    }
}


/* HERO BUTTONS — SMALL SCREENS */


/* COMPACT HERO BUTTONS ON MOBILE */

@media (max-width: 480px) {
    .hero-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 38px;
        padding: 9px 5px;
        font-size: 0.72rem;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }
}



/* =====================================
   FREE COURSE REGISTRATION PAGE
===================================== */

.free-registration-section {
    min-height: 100vh;
    padding: 100px 20px 80px;
    background:
        radial-gradient(circle at 15% 20%, rgba(57, 134, 255, 0.13), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(56, 217, 245, 0.10), transparent 35%),
        var(--bg-dark);
}

.free-registration-container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.free-registration-intro {
    color: var(--text-white);
}

.free-registration-intro .course-level {
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.free-registration-intro h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.12;
    margin-bottom: 22px;
}

.free-registration-intro > p:not(.course-level) {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 500px;
}

.free-registration-benefits {
    margin-top: 30px;
    display: grid;
    gap: 15px;
}

.free-registration-benefits p {
    color: var(--text-white);
    font-size: 0.95rem;
}

.free-registration-benefits p::first-letter {
    color: var(--cyan);
}

.free-registration-form-card {
    width: 100%;
    padding: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.free-registration-form-card h2 {
    color: var(--text-white);
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.free-registration-form-card > p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.free-registration-form-card .form-group {
    margin-bottom: 20px;
}

.free-registration-form-card label {
    display: block;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 9px;
}

.free-registration-form-card input,
.free-registration-form-card select,
.free-registration-form-card textarea {
    width: 100%;
    padding: 14px 15px;
    background: var(--bg-dark);
    color: var(--text-white);
    border: 1px solid var(--border);
    border-radius: 9px;
    font: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.free-registration-form-card input:focus,
.free-registration-form-card select:focus,
.free-registration-form-card textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(56, 217, 245, 0.1);
}

.free-registration-form-card input::placeholder,
.free-registration-form-card textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.free-registration-form-card select {
    cursor: pointer;
}

.free-registration-form-card textarea {
    resize: vertical;
    min-height: 110px;
}

.free-registration-form-card button {
    width: 100%;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    margin-top: 8px;
}

#free-form-status {
    color: var(--cyan);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 15px;
}


/* MOBILE RESPONSIVENESS */

@media (max-width: 850px) {
    .free-registration-container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 650px;
    }

    .free-registration-intro {
        text-align: center;
    }

    .free-registration-intro > p:not(.course-level) {
        margin: 0 auto;
    }

    .free-registration-benefits {
        display: inline-grid;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .free-registration-section {
        padding: 65px 15px 50px;
    }

    .free-registration-form-card {
        padding: 25px 18px;
        border-radius: 15px;
    }

    .free-registration-form-card h2 {
        font-size: 1.45rem;
    }

    .free-registration-intro h1 {
        font-size: 2.4rem;
    }
}
