@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&family=Outfit:wght@300;400;600;700;900&display=swap');

/* Lenis Smooth Scroll Setup */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
:root {
    --bg-color: #032d60;
    --bg-accent: #02244d;
    --bg-deep: #001a3a;
    --bg-dreamforce: #032d60;
    --text-primary: #ffffff;
    --text-secondary: #b0c4de;
    --accent-blue: #00e5ff;
    --blue-electric: #00A1E0;
    --cyan-glow: #00E5FF;
    --accent-green: #00ff88;
    --accent-purple: #7b61ff;
    --glass-bg: rgba(3, 45, 96, 0.4);
    --glass-border: rgba(0, 161, 224, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background: radial-gradient(circle at top right, #00A1E0 0%, #032d60 50%, #000814 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   FILM GRAIN OVERLAY
   ======================================== */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
    opacity: 0.4;
}

/* ========================================
   FLOATING GRADIENT ORBS
   ======================================== */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(180px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    animation: orbFloat 20s infinite ease-in-out;
}

.orb-1 { width: 60vw; height: 60vw; background: var(--blue-electric); top: -20%; left: -20%; animation-delay: 0s; }
.orb-2 { width: 50vw; height: 50vw; background: var(--cyan-glow); bottom: 10%; right: -25%; animation-delay: -7s; }
.orb-3 { width: 45vw; height: 45vw; background: var(--blue-electric); top: 40%; left: 20%; animation-delay: -14s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, -60px) scale(1.1); }
    50% { transform: translate(-40px, 80px) scale(0.9); }
    75% { transform: translate(60px, 40px) scale(1.05); }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 2rem;
}

h1 { font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1; }
h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.05; }
h3 { font-size: 1.3rem; color: var(--accent-blue); letter-spacing: 0; }

p {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0f7ff 40%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.5)) drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
}

