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

:root {
    --bg-dark: #000000;
    --bg-surface: #050505;
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    
    --accent-teal: #06b6d4;
    --accent-emerald: #10b981;
    --accent-purple: #8b5cf6;

    --font-display: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

body { background-color: var(--bg-dark); color: var(--text-primary); font-family: var(--font-display); overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ═══════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════ */
.preloader { position: fixed; inset: 0; background: var(--bg-dark); z-index: 100000; display: flex; justify-content: center; align-items: center; }
.preloader-shape { width: 2px; height: 0%; background: var(--text-primary); position: absolute; }
.preloader-text { font-family: var(--font-mono); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0; }

/* ═══════════════════════════════════════════
   NOISE TEXTURE (TRUE PHYSICAL GLASS FEEL)
   ═══════════════════════════════════════════ */
.noise-overlay {
    position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.4; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════
   WEBGL / 3D CANVAS & AURORA
   ═══════════════════════════════════════════ */
#webgl-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.aurora-container { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.aurora-gradient {
    position: absolute; width: 150vw; height: 150vh; top: -25vh; left: -25vw;
    background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2), transparent 50%);
    filter: blur(120px); opacity: 0; transition: opacity 0.3s; mix-blend-mode: screen;
}
.aurora-secondary {
    position: absolute; width: 80vw; height: 80vh; top: 10vh; left: 10vw;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.15), transparent 60%);
    filter: blur(80px); mix-blend-mode: screen;
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════ */
.cursor-dot {
    position: fixed; top: 0; left: 0; width: 8px; height: 8px; background: var(--text-primary);
    border-radius: 50%; pointer-events: none; z-index: 99999;
    transition: width 0.3s, height 0.3s, background 0.3s; mix-blend-mode: difference;
}
.cursor-ring {
    position: fixed; top: 0; left: 0; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%; pointer-events: none; z-index: 99998;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-dot.hovering { width: 0; height: 0; }
.cursor-ring.hovering { width: 90px; height: 90px; border-color: var(--accent-teal); background: rgba(6, 182, 212, 0.15); }

/* ═══════════════════════════════════════════
   DECK OF CARDS LAYOUT
   ═══════════════════════════════════════════ */
.main-wrapper { position: relative; z-index: 10; transform-origin: center center; will-change: transform, filter; }
.deck-section { position: sticky; top: 0; width: 100%; }
.inner-deck {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding: 10vw 5vw; background: var(--bg-dark); border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transform-origin: top center; will-change: transform, opacity;
}
.inner-deck.hero { background: transparent; }
.inner-deck.surface { background: rgba(10, 10, 10, 0.95); }

.draw-line { position: absolute; background: rgba(255, 255, 255, 0.1); }
.draw-line-h { width: 100%; height: 1px; left: 0; transform-origin: left; transform: scaleX(0); }
.draw-line-v { width: 1px; height: 100%; top: 0; transform-origin: top; transform: scaleY(0); }

/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */
.text-label { font-family: var(--font-mono); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--accent-teal); display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.text-label::before { content: ''; width: 20px; height: 1px; background: var(--accent-teal); }
.text-huge { font-size: clamp(4rem, 10vw, 13rem); font-weight: 800; line-height: 0.85; letter-spacing: -0.05em; text-transform: uppercase; }
.text-title { font-size: clamp(3rem, 5vw, 6.5rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; }
.text-subtitle { font-size: clamp(1.5rem, 2.5vw, 3rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 1.5rem; }
.text-body { font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.7; color: var(--text-muted); max-width: 650px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.scramble-text { display: inline-block; }
.line-wrapper { overflow: hidden; padding-bottom: 5px; margin-bottom: -5px; }

/* ═══════════════════════════════════════════
   NAVIGATION & UI CONTROLS
   ═══════════════════════════════════════════ */
.nav-bar { position: fixed; top: 0; left: 0; width: 100%; padding: 2vw 4vw; display: flex; justify-content: space-between; align-items: center; z-index: 9900; mix-blend-mode: difference; transition: padding 0.5s; }
.nav-bar.scrolled { padding: 1vw 4vw; }
.nav-logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    letter-spacing: -0.02em; 
    display: inline-block;
    background: linear-gradient(90deg, #00f0ff, #8b5cf6, #ff0055, #00ff88, #00f0ff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: navGradient 6s linear infinite;
    transform-style: preserve-3d;
}
@keyframes navGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.nav-dot { -webkit-text-fill-color: var(--text-primary); }
.nav-links { display: flex; gap: 4vw; font-family: var(--font-mono); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-links a { color: var(--text-primary); text-decoration: none; position: relative; padding: 5px 0; transition: color 0.3s; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 1px; background: var(--text-primary); transition: width 0.4s; }
.nav-links a:hover::after, .nav-links a.active-link::after { width: 100%; }
.nav-links a.active-link { color: var(--accent-teal); }
.nav-links a.active-link::after { background: var(--accent-teal); }

/* Global Settings Nav (Sound & Translation) */
.settings-nav { display: flex; gap: 2vw; margin-left: 2vw; border-left: 1px solid rgba(255,255,255,0.2); padding-left: 2vw; }
.setting-btn { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); background: transparent; border: none; cursor: none; outline: none; transition: color 0.3s; }
.setting-btn:hover, .setting-btn.active { color: var(--accent-teal); }
.setting-btn span { color: var(--text-primary); }

/* ═══════════════════════════════════════════
   LAYOUT GRIDS & LIQUID IMAGES
   ═══════════════════════════════════════════ */
.flex-split { display: flex; gap: 6vw; align-items: center; }
.flex-split > div { flex: 1; }
.img-frame { border-radius: 24px; overflow: hidden; position: relative; width: 100%; aspect-ratio: 4/3; transform-style: preserve-3d; perspective: 1000px; border: 1px solid var(--glass-border); }
.img-frame img { width: 100%; height: 120%; object-fit: cover; transition: transform 1.2s, filter 1.2s; filter: grayscale(40%) brightness(0.9); }
.liquid-img:hover img { transform: scale(1.05) rotateZ(1deg); filter: grayscale(0%) brightness(1.1) url('#liquidFilter'); }

/* ═══════════════════════════════════════════
   GLASSMORPHISM GRID (TRUE 3D ENHANCED)
   ═══════════════════════════════════════════ */
.glass-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2vw; margin-top: 4vw; }
.glass-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 32px; padding: 4vw; display: flex; flex-direction: column; justify-content: space-between; min-height: 400px; position: relative; overflow: hidden; 
    transform-style: preserve-3d; text-decoration: none; color: var(--text-primary);
}
.glass-card::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, rgba(6, 182, 212, 0.4), transparent 30%);
    opacity: 0; transition: opacity 0.5s; pointer-events: none; animation: rotate 10s linear infinite; mix-blend-mode: screen;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
.glass-card:hover::after { opacity: 1; }
.glass-col-4 { grid-column: span 4; }
.glass-col-6 { grid-column: span 6; }
.glass-col-8 { grid-column: span 8; }
.glass-col-12 { grid-column: span 12; }

.glass-card-title { font-size: 2.2rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: -0.02em; transform: translateZ(30px); }
.glass-card p { transform: translateZ(20px); }
.glass-card-icon { font-family: var(--font-mono); font-size: 1.5rem; color: var(--accent-teal); align-self: flex-end; display: flex; align-items: center; gap: 10px; margin-top: 2rem; transform: translateZ(40px); }
.icon-asterisk { display: inline-block; animation: spin 8s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   NEW EXTENSIONS (ROSTER, TEAM, TECH, METRICS)
   ═══════════════════════════════════════════ */
.client-roster { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 5vw; border-top: 1px solid var(--glass-border); border-left: 1px solid var(--glass-border); }
.client-logo { border-right: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); padding: 4vw; display: flex; justify-content: center; align-items: center; filter: grayscale(1) opacity(0.5); transition: filter 0.4s; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.client-logo:hover { filter: grayscale(0) opacity(1); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2vw; margin-top: 5vw; }
.team-card { text-decoration: none; color: var(--text-primary); }
.team-img { border-radius: 16px; overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--glass-border); margin-bottom: 1.5rem; }
.team-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: transform 0.8s, filter 0.8s; }
.team-card.liquid-img:hover .team-img img { transform: scale(1.05); filter: grayscale(0%) url('#liquidFilter'); }
.team-name { font-size: 1.4rem; font-weight: 600; }
.team-role { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-teal); text-transform: uppercase; margin-top: 0.5rem; }

