/* =====================================================
   E-LEARNING PORTFOLIO
   COLOR & TYPOGRAPHY SYSTEM
===================================================== */

:root {

    /* PRIMARY PALETTE */

    --dark-brown: #262401;
    --gold: #BF8D30;
    --green: #4E5417;
    --beige: #BFB895;
    --deep-olive: #484622;
    --rich-gold: #C2B71B;


    /* SECONDARY ACCENTS */

    --red: #C51316;
    --blue: #1867BE;
    --orange: #EF8700;
    --yellow: #F7E911;


    /* FUNCTIONAL / NEUTRAL */

    --white: #FFFFFF;
    --soft-background: #FAF9F4;
    --body-text: #5B5A44;
    --border: #E7E3D4;


    /* LAYOUT */

    --container: 1180px;

}


/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}


body {

    margin: 0;

    font-family:
        "Montserrat",
        Arial,
        Helvetica,
        sans-serif;

    color: var(--dark-brown);

    background: var(--white);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

}


a {
    text-decoration: none;
    color: inherit;
}


button {
    font-family: inherit;
}


/* =====================================================
   CONTAINER
===================================================== */

.container {

    width:
        min(
            calc(100% - 40px),
            var(--container)
        );

    margin: 0 auto;

}


/* =====================================================
   HEADER
===================================================== */

.header {

    position: sticky;

    top: 0;

    z-index: 50;

    background:
        rgba(255, 255, 255, 0.97);

    backdrop-filter:
        blur(10px);

    border-bottom:
        1px solid var(--border);

}


.nav {

    height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


/* LOGO */

.logo {

    font-size: 19px;

    font-weight: 800;

    letter-spacing: -0.5px;

    color: var(--dark-brown);

}


.logo span {

    color: var(--gold);

}


/* NAVIGATION */

.nav nav {

    display: flex;

    gap: 32px;

    font-size: 13px;

    font-weight: 600;

}


.nav nav a {

    color: var(--dark-brown);

    transition:
        color 0.2s ease;

}


.nav nav a:hover {

    color: var(--gold);

}


/* =====================================================
   HERO BANNER
===================================================== */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 570px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 82% 20%,
            rgba(191, 141, 48, 0.55) 0%,
            rgba(191, 141, 48, 0.20) 22%,
            transparent 45%
        ),

        radial-gradient(
            circle at 70% 85%,
            rgba(78, 84, 23, 0.55) 0%,
            rgba(78, 84, 23, 0.20) 25%,
            transparent 48%
        ),

        linear-gradient(
            120deg,
            #262401 0%,
            #484622 38%,
            #4E5417 68%,
            #BF8D30 100%
        );

    color: #FFFFFF;
}


/* Decorative glowing circle */

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -130px;
    top: -180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(194, 183, 27, 0.45) 0%,
            rgba(194, 183, 27, 0.12) 45%,
            transparent 70%
        );

    filter: blur(2px);

    pointer-events: none;
}


/* Second decorative shape */

.hero::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: 18%;
    bottom: -300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(191, 184, 149, 0.25) 0%,
            rgba(191, 184, 149, 0.08) 45%,
            transparent 70%
        );

    pointer-events: none;
}


/* Hero content */

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 760px;

    padding-top: 70px;
    padding-bottom: 70px;
}


/* Eyebrow */

.hero .eyebrow {
    color: #C2B71B;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 18px;
}


/* Main heading */

.hero h1 {
    color: #FFFFFF;

    font-size: clamp(42px, 6vw, 72px);

    line-height: 1.08;

    font-weight: 800;

    margin: 0 0 25px;
}


/* Highlighted heading */

.hero h1 span {
    display: block;

    color: #C2B71B;
}


/* Description */

.hero-description {
    max-width: 650px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 18px;

    line-height: 1.8;

    margin-bottom: 35px;
}


/* CTA */

.hero .primary-button {
    display: inline-flex;

    align-items: center;

    padding: 14px 28px;

    background: #C2B71B;

    color: #262401;

    border-radius: 6px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.hero .primary-button:hover {

    background: #FFFFFF;

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25);
}

/* =====================================================
   PORTFOLIO
===================================================== */

.portfolio {

    padding:
        90px 0
        105px;

    background:
        var(--white);

}


.section-heading {

    margin-bottom:
        45px;

}


.section-heading h2 {

    margin:
        0 0 8px;

    color:
        var(--dark-brown);

    font-size:
        clamp(
            32px,
            5vw,
            48px
        );

    line-height:
        1.1;

    letter-spacing:
        -1.5px;

    font-weight:
        800;

}


