@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

/* ==========================================
   GLOBAL VARIABLES & THEME (Prestige Gold)
   ========================================== */
:root {
    --bg-dark: #000000; /* Pure Black Void */
    --text-main: #FFFFFF; /* Pure White */
    --text-muted: #999999; /* Neutral Gray */
    --accent-primary: #D4AF37; /* Celestial Gold */
    --accent-secondary: #F3E5AB; /* Light Champagne Gold */
    
    --font-head: 'DIN Alternate', 'Bahnschrift', sans-serif;
    --font-head-italic: 'Instrument Serif', serif;
    --font-body: 'DIN Alternate', 'Bahnschrift', sans-serif;
    
    --glass-bg: rgba(20, 20, 25, 0.4); /* Space Grey Tint */
    --glass-border: rgba(255, 255, 255, 0.05); /* Faint Starlight Border */
}



* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { overflow-anchor: none; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: clip;
}

.wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 50px; position: relative; z-index: 2; }
.section-header h2 { font-family: var(--font-head); font-size: 3rem; margin-bottom: 15px; }
.section-header h2 em, .section-title em, h1 em, h2 em { font-style: normal; color: var(--accent-primary); font-weight: inherit; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }
.section-title { 
    font-family: var(--font-head); 
    font-size: 3.5rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    color: var(--text-main); 
    margin-bottom: 2rem; 
    display: inline-block; 
}
.section-title::before { 
    content: ''; 
    display: block; 
    width: 40px; 
    height: 2px; 
    background: var(--accent-primary); 
    margin-bottom: 15px; 
}

/* Scroll Reveal Base Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   AMBIENT BACKGROUND AURAS
   ========================================== */
.ambient-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; overflow: hidden; background: var(--bg-dark); }
.ambient-bg::before, .ambient-bg::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
}
.ambient-bg::before {
    background-image: radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,0.7) 1px, transparent 0), radial-gradient(1px 1px at 50% 80%, rgba(212,175,55,0.6) 1px, transparent 0), radial-gradient(1px 1px at 80% 30%, rgba(255,255,255,0.5) 1px, transparent 0);
    background-size: 300px 300px;
    opacity: 0.5;
    animation: starsDrift 150s linear infinite;
}
.ambient-bg::after {
    background-image: radial-gradient(1px 1px at 45% 45%, rgba(212,175,55,0.5) 1px, transparent 0), radial-gradient(2px 2px at 85% 75%, rgba(255,255,255,0.4) 1px, transparent 0);
    background-size: 400px 400px;
    opacity: 0.4;
    animation: starsDrift 200s linear infinite reverse;
}
@keyframes starsDrift { 0% { background-position: 0 0; } 100% { background-position: 1000px 500px; } }

.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.8; }
.orb-1 { width: 500px; height: 500px; top: -200px; left: -200px; background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%); animation: float 15s ease-in-out infinite; }
.orb-2 { width: 700px; height: 700px; bottom: -300px; right: -200px; background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%); animation: float 20s ease-in-out infinite reverse; }

/* Light Theme Overrides */
[data-theme="light"] .orb-1 { background: radial-gradient(circle, rgba(255, 127, 80, 0.15) 0%, transparent 70%); }
[data-theme="light"] .orb-2 { background: radial-gradient(circle, rgba(197, 155, 39, 0.15) 0%, transparent 70%); }
@keyframes float { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.2) translate(40px, 40px); } }

/* ==========================================
   NAVIGATION & TOP BAR
   ========================================== */
.top-nav-wrapper { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; z-index: 1000; width: fit-content; }
.glass-capsule { 
    position: relative; background: transparent; border: 1px solid var(--glass-border); z-index: 1; 
    border-radius: 50px; padding: 12px 30px; display: flex; justify-content: center; align-items: center;
}
.glass-capsule::before { 
    content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--glass-bg); backdrop-filter: blur(20px) saturate(160%); z-index: -1; 
}
.nav-logo { position: fixed; top: 25px; left: 4vw; z-index: 1050; }
.logo-img { height: 45px; max-width: 220px; object-fit: contain; transition: opacity 0.3s ease; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5)); }
.logo-img:hover { opacity: 0.8; }
.nav-links { display: flex; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; margin-left: 20px; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-primary); }
.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--text-main); cursor: pointer; padding: 5px; outline: none; align-items: center; justify-content: center; }
.mobile-menu-btn svg { stroke: var(--text-main); }

