/* =========================================
   GALDÓS PREMIUM PORTFOLIO STYLES
========================================= */

:root {
    --bg-dark: #050505;
    --bg-surface: #0a0a0a;
    --bg-elevated: #151515;

    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;

    --accent: #ff3333;
    /* Neon Red Cinematic Accent */
    --accent-hover: #ff5555;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);

    --transition-fast: 0.3s var(--ease-out-expo);
    --transition-slow: 0.8s var(--ease-out-expo);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Hide default cursor for custom one */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* Hide scrollbar for a cleaner look */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* =========================================
   PRELOADER
========================================= */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s var(--ease-in-out-circ);
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    display: flex;
    overflow: hidden;
    margin-bottom: 2rem;
}

.loader-text span {
    transform: translateY(100%);
    animation: textUp 1s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.loader-text span:nth-child(1) {
    --i: 1;
}

.loader-text span:nth-child(2) {
    --i: 2;
}

.loader-text span:nth-child(3) {
    --i: 3;
}

.loader-text span:nth-child(4) {
    --i: 4;
}

.loader-text span:nth-child(5) {
    --i: 5;
}

.loader-text span:nth-child(6) {
    --i: 6;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--text-primary);
    transform: translateX(-100%);
    animation: loadLine 2s var(--ease-out-expo) forwards;
}

@keyframes textUp {
    to {
        transform: translateY(0);
    }
}

@keyframes loadLine {
    to {
        transform: translateX(0);
    }
}

body.loaded .preloader {
    opacity: 0;
    pointer-events: none;
}

/* Flicker Effect before preloader hide */
.flicker-out {
    animation: flicker 0.8s ease-in-out forwards;
}

.loader-progress.flicker-out::after {
    /* Keep the line filled and apply the color flicker */
    animation: loadLine 2s var(--ease-out-expo) forwards, flicker-line 0.8s ease-in-out forwards;
}

@keyframes flicker {
    0% {
        opacity: 1;
        color: var(--text-primary);
        text-shadow: none;
    }

    10% {
        color: var(--accent);
        text-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
    }

    20% {
        opacity: 0;
    }

    40% {
        opacity: 1;
        color: var(--accent);
        text-shadow: 0 0 20px rgba(230, 57, 70, 0.8);
    }

    60% {
        opacity: 0;
    }

    80% {
        opacity: 1;
        color: var(--accent);
        text-shadow: 0 0 15px rgba(230, 57, 70, 0.6);
    }

    100% {
        opacity: 1;
        color: var(--accent);
        text-shadow: 0 0 30px rgba(230, 57, 70, 1);
    }
}

@keyframes flicker-line {
    0% {
        opacity: 1;
        background: var(--text-primary);
    }

    10% {
        background: var(--accent);
        box-shadow: 0 0 10px var(--accent);
    }

    20% {
        opacity: 0;
    }

    40% {
        opacity: 1;
        background: var(--accent);
        box-shadow: 0 0 20px var(--accent);
    }

    60% {
        opacity: 0;
    }

    80% {
        opacity: 1;
        background: var(--accent);
        box-shadow: 0 0 15px var(--accent);
    }

    100% {
        opacity: 1;
        background: var(--accent);
        box-shadow: 0 0 30px var(--accent);
    }
}

/* =========================================
   TYPOGRAPHY & UTILS
========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

.italic {
    font-style: italic;
    font-weight: 300;
}

.magnetic {
    display: inline-block;
}

/* Reveal Animation Setup */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

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

.reveal-text {
    overflow: hidden;
    position: relative;
}

/* =========================================
   NAVIGATION
========================================= */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    /* Slightly reduced padding for a cleaner solid bar */
    z-index: 900;
    background: #050505;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.5s var(--ease-out-expo);
}

.nav.scrolled {
    padding: 1rem 0;
    /* Background and border are now constant, only padding changes */
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-out-expo);
}

.nav-link:hover::after {
    transform: translateX(0);
}