/* Character-by-character reveal */
.char-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-40deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.char-reveal.active span {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* ========================================
   RAYCAST PILL NAVIGATION
   ======================================== */
.pill-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem 0.6rem 1.5rem;
    width: 90%;
    max-width: 1000px;
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-radius: 12px;
    border: 1px solid transparent;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.pill-nav.scrolled {
    background: rgba(14, 85, 175, 0.45); /* 10% lighter blue liquid glass */
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.nav-brand { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    cursor: pointer; 
    z-index: 1001; 
    height: 40px; 
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(1.1);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.pill-nav.scrolled .nav-brand {
    left: 1.5rem;
    transform: translateX(0) scale(1);
}
.nav-logo { height: 67.5%; width: auto; transition: var(--transition); }
.nav-logo:hover { opacity: 0.8; }

.pill-links {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.pill-nav.scrolled .pill-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Magnetic Hover Pill */
.nav-hover-pill {
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), 
                width 0.25s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.2s ease;
    z-index: 0;
}

.pill-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: color 0.2s;
    z-index: 1;
}

.pill-nav.scrolled .pill-links a {
    color: #ffffff;
}

.pill-links a:hover, .pill-links a.active, .pill-nav.scrolled .pill-links a:hover, .pill-nav.scrolled .pill-links a.active {
    color: var(--cyan-glow);
}

.pill-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.pill-nav.scrolled .pill-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.btn-pill-cta {
    background: var(--cyan-glow);
    color: #032d60;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    height: 40px;
    padding: 0 1.2rem;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pill-nav.scrolled .btn-pill-cta {
    background: #032d60;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-pill-cta:hover {
    background: white;
    transform: scale(1.02);
}

.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 900px) {
    .pill-links { display: none; }
    .btn-pill-cta { display: none; }
    .mobile-menu-toggle { display: block; }
    .pill-nav { padding: 0.6rem 0.6rem 0.6rem 1.2rem; width: 92%; max-width: 400px; justify-content: space-between; border-radius: 12px; }
}

/* ========================================
   FULL SCREEN MENU OVERLAY
   ======================================== */
/* ========================================
   PREMIUM MOBILE MENU OVERLAY
   ======================================== */
.menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(13, 13, 13, 0.85); /* Slightly transparent */
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

/* Orbital Cinematic Glows */
.menu-overlay::before, .menu-overlay::after {
    content: "";
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.3;
}
.menu-overlay::before { top: -50px; left: -50px; background: var(--accent-blue); }
.menu-overlay::after { bottom: -50px; right: -50px; background: var(--accent-green); }

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

.menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.menu-close:hover {
    background: white;
    color: black;
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.menu-content a {
    text-decoration: none;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.menu-overlay.active .menu-content a {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.menu-content a:hover, .menu-content a.active {
    color: white;
    transform: scale(1.05);
    letter-spacing: 2px;
}

.menu-content a::after {
    content: "";
    display: block;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    transition: width 0.4s ease;
    margin: 5px auto 0;
    border-radius: 20px;
}

.menu-content a:hover::after {
    width: 40px;
}

/* Delay staggered animation for links */
.menu-overlay.active .menu-content a:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay.active .menu-content a:nth-child(2) { transition-delay: 0.2s; }
.menu-overlay.active .menu-content a:nth-child(3) { transition-delay: 0.3s; }
.menu-overlay.active .menu-content a:nth-child(4) { transition-delay: 0.4s; }
.menu-overlay.active .menu-content a:nth-child(5) { transition-delay: 0.5s; }

@media (max-width: 768px) {
    .menu-content a { font-size: 3rem; }
}

@media (max-width: 768px) {
    nav { padding: 1.5rem 8%; }
    nav.scrolled { padding: 1rem 8%; }
    .menu-close { top: 1.5rem; right: 8%; }
    .nav-logo { height: 28px; }
}

/* ========================================
   SECTIONS with DYNAMIC BACKGROUNDS
   ======================================== */
section {
    position: relative;
    padding: 160px 8%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s ease, filter 0.8s ease, transform 0.8s ease;
    z-index: 1;
}

section:nth-of-type(odd) { background: transparent; }
section:nth-of-type(even) { background: transparent; }
section#smart-green { background: transparent; }
section#gallery { background: transparent; }
section#finance { background: transparent; }

/* Dreamforce section fusion glow */
section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 120px;
    background: linear-gradient(to top, rgba(0, 161, 224, 0.08) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%; max-width: 1400px;
    margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 2;
}

/* ========================================
   HERO
   ======================================== */
.hero { height: 100vh; padding: 0; background: var(--bg-deep); overflow: hidden; }

/* Background Slider */
.hero-slider {
    position: absolute; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 0; overflow: hidden;
}
.hero-slider .slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 2s ease-in-out, transform 8s ease-out;
}
.hero-slider .slide.active {
    opacity: 0.45;
    transform: scale(1.05); /* Cinematic slow zoom */
}

/* Add premium Unsplash architectural photos */
.slide.bg-1 { background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&q=80&w=1920'); }
.slide.bg-2 { background-image: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&q=80&w=1920'); }
.slide.bg-3 { background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&q=80&w=1920'); }

.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: transparent;
    z-index: 1; pointer-events: none;
}

/* Typewriter Blinking Cursor */
.cursor-blink {
    display: inline-block;
    color: var(--accent-blue);
    font-weight: 300;
    margin-left: 5px;
    animation: blink 0.8s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; width: 100%; height: 30%;
    background: transparent;
    z-index: 2;
    opacity: 0;
}
.hero-content { position: relative; z-index: 3; text-align: center; }

/* Hero Title Cinematic Animation */
.hero-title {
    animation: heroReveal 1.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

.hero-title.gradient-text {
    background: linear-gradient(90deg, #00E5FF 0%, #00D4FF 25%, #00BFFF 50%, #00A9FF 75%, #00A1E0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 161, 224, 0.4));
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Word Gallery */
.word-gallery { margin-top: 2rem; height: 44px; overflow: hidden; display: flex; justify-content: center; }
.word-list { display: block; animation: wordRotate 10s cubic-bezier(0.645, 0.045, 0.355, 1) infinite; }
.word-list span {
    font-size: 1rem; font-weight: 700; color: var(--accent-blue);
    height: 44px; line-height: 44px; display: block; text-align: center;
    letter-spacing: 6px; margin: 0; padding: 0;
}
@keyframes wordRotate {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-44px); }
    50%, 70% { transform: translateY(-88px); }
    75%, 95% { transform: translateY(-132px); }
    100% { transform: translateY(0); }
}

/* ========================================
   STATS BAR & MANIFIESTO TECH BG
   ======================================== */
.blueprint-bg {
    position: absolute; inset: 0;
    z-index: 0; opacity: 0.15;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    pointer-events: none;
}

.tech-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.2;
    z-index: 0; pointer-events: none;
    animation: techOrbFloat 15s infinite alternate ease-in-out;
}
.tech-orb-1 { width: 400px; height: 400px; background: var(--accent-blue); top: -10%; right: -5%; }
.tech-orb-2 { width: 300px; height: 300px; background: var(--accent-purple); bottom: 10%; left: -5%; animation-delay: -5s; }

@keyframes techOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.1); }
}

.stats-bar {
    display: flex; gap: 60px; margin-top: 80px;
    padding: 50px 80px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    backdrop-filter: blur(25px);
    position: relative; z-index: 10;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}
.stat-item { text-align: center; position: relative; }
.stat-icon {
    font-size: 1.5rem; color: var(--accent-blue);
    margin-bottom: 1.5rem; opacity: 0.5;
    transition: var(--transition);
}
.stat-item:hover .stat-icon { opacity: 1; transform: translateY(-5px); }
.stat-number {
    font-family: var(--font-heading); font-size: 4rem; font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 3px; }

/* ========================================
   EXPANDING FLEX CARDS (Acordeón Horizontal)
   ======================================== */
.flex-cards-section {
    position: relative;
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.flex-cards-bg {
    position: absolute;
    inset: -50px;
    background-size: cover;
    background-position: center;
    background-image: url('assets/alpha-01-bg.webp');
    filter: blur(40px) brightness(0.6);
    z-index: 0;
    transition: background-image 0.8s ease-in-out;
}

.flex-cards-container {
    display: flex;
    width: 90vw;
    max-width: 1400px;
    height: 60vh;
    min-height: 500px;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.flex-card {
    position: relative;
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-card:hover, .flex-card.active {
    flex: 4;
}

.flex-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
}

.flex-card:hover .flex-card-bg, .flex-card.active .flex-card-bg {
    transform: scale(1.05);
}

.flex-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    transition: background 0.6s;
}

.flex-card:hover .flex-card-overlay, .flex-card.active .flex-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
}

.flex-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.flex-card-content h3 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 3rem);
    margin: 0;
    text-transform: uppercase;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.flex-card-details {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: absolute;
    bottom: 40px;
    width: 80%;
    text-align: center;
}

.flex-card:hover .flex-card-details, .flex-card.active .flex-card-details {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.flex-card-details p {
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Vertical Accordion for Mobile */
@media (max-width: 900px) {
    .flex-cards-container {
        flex-direction: column;
        height: 80vh;
        width: 90%;
    }
    .flex-card {
        flex: 1;
        width: 100%;
    }
    .flex-card:hover, .flex-card.active {
        flex: 3;
    }
    .flex-card-content h3 {
        font-size: 1.5rem;
    }
    .flex-card-details {
        bottom: 20px;
        width: 90%;
    }
}


/* ========================================
   ECO-TECH BENTO GRID (Glassmorphism + Glow + Images)
   ======================================== */

/* ========================================
   SEAMLESS TRANSITION (Gallery -> Location)
   ======================================== */
#gallery {
    position: relative;
    overflow: visible; /* Allow overlap */
    background: transparent !important;
    padding-bottom: 200px !important;
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    z-index: 6;
}
.spotlight-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.eco-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 20px;
    width: 100%;
    margin-top: 30px;
    max-width: 1300px;
    position: relative;
    z-index: 2;
}

.eco-card {
    position: relative;
    border-radius: 20px;
    background: rgba(3, 45, 96, 0.5);
    border: 1px solid rgba(0, 161, 224, 0.12);
    backdrop-filter: blur(12px);
    overflow: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s, border-color 0.4s;
    cursor: default;
}

/* Background image layer */
.eco-img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
}
.eco-card:hover .eco-img-bg {
    opacity: 0.4;
    transform: scale(1.08);
}

/* Dark overlay for readability */
.eco-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5, 10, 25, 0.95) 30%, rgba(5, 10, 25, 0.3) 100%);
    z-index: 1;
}