/* Floating Theme Toggle */
.theme-toggle-floating {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px); color: var(--text-main); margin-left: 20px;
    transition: all 0.3s ease; cursor: pointer; text-decoration: none; position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.theme-toggle-floating:hover {
    transform: scale(1.1) rotate(15deg); border-color: var(--accent-primary);
}
.theme-toggle-floating svg {
    position: absolute; width: 22px; height: 22px; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
[data-theme="dark"] .sun-icon { opacity: 1; transform: scale(1) rotate(0); }
[data-theme="dark"] .moon-icon { opacity: 0; transform: scale(0) rotate(-90deg); }
[data-theme="light"] .sun-icon { opacity: 0; transform: scale(0) rotate(90deg); }
[data-theme="light"] .moon-icon { opacity: 1; transform: scale(1) rotate(0); }

/* ==========================================
   HERO SECTION
   ========================================== */
.hero { position: relative; padding: 180px 0 100px 0; text-align: center; overflow: hidden; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.hero-overlay { position: absolute; inset: 0; z-index: 5; background: radial-gradient(circle at center, rgba(5,5,7,0.1) 0%, rgba(5,5,7,0.85) 100%); pointer-events: none; transition: background 0.5s ease; }
[data-theme="light"] .hero-overlay { background: radial-gradient(circle at center, rgba(249,249,247,0.1) 0%, rgba(249,249,247,0.85) 100%); }
.hero-content { position: relative; z-index: 10; }

.hero h1 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px; letter-spacing:-0.02em; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.hero h1 em { font-style: normal; font-weight: inherit; color: var(--accent-primary); }
h1, h1.section-title { font-family: 'Poppins', sans-serif !important; font-weight: 700 !important; }
.hero h1.liquid-text { 
    background-image: linear-gradient(90deg, var(--text-main) 0%, var(--text-main) 30%, var(--accent-primary) 45%, var(--accent-secondary) 55%, var(--text-main) 70%, var(--text-main) 100%); 
    background-size: 300% auto; color: transparent; -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text; 
    animation: liquidFlow 4s linear infinite; /* Kept constant as requested */
}
@keyframes liquidFlow { 0% { background-position: 100% center; } 100% { background-position: 0% center; } }

.hero .desc { font-size: 1.15rem; font-weight: 500; color: var(--text-muted); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); max-width: 600px; margin: 0 auto 40px auto; line-height: 1.7; }

.cta-btn { 
    display: inline-block; padding: 16px 36px; background: var(--glass-bg); backdrop-filter: blur(10px); color: var(--text-main); 
    border: 1px solid var(--glass-border); border-radius: 30px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; 
}
.cta-btn:hover { border-color: var(--accent-primary); background: rgba(212, 175, 55, 0.05); box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); transform: translateY(-2px); color: var(--text-main); }

/* Parallax Pillars */
.pillar-container { position: absolute; inset: -20vh 0; display: flex; gap: 20px; z-index: 1; opacity: 0.6; justify-content: center; overflow: hidden; transform: rotate(-5deg) scale(1.2); pointer-events: none; }
.pillar { width: 300px; display: flex; flex-direction: column; gap: 20px; will-change: transform; }
.pillar-inner { display: flex; flex-direction: column; gap: 20px; animation: pillarAutoScroll 45s linear infinite; }
.pillar.reverse .pillar-inner { animation-direction: reverse; }
.pillar-img { width: 100%; height: 400px; background-size: cover; background-position: center; border-radius: 12px; filter: grayscale(80%) brightness(50%); transition: filter 0.8s ease; }
@keyframes pillarAutoScroll { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* ==========================================
   CAPABILITIES BENTO GRID
   ========================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.bento-wide {
    grid-column: 1 / -1;
}
.bento-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
}
.bento-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.bento-card:hover::before { opacity: 1; }
.bento-content h3 { font-family: var(--font-head); font-size: 1.8rem; color: var(--text-main); margin-bottom: 15px; }
.bento-content p { color: var(--text-muted); font-size: 1rem; margin-bottom: 30px; flex-grow: 1; text-align: justify; }
.bento-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}
.bento-link .arrow { transition: transform 0.3s ease; }
.bento-card:hover .bento-link .arrow { transform: translateX(5px); }