.section-heading p:last-child {

    margin:
        0;

    color:
        var(--body-text);

    font-size:
        14px;

}


/* =====================================================
   FILTER SECTION
===================================================== */

.filter-section {

    margin-bottom:
        27px;

}


.filter-section h3 {

    margin:
        0 0 11px;

    color:
        var(--deep-olive);

    font-size:
        11px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        1.3px;

}


.filters {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        8px;

}


/* =====================================================
   FILTER BUTTONS
===================================================== */

.filter {

    border:
        1px solid var(--border);

    background:
        var(--white);

    color:
        var(--body-text);

    border-radius:
        50px;

    padding:
        9px 17px;

    cursor:
        pointer;

    font-size:
        12px;

    font-weight:
        600;

    transition:
        all 0.2s ease;

}


.filter:hover {

    border-color:
        var(--gold);

    color:
        var(--dark-brown);

    background:
        var(--soft-background);

}


/*
   Active filter
*/

.filter.active {

    background:
        var(--rich-gold);

    border-color:
        var(--rich-gold);

    color:
        var(--dark-brown);

    font-weight:
        700;

}


/* =====================================================
   PROJECT GRID
===================================================== */

.project-grid {

    margin-top:
        48px;

    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap:
        25px;

}


/* =====================================================
   PROJECT CARD
===================================================== */

.project-card {

    border:
        1px solid var(--border);

    border-radius:
        10px;

    overflow:
        hidden;

    background:
        var(--white);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;

}


.project-card:hover {

    transform:
        translateY(-5px);

    border-color:
        var(--beige);

    box-shadow:
        0 15px 35px
        rgba(38, 36, 1, 0.09);

}


/* =====================================================
   VIDEO THUMBNAIL
===================================================== */

.thumbnail {

    position:
        relative;

    aspect-ratio:
        16 / 9;

    display:
        grid;

    place-items:
        center;

    overflow:
        hidden;

    cursor:
        pointer;

    background:

        radial-gradient(
            circle at 75% 25%,
            rgba(194, 183, 27, 0.35),
            transparent 28%
        ),

        linear-gradient(
            135deg,
            var(--dark-brown),
            var(--deep-olive)
        );

}


/*
   Decorative thumbnail element
*/

.thumbnail::before {

    content:
        "";

    position:
        absolute;

    width:
        180px;

    height:
        180px;

    border:
        1px solid
        rgba(191, 141, 48, 0.35);

    border-radius:
        50%;

}


/*
   Play button
*/

.play-icon {

    position:
        relative;

    z-index:
        2;

    width:
        58px;

    height:
        58px;

    display:
        grid;

    place-items:
        center;

    padding-left:
        3px;

    border-radius:
        50%;

    background:
        var(--rich-gold);

    color:
        var(--dark-brown);

    font-size:
        18px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.25);

    transition:
        all 0.2s ease;

}


.project-card:hover .play-icon {

    transform:
        scale(1.08);

    background:
        var(--gold);

    color:
        var(--white);

}


/* =====================================================
   PROGRAM LABEL
===================================================== */

.program-label {

    position:
        absolute;

    z-index:
        3;

    top:
        14px;

    left:
        14px;

    padding:
        5px 10px;

    background:
        var(--beige);

    color:
        var(--dark-brown);

    border-radius:
        4px;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        0.8px;

}


/* =====================================================
   CARD CONTENT
===================================================== */

.card-content {

    padding:
        21px;

}


/* PROJECT TYPE */

.project-type {

    margin:
        0 0 7px;

    color:
        var(--gold);

    font-size:
        10px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        0.9px;

}


/* PROJECT TITLE */

.card-content h3 {

    margin:
        0 0 8px;

    color:
        var(--dark-brown);

    font-size:
        18px;

    line-height:
        1.3;

    font-weight:
        700;

}


/* DESCRIPTION */

.description {

    margin:
        0 0 17px;

    color:
        var(--body-text);

    font-size:
        12.5px;

    line-height:
        1.6;

}


/* VIEW PROJECT */

.view-project {

    border:
        none;

    padding:
        0;

    background:
        transparent;

    cursor:
        pointer;

    color:
        var(--dark-brown);

    font-size:
        12px;

    font-weight:
        800;

}


.view-project span {

    color:
        var(--gold);

    margin-left:
        5px;

    transition:
        margin-left 0.2s ease;

}


.view-project:hover {

    color:
        var(--gold);

}


.view-project:hover span {

    margin-left:
        10px;

}


/* =====================================================
   EMPTY CATEGORY
===================================================== */

.empty-state {

    text-align:
        center;

    padding:
        65px 20px;

    color:
        var(--body-text);

}