.btn-contact {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    outline: none;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    left: 0;
    transition: transform 0.3s var(--ease-out-expo);
}

.hamburger::before {
    transform: translateY(-6px);
}

.hamburger::after {
    transform: translateY(6px);
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

/* Futuristic Dropdown Mobile Menu */
.mobile-dropdown {
    position: fixed;
    top: 0;
    /* Align with nav initially */
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.85);
    /* Semi-transparent dark */
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    z-index: 890;
    /* Just below nav (900) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 3rem 2rem;
    /* Give space for nav bar */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* Shiny border */
    transform: translateY(-100%);
    /* Start hidden above */
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease-out;
}

.mobile-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
}

.dropdown-links a {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, color 0.3s;
}

.dropdown-links a:hover,
.dropdown-links a:active {
    color: var(--accent);
}

.mobile-dropdown.active .dropdown-links a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-dropdown.active .dropdown-links a:nth-child(1) {
    transition-delay: 0.2s;
}

.mobile-dropdown.active .dropdown-links a:nth-child(2) {
    transition-delay: 0.3s;
}

.mobile-dropdown.active .dropdown-links a:nth-child(3) {
    transition-delay: 0.4s;
}

.dropdown-social {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.mobile-dropdown.active .dropdown-social {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.dropdown-social a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.dropdown-social a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 15vh 4vw 0 4vw;
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transform: scale(1.05);
    /* Will be parallaxed in JS if possible */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 1) 95%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Esto alinea el texto y la imagen perfectamente */
}

.hero-text-area {
    max-width: 800px;
    position: relative;
    z-index: 5;
}

.hero-portrait-container {
    position: relative;
    /* Lo sacamos de absolute para que flexbox lo empuje a la derecha */
    width: 480px;
    height: 480px;
    margin-top: -240px;
    /* Bajado aproximadamente "un dedo" desde los -280px anteriores */
    /* Subida brutal para centrarse con "IMPACTO" compensando el subtitulo */
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
    /* Un pelín más de "aire" y niebla */
}

#hero-portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) contrast(1.1) brightness(0.6);
    /* Más oscuro para parecer fondo */
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0) 60%);
    /* Efecto halo de niebla profundo */
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0) 60%);
}

.portrait-overlay-gradient {
    display: none;
}

@media (max-width: 900px) {
    .hero-portrait-container {
        opacity: 0.15;
        right: -10vw;
        width: 350px;
        height: 350px;
    }
}

.hero-title {
    font-size: clamp(4rem, 10vw, 9rem);
    text-transform: uppercase;
    transform: translateY(100%);
    opacity: 0;
}

body.loaded .hero-title {
    animation: textUpHero 1.2s var(--ease-out-expo) forwards;
}

body.loaded .reveal-text:nth-child(1) .hero-title {
    animation-delay: 0.3s;
}

body.loaded .reveal-text:nth-child(2) .hero-title {
    animation-delay: 0.4s;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
}

body.loaded .reveal-text:nth-child(3) .hero-title {
    animation-delay: 0.5s;
}

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

.hero-subtitle {
    margin-top: 2rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    color: var(--text-secondary);
}

.hero-cta {
    margin-top: 3rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    overflow: hidden;
    position: relative;
    line-height: 1;
}

.btn-primary span {
    position: relative;
    z-index: 2;
}

.btn-primary i {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    transition: transform var(--transition-fast);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: 1;
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-primary:hover {
    color: var(--text-primary);
}

/* =========================================
   CLIENTS SECTION
========================================= */
.clients-section {
    padding: 8rem 0;
    overflow: hidden;
    position: relative;
}

.clients-header {
    padding: 0 4vw;
    margin-bottom: 4rem;
    text-align: left;
}

.marquee-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
}

.marquee {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 0 4vw;
}

.client-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-surface);
    padding: 0.8rem 2rem 0.8rem 0.8rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.client-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(230, 57, 70, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-out-expo);
    pointer-events: none;
}