/* ==========================================
   SELECTED WORKS (Portfolio)
   ========================================== */
.portfolio-section { position: relative; clip-path: inset(0); background-color: var(--bg-dark); }
.focus-directory { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; position: relative; z-index: 2; padding: 40px 0; }
.dir-list { list-style: none; display: flex; flex-direction: column; gap: 30px; }
.dir-item { font-family: var(--font-head); font-size: 2.2rem; color: var(--text-muted); cursor: pointer; position: relative; padding-left: 25px; transition: all 0.4s ease; opacity: 0.5; }
.dir-item::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 0; height: 3px; background: var(--accent-primary); transition: width 0.4s ease; }
.dir-item:hover { color: var(--text-main); opacity: 1; transform: translateX(10px); }
.dir-item.active { color: var(--text-main); opacity: 1; transform: translateX(10px); text-shadow: 0 0 20px rgba(255,255,255,0.2); }
.dir-item.active::before { width: 15px; box-shadow: 0 0 10px var(--accent-primary); }
.dir-viewer { position: relative; min-height: 400px; }
.dir-panel { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.5s ease, transform 0.5s ease; transform: translateY(20px); }
.dir-panel.active { opacity: 1; pointer-events: auto; transform: translateY(0); position: relative; }
.fd-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 20px; }
.fd-carousel::-webkit-scrollbar { display: none; }
.fd-card { flex: 0 0 100%; scroll-snap-align: center; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.5); isolation: isolate; }
.fd-glass { position: absolute; inset: 0; background: rgba(5, 5, 7, 0.4); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: inherit; transition: all 0.5s ease; }
.fd-img { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(80%) brightness(40%); opacity: 0.7; z-index: -1; transition: all 0.5s ease; }
.fd-info { position: absolute; bottom: 30px; left: 30px; z-index: 10; transition: transform 0.4s; }
.fd-info h3 { font-family: var(--font-head); font-size: 2rem; margin-top: 5px; text-shadow: 0 5px 15px rgba(0,0,0,0.8); }
.fd-info p { color: var(--accent-secondary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-bottom: 0; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); width: 65px; height: 65px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); display: flex; align-items: center; justify-content: center; z-index: 10; opacity: 0; transition: all 0.4s ease; }
.play-btn svg { width: 24px; height: 24px; fill: var(--text-main); margin-left: 4px; }
.fd-card:hover .fd-glass { border-color: var(--accent-primary); background: transparent; backdrop-filter: blur(0px); }
.fd-card:hover .fd-img { filter: grayscale(0%) brightness(100%); opacity: 1; transform: scale(1.05); }
.fd-card:hover .play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 30px rgba(255,69,0,0.5); }
.fd-card:hover .fd-info { transform: translateY(-5px); }

/* Carousel prev/next arrows (injected by JS when a category has 2+ videos) */
.fd-carousel-wrap { position: relative; }
.fd-carousel-nav {
    position: absolute;
    top: calc(50% - 10px);
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 7, 0.55);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
}
.fd-carousel-nav:hover { background: var(--accent-primary); border-color: var(--accent-primary); color: #000; }
.fd-carousel-nav svg { width: 20px; height: 20px; }
.fd-carousel-nav.prev { left: -8px; }
.fd-carousel-nav.next { right: -8px; }
.fd-carousel-nav[disabled] { opacity: 0.3; pointer-events: none; }
.fd-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.fd-carousel-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glass-border); cursor: pointer; transition: all 0.3s ease; }
.fd-carousel-dots .dot.active { background: var(--accent-primary); width: 20px; border-radius: 4px; }

