/* =========================================================
   FUTUREVERSE ETECH
   WEB LEARNING — PREMIUM CSS
   Light + Dark Mode
========================================================= */


/* =========================================================
   1. ROOT VARIABLES
========================================================= */

:root {

    --bg:
        #f5f7fb;

    --surface:
        #ffffff;

    --surface-soft:
        #f8f9fd;

    --text:
        #111827;

    --text-soft:
        #667085;

    --text-muted:
        #98a2b3;

    --border:
        rgba(15, 23, 42, 0.08);

    --border-strong:
        rgba(15, 23, 42, 0.14);

    --primary:
        #635bff;

    --primary-dark:
        #5046e5;

    --primary-soft:
        rgba(99, 91, 255, 0.10);

    --html:
        #ff5722;

    --html-soft:
        rgba(255, 87, 34, 0.10);

    --css:
        #2196f3;

    --css-soft:
        rgba(33, 150, 243, 0.10);

    --javascript:
        #f7df1e;

    --javascript-dark:
        #d7bd00;

    --javascript-soft:
        rgba(247, 223, 30, 0.16);

    --shadow:
        0 15px 45px rgba(15, 23, 42, 0.07);

    --shadow-hover:
        0 25px 65px rgba(15, 23, 42, 0.13);

    --radius-lg:
        28px;

    --radius-md:
        20px;

    --radius-sm:
        14px;

    --transition:
        0.3s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   2. DARK MODE
========================================================= */

body[data-theme="dark"] {

    --bg:
        #080b14;

    --surface:
        #111522;

    --surface-soft:
        #151a29;

    --text:
        #f8fafc;

    --text-soft:
        #a7b0c2;

    --text-muted:
        #707a8f;

    --border:
        rgba(255, 255, 255, 0.08);

    --border-strong:
        rgba(255, 255, 255, 0.13);

    --primary:
        #8178ff;

    --primary-dark:
        #6c63ff;

    --primary-soft:
        rgba(129, 120, 255, 0.12);

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.30);

    --shadow-hover:
        0 28px 75px rgba(0, 0, 0, 0.45);
}


/* =========================================================
   3. RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(99, 91, 255, 0.06),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 35%,
            rgba(33, 150, 243, 0.04),
            transparent 28%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    line-height: 1.5;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   4. MAIN PAGE
========================================================= */

.web-learning-page {

    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    padding:
        18px
        18px
        50px;
}


/* =========================================================
   5. TOP HEADER
========================================================= */

.web-header {

    width: 100%;

    min-height: 64px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 25px;
}


/* Back button */

.back-btn {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding:
        10px
        15px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.65);

    color: var(--text-soft);

    font-size: 14px;

    font-weight: 600;

    box-shadow:
        0 5px 20px rgba(15, 23, 42, 0.04);

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

body[data-theme="dark"] .back-btn {

    background:
        rgba(255, 255, 255, 0.04);
}

.back-btn:hover {

    transform:
        translateX(-3px);

    color:
        var(--primary);

    border-color:
        rgba(99, 91, 255, 0.25);

    box-shadow:
        0 10px 28px rgba(99, 91, 255, 0.10);
}

.back-btn i {
    font-size: 13px;
}


/* Header brand */

.header-brand {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 15px;

    font-weight: 700;

    color: var(--text);
}

.brand-icon {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #635bff,
            #8c83ff
        );

    color: #ffffff;

    box-shadow:
        0 8px 25px rgba(99, 91, 255, 0.25);
}

.brand-icon i {
    font-size: 16px;
}


/* =========================================================
   6. HERO SECTION
========================================================= */

.web-hero {

    position: relative;

    overflow: hidden;

    padding:
        48px
        30px
        52px;

    text-align: center;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    background:
        linear-gradient(
            135deg,
            rgba(99, 91, 255, 0.10),
            rgba(255, 255, 255, 0.80)
        );

    box-shadow:
        var(--shadow);
}

body[data-theme="dark"] .web-hero {

    background:
        linear-gradient(
            135deg,
            rgba(99, 91, 255, 0.14),
            rgba(17, 21, 34, 0.96)
        );
}


/* Hero decorative glow */

.web-hero::before {

    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    top: -150px;
    right: -80px;

    border-radius: 50%;

    background:
        rgba(99, 91, 255, 0.13);

    filter:
        blur(40px);

    pointer-events: none;
}