/* Gradient border on hover */
.eco-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.5), transparent, rgba(0, 255, 136, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 3;
}
.eco-card:hover::before { opacity: 1; }
.eco-card:hover { transform: translateY(-6px); }

/* Specific glows */
.eco-card-1:hover { box-shadow: 0 20px 60px rgba(0, 229, 255, 0.2); border-color: rgba(0, 229, 255, 0.3); }
.eco-card-2:hover { box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.eco-card-3:hover { box-shadow: 0 20px 60px rgba(0, 255, 136, 0.2); border-color: rgba(0, 255, 136, 0.3); }
.eco-card-4:hover { box-shadow: 0 20px 60px rgba(138, 43, 226, 0.2); border-color: rgba(138, 43, 226, 0.3); }
.eco-card-5:hover { box-shadow: 0 20px 60px rgba(255, 204, 0, 0.15); border-color: rgba(255, 204, 0, 0.25); }

.eco-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.8rem;
    font-size: 2rem;
    color: rgba(255,255,255,0.3);
    transition: color 0.4s, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}
.eco-card:hover .eco-icon { transform: translateY(-4px) scale(1.15); }
.eco-card-1:hover .eco-icon { color: var(--accent-blue); }
.eco-card-2:hover .eco-icon { color: #fff; }
.eco-card-3:hover .eco-icon { color: var(--accent-green); }
.eco-card-4:hover .eco-icon { color: #a855f7; }
.eco-card-5:hover .eco-icon { color: #fbbf24; }

.eco-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    position: relative; z-index: 2;
}

.eco-card p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
    position: relative; z-index: 2;
    transform: translateY(6px);
    opacity: 0.8;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.eco-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* Grid Spanning */
.eco-card-1 { grid-column: span 2; grid-row: span 2; justify-content: flex-end; }
.eco-card-2 { grid-column: span 1; grid-row: span 1; }
.eco-card-3 { grid-column: span 1; grid-row: span 1; }
.eco-card-4 { grid-column: span 1; grid-row: span 1; }
.eco-card-5 { grid-column: span 2; grid-row: span 1; }

.eco-card-1 h3 { font-size: 1.7rem; letter-spacing: 2px; }
.eco-card-1 .eco-icon { font-size: 3rem; }

@media (max-width: 960px) {
    .eco-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .eco-card { grid-column: span 1 !important; grid-row: auto !important; min-height: 200px; }
    .eco-card-1 h3 { font-size: 1.5rem; }
}

/* ========================================
   GLASS CARDS + GLOW
   ======================================== */
.card-stack { display: flex; flex-wrap: wrap; gap: 30px; width: 100%; justify-content: center; margin-top: 50px; }
.glass-card {
    flex: 1; min-width: 400px; max-width: 600px;
    padding: 3.5rem;
    background: rgba(3, 45, 96, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.06) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.6s;
}
.glass-card:hover::before { opacity: 1; }
.glass-card:hover { border-color: rgba(0, 229, 255, 0.2); transform: translateY(-5px); }

/* ========================================
   PROCESS STEPS
   ======================================== */
.process-flex { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 60px; width: 100%; justify-content: center; }
.process-step {
    flex: 1; min-width: 300px; max-width: 400px;
    padding: 4rem 3rem;
    background: rgba(3, 45, 96, 0.4);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    position: relative; overflow: hidden;
    text-align: center;
    transition: var(--transition);
}
.process-step:hover { border-color: rgba(0, 229, 255, 0.15); transform: translateY(-5px); }
.step-num {
    font-size: 8rem; font-weight: 900;
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.08) 0%, transparent 80%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    position: absolute; top: -15px; right: 15px;
}

/* ========================================
   LOCATION GRID
   ======================================== */
.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 30px;
}

.location-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.location-img {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
}

.location-card:hover .location-img { transform: scale(1.1); }

.location-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(3, 45, 96, 0.95) 20%, rgba(3, 45, 96, 0.3) 100%);
    z-index: 1;
}

.location-content { position: relative; z-index: 2; text-align: left; }

.ALFA-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    padding: 0.6rem 1.4rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-blue);
    backdrop-filter: blur(10px);
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-item:hover .ALFA-badge { opacity: 1; transform: translateY(0); }

.location-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.location-card h3 {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: white;
}

.location-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.location-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.location-features span {
    font-size: 0.75rem;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-features i { color: var(--accent-blue); font-size: 0.9rem; }

/* ========================================
   SEAMLESS SECTION FUSION (Location -> Closer)
   ======================================== */
#location {
    margin-top: -12rem;
    padding-top: 15rem !important;
    padding-bottom: 15rem !important;
    position: relative;
    z-index: 5;
    background: transparent !important; /* Let body orbs show through */
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

#sales-closer {
    margin-top: -10rem;
    padding-top: 15rem !important;
    position: relative;
    z-index: 4;
    background: transparent !important;
}