.tech-stack { display: flex; flex-wrap: wrap; gap: 1vw; margin-top: 4vw; }
.tech-pill { border: 1px solid var(--glass-border); padding: 1vw 2vw; border-radius: 50px; font-family: var(--font-mono); font-size: 1.1rem; text-transform: uppercase; transition: background 0.3s, border-color 0.3s; }
.tech-pill:hover { background: rgba(6, 182, 212, 0.1); border-color: var(--accent-teal); }

.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; margin-top: 5vw; }
.metric-number { font-size: clamp(4rem, 8vw, 10rem); font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--text-primary); line-height: 1; letter-spacing: -0.05em; margin-bottom: 1rem; }
.metric-label { font-family: var(--font-mono); font-size: 1.1rem; color: var(--accent-teal); text-transform: uppercase; }

.kinetic-values { display: flex; flex-direction: column; gap: 2vh; margin-top: 5vw; text-align: center; }
.kinetic-word { font-size: clamp(5rem, 12vw, 15rem); font-weight: 900; line-height: 0.8; letter-spacing: -0.06em; opacity: 0.1; transition: opacity 0.4s; }
.kinetic-word:hover { opacity: 1; color: var(--accent-teal); }

/* ═══════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════ */
.process-list { margin-top: 4vw; display: flex; flex-direction: column; gap: 2vw; }
.process-item { display: grid; grid-template-columns: 80px 1fr 1fr; align-items: start; padding: 3vw 0; border-top: 1px solid var(--glass-border); gap: 4vw; }
.process-num { font-family: var(--font-mono); font-size: 1.5rem; color: var(--accent-teal); }
.process-title { font-size: 2.5rem; font-weight: 600; }