@media (max-width: 768px) {
    .fd-carousel-nav { width: 38px; height: 38px; }
    .fd-carousel-nav.prev { left: 4px; }
    .fd-carousel-nav.next { right: 4px; }
}

/* Comet Shower Physics */
.comet-wrapper { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.comet-shower { position: sticky; top: 0; width: 100%; height: 100vh; overflow: hidden; }
.comet { position: absolute; border-radius: 50px; filter: blur(8px); opacity: 0.6; will-change: transform; }

/* ==========================================
   OUR ROOTS (Film Strip)
   ========================================== */
.tape-section { position: relative; width: 100%; overflow: hidden; background: transparent; padding: 100px 0 150px 0; }

.film-strip { display: flex; background-color: #030303; padding: 30px 0; position: relative; width: max-content; will-change: transform; border-top: 2px solid var(--glass-border); border-bottom: 2px solid var(--glass-border); z-index: 5; margin-top: 40px; }
.film-strip::before, .film-strip::after { content: ''; position: absolute; left: 0; right: 0; height: 12px; background-image: repeating-linear-gradient(90deg, #000 0, #000 15px, transparent 15px, transparent 30px); background-color: #222; z-index: 10; }
.film-strip::before { top: 8px; }
.film-strip::after { bottom: 8px; }

.frame { position: relative; width: 500px; height: 350px; margin: 0 5px; background: #000; overflow: hidden; cursor: pointer; flex-shrink: 0; border-radius: 4px; }
.frame-img { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(100%) brightness(50%); transition: all 0.6s ease; transform: scale(1.05); }
.frame:hover .frame-img { filter: grayscale(0%) brightness(100%); transform: scale(1.15); }
.frame.selected { outline: 2px solid var(--accent-primary); outline-offset: -2px; }

.dir-item:focus-visible,
.frame:focus-visible,
.fd-card:focus-visible,
.close-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 4px;
}
.frame.selected .frame-img { filter: grayscale(0%) brightness(60%); }

/* Spotlight overlay: sits directly under <body>-level scope (see HTML comment),
   never inside the moving #tape-track, so position:fixed centres on the real viewport. */
.tape-spotlight {
    position: fixed; inset: 0; z-index: 1900;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.tape-spotlight.active { opacity: 1; pointer-events: auto; }

.spotlight-frame {
    position: relative;
    width: min(640px, 88vw);
    height: min(440px, 68vh);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 40px 100px rgba(0,0,0,0.85);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.tape-spotlight.active .spotlight-frame { transform: scale(1); opacity: 1; }

.spotlight-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.spotlight-info {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 30px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 30%, rgba(0,0,0,0));
}
.spotlight-info h3 { font-family: var(--font-head); font-size: 2.2rem; color: var(--accent-secondary); margin-bottom: 8px; }
.spotlight-info p { color: var(--text-main); font-size: 1rem; line-height: 1.6; max-width: 90%; }

.close-btn { position: absolute; top: 16px; right: 20px; color: var(--text-main); font-size: 2rem; font-weight: 300; opacity: 0.7; line-height: 1; transition: 0.3s; cursor: pointer; z-index: 30; }
.close-btn:hover { opacity: 1; color: var(--accent-primary); }

/* Video lightbox: opened from the portfolio play buttons */
.video-lightbox {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
    opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
    padding: 40px;
}
.video-lightbox.active { opacity: 1; pointer-events: auto; }
.video-lightbox-inner {
    position: relative;
    width: min(1000px, 90vw);
    aspect-ratio: 16/9;
    max-height: 85vh;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.85);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.video-lightbox.active .video-lightbox-inner { transform: scale(1); }
.video-lightbox-inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-lightbox .close-btn { top: 10px; right: 10px; color: #fff; background: rgba(0,0,0,0.5); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 40; }

@media (max-width: 768px) {
    .video-lightbox { padding: 12px; }
}

@media (max-width: 768px) {
    .spotlight-frame { width: 90vw; height: 60vh; }
    .spotlight-info { padding: 20px 24px; }
    .spotlight-info h3 { font-size: 1.6rem; }
}

/* ==========================================
   CLIENTELE SECTION (Infinite Marquee)
   ========================================== */
#clientele {
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(to bottom, rgba(20, 20, 25, 0.2) 0%, transparent 100%);
    position: relative;
    z-index: 2;
}
.marquee-container { width: 100%; position: relative; display: flex; flex-direction: column; gap: 30px; overflow: hidden; padding: 20px 0; }
.marquee-container::before, .marquee-container::after { content: ''; position: absolute; top: 0; bottom: 0; width: 150px; z-index: 5; pointer-events: none; }
.marquee-container::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.marquee-container::after { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; }
.track-left { animation: scrollLeft 40s linear infinite; }
.track-right { animation: scrollRight 40s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes scrollLeft { to { transform: translateX(-50%); } }
@keyframes scrollRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.client-logo { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 8px; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; width: 220px; height: 100px; padding: 20px; color: var(--text-muted); }
.client-logo img { max-width: 100%; max-height: 60px; object-fit: contain; filter: grayscale(100%) opacity(0.65) brightness(200%); transition: all 0.3s ease; }
.client-logo h3 { font-family: var(--font-head); font-size: 1.2rem; filter: grayscale(100%) opacity(0.5); transition: all 0.3s ease; }
.client-logo:hover { border-color: var(--accent-secondary); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1); transform: translateY(-3px); }
.client-logo:hover h3 { filter: grayscale(0%) opacity(1); color: var(--text-main); }
.client-logo:hover img { filter: grayscale(0%) opacity(1) brightness(100%); }

/* Light Theme Overrides for Client Logos */
[data-theme="light"] .client-logo img {
    filter: invert(1) grayscale(100%) opacity(0.7);
}
[data-theme="light"] .client-logo:hover img {
    filter: invert(1) grayscale(100%) opacity(1);
}

/* Mobile: static, well-lit logo cloud instead of a dark scrolling marquee.
   The infinite-scroll markup duplicates each 8-logo group so the loop is
   seamless; on mobile we only need the unique set, so the duplicated
   second half of each track is hidden. */
@media (max-width: 768px) {
    .marquee-container { overflow: visible; padding: 10px 0 0 0; gap: 16px; }
    .marquee-container::before, .marquee-container::after { display: none; }
    .marquee-track {
        animation: none !important;
        transform: none !important;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
    .marquee-track:nth-child(1) > .client-logo:nth-child(n+9),
    .marquee-track:nth-child(2) > .client-logo:nth-child(n+9) {
        display: none;
    }
    .client-logo {
        background: none;
        border: none;
        width: calc(33.333% - 10px);
        height: 60px;
        padding: 6px;
    }
    .client-logo:hover { transform: none; box-shadow: none; }
    .client-logo img {
        filter: grayscale(0%) opacity(0.85) brightness(100%);
        max-height: 44px;
    }
    [data-theme="light"] .client-logo img {
        filter: invert(0) grayscale(0%) opacity(0.85);
    }
}
@media (max-width: 480px) {
    .client-logo { width: calc(50% - 8px); height: 56px; }
    .client-logo img { max-height: 38px; }
}

/* ==========================================
   CONTACT EXPERIENCE (Constellation)
   ========================================== */
.contact-experience { position: relative; padding: 120px 0; background: var(--bg-dark); overflow: hidden; border-top: 1px solid var(--glass-border); }
#constellation-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h3 { font-family: var(--font-head); font-size: 2rem; margin-bottom: 20px; color: var(--text-main); }
.method-card { display: block; padding: 20px; border: 1px solid var(--glass-border); border-radius: 12px; margin-bottom: 20px; text-decoration: none; transition: 0.3s; background: var(--glass-bg); }
.method-card:hover { border-color: var(--accent-primary); background: rgba(212,175,55,0.05); }
.method-card .label { display: block; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; }
.method-card .value { color: var(--text-main); font-size: 1.2rem; font-weight: 600; font-family: var(--font-body); }

.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; box-sizing: border-box; padding: 15px; background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text-main); font-family: var(--font-body); font-size: 1rem; transition: all 0.3s ease; }
.contact-form select { color: var(--text-muted); cursor: pointer; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-secondary); background: var(--bg-dark); box-shadow: 0 0 20px rgba(255, 140, 0, 0.15); }
.submit-btn { padding: 16px; background: transparent; color: var(--text-main); border: 1px solid var(--accent-primary); border-radius: 8px; font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: all 0.3s ease; margin-top: 10px; backdrop-filter: blur(10px); }
.submit-btn:hover { background: rgba(212, 175, 55, 0.1); box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); transform: translateY(-2px); }

/* Form Status Message (Send Inquiry confirmation) */
.form-status {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-main);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.form-status.show { display: flex; opacity: 1; transform: translateY(0); }
.form-status .status-icon { width: 20px; height: 20px; flex-shrink: 0; }
.form-status.sending { color: var(--text-muted); }
.form-status.sending .status-icon { animation: statusSpin 0.9s linear infinite; }
@keyframes statusSpin { to { transform: rotate(360deg); } }
.form-status.success { border-color: var(--accent-primary); background: rgba(212, 175, 55, 0.08); color: var(--accent-secondary); box-shadow: 0 0 25px rgba(212, 175, 55, 0.12); }
.form-status.error { border-color: rgba(231, 76, 60, 0.5); background: rgba(231, 76, 60, 0.08); color: #ff9086; }

/* ==========================================
   FOOTER SECTION
   ========================================== */
.site-footer { background: var(--bg-dark); padding: 80px 0 60px 0; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-logo { height: auto; width: 100%; max-width: 250px; object-fit: contain; margin-bottom: 25px; }
.brand-tag { color: var(--text-muted); font-size: 1rem; white-space: nowrap; }
.footer-col h4 { font-family: var(--font-head); margin-bottom: 20px; font-size: 1.1rem; color: var(--text-main); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-primary); }
.social-links { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.social-links a { color: var(--text-main); text-decoration: none; font-weight: 500; transition: color 0.3s; display: flex; align-items: center; gap: 8px; }
.social-links a svg { width: 20px; height: 20px; transition: transform 0.3s ease; }
.social-links a:hover { color: var(--accent-secondary); }
.social-links a:hover svg { transform: scale(1.1); color: var(--accent-secondary); }
.footer-bottom { text-align: center; border-top: 1px solid var(--glass-border); padding-top: 30px; color: var(--text-muted); font-size: 0.85rem; }

/* ==========================================
   FLOATING WHATSAPP CTA
   ========================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    z-index: 900;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}
.floating-whatsapp svg { transition: transform 0.3s ease; }
.fw-text {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    transition: all 0.4s ease;
}
.floating-whatsapp:hover {
    width: 220px;
    padding: 0 20px;
    justify-content: center;
    gap: 12px;
}
.floating-whatsapp:hover .fw-text {
    opacity: 1;
    max-width: 150px;
}
.floating-whatsapp:hover svg { transform: scale(1.1); }

/* ==========================================
   SUB-PAGE LAYOUTS & MASONRY GRID
   ========================================== */
/* Old subpage rules removed to prevent conflicts with the new Sidebar Layout below */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.bento-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.bento-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0; transition: opacity 0.4s ease;
}
.bento-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.bento-card:hover::before { opacity: 1; }
.bento-content h3 { font-family: var(--font-head); font-size: 1.8rem; color: var(--text-main); margin-bottom: 15px; }
.bento-content p { color: var(--text-muted); font-size: 1rem; margin-bottom: 30px; flex-grow: 1; text-align: justify; }
.bento-link {
    color: var(--accent-primary); text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 10px;
    font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; margin-top: auto;
}
.bento-link::after { content: ''; position: absolute; inset: 0; z-index: 10; }
.bento-link .arrow { transition: transform 0.3s ease; }
.bento-card:hover .bento-link .arrow { transform: translateX(5px); }

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: minmax(180px, auto);
    grid-auto-flow: dense;
    gap: 30px;
    padding: 80px 0;
}
.masonry-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
    transform: scale(1.1);
    filter: grayscale(100%);
}
.masonry-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
    transform: translateY(-5px) scale(1.02);
}
.masonry-card:hover .card-img {
    opacity: 0.3;
    transform: scale(1);
    filter: grayscale(50%);
}
.masonry-card h4 { color: var(--accent-primary); font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 15px; line-height: 1.1; position: relative; z-index: 2; }
.masonry-card p { color: var(--text-muted); font-size: 1rem; position: relative; z-index: 2; text-shadow: 0 2px 10px rgba(0,0,0,0.8); text-align: justify; }
.card-wide { grid-column: span 2; }
.card-wide h4 { font-size: 2.2rem; }
.card-tall { grid-row: span 2; justify-content: flex-start; }
.card-huge { grid-column: span 2; grid-row: span 2; }
.card-huge h4 { font-size: 2.8rem; }