.web-hero::after {

    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    bottom: -130px;
    left: -70px;

    border-radius: 50%;

    background:
        rgba(33, 150, 243, 0.08);

    filter:
        blur(40px);

    pointer-events: none;
}


/* Hero badge */

.hero-badge {

    position: relative;
    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        8px
        13px;

    margin-bottom: 18px;

    border:
        1px solid rgba(99, 91, 255, 0.16);

    border-radius: 999px;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.5px;

    text-transform: uppercase;
}

.hero-badge i {
    font-size: 12px;
}


/* Hero heading */

.web-hero h1 {

    position: relative;
    z-index: 2;

    margin-bottom: 13px;

    color: var(--text);

    font-size:
        clamp(32px, 6vw, 58px);

    line-height: 1.08;

    letter-spacing: -1.8px;

    font-weight: 800;
}


/* Hero paragraph */

.web-hero > p {

    position: relative;
    z-index: 2;

    max-width: 650px;

    margin:
        0 auto 24px;

    color:
        var(--text-soft);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   7. HERO TECHNOLOGY STACK
========================================================= */

.hero-tech-stack {

    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 9px;
}

.hero-tech-stack span {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        8px
        12px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background:
        var(--surface);

    color:
        var(--text-soft);

    font-size: 12px;

    font-weight: 700;

    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.04);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.hero-tech-stack span:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.09);
}

.hero-tech-stack span:nth-child(1) i {
    color: var(--html);
}

.hero-tech-stack span:nth-child(2) i {
    color: var(--css);
}

.hero-tech-stack span:nth-child(3) i {
    color: var(--javascript-dark);
}


/* =========================================================
   8. COURSES SECTION
========================================================= */

.courses-section {

    padding-top: 55px;
}


/* Section heading */

.section-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 24px;
}

.section-label {

    display: block;

    margin-bottom: 7px;

    color:
        var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.section-heading h2 {

    color:
        var(--text);

    font-size:
        clamp(25px, 4vw, 34px);

    line-height: 1.2;

    letter-spacing: -0.7px;

    margin-bottom: 8px;
}

.section-heading p {

    max-width: 650px;

    color:
        var(--text-soft);

    font-size: 14px;
}


/* =========================================================
   9. COURSE GRID
========================================================= */

.web-course-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   10. COURSE CARD
========================================================= */

.web-course-card {

    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 390px;

    padding: 24px;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    background:
        var(--surface);

    box-shadow:
        var(--shadow);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition),
        background 0.3s ease;
}


/* Card glow */

.web-course-card::before {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -95px;
    right: -70px;

    border-radius: 50%;

    opacity: 0.8;

    filter:
        blur(35px);

    pointer-events: none;

    transition:
        transform 0.5s ease;
}

.html-course::before {
    background: rgba(255, 87, 34, 0.14);
}

.css-course::before {
    background: rgba(33, 150, 243, 0.14);
}

.javascript-course::before {
    background: rgba(247, 223, 30, 0.16);
}


/* Card hover */

.web-course-card:hover {

    transform:
        translateY(-8px);

    box-shadow:
        var(--shadow-hover);
}

.web-course-card:hover::before {

    transform:
        scale(1.25);
}


/* Individual border hover */

.html-course:hover {
    border-color:
        rgba(255, 87, 34, 0.25);
}

.css-course:hover {
    border-color:
        rgba(33, 150, 243, 0.25);
}

.javascript-course:hover {
    border-color:
        rgba(247, 223, 30, 0.30);
}


/* =========================================================
   11. COURSE TOP
========================================================= */

.course-top {

    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 30px;
}


/* Course icon */

.course-icon {

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 17px;

    font-size: 27px;

    transition:
        transform var(--transition);
}

.html-course .course-icon {

    background:
        var(--html-soft);

    color:
        var(--html);
}

.css-course .course-icon {

    background:
        var(--css-soft);

    color:
        var(--css);
}

.javascript-course .course-icon {

    background:
        var(--javascript-soft);

    color:
        var(--javascript-dark);
}

.web-course-card:hover .course-icon {

    transform:
        translateY(-3px)
        rotate(-3deg);
}


/* Course number */