.fused-section-transition {
    display: none; /* No longer needed with section overlapping */
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block; padding: 1.2rem 3rem;
    border-radius: 50px; text-decoration: none;
    font-weight: 700; text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 1px;
    transition: var(--transition);
    border: none; cursor: pointer;
    position: relative; overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute; top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn:hover::after { width: 400px; height: 400px; }

.btn-primary { background: var(--accent-blue); color: #000; }
.btn-primary:hover { box-shadow: 0 0 30px rgba(0, 229, 255, 0.4), 0 0 60px rgba(0, 229, 255, 0.15); transform: translateY(-2px); }
.btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========================================
   WHATSAPP FLOATING
   ======================================== */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25d366; color: white;
    width: 65px; height: 65px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 2000; text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
}

/* ========================================
   HORIZONTAL SEPARATOR LINE
   ======================================== */
.section-line {
    width: 80px; height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border: none; margin: 2rem auto;
    border-radius: 10px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1100px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .bento-1 { grid-column: span 2; height: 450px; }
    .bento-2, .bento-3, .bento-4 { grid-column: span 1; height: 350px; }
    .stats-bar { flex-wrap: wrap; gap: 30px; padding: 30px; }
}
@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor-glow, .cursor-dot { display: none; }
    .nav-links { display: none; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-1, .bento-2, .bento-3, .bento-4 { grid-column: span 1; height: 400px; }
    .glass-card { min-width: 100%; }
    .location-grid { grid-template-columns: 1fr; }
    .location-card { height: 400px; padding: 2rem; }
    .location-card h3 { font-size: 1.8rem; }
    section { padding: 100px 5%; }
    h1 { font-size: 3rem; }
    .stats-bar { flex-direction: column; align-items: center; }
}

/* ========================================
   PROJECT POST CARDS (Showcase)
   ======================================== */
.projects-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    padding: 0 5%;
}

.project-post-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.project-post-card:not(:hover) {
    transform: translateY(0);
}

.project-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.post-header {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.post-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-post-card:hover .post-header img {
    transform: scale(1.1);
}

.post-badge-left {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.post-badge-left.completado { color: #2ecc71; }
.post-badge-left.construccion { color: #f39c12; }

.post-badge-right {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.post-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    z-index: 1;
}

.post-overlay-content h3 {
    font-size: 1.4rem;
    margin: 0;
    margin-bottom: 5px;
    color: white;
    font-weight: 800;
}

.post-overlay-content p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-description {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.progress-container {
    margin-bottom: 5px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #0066cc;
}

.progress-bar-bg {
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #0066cc;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.post-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 25px;
    font-weight: 600;
}

.post-link {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0066cc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.post-link:hover {
    gap: 12px;
}

@media (max-width: 1100px) {
    .projects-post-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
}
@media (max-width: 700px) {
    .projects-post-grid { grid-template-columns: 1fr; }
}

/* ========================================
   EXPANDING FLEX CARDS LAYOUT
   ======================================== */
#home, .hero { position: relative; z-index: 1; background: #000; }
#manifiesto { position: relative; z-index: 2; background: #000; }
#collections { position: relative; z-index: 3; background: #000; }

.dynamic-bg-section {
    position: relative;
    overflow: hidden; /* Prevent blur overflow */
    padding: 100px 0 0 0; 
    background: #000; /* Ensure it covers preceding sections */
}

.section-dynamic-bg {
    position: absolute;
    inset: -100px; /* Stronger buffer for heavy blur to avoid dark edges */
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.6);
    z-index: 0;
    transition: background-image 0.8s ease-in-out;
}

.expanding-cards-container {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100vw;
    height: 80vh;
    padding: 0 5vw;
    gap: 20px;
    margin: 50px 0 100px 0;
}

.expand-card {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.expand-card:hover, .expand-card.active {
    flex: 4;
}

.expand-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s ease;
}

.expand-card:hover .expand-card-bg, .expand-card.active .expand-card-bg {
    transform: scale(1.05);
}

.expand-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2;
    transition: background 0.6s ease;
}

.expand-card:hover .expand-overlay, .expand-card.active .expand-overlay {
    background: rgba(0,0,0,0.1); /* Lighter when active/hovered for better visibility */
}

.expand-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    text-align: center;
    width: 100%;
}

.expand-content h3 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: font-size 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    white-space: nowrap;
}

.expand-card:hover .expand-content h3, .expand-card.active .expand-content h3 {
    font-size: 3.5rem;
}

@media (max-width: 900px) {
    .expanding-cards-container {
        flex-direction: column;
        height: 100vh;
        padding: 0 5%;
        margin-top: 20px;
    }
    .expand-card {
        flex: 1;
        width: 100%;
        margin-bottom: 0;
    }
    .expand-card:hover, .expand-card.active {
        flex: 3;
    }
    .expand-card:hover .expand-content h3, .expand-card.active .expand-content h3 {
        font-size: 2.2rem;
    }
}

/* ========================================
   CINEMATIC MANIFESTO & ASSEMBLY GRID
   ======================================== */

.scroll-story-section {
    position: relative;
    min-height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    padding: 100px 0;
}

.parallax-element {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
    will-change: transform;
}

.floating-img-back {
    top: 5%;
    right: 2%;
    width: 40vw;
    filter: blur(5px) brightness(0.3);
    z-index: 1;
    border-radius: 20px;
}

.floating-img-front {
    bottom: -5%;
    left: -2%;
    width: 45vw;
    filter: brightness(0.7);
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    border-radius: 20px;
}

.video-mask-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
}

.video-text-mask {
    position: relative;
    z-index: 2;
    background: linear-gradient(45deg, #00e5ff, #bd00ff, #00e5ff, #8a2be2);
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textGradient 6s linear infinite;
    font-size: clamp(3rem, 10vw, 9rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -3px;
    padding: 20px;
    margin: 0;
    font-family: var(--font-heading);
}

@keyframes textGradient {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.cinematic-desc {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    max-width: 700px;
    margin: 40px auto 0;
    line-height: 1.8;
    position: relative;
    z-index: 5;
}

/* Assembly Section */
.assembly-section {
    background: #000;
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.assembly-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.neon-cyan {
    border-color: #00e5ff !important;
    box-shadow: 0 0 15px rgba(0,229,255,0.4);
}
.neon-text {
    color: #00e5ff;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0,229,255,0.4);
}
.neon-icon {
    font-size: 2.5rem;
    color: #00e5ff;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0,229,255,0.6));
}

.bento-tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.bento-tech-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    text-decoration: none;
    background-color: #031526;
    border: 1px solid rgba(0, 229, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.bento-tech-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bento-tech-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 15, 28, 0.95) 0%, rgba(3, 15, 28, 0.4) 60%, rgba(3, 15, 28, 0.1) 100%);
    z-index: 1;
}

.bento-tech-content {
    position: relative;
    z-index: 2;
}

.bento-tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.15);
}

.bento-tech-card:hover .bento-tech-bg {
    transform: scale(1.08);
}

/* Specific Grid Placements */
.bento-tech-card.tech-1 { grid-column: 1 / 3; grid-row: 1 / 3; } /* Large Left */
.bento-tech-card.tech-2 { grid-column: 3 / 5; grid-row: 1 / 2; } /* Wide Top Right */
.bento-tech-card.tech-3 { grid-column: 3 / 4; grid-row: 2 / 3; } /* Small Bottom Center */
.bento-tech-card.tech-4 { grid-column: 4 / 5; grid-row: 2 / 3; } /* Small Bottom Right */
.bento-tech-card.tech-5 { grid-column: 1 / 5; grid-row: 3 / 4; height: 250px; } /* Wide Bottom Full */

.bento-tech-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    text-align: left;
}