.empty-state h3 {

    margin:
        0 0 6px;

    color:
        var(--dark-brown);

    font-size:
        18px;

}


.empty-state p {

    margin:
        0;

    font-size:
        13px;

}


/* =====================================================
   ABOUT
===================================================== */

.about {

    position:
        relative;

    overflow:
        hidden;

    padding:
        85px 0;

    background:
        var(--soft-background);

}


/*
   Decorative olive motif
*/

.about::after {

    content:
        "";

    position:
        absolute;

    width:
        280px;

    height:
        280px;

    right:
        -100px;

    bottom:
        -130px;

    border-radius:
        50%;

    background:
        var(--green);

    opacity:
        0.07;

}


.about-grid {

    position:
        relative;

    z-index:
        1;

    display:
        grid;

    grid-template-columns:
        1.2fr 1fr;

    gap:
        80px;

}


.about h2 {

    margin:
        0;

    color:
        var(--dark-brown);

    font-size:
        clamp(
            32px,
            5vw,
            48px
        );

    line-height:
        1.1;

    letter-spacing:
        -1.5px;

    font-weight:
        800;

}


.about-grid > div:last-child p {

    margin:
        0 0 20px;

    color:
        var(--body-text);

    font-size:
        14px;

}


/* =====================================================
   FOOTER
===================================================== */

footer {

    border-top:
        1px solid var(--border);

    padding:
        24px 0;

    background:
        var(--white);

    color:
        var(--body-text);

    font-size:
        11px;

}


.footer-content {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

}


/* =====================================================
   VIDEO MODAL
===================================================== */

.video-modal {

    position:
        fixed;

    inset:
        0;

    z-index:
        100;

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

}


.video-modal.open {

    display:
        flex;

}


/* DARK BACKGROUND */

.modal-background {

    position:
        absolute;

    inset:
        0;

    background:
        rgba(38, 36, 1, 0.88);

}


/* MODAL */

.modal-content {

    position:
        relative;

    z-index:
        1;

    width:
        min(
            100%,
            1000px
        );

    background:
        var(--dark-brown);

    border:
        1px solid
        rgba(191, 141, 48, 0.35);

    border-radius:
        10px;

    overflow:
        hidden;

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.45);

}


/* CLOSE BUTTON */

.close-button {

    position:
        absolute;

    right:
        12px;

    top:
        10px;

    z-index:
        10;

    width:
        38px;

    height:
        38px;

    border:
        1px solid
        rgba(255,255,255,0.2);

    border-radius:
        50%;

    background:
        rgba(38, 36, 1, 0.75);

    color:
        var(--white);

    font-size:
        25px;

    line-height:
        1;

    cursor:
        pointer;

    transition:
        all 0.2s ease;

}


.close-button:hover {

    background:
        var(--gold);

    border-color:
        var(--gold);

}


/* VIDEO */

.video-container {

    width:
        100%;

    aspect-ratio:
        16 / 9;

    background:
        #000;

}


.video-container iframe {

    width:
        100%;

    height:
        100%;

    display:
        block;

    border:
        none;

}


/* VIDEO INFORMATION */

.video-information {

    padding:
        17px 20px 20px;

    color:
        var(--white);

}


.video-information h3 {

    margin:
        0;

    color:
        var(--white);

    font-size:
        17px;

    font-weight:
        700;

}


.video-information p {

    margin:
        5px 0 0;

    color:
        var(--beige);

    font-size:
        11px;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {


    .project-grid {

        grid-template-columns:
            repeat(
                2,
                1fr
            );

    }


    .about-grid {

        grid-template-columns:
            1fr;

        gap:
            30px;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {


    .container {

        width:
            calc(
                100% - 28px
            );

    }


    /* HEADER */

    .nav {

        height:
            64px;

    }


    .logo {

        font-size:
            16px;

    }


    .nav nav {

        gap:
            15px;

        font-size:
            11px;

    }


    /* HERO */

    .hero {

        padding:
            70px 0
            75px;

    }


    .hero h1 {

        font-size:
            42px;

        letter-spacing:
            -2px;

    }


    .hero-description {

        font-size:
            15px;

    }


    /* PORTFOLIO */

    .portfolio {

        padding:
            65px 0
            75px;

    }


    .project-grid {

        grid-template-columns:
            1fr;

    }


    /* ABOUT */

    .about {

        padding:
            65px 0;

    }


    /* FOOTER */

    .footer-content {

        flex-direction:
            column;

        align-items:
            flex-start;

    }


    /* VIDEO */

    .video-modal {

        padding:
            10px;

    }

}