/* css/case-studies.css */
@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Urbanist:wght@400;500;600;700&display=swap');

/* ==========================================================================
   SECTION 1: THEMES & VARIABLE SYSTEM
   ========================================================================== */

/* --- DARK MODE (DEFAULT) --- */
:root {
    --bg-color: #080b0c;
    --text-main: #f0f7f6;
    --text-muted: #7fa4a0;
    --accent-color: #40c1ac;
    --accent-glow: rgba(110, 209, 190, 0.4);
    --border-color: rgba(110, 209, 190, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --card-bg: #0c1214;

    /* Header & Nav Components */
    --header-bg: rgba(8, 11, 12, 0.85);
    --pill-bg: rgba(12, 18, 20, 0.8);
    --window-bg-top: #111a1c;
    --window-bar-bg: rgba(0, 0, 0, 0.4);

    /* Per-Case Study Defaults */
    --color-brand: #40c1ac;
    --color-bg-alt: #ffffff;

    /* Typography */
    --font-heading: 'Urbanist', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* --- LIGHT MODE OVERRIDES --- */
:root[data-theme="light"] {
    --bg-color: #F9FAF9;
    --text-main: #111817;
    --text-muted: #4A635E;
    --accent-color: #1F7363;
    --accent-glow: rgba(31, 115, 99, 0.15);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.05);

    /* Glass Effect Cards */
    --card-bg: rgba(255, 255, 255, 0.96);

    /* Header & Nav Components */
    --header-bg: rgba(249, 250, 249, 0.85);
    --pill-bg: rgba(230, 236, 235, 0.8);
    --window-bg-top: #e8efee;
    --window-bar-bg: rgba(0, 0, 0, 0.05);

    /* Case Study Light Color Alt */
    --color-bg-alt: #4A635E;
}

/* --- PER-CASE-STUDY UNIQUE ACCENT THEMING --- */
.case-cardenes-market {
    --color-brand: #15ca75;
    --color-bg-alt: #f6f8f6;
}

.case-jasnutrifit {
    --color-brand: #c75b16;
    --color-bg-alt: #fcfcfc;
}

.case-amddigital {
    --color-brand: #40c1ac;
    --color-bg-alt: #ffffff;
}

.case-loyva {
    --color-brand: #5fc7f7;
    --color-bg-alt: #fcfcfc;
}


/* ==========================================================================
   SECTION 2: RESETS & BASE LAYOUT
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4,
.brand .name,
.timeline-year {
    font-family: var(--font-heading);
}

/* --- THE MOVING BLOB --- */
.bg-blob {
    position: fixed;
    top: 20%;
    left: 15%;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(110, 209, 190, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    animation: floatBlob 20s infinite alternate ease-in-out;
}

:root[data-theme="light"] .bg-blob {
    mix-blend-mode: multiply;
    background: radial-gradient(circle, rgba(64, 193, 172, 0.25) 0%, rgba(249, 250, 249, 0) 70%);
    filter: blur(80px);
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20vw, 10vh) scale(1.2);
    }

    100% {
        transform: translate(-10vw, 20vh) scale(0.9);
    }
}

/* --- VECTOR STROKE BOUNCING ANIMATION --- */
.bg-outline {
    position: fixed;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
}

.bg-outline-1 {
    width: 700px;
    height: 700px;
    top: -15%;
    right: -10%;
    animation: bounceStroke 14s infinite alternate ease-in-out;
}

.bg-outline-2 {
    width: 450px;
    height: 450px;
    bottom: -5%;
    left: -15%;
    animation: bounceStroke 18s infinite alternate-reverse ease-in-out;
}

@keyframes bounceStroke {
    0% {
        transform: translateY(0px) scale(1);
    }

    100% {
        transform: translateY(-60px) scale(1.05);
    }
}

/* ==========================================================================
   SECTION 3: HEADER & NAVIGATION
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 1100px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 100;
}

.brand {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    z-index: 10;
}

.brand .name {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.brand .separator {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

.brand .title {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-pill {
    display: flex;
    background: var(--pill-bg);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 4px;
    backdrop-filter: blur(10px);
    position: relative;
}

.nav-pill a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-pill a:hover,
.nav-pill a.active {
    color: var(--text-main);
}

.nav-pill a.active {
    background: rgba(110, 209, 190, 0.15);
    color: var(--accent-color);
}

/* --- THEME TOGGLE PILL --- */
.theme-toggle-pill {
    display: flex;
    align-items: center;
}

.theme-btn {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.theme-btn.active {
    background-color: rgba(110, 209, 190, 0.15) !important;
    color: var(--accent-color);
}

.theme-btn:hover:not(.active) {
    color: var(--text-main);
}

.contact-menu {
    position: relative;
}

.contact-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pill-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent-color);
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
}