.bento-tech-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    text-align: left;
    margin-left: 0;
}

.bento-tech-content .neon-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: inline-block;
}

@media (max-width: 1024px) {
    .bento-tech-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-tech-card.tech-1, .bento-tech-card.tech-2, .bento-tech-card.tech-3, .bento-tech-card.tech-4, .bento-tech-card.tech-5 {
        grid-column: span 1;
        grid-row: auto;
        min-height: 300px;
        height: auto;
    }
    .bento-tech-card.tech-1 { grid-column: 1 / 3; }
    .bento-tech-card.tech-5 { grid-column: 1 / 3; }
}

@media (max-width: 600px) {
    .bento-tech-grid {
        grid-template-columns: 1fr;
    }
    .bento-tech-card.tech-1, .bento-tech-card.tech-2, .bento-tech-card.tech-3, .bento-tech-card.tech-4, .bento-tech-card.tech-5 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .floating-img-back, .floating-img-front { display: none; } /* Better readability on mobile */
    .scroll-story-section { min-height: 60vh; padding: 60px 0; }
    .video-text-mask { font-size: 4rem; }
}


/* ========================================
   APPLE PREMIUM DESIGN (Manifiesto Section)
   ======================================== */
.scroll-story-section {
    background: #000;
    min-height: 140vh; /* Extra height for scroll reveal */
    padding: 15vh 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.manifiesto-visual-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Base product image with cinematic mood */
.manifiesto-product-img {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.1);
    filter: brightness(0.2) saturate(0.8);
    transition: filter 1.5s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 10s linear;
    z-index: 2;
}

/* Light "Reveal" Mask */
.manifiesto-light-reveal {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 70%);
    opacity: 0.6;
    z-index: 3;
    pointer-events: none;
    transition: opacity 1s ease;
}

/* Typography Mastery - Refined */
.manifiesto-title {
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 5;
    margin-bottom: 1.5rem;
    pointer-events: none;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.manifiesto-description {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto 5rem;
    text-align: center;
    z-index: 5;
    position: relative;
    letter-spacing: 0.5px;
}

.manifiesto-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: center;
    z-index: 5;
}

.manifiesto-content-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 8vh auto 0;
    z-index: 5;
    position: relative;
}

/* Info Cards with Glassmorphism */
.manifiesto-detail-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 45px 35px;
    border-radius: 24px;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.manifiesto-detail-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: rgba(0, 229, 255, 0.3);
}

.detail-number {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 20px;
    opacity: 0.7;
    font-weight: bold;
}

.manifiesto-detail-card h4 {
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.manifiesto-detail-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin: 0;
}

/* Animation triggers for JS (GSAP) */
.manifiesto-active .manifiesto-product-img {
    filter: brightness(0.6) saturate(1.1);
    transform: translate(-50%, -50%) scale(1);
}

.manifiesto-active .manifiesto-light-reveal {
    opacity: 0.3;
}

@media (max-width: 900px) {
    .manifiesto-content-row { grid-template-columns: 1fr; gap: 40px; padding: 0 10%; }
    .manifiesto-title { font-size: 4.5rem; }
}

/* ============================
   CINEMATIC SALES CLOSER
   ============================ */

.cinematic-closer {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(ellipse at center bottom, rgba(0, 161, 224, 0.15) 0%, var(--bg-deep) 60%, #000814 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 0 80px 0;
}

#energyCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.relative-z { position: relative; z-index: 10; width: 100%; }

.closer-header { text-align: center; margin-bottom: 40px; }

.closer-header .cinematic-title,
.closer-header .subtitle-glow {
    animation: closerFadeIn 1.2s ease forwards;
}

@keyframes closerFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.cinematic-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
    text-shadow: 0 0 20px rgba(0, 161, 224, 0.6), 0 0 40px rgba(0, 229, 255, 0.3);
}