/* ═══════════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════════ */
.gallery-container { width: 100%; display: flex; flex-direction: column; gap: 12vh; margin-top: 5vw; }
.gallery-item { display: flex; align-items: center; gap: 6vw; }
.gallery-item:nth-child(even) { flex-direction: row-reverse; }
.gallery-img-wrap { flex: 1.2; position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 16/10; transform-style: preserve-3d; perspective: 1000px; border: 1px solid var(--glass-border); }
.gallery-img-wrap img { width: 100%; height: 120%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s; filter: grayscale(50%) brightness(0.8); }
.gallery-img-wrap.liquid-img:hover img { transform: scale(1.05) rotateZ(1deg); filter: grayscale(0%) brightness(1.1) url('#liquidFilter'); }
.gallery-content { flex: 1; }
.gallery-num { font-family: var(--font-mono); font-size: 1rem; color: var(--accent-teal); margin-bottom: 1.5rem; display: inline-block; border: 1px solid var(--accent-teal); padding: 6px 12px; border-radius: 50px; }

/* ═══════════════════════════════════════════
   TESTIMONIALS & INSIGHTS
   ═══════════════════════════════════════════ */
.testimonial-block { margin-top: 5vw; text-align: center; max-width: 900px; margin-inline: auto; }
.testimonial-quote { font-size: clamp(2rem, 3.5vw, 4rem); font-weight: 500; line-height: 1.3; margin-bottom: 3rem; }
.testimonial-author { font-family: var(--font-mono); font-size: 1.1rem; color: var(--accent-teal); text-transform: uppercase; letter-spacing: 0.1em; }
.testimonial-company { font-size: 1rem; color: var(--text-muted); margin-top: 0.5rem; }

.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw; margin-top: 5vw; }
.insight-card { display: block; text-decoration: none; color: var(--text-primary); }
.insight-img { width: 100%; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; margin-bottom: 1.5rem; border: 1px solid var(--glass-border); }
.insight-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s, filter 0.6s; filter: grayscale(30%); }
.insight-card.liquid-img:hover .insight-img img { transform: scale(1.05); filter: grayscale(0%) url('#liquidFilter'); }
.insight-meta { font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent-teal); margin-bottom: 0.8rem; text-transform: uppercase; }
.insight-title { font-size: 1.8rem; font-weight: 600; line-height: 1.3; }

/* ═══════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════ */
.marquee-wrap { width: 100vw; margin-left: -5vw; padding: 3vw 0; border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); overflow: hidden; display: flex; white-space: nowrap; margin-top: 8vw; }
.marquee-content { display: flex; animation: marquee 30s linear infinite; }
.marquee-text { font-family: var(--font-display); font-size: 5rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2); padding-right: 4vw; display: flex; align-items: center; }
.marquee-text span { color: var(--accent-teal); -webkit-text-stroke: 0; margin: 0 4vw; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 5vw; background: var(--bg-dark); }
.footer-massive { font-size: 16vw; font-weight: 900; line-height: 0.8; text-align: center; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.15); transition: color 0.5s, -webkit-text-stroke 0.5s; position: relative; z-index: 2; }
.footer-massive:hover { color: var(--text-primary); -webkit-text-stroke: 0px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 5vw; padding-top: 3vw; border-top: 1px solid var(--glass-border); font-family: var(--font-mono); font-size: 1rem; color: var(--text-muted); }
.footer-link { color: var(--text-muted); text-decoration: none; margin-left: 3vw; transition: color 0.3s; }
.footer-link:hover { color: var(--text-primary); }