/* ==========================================
   SUB-PAGE HERO & NAVIGATION
   ========================================== */
.subpage-layout { display: grid; grid-template-columns: 1fr 3.5fr; gap: 4vw; align-items: start; padding-top: 150px; position: relative; z-index: 2; max-width: 100%; padding-left: 80px; padding-right: 80px; }
.capabilities-sidebar { position: sticky; top: 120px; border-right: 1px solid var(--glass-border); padding-right: 30px; height: calc(100vh - 150px); }
.back-nav-container { margin-bottom: 40px; }
.back-nav { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); text-decoration: none; font-weight: 600; padding: 10px 20px; border-radius: 30px; background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); transition: all 0.3s ease; }
.back-nav:hover { color: var(--bg-dark); background: var(--accent-primary); border-color: var(--accent-primary); transform: translateX(-5px); }

.capabilities-sidebar h3 { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.sidebar-links a { color: var(--text-main); text-decoration: none; font-size: 1.1rem; font-weight: 500; opacity: 0.5; transition: all 0.4s ease; position: relative; padding-left: 20px; display: block; }
.sidebar-links a::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 0; height: 2px; background: var(--accent-primary); transition: width 0.4s ease; }
.sidebar-links a:hover, .sidebar-links a.active { opacity: 1; color: var(--text-main); padding-left: 25px; }
.sidebar-links a.active::before { width: 12px; box-shadow: 0 0 10px var(--accent-primary); }