.client-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(230, 57, 70, 0.4);
    box-shadow: 0 15px 35px rgba(230, 57, 70, 0.15), 0 0 20px rgba(230, 57, 70, 0.05);
    background: rgba(15, 15, 15, 0.95);
}

.client-item:hover::before {
    transform: translateX(100%);
}

.client-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-dark);
    filter: grayscale(100%);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.client-item:hover img {
    filter: grayscale(0%);
    border-color: var(--accent);
    transform: scale(1.1);
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.client-info h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    transition: color 0.3s ease;
}

.client-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.client-item:hover .client-info h4 {
    color: var(--text-primary);
}

.client-item:hover .client-info span {
    color: var(--accent);
}

/* End of Clients Section */
/* =========================================
   PORTFOLIO (BENTO GRID)
========================================= */
.work-section {
    padding: 6rem 4vw 10rem 4vw;
    max-width: 1600px;
    margin: 0 auto;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    /* The exact visual distance to the first VLOGS header */
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    text-transform: uppercase;
    line-height: 1;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    cursor: pointer;
    /* Ensure they feel like buttons */
    position: relative;
    z-index: 15;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.portfolio-category-header {
    grid-column: span 12;
    grid-row: auto;
    /* CRITICAL FIX: Don't force this to be 280px tall */
    margin-top: 3rem;
    /* Space between the end of previous videos and the new category title */
    margin-bottom: 0;
    /* Let the grid gap (1.5rem / 24px) be the exact distance to the videos! */
    padding-bottom: 0;
    border-bottom: none;
}

.portfolio-category-header:first-of-type {
    margin-top: 0;
}

/* Pegar el primer VLOGS al header */


.portfolio-category-header h3 {
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    /* OVERRIDE NATIVE BROWSER MARGIN */
    padding: 0;
    line-height: 1;
    /* Remove native line-height spacing */
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: auto;
    /* CRITICAL FIX: Allow rows to shrink to their content so headers don't become massive */
    gap: 1.5rem;
    /* Standard gap controls video distance */
    margin-top: 0;
    position: relative;
    z-index: 5;
}

.bento-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-surface);
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
}

/* Patterns for bento sizing based on nth-child or class (assigned by JS) */
.bento-card.size-small {
    grid-column: span 4;
}

.bento-card.size-medium {
    grid-column: span 6;
}

.bento-card.size-large {
    grid-column: span 8;
}

.bento-card.size-tall {
    grid-column: span 4;
    /* Removed grid-row span to respect 16:9 ratio of the video thumbnail */
}

@media (max-width: 1024px) {
    .bento-card.size-small {
        grid-column: span 6;
    }

    .bento-card.size-large {
        grid-column: span 12;
    }

    .bento-card.size-tall {
        grid-column: span 6;
    }
}


.bento-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bento-media img,
.bento-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out-expo);
}

.bento-media video {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bento-card:hover .bento-media img {
    transform: scale(1.05);
}

.bento-card:hover .bento-media video {
    opacity: 1;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-out-expo);
}

.bento-card:hover .bento-overlay {
    opacity: 1;
    transform: translateY(0);
}

.bento-tag {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: auto;
    /* Pushes everything else down */
}

.bento-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bento-client {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* =========================================
   ABOUT / CONTACT (SPLIT SCREEN)
========================================= */
.about-contact-section {
    padding: 8rem 4vw;
    max-width: 1600px;
    margin: 0 auto;
}

.ac-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--bg-elevated);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.ac-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 80%;
    background: rgba(255, 255, 255, 0.05);
    transform: translate(-50%, -50%);
}

.about-cell {
    padding: 6rem 4rem;
}

.about-cell p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-cell {
    padding: 6rem 4rem;
    background: rgba(0, 0, 0, 0.2);
}

.contact-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-card>p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Modern Form */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-bottom-color: var(--text-primary);
}

.input-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all var(--transition-fast);
}