.subtitle-glow {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Scroll Indicator */
.scroll-instruction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulseScroll 2s infinite ease-in-out;
    margin-top: 40px; /* Space from timeline */
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    position: relative;
}
.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 16px; opacity: 0; }
}
@keyframes pulseScroll {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Horizontal Interactive Timeline */
.timeline-horizontal-container {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
}

.timeline-track {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.timeline-progress {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255,255,255,0.8);
}

.timeline-node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.node-dot {
    width: 16px; height: 16px;
    background: var(--bg-deep);
    border: 2px solid rgba(0, 161, 224, 0.4);
    border-radius: 50%;
    transition: all 0.4s ease;
    cursor: pointer;
}

.timeline-node.active .node-dot {
    border-color: #ffffff;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 40px rgba(255,255,255,0.4);
    transform: scale(1.3);
}

.timeline-info-card {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 280px;
    background: rgba(3, 45, 96, 0.6);
    border: 1px solid rgba(0, 161, 224, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
}

.timeline-node.active .timeline-info-card {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.6);
}

.node-number {
    font-size: 3.5rem; font-weight: 900;
    font-family: monospace;
    color: rgba(255,255,255,0.05);
    margin-bottom: 10px;
    display: block;
    transition: color 0.4s;
}
.timeline-node.active .node-number {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255,255,255,0.6);
}

.timeline-info-card h3 {
    font-size: 1rem; color: #fff; margin-bottom: 10px; font-weight: 800;
}
.timeline-info-card p {
    font-size: 0.85rem; color: rgba(255,255,255,0.6); margin: 0; line-height: 1.5;
}

/* CTA Pulse */
.cta-pulse-container { margin-top: 20px; margin-bottom: 40px; text-align: center; }
.btn-energy-pulse {
    position: relative;
    background: var(--cyan-glow);
    color: #000;
    border: none;
    padding: 20px 40px;
    font-size: 1.1rem;
    font-weight: 900;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6), 0 0 60px rgba(0, 229, 255, 0.3);
    animation: heartbeatSoft 2s infinite ease-in-out;
    transition: transform 0.2s;
}
.btn-energy-pulse:hover { transform: scale(1.05); }
.small-pulse { padding: 15px 30px; font-size: 1rem; }

@keyframes heartbeatSoft {
    0% { box-shadow: 0 0 25px rgba(0, 229, 255, 0.6), 0 0 60px rgba(0, 229, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 229, 255, 0.9), 0 0 80px rgba(0, 229, 255, 0.5); }
    100% { box-shadow: 0 0 25px rgba(0, 229, 255, 0.6), 0 0 60px rgba(0, 229, 255, 0.3); }
}

.shockwave {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}
.shockwave.active { animation: shock 0.6s ease-out; }
@keyframes shock {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 400px; height: 400px; opacity: 0; }
}