.subpage-hero { padding: 0 0 50px 0; text-align: left; border-bottom: 1px solid var(--glass-border); scroll-margin-top: 110px; }
.subpage-hero .section-title::before { display: none; }
.subpage-hero .desc { 
    max-width: 700px !important; 
    margin: 15px 0 0 0 !important; 
    animation: taglineFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}
@keyframes taglineFadeUp {
    0% { opacity: 0; transform: translateY(20px); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ==========================================
   RESPONSIVE DESIGN (MOBILE)
   ========================================== */
@media (max-width: 1050px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-col { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .footer-logo { max-width: 200px; }
}

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { justify-content: center !important; flex-direction: column; text-align: center; gap: 15px !important; }
    .bento-content p, .masonry-card p, .fd-info p { text-align: left; }
    .brand-tag { white-space: normal; }
    .focus-directory { grid-template-columns: 1fr; gap: 30px; }
    .card-wide, .card-tall, .card-huge { grid-column: span 1; grid-row: span 1; }
    .card-wide h4, .card-huge h4 { font-size: 1.6rem; }
    
    .subpage-layout { grid-template-columns: 1fr; padding-top: 120px; gap: 30px; padding-left: 20px; padding-right: 20px; }
    .capabilities-sidebar { position: relative; top: 0; height: auto; border-right: none; border-bottom: 1px solid var(--glass-border); padding-bottom: 30px; padding-right: 0; }
    .sidebar-links { flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .sidebar-links a { padding: 8px 15px; font-size: 0.95rem; background: var(--glass-bg); border-radius: 20px; border: 1px solid var(--glass-border); padding-left: 15px !important; }
    .sidebar-links a::before { display: none; }
    .sidebar-links a.active { border-color: var(--accent-primary); opacity: 1; }
    .subpage-hero { text-align: center; scroll-margin-top: 90px; }
}
@media (max-width: 768px) {
    .top-nav-wrapper { left: auto; right: 4vw; transform: none; top: 15px; }
    .nav-logo { top: 15px; left: 4vw; }
    .logo-img { max-width: 150px; height: 35px; }
    .back-nav-container { top: auto; }
    .back-nav { font-size: 0.85rem; padding: 8px 15px; }
    .hero h1 { font-size: 3rem; }
    .section-title { font-size: 2.5rem; }
    .mobile-menu-btn { display: flex; }
    .glass-capsule { padding: 8px 20px; }
    .nav-links { 
        position: fixed; top: 80px; left: 5vw; width: 90vw; flex-direction: column; padding: 20px; gap: 15px; 
        border-radius: 20px; z-index: 1000; background: rgba(5, 5, 7, 0.95); backdrop-filter: blur(20px); 
        border: 1px solid var(--glass-border); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: all 0.3s ease; 
    }
    [data-theme="light"] .nav-links { background: rgba(249, 249, 247, 0.95); }
    .nav-links.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .nav-links a { margin-left: 0; font-size: 1.1rem; width: 100%; text-align: center; padding: 10px 0; border-bottom: 1px solid var(--glass-border); }
    .frame { width: 320px; height: 240px; }
    .spotlight-info h3 { font-size: 1.8rem; }
    .client-logo { width: 150px; height: 80px; }
    
    .floating-whatsapp { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .floating-whatsapp:hover { width: 180px; padding: 0 15px; }
    .floating-whatsapp:hover .fw-text { font-size: 0.9rem; }
}

/* ==========================================
   COOKIE CONSENT UI
   ========================================== */
.cookie-banner {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(150%);
    width: 90vw; max-width: 600px;
    background: rgba(10, 10, 12, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 20px;
    padding: 25px; z-index: 10000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; gap: 15px;
    opacity: 0; pointer-events: none; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 85vh; overflow-y: auto;
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.cookie-content h4 { font-family: var(--font-head); font-size: 1.2rem; color: var(--text-main); margin-bottom: 5px; }
.cookie-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-btn { padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.3s ease; border: none; }
.cookie-btn.accept { background: var(--accent-primary); color: #000; }
.cookie-btn.accept:hover { background: var(--accent-secondary); }
.cookie-btn.reject { background: transparent; color: var(--text-muted); border: 1px solid var(--glass-border); }
.cookie-btn.reject:hover { background: rgba(255,255,255,0.1); color: var(--text-main); }
.cookie-btn.customize { background: transparent; color: var(--text-muted); text-decoration: underline; padding: 8px 0; margin-right: auto; }

.cookie-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    z-index: 10001; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.cookie-modal-overlay.show { opacity: 1; pointer-events: auto; }
.cookie-modal {
    background: var(--bg-dark); border: 1px solid var(--glass-border); border-radius: 20px;
    width: 90vw; max-width: 500px; padding: 30px;
    transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cookie-modal-overlay.show .cookie-modal { transform: scale(1); }
.cookie-modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--glass-border); padding-bottom: 15px; margin-bottom: 20px; }
.cookie-modal-header h3 { font-family: var(--font-head); font-size: 1.4rem; color: var(--text-main); }
.cookie-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.cookie-close:hover { color: var(--text-main); }
.cookie-option { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; gap: 15px; }
.cookie-option-info h5 { font-size: 1rem; color: var(--text-main); margin-bottom: 5px; }
.cookie-option-info p { font-size: 0.85rem; color: var(--text-muted); }
.cookie-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.2); transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: var(--text-main); transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent-primary); }
input:checked + .slider:before { transform: translateX(20px); background-color: #000; }
input:disabled + .slider { cursor: not-allowed; opacity: 0.5; }
.cookie-modal-footer { border-top: 1px solid var(--glass-border); padding-top: 20px; display: flex; justify-content: flex-end; gap: 10px; }