.course-number {

    color:
        var(--text-muted);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   12. COURSE CONTENT
========================================================= */

.course-content {

    position: relative;
    z-index: 2;

    flex: 1;
}

.course-category {

    display: inline-block;

    margin-bottom: 8px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.4px;

    color:
        var(--text-muted);
}

.course-content h3 {

    margin-bottom: 11px;

    color:
        var(--text);

    font-size: 23px;

    line-height: 1.2;

    letter-spacing: -0.5px;
}

.course-content p {

    max-width: 350px;

    color:
        var(--text-soft);

    font-size: 13.5px;

    line-height: 1.7;
}


/* =========================================================
   13. COURSE META
========================================================= */

.course-meta {

    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 14px;

    margin:
        20px 0;
}

.course-meta span {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color:
        var(--text-muted);

    font-size: 11px;

    font-weight: 600;
}

.course-meta i {
    color:
        var(--primary);

    font-size: 12px;
}


/* =========================================================
   14. COURSE ACTION
========================================================= */

.course-action {

    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    padding:
        13px
        15px;

    border-radius: 14px;

    background:
        var(--surface-soft);

    border:
        1px solid var(--border);

    color:
        var(--text);

    font-size: 13px;

    font-weight: 700;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.course-action i {

    color:
        var(--primary);

    transition:
        transform var(--transition);
}

.course-action:hover {

    transform:
        translateY(-2px);

    color:
        #ffffff;

    background:
        var(--primary);

    border-color:
        var(--primary);

    box-shadow:
        0 10px 25px rgba(99, 91, 255, 0.20);
}

.course-action:hover i {

    color:
        #ffffff;

    transform:
        translateX(4px);
}


/* =========================================================
   15. LEARNING PATH
========================================================= */

.learning-path {

    position: relative;

    margin-top: 75px;

    padding:
        45px 20px;

    text-align: center;

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}


/* Decorative line */

.path-line {

    width: 70px;
    height: 3px;

    margin:
        0 auto 24px;

    border-radius: 99px;

    background:
        linear-gradient(
            90deg,
            var(--html),
            var(--css),
            var(--primary)
        );
}


/* Path text */

.path-content > span {

    display: block;

    margin-bottom: 12px;

    color:
        var(--text-muted);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.6px;
}

.path-content h2 {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    color:
        var(--text);

    font-size:
        clamp(21px, 4vw, 32px);

    letter-spacing: -0.5px;
}

.path-content h2 i {

    color:
        var(--primary);

    font-size: 15px;
}

.path-content p {

    margin-top: 12px;

    color:
        var(--text-soft);

    font-size: 13px;
}


/* =========================================================
   16. CLOSING SECTION
========================================================= */

.web-closing {

    position: relative;

    overflow: hidden;

    margin-top: 55px;

    padding:
        60px
        25px;

    text-align: center;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    background:
        linear-gradient(
            135deg,
            rgba(99, 91, 255, 0.10),
            rgba(99, 91, 255, 0.02)
        );
}

body[data-theme="dark"] .web-closing {

    background:
        linear-gradient(
            135deg,
            rgba(99, 91, 255, 0.15),
            rgba(17, 21, 34, 0.95)
        );
}


/* Closing glow */

.web-closing::before {

    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    top: -150px;
    left: 50%;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        rgba(99, 91, 255, 0.13);

    filter:
        blur(45px);

    pointer-events: none;
}


/* Closing icon */

.closing-icon {

    position: relative;
    z-index: 2;

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin:
        0 auto 18px;

    border-radius: 18px;

    background:
        var(--primary);

    color:
        #ffffff;

    font-size: 22px;

    box-shadow:
        0 12px 35px rgba(99, 91, 255, 0.25);
}

.web-closing h2 {

    position: relative;
    z-index: 2;

    margin-bottom: 14px;

    color:
        var(--text);

    font-size:
        clamp(28px, 5vw, 46px);

    line-height: 1.12;

    letter-spacing: -1.2px;
}

.web-closing p {

    position: relative;
    z-index: 2;

    max-width: 500px;

    margin:
        0 auto;

    color:
        var(--text-soft);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   17. FOOTER
========================================================= */

.web-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding:
        28px 4px 0;

    color:
        var(--text-muted);

    font-size: 11px;

    font-weight: 600;
}


/* =========================================================
   18. TABLET
========================================================= */

@media (max-width: 1000px) {

    .web-course-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .web-course-card {

        min-height: 375px;
    }

}


/* =========================================================
   19. MOBILE
========================================================= */

@media (max-width: 700px) {

    .web-learning-page {

        padding:
            12px
            12px
            35px;
    }


    /* Header */

    .web-header {

        min-height: 55px;

        margin-bottom: 18px;
    }

    .back-btn {

        padding:
            9px
            11px;

        font-size: 12px;
    }

    .back-btn span {
        display: none;
    }

    .brand-icon {

        width: 35px;
        height: 35px;

        border-radius: 11px;
    }

    .header-brand {

        font-size: 13px;
    }


    /* Hero */

    .web-hero {

        padding:
            38px
            18px
            40px;

        border-radius:
            23px;
    }

    .hero-badge {

        font-size: 9px;

        padding:
            7px
            10px;
    }

    .web-hero h1 {

        font-size:
            clamp(30px, 9vw, 40px);

        letter-spacing:
            -1.2px;
    }

    .web-hero > p {

        font-size: 13px;

        line-height: 1.65;
    }

    .hero-tech-stack {

        gap: 7px;
    }

    .hero-tech-stack span {

        padding:
            7px
            9px;

        font-size: 10px;

        border-radius: 10px;
    }


    /* Courses */

    .courses-section {

        padding-top: 42px;
    }

    .section-heading {

        margin-bottom: 20px;
    }

    .section-label {

        font-size: 9px;

        letter-spacing: 1.2px;
    }

    .section-heading h2 {

        font-size: 25px;
    }

    .section-heading p {

        font-size: 12px;

        line-height: 1.6;
    }


    /* Cards */

    .web-course-grid {

        grid-template-columns:
            1fr;

        gap: 15px;
    }

    .web-course-card {

        min-height: auto;

        padding: 20px;

        border-radius: 21px;
    }

    .course-top {

        margin-bottom: 25px;
    }

    .course-icon {

        width: 53px;
        height: 53px;

        border-radius: 15px;

        font-size: 24px;
    }

    .course-number {

        font-size: 11px;
    }

    .course-content h3 {

        font-size: 21px;
    }

    .course-content p {

        font-size: 12.5px;
    }

    .course-meta {

        margin:
            17px 0;
    }

    .course-action {

        padding:
            12px
            13px;

        font-size: 12px;
    }


    /* Learning path */

    .learning-path {

        margin-top: 50px;

        padding:
            38px 12px;
    }

    .path-content h2 {

        gap: 7px;

        font-size: 22px;
    }

    .path-content h2 i {

        font-size: 12px;
    }

    .path-content p {

        font-size: 12px;
    }


    /* Closing */

    .web-closing {

        margin-top: 40px;

        padding:
            48px 18px;

        border-radius: 23px;
    }

    .closing-icon {

        width: 53px;
        height: 53px;

        border-radius: 16px;

        font-size: 20px;
    }

    .web-closing h2 {

        font-size:
            clamp(28px, 9vw, 38px);
    }

    .web-closing p {

        font-size: 12px;
    }


    /* Footer */

    .web-footer {

        flex-direction: column;

        justify-content: center;

        text-align: center;

        padding-top: 24px;

        font-size: 10px;
    }

}


/* =========================================================
   20. SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .web-hero {

        padding:
            32px
            14px
            35px;
    }

    .web-hero h1 {

        font-size: 29px;
    }

    .hero-tech-stack span {

        font-size: 9px;

        padding:
            6px
            8px;
    }

    .web-course-card {

        padding: 18px;
    }

    .course-content h3 {

        font-size: 19px;
    }

    .path-content h2 {

        font-size: 19px;
    }
}


/* =========================================================
   21. DARK MODE — EXTRA DETAILS
========================================================= */

body[data-theme="dark"] .hero-tech-stack span {

    background:
        rgba(255, 255, 255, 0.035);
}

body[data-theme="dark"] .course-action {

    background:
        rgba(255, 255, 255, 0.035);
}

body[data-theme="dark"] .web-course-card {

    background:
        linear-gradient(
            145deg,
            #111522,
            #0e121d
        );
}

body[data-theme="dark"] .back-btn {

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   22. ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;
    }
}


/* =========================================================
   END — FUTUREVERSE WEB LEARNING CSS
========================================================= */