/* Material Design float label effect */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -1rem;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.btn-submit {
    align-self: flex-start;
    background: var(--text-primary);
    border: none;
    color: var(--bg-dark);
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.btn-submit span,
.btn-submit i {
    position: relative;
    z-index: 2;
    transition: transform var(--transition-fast);
}

.btn-submit:hover i {
    transform: translateX(5px);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: 1;
}

.btn-submit:hover::before {
    transform: translateX(0);
}

.btn-submit:hover {
    color: var(--text-primary);
}

.social-links {
    margin-top: 4rem;
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 60px;
    height: 60px;
    background: var(--text-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-dark);
    text-decoration: none;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.social-links a i {
    position: relative;
    z-index: 2;
    transition: color var(--transition-fast);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: 1;
}

.social-links a:hover::before {
    transform: translateY(0);
}

.social-links a:hover {
    color: var(--text-primary);
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .ac-container {
        grid-template-columns: 1fr;
    }

    .ac-container::before {
        width: 80%;
        height: 1px;
    }

    .about-cell,
    .contact-cell {
        padding: 4rem 2rem;
    }
}

/* =========================================
   FOOTER
========================================= */
.footer {
    padding: 1.5rem 4vw;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

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

#back-to-top {
    background: var(--bg-elevated);
    border: none;
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }

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

/* =========================================
   YOUTUBE LIGHTBOX MODAL
========================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.lightbox-content {
    position: relative;
    z-index: 10002;
    width: 90%;
    max-width: 1200px;
    transform: scale(0.95);
    transition: transform var(--transition-fast);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-lightbox:hover {
    color: var(--accent);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================================
   LOGIN MODAL & ADMIN CMS
========================================= */
.login-card {
    position: relative;
    z-index: 10002;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: transform var(--transition-fast);
}

.lightbox.active .login-card {
    transform: translateY(0);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.login-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.close-login {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: none;
    transition: color var(--transition-fast);
}

.close-login:hover {
    color: var(--accent);
}

.error-msg {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
    text-align: center;
    min-height: 20px;
}

/* Admin Panel (CMS Slide from right) */
.admin-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-surface);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10005;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
}

.admin-panel.open {
    transform: translateX(0);
}

.admin-panel.hidden {
    display: none;
}

.admin-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.local {
    background-color: #f59e0b;
    /* yellow */
}

.status-dot.live {
    background-color: #10b981;
    /* green */
}

#close-admin {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
}

#close-admin:hover {
    color: var(--text-primary);
}

.admin-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.admin-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    border-radius: 4px;
}

.admin-warning.live {
    background-color: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
}

.admin-section {
    margin-bottom: 2rem;
}

.admin-section h3 {
    font-size: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.admin-section label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.admin-section input,
.admin-section textarea {
    width: 100%;
    background-color: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    transition: border-color var(--transition-fast);
}

.admin-section input:focus,
.admin-section textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

.admin-helper {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.admin-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for inner lists */
.admin-list-container::-webkit-scrollbar {
    width: 4px;
}

.admin-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.admin-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.admin-item-delete {
    background: rgba(239, 68, 68, 0.1);
    /* Redish */
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.admin-item-delete:hover {
    background: #ef4444;
    color: #fff;
}

.admin-item-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.admin-item-row>div {
    flex: 1;
}

.admin-item-card label {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
    color: var(--text-secondary);
}

.admin-item-card input,
.admin-item-card select {
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border-radius: 100px;
    cursor: none;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.admin-item-card.removing {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

/* =========================================
   MOBILE RESPONSIVE OVERRIDES (PRIORITY)
========================================= */
@media (max-width: 768px) {
    .bento-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .bento-card {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
        width: 100% !important;
        grid-column: span 12 !important;
    }

    .bento-media img {
        object-fit: cover !important;
    }

    /* Prevent any horizontal overflow on iPhone */
    html,
    body {
        overflow-x: hidden !important;
        position: relative;
        width: 100%;
    }
}