.contact-btn:hover {
    background: rgba(110, 209, 190, 0.1);
    border-color: var(--accent-color);
}

.dropdown-card {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(180deg, var(--window-bg-top) 0%, var(--card-bg) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    min-width: 160px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] .dropdown-card {
    box-shadow: 0 15px 35px rgba(31, 115, 99, 0.08);
}

.dropdown-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-card a {
    padding: 12px 16px;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 400;
    transition: background 0.2s;
}

.dropdown-card a span {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.dropdown-card a:hover {
    background: rgba(110, 209, 190, 0.1);
    color: var(--accent-color);
}

.dropdown-card a:hover span {
    transform: translateX(2px) translateY(-2px);
    color: var(--accent-color);
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 1.5rem 3rem 1.5rem;
        background: linear-gradient(180deg, var(--header-bg) 0%, rgba(8, 11, 12, 0) 100%);
    }

    .brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .brand .separator {
        display: none;
    }

    .brand .name {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .brand .title {
        font-size: 0.75rem;
    }

    .nav-pill a {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 550px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 1.5rem 1rem 2.5rem 1rem;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
}

/* --- MAIN LAYOUT CONSTRAINTS --- */
main {
    width: 100%;
    max-width: 1100px;
    padding: 0 2rem 2rem 2rem;
    box-sizing: border-box;
    z-index: 10;
    flex-grow: 1;
}


/* ============ CASE STUDY SPECIFIC STYLES ========================================================= */
.cs-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.cs-back-btn:hover {
    opacity: 0.7;
}

.hero-window {
    background: radial-gradient(circle at top, var(--window-bg-top) 0%, var(--card-bg) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    margin-bottom: 4rem;
    position: relative;
}

:root[data-theme="light"] .hero-window {
    box-shadow: 0 20px 40px rgba(31, 115, 99, 0.08);
}

/* Per-Case Hero Gradients */
.hero-amddigital {
    background: linear-gradient(160deg, #0f1a1c 0%, #1b6875 60%, #40c1ac 130%);
}

.hero-cardenes-market {
    background: linear-gradient(160deg, #0a1512 0%, #145c3a 60%, #15ca75 130%);
}

.hero-jasnutrifit {
    background: linear-gradient(160deg, #1a1a1a 0%, #3a1e0c 60%, #c75b16 130%);
}

.hero-loyva {
    background: linear-gradient(160deg, #0f1a26 0%, #003f8a 60%, #5fc7f7 130%);
}

/* ==========================================================================
   LIGHT MODE: HERO GRADIENT OVERRIDES
   ========================================================================== */
:root[data-theme="light"] .hero-amddigital {
    background: linear-gradient(160deg, #f2fcfb 0%, #d2f0eb 60%, #40c1ac 130%);
}

:root[data-theme="light"] .hero-cardenes-market {
    background: linear-gradient(160deg, #f2fcf7 0%, #dcf4e8 60%, #15ca75 130%);
}

:root[data-theme="light"] .hero-jasnutrifit {
    background: linear-gradient(160deg, #fdf7f3 0%, #fae6d8 60%, #c75b16 130%);
}

:root[data-theme="light"] .hero-loyva {
    background: linear-gradient(160deg, #f4fafd 0%, #dff0fb 60%, #5fc7f7 130%);
}

:root[data-theme="light"] .hero-content h1 {
    color: var(--text-main);
    text-shadow: none;
}

:root[data-theme="light"] .project-specs {
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.window-bar {
    background: var(--window-bar-bg);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ff5f56;
}

.dot.yellow {
    background-color: #ffbd2e;
}

.dot.green {
    background-color: #27c93f;
}

.hero-content {
    padding: 5rem 4rem 6rem 4rem;
    position: relative;
}

.project-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    font-weight: 600;
    color: var(--text-main);
    text-shadow: 0 0 25px rgba(110, 209, 190, 0.4);
}

.hero-sub {
    font-size: 1.5rem;
    color: var(--color-brand);
    margin: 0 0 2rem 0;
    font-weight: 400;
}

.project-specs {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-main);
}

.cs-layout-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    align-items: start;
}

.cs-sidenav {
    position: sticky;
    top: 8.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 20;
}

.cs-nav-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--color-brand);
    margin: 0;
}

.cs-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-nav-link {
    color: var(--color-bg-alt);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    padding-left: 12px;
    border-left: 2px solid transparent;
}

:root[data-theme="light"] .cs-nav-link {
    color: var(--text-muted);
}

.cs-nav-link:hover {
    color: var(--color-brand);
    border-left-color: var(--border-color);
    padding-left: 20px;
}

.cs-nav-link.active {
    color: var(--color-brand);
    border-left-color: var(--color-brand);
    font-weight: 500;
}

.cs-main-stream {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.cs-section {
    scroll-margin-top: 8.5rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: 1rem;
}

.cs-section-title {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 2rem 0;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.text-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.cs-text-block h4 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
}

.cs-text-block p {
    font-size: 16pt;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.cs-text-block strong {
    color: var(--text-main);
    font-weight: 600;
}

.cs-section-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 2rem;
}

.cs-image-block {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

:root[data-theme="light"] .cs-image-block {
    box-shadow: 0 15px 35px rgba(31, 115, 99, 0.08);
}

.cs-image-block img,
.cs-image-block video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.cs-img-caption {
    display: block;
    font-size: 0.85rem;
    color: var(--color-brand);
    margin-top: 1rem;
    padding: 0 0.5rem;
    font-style: italic;
}

.img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.cs-mockup-wrap {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.mockup-frame {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.mockup-screen {
    position: absolute;
    top: 3.8%;
    left: 11.9%;
    width: 76.2%;
    height: 87.2%;
    z-index: 1;
    overflow: hidden;
    background: #000;
}

.mockup-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wireframe-cta,
.prototype-cta {
    margin-top: 2rem;
}

.wireframe-cta a,
.prototype-cta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-glow);
    border: 1px solid var(--accent-color);
    padding: 12px 28px;
    border-radius: 30px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.wireframe-cta a:hover,
.prototype-cta a:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.hero-skills {
    border-top: 1px solid var(--border-color);
    margin-top: 6rem;
    padding-top: 4rem;
    width: 100%;
}

.skills-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.skill-tag i {
    color: var(--accent-color);
}

.next-project-section {
    margin-top: 6rem;
    width: 100%;
}

.next-project-link {
    text-decoration: none;
    display: block;
}

.next-project-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.next-project-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 280px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] .next-project-img-wrap {
    box-shadow: 0 15px 35px rgba(31, 115, 99, 0.08);
}

.next-project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.next-project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 11, 12, 0.4) 0%, rgba(8, 11, 12, 0.9) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 3rem;
}

:root[data-theme="light"] .next-project-overlay {
    background: linear-gradient(180deg, rgba(249, 250, 249, 0.2) 0%, rgba(249, 250, 249, 0.9) 100%);
}

.next-project-title {
    font-size: 2.5rem;
    margin: 0;
    color: var(--text-main);
    font-weight: 600;
}

.next-project-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.next-project-link:hover .next-project-img-wrap img {
    transform: scale(1.03);
}

.next-project-link:hover .next-project-arrow {
    background: var(--text-main);
    border-color: var(--text-main);
}

.next-project-link:hover .next-project-arrow svg path {
    stroke: var(--bg-color);
}

@media (max-width: 900px) {
    .cs-layout-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cs-sidenav {
        display: none;
    }

    .text-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-content {
        padding: 4rem 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .img-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .next-project-overlay {
        padding: 2rem;
    }

    .next-project-title {
        font-size: 1.8rem;
    }
}

/* --- LOADER --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-text h2 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--text-muted);
    text-align: center;
}

.loader-text em {
    color: var(--text-main);
    font-style: italic;
}

.loader-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
    text-align: center;
}

.loader-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.loader-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: bounceDots 1.4s infinite ease-in-out both;
}

.loader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounceDots {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
        background-color: var(--accent-color);
    }
}

/* Instagram Story grid — portrait 9:16 aspect */
.ig-story-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0 2rem 0;
}

.ig-story-grid .cs-image-block {
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 18px;
}

.ig-story-grid .cs-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .ig-story-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Compact 3-Column Grid --- */
section .img-grid.compact-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    max-width: 900px !important;
    margin: 2rem auto !important;
}

section .img-grid.compact-grid .cs-image-block img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 768px) {
    section .img-grid.compact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

/* Fluid Responsive Video Player Framework */
.video-responsive-container iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bg-color);
}

/* ==========================================================================
   SECTION 5: FOOTER
   ========================================================================== */
footer {
    width: 100%;
    padding: 0 2rem 2rem 2rem;
    text-align: center;
    margin-top: 4rem;
    background: var(--window-bar-bg);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-lines {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.foot-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.foot-line:nth-child(1) {
    width: 100%;
    opacity: 0.8;
}

.foot-line:nth-child(2) {
    width: 75%;
    opacity: 0.5;
}

.foot-line:nth-child(3) {
    width: 50%;
    opacity: 0.2;
}

.footer-content {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.footer-content a:hover {
    opacity: 0.7;
}