/* Smart Form Overlay */
.smart-form-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s;
}
.smart-form-overlay.visible { display: flex; opacity: 1; }
.smart-form-box {
    background: rgba(20,20,25,0.9);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 50px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.smart-form-overlay.visible .smart-form-box { transform: scale(1); }

.close-form {
    position: absolute; top: 20px; right: 20px;
    font-size: 2rem; color: #fff; cursor: pointer; opacity: 0.5;
}
.close-form:hover { opacity: 1; color: #ffffff; }

.step-form { display: none; }
.step-form.active { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

.smart-form-box h3 { font-size: 1.5rem; margin-bottom: 20px; }
.form-options button {
    display: block; width: 100%;
    padding: 15px; margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-size: 1rem; border-radius: 10px;
    cursor: pointer; transition: all 0.3s;
}
.form-options button:hover {
    background: rgba(255,255,255,0.1); border-color: #ffffff; transform: translateX(10px);
}

.neon-input {
    width: 100%; padding: 15px;
    background: rgba(0,0,0,0.5); border: 1px solid #333;
    color: #fff; font-size: 1.2rem; border-radius: 10px; margin: 20px 0;
    text-align: center; outline: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.neon-input:focus { border-color: #ffffff; box-shadow: 0 0 15px rgba(255,255,255,0.3); }

@media (max-width: 768px) {
    .timeline-horizontal-container {
        height: auto;
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 0 5%;
    }
    .timeline-track {
        position: relative;
        width: 100%;
        height: auto;
        background: none;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .timeline-progress {
        display: none;
    }
    .timeline-node {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100%;
    }
    .node-dot {
        display: none;
    }
    .timeline-info-card {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: rgba(3, 45, 96, 0.5);
        border: 1px solid rgba(0, 161, 224, 0.25);
        border-radius: 15px;
        padding: 25px;
        backdrop-filter: blur(15px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    .timeline-node.active .timeline-info-card {
        transform: none;
        border-color: rgba(255, 255, 255, 0.4);
    }
    .node-number {
        color: rgba(255, 255, 255, 0.15) !important;
        font-size: 2.5rem;
    }
    .timeline-info-card h3 {
        text-align: left;
    }
    .timeline-info-card p {
        text-align: left;
    }
    .btn-energy-pulse {
        padding: 16px 30px;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

/* =========================================
   BENTO GRID STYLES (HOME PAGE & PROJECTS)
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 1.5rem;
    width: 100%;
}
.bento-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.bento-item img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
    transition: transform 0.6s ease, opacity 0.6s ease;
}
.bento-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    z-index: 1;
}
.bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.15);
}
.bento-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}
.ALFA-badge {
    position: absolute;
    top: 25px; left: 25px;
    z-index: 2;
    background: rgba(0, 229, 255, 0.1);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
}
.bento-content {
    position: relative;
    z-index: 2;
}
.bento-content h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #00e5ff;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.1;
}
.bento-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

/* Grid Spans */
.bento-1 { grid-column: span 2; grid-row: span 2; }
.bento-2 { grid-column: span 2; grid-row: span 1; }
.bento-3 { grid-column: span 1; grid-row: span 1; }
.bento-4 { grid-column: span 1; grid-row: span 1; }

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 350px;
    }
    .bento-1, .bento-2, .bento-3, .bento-4 {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE FIX
   ======================================== */
@media (max-width: 768px) {

    /* --- NAVIGATION --- */
    .pill-nav {
        top: 12px;
        padding: 0.4rem 0.6rem 0.4rem 0.8rem;
        width: 94%;
    }
    .nav-brand {
        height: 30px;
    }
    .pill-nav .nav-brand {
        transform: translateX(-50%) scale(0.85);
    }
    .pill-nav.scrolled .nav-brand {
        transform: translateX(0) scale(0.85);
    }
    .nav-logo {
        height: 100% !important;
        max-height: 30px;
    }

    /* --- TYPOGRAPHY --- */
    h1 {
        font-size: clamp(2rem, 10vw, 3rem) !important;
        letter-spacing: -1px;
        word-break: break-word;
    }
    h2 {
        font-size: clamp(1.6rem, 7vw, 2.5rem) !important;
        line-height: 1.1;
    }
    h3 {
        font-size: 1.1rem;
    }
    p {
        font-size: 0.95rem;
    }

    /* --- HERO SECTION --- */
    .hero {
        height: 100svh;
    }
    .hero-content {
        padding: 0 5%;
    }
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem) !important;
    }
    .hero-subtitle,
    .hero-content p {
        font-size: 0.9rem !important;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    .word-gallery {
        height: 36px;
    }
    .word-list span {
        font-size: 0.8rem;
        height: 36px;
        line-height: 36px;
        letter-spacing: 4px;
    }
    @keyframes wordRotate {
        0%, 20% { transform: translateY(0); }
        25%, 45% { transform: translateY(-36px); }
        50%, 70% { transform: translateY(-72px); }
        75%, 95% { transform: translateY(-108px); }
        100% { transform: translateY(0); }
    }

    /* --- SECTIONS --- */
    section {
        padding: 80px 5% !important;
        min-height: auto;
    }

    /* --- STATS BAR --- */
    .stats-bar {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
        margin-top: 40px;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    /* --- WHATSAPP BUTTON --- */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    /* --- PROCESS STEPS --- */
    .process-flex {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .process-step {
        min-width: unset;
        width: 100%;
        max-width: 100%;
        padding: 2.5rem 2rem;
    }
    .step-num {
        font-size: 5rem;
    }

    /* --- GLASS CARDS --- */
    .glass-card {
        min-width: 100% !important;
        padding: 2rem;
    }
    .card-stack {
        gap: 20px;
    }

    /* --- LOCATION GRID --- */
    .location-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .location-card {
        height: 350px;
        padding: 1.5rem;
    }
    .location-card h3 {
        font-size: 1.5rem;
    }
    .location-card p {
        font-size: 0.85rem;
    }
    .location-features {
        gap: 12px;
    }
    .location-features span {
        font-size: 0.7rem;
    }

    /* --- EXPANDING FLEX CARDS --- */
    .flex-cards-container {
        height: 60vh;
    }
    .flex-card-content h3 {
        font-size: 1.2rem !important;
    }

    /* --- EXPANDING MODEL CARDS --- */
    .expanding-cards-container {
        height: auto;
        min-height: 70vh;
        padding: 0 4%;
        gap: 10px;
        margin: 30px 0 60px 0;
    }
    .expand-content h3 {
        font-size: 1.2rem !important;
        white-space: normal;
    }
    .expand-card:hover .expand-content h3,
    .expand-card.active .expand-content h3 {
        font-size: 1.8rem !important;
    }

    /* --- ECO BENTO GRID --- */
    .eco-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 15px;
    }
    .eco-card {
        grid-column: span 1 !important;
        grid-row: auto !important;
        min-height: 180px;
    }
    .eco-card-1 h3 {
        font-size: 1.3rem;
    }

    /* --- BENTO TECH GRID --- */
    .bento-tech-grid {
        grid-template-columns: 1fr !important;
    }
    .bento-tech-card.tech-1,
    .bento-tech-card.tech-2,
    .bento-tech-card.tech-3,
    .bento-tech-card.tech-4,
    .bento-tech-card.tech-5 {
        grid-column: 1 / -1 !important;
        min-height: 250px;
        height: auto !important;
    }

    /* --- PROJECT POST CARDS --- */
    .projects-post-grid {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
    }

    /* --- BUTTONS --- */
    .btn {
        padding: 1rem 2rem;
        font-size: 0.8rem;
    }

    /* --- SCROLL STORY / MANIFIESTO --- */
    .scroll-story-section {
        min-height: auto;
        padding: 60px 0;
    }
    .video-text-mask {
        font-size: 2.5rem !important;
    }

    /* --- FOOTER --- */
    footer {
        padding: 60px 5% !important;
    }
    footer .container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem !important;
    }

    /* --- CINEMATIC MANIFESTO --- */
    .manifesto-title {
        font-size: 2.5rem !important;
    }

    /* --- MENU OVERLAY --- */
    .menu-content a {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .menu-close {
        top: 1.5rem;
        right: 5%;
    }
}

/* Extra small phones */
@media (max-width: 400px) {
    h1 {
        font-size: 1.8rem !important;
    }
    h2 {
        font-size: 1.4rem !important;
    }
    .stat-number {
        font-size: 2rem;
    }
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.75rem;
    }
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
}

/* ========================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   Reduces GPU/CPU load by ~70-80% on mobile.
   These overrides selectively disable or
   simplify the most expensive visual effects.
   ======================================== */
@media (max-width: 768px) {

    /* CRITICAL: Ensure .reveal elements can be shown.
       IntersectionObserver adds .active class in JS,
       which uses this CSS transition to animate in. */
    .reveal {
        opacity: 0;
        transform: translateY(25px);
        /* Lighter transition than desktop (no blur) */
        transition: opacity 0.55s ease, transform 0.55s ease !important;
        filter: none !important; /* No blur on mobile */
    }
    .reveal.active {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* CRITICAL: Hero content is a .reveal — make it visible
       immediately if JS fails (safety fallback) */
    .hero-content.reveal {
        /* Observer fires immediately for above-fold elements */
        opacity: 0;
        transform: translateY(20px);
    }

    /* 1. DISABLE FLOATING ORBS
       blur(180px) on fixed animated elements
       is the single biggest GPU killer on mobile */
    .orb {
        display: none !important;
    }

    /* 2. DISABLE FILM GRAIN OVERLAY
       SVG feTurbulence filter on a fixed
       full-page element is very expensive */
    body::after {
        display: none !important;
    }

    /* 3. FIX BACKGROUND-ATTACHMENT
       iOS Safari does not support fixed
       attachment efficiently — causes
       full repaint on every scroll frame */
    body {
        background-attachment: scroll !important;
    }

    /* 4. SIMPLIFY HERO REVEAL ANIMATION
       Remove blur() from the entry animation —
       GPU filter animations are costly on mobile */
    @keyframes heroReveal {
        0% {
            opacity: 0;
            transform: translateY(30px);
            /* No blur — too expensive on mobile */
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* 5. DISABLE ANIMATED TEXT GRADIENT
       Continuous background-position animation
       on a large gradient text is GPU intensive */
    .video-text-mask {
        animation: none !important;
        background: linear-gradient(135deg, var(--accent-blue), #ffffff) !important;
        background-clip: text !important;
        -webkit-background-clip: text !important;
    }

    /* 6. DISABLE HERO SLIDER SCALE ZOOM
       Animating transform: scale on a
       full-screen background image is heavy */
    .hero-slider .slide.active {
        transform: none !important;
    }
    .hero-slider .slide {
        transition: opacity 1.5s ease-in-out !important;
        /* Remove transform transition entirely */
    }

    /* 7. REDUCE backdrop-filter INTENSITY
       backdrop-filter: blur() is one of the
       most GPU-intensive CSS properties.
       We either remove or reduce it significantly. */

    /* Menu overlay: keep transition but simplify blur.
       The animation uses opacity transition which is
       CSS-only and still works fine on mobile. */
    .menu-overlay {
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        background: rgba(5, 5, 10, 0.94) !important;
        /* Keep the transition for open/close animation */
        transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
    }
    /* Ensure menu links still animate in when menu opens */
    .menu-overlay.active .menu-content a {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    .pill-nav.scrolled {
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
    }
    .manifiesto-detail-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(10, 20, 40, 0.92) !important;
    }
    .timeline-info-card {
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }
    .stats-bar {
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }
    .glass-card {
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }
    footer {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(0, 10, 30, 0.95) !important;
    }

    /* 8. SIMPLIFY CARD TRANSITIONS
       Reduce cubic-bezier complexity and
       duration on cards that don't need it */
    .flex-card {
        transition: flex 0.35s ease !important;
    }
    .flex-card-bg {
        transition: transform 0.35s ease !important;
    }
    .flex-card-overlay {
        transition: none !important;
    }
    .eco-card {
        transition: none !important;
    }
    .eco-card:hover,
    .eco-card .eco-img-bg {
        transition: none !important;
    }
    .bento-tech-card {
        transition: transform 0.25s ease !important;
    }
    .bento-tech-bg {
        transition: transform 0.25s ease !important;
    }
    .location-img {
        transition: none !important;
    }
    .location-card:hover .location-img {
        transform: none !important;
    }

    /* 9. DISABLE TECH ORB ANIMATIONS
       These float animations run continuously
       even in non-visible sections */
    .tech-orb {
        animation: none !important;
    }

    /* 10. DISABLE EXPENSIVE HOVER EFFECTS
        On touch devices, hover states can
        get stuck — also removes GPU cost */
    .eco-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    .bento-tech-card:hover {
        transform: none !important;
    }
    .glass-card:hover {
        transform: none !important;
    }
    .process-step:hover {
        transform: none !important;
    }

    /* 11. DISABLE PARALLAX IMAGES
        Will-change: transform is a hint
        to promote to GPU layer — on mobile
        this wastes memory */
    .parallax-element {
        will-change: auto !important;
        transform: none !important;
    }

    /* 12. SIMPLIFY CHAR REVEAL ANIMATION
        Per-character 3D rotation on mobile
        is unnecessary and slow */
    .char-reveal span {
        transform: translateY(20px) !important;
        /* Remove rotateX — no 3D on mobile */
        transition: opacity 0.4s ease, transform 0.4s ease !important;
    }

    /* 13. CANVAS ELEMENTS — hide when disabled by JS
        When JS disables canvas animations, hide
        the empty canvas elements to save memory.
        Note: #energyCanvas and #plexus-canvas have
        their own mobile versions and are NOT hidden here. */
    #spotlightCanvas,
    #brickCanvas {
        display: none !important;
    }

    /* 14. REDUCE SECTION TRANSITION COST
        Only remove the expensive filter and opacity
        transition from sections — NOT the transform
        as it's used by .reveal inside sections */
    section {
        /* Keep transform for reveal children,
           disable the expensive filter+opacity ones */
        transition: none !important;
        filter: none !important;
        opacity: 1 !important; /* Never hide sections themselves */
    }

    /* 15. DISABLE ORB FLOAT ANIMATION
        Even if orbs exist on other pages, stop animation */
    @keyframes orbFloat {
        0%, 100% { transform: none; }
    }

    /* 16. DISABLE WHATSAPP PULSE RING
        Subtle animation but runs constantly */
    .whatsapp-float {
        animation: none !important;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5) !important;
    }

    /* 17. SIMPLIFY CTA BUTTON PULSE
        Box-shadow animation is GPU intensive */
    .btn-energy-pulse {
        animation: none !important;
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.5) !important;
    }
}
