/* ========================================================================
   THEBRUSA — V2.5 SCENES (Editorial Tech Journey)
   ======================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');

:root {
    /* SCENE BACKGROUNDS (The Journey) */
    --scene-1: #0A0A0A; /* Hero / Confusion (Lighter than absolute black) */
    --scene-2: #121212; /* Awareness / Philosophy */
    --scene-3: #1A1A1A; /* Method / Services */
    --scene-4: #F5F5F7; /* Proof / Cases (The Light Break) */
    --scene-5: #0A0A0A; /* Trust / CTA (The Void) */

    /* Typography Colors (Dark Mode) */
    --text-primary: #FFFFFF;
    --text-secondary: #D1D1D1; /* Brighter */
    --text-subtle: #999999; /* Brighter */
    
    /* Typography Colors (Light Mode - Scene 4) */
    --text-light-primary: #111111;
    --text-light-secondary: #555555;
    --text-light-subtle: #888888;
    
    /* Warm Gold Accent */
    --accent: #C5A059;
    --accent-hover: #D4B271;
    --accent-glow: rgba(197, 160, 89, 0.12);

    /* Borders */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border-dark: rgba(0, 0, 0, 0.1);

    --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
    --max-width: 1200px;
    --section-padding: 160px 5%;
}

/* ========================================================================
   BASE & TEXTURE
   ======================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; background-color: var(--scene-1); }

body {
    background-color: var(--scene-1); /* Default starting point */
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.7;
    font-size: 1.05rem;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 1.5s var(--ease-editorial);
}

/* Noise overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 { font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease-editorial); }
.section-padding { padding: var(--section-padding); }

/* ========================================================================
   COMPONENTS
   ======================================================================== */
.editorial-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-subtle);
    display: block;
}

/* Light mode label */
.scene-light .editorial-label { color: var(--text-light-subtle); }

.btn-editorial {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--text-primary);
    padding: 14px 32px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.4s var(--ease-editorial);
    cursor: pointer;
}
.btn-editorial:hover { background: var(--text-primary); color: var(--scene-1); }

.btn-editorial.primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-editorial.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ========================================================================
   ANIMATIONS & REVEALS
   ======================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
    transition: opacity 1.2s var(--ease-editorial), transform 1.2s var(--ease-editorial), filter 1.2s var(--ease-editorial);
}
.reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ========================================================================
   HEADER & NAV (Mobile Fullscreen Menu Added)
   ======================================================================== */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 30px 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
}
.logo img { height: 24px; width: auto; display: block; filter: invert(1); }

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-link { font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); }
.nav-link:hover { color: var(--text-primary); }
.lang-toggle { display: flex; gap: 8px; font-size: 0.75rem; color: var(--text-subtle); }
.lang-btn { background: none; border: none; color: inherit; font-family: inherit; font-size: inherit; cursor: pointer; transition: color 0.3s; }
.lang-btn.active { color: var(--text-primary); font-weight: 500; }

/* ========================================================================
   SCENES (Layouts)
   ======================================================================== */
.layout-center { max-width: 800px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.layout-asymmetric { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 3fr 7fr; gap: 60px; }

/* SCENE 1: HERO & PROBLEM */
.scene-1 { background: var(--scene-1); position: relative; }
.hero { height: 100vh; min-height: 700px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-parallax-bg {
    position: absolute; top: -10%; left: 0; width: 100%; height: 120%;
    background-size: cover; background-position: center 25%;
    opacity: 0.35; mix-blend-mode: luminosity; z-index: 0; pointer-events: none;
}
.hero-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 70vw; height: 70vw; background: radial-gradient(circle, var(--accent-glow) 0%, rgba(9,9,9,0) 65%);
    filter: blur(80px); z-index: 0; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-title { font-size: clamp(4rem, 12vw, 12rem); font-weight: 500; letter-spacing: -0.04em; line-height: 0.9; color: var(--text-primary); }

.problem { padding-top: 100px; padding-bottom: 200px; }
.problem-lead { font-size: clamp(1.5rem, 3vw, 2.5rem); color: var(--text-primary); margin-bottom: 40px; }
.problem-lines p { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--text-secondary); font-weight: 400; margin-bottom: 16px; }
.scene-hook { font-size: 1.5rem; font-weight: 500; color: var(--accent); margin-top: 60px; } /* Pulls into next section */

/* SCENE 2: AWARENESS / PHILOSOPHY */
.scene-2 { background: var(--scene-2); padding-bottom: 200px;}
.philosophy-list { display: flex; flex-direction: column; }
.philosophy-item {
    font-size: clamp(1.2rem, 2.5vw, 2rem); color: var(--text-secondary);
    padding: 30px 0; border-bottom: 1px solid var(--border-light);
    display: flex; gap: 20px; align-items: baseline;
    transition: color 0.4s var(--ease-editorial);
}
.philosophy-item:first-child { border-top: 1px solid var(--border-light); }
.philosophy-item:hover { color: var(--text-primary); }
.phil-num { font-size: 0.8rem; font-weight: 500; color: var(--text-subtle); }

/* SCENE 3: METHOD & SERVICES */
.scene-3 { background: var(--scene-3); padding-bottom: 200px; }

/* Timeline Interactive */
.timeline { position: relative; max-width: 600px; margin: 80px auto 0; text-align: left; }
.timeline-track {
    position: absolute; top: 0; left: 24px; width: 2px; height: 100%;
    background: var(--border-strong);
}
.timeline-progress {
    position: absolute; top: 0; left: 24px; width: 2px; height: 0%;
    background: var(--accent); transition: height 0.1s linear;
}
.timeline-step { position: relative; padding-left: 80px; padding-bottom: 80px; }
.timeline-step::before {
    content: ''; position: absolute; top: 6px; left: 20px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--scene-3); border: 2px solid var(--text-subtle);
    transition: all 0.4s; z-index: 2;
}
.timeline-step.active::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.step-title { font-size: 1.5rem; color: var(--text-primary); margin-bottom: 12px; transition: color 0.3s; }
.timeline-step.active .step-title { color: var(--accent); }

/* Services Hover Reveal */
.service-block { margin-bottom: 60px; padding: 40px; border: 1px solid transparent; border-radius: 8px; transition: all 0.5s var(--ease-editorial); position: relative; }
.service-block:hover { background: rgba(255,255,255,0.02); border-color: var(--border-light); }

.service-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0; transition: margin 0.5s; }
.service-content {
    max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-10px);
    transition: all 0.5s var(--ease-editorial);
    display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 0;
}
.service-block:hover .service-title { margin-bottom: 30px; }
.service-block:hover .service-content { max-height: 500px; opacity: 1; transform: translateY(0); margin-top: 30px; }

.service-part { border-left: 1px solid var(--border-light); padding-left: 20px; }
.service-part-text { font-size: 1.15rem; color: var(--text-secondary); }
.service-part-text strong { color: var(--text-primary); font-weight: 500; }

/* Hover Image Preview (Hidden for now to prevent overlap bugs) */
.service-img-preview {
    display: none;
}


/* SCENE 4: PROOF (The Light Break) */
.scene-4 {
    background: var(--scene-4); color: var(--text-light-primary);
    transition: background 1.5s var(--ease-editorial);
}
.scene-4 h2 { color: var(--text-light-primary); }
.scene-4 p { color: var(--text-light-secondary); }

.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; width: 100%; max-width: 1200px; }
.case-card {
    background: #FFFFFF; border: 1px solid var(--border-dark); padding: 40px;
    border-radius: 4px; cursor: pointer; transition: all 0.4s var(--ease-editorial);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.case-metric { font-size: 2.5rem; font-weight: 400; color: var(--text-light-primary); display: block; margin-bottom: 10px; }
.case-industry { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light-subtle); }
.case-desc { margin-top: 16px; font-size: 1rem; color: var(--text-light-secondary); }
.case-btn { margin-top: 24px; font-size: 0.85rem; font-weight: 500; color: var(--accent); display: flex; align-items: center; gap: 8px; }

/* Modals */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
    z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.5s;
    display: flex; align-items: center; justify-content: center;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: var(--scene-2); width: 100%; max-width: 800px;
    max-height: 90vh; overflow-y: auto;
    padding: 60px; border-radius: 8px; border: 1px solid var(--border-strong);
    transform: translateY(20px); transition: transform 0.5s var(--ease-editorial);
    position: relative; color: var(--text-primary);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 30px; right: 30px; background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.modal-section-title { font-size: 0.75rem; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 8px; }
.modal-text { font-size: 1.1rem; color: var(--text-secondary); }

/* SCENE 5: TRUST & CTA */
.scene-5 { background: var(--scene-5); padding-bottom: 160px; }
.cta-lead { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; margin-bottom: 24px; }
.cta-body { font-size: 1.1rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto 50px; }
.cta-assurance { font-size: 0.8rem; color: var(--text-subtle); margin-top: 20px; display: block; }

.footer { border-top: 1px solid var(--border-light); padding: 60px 5%; }
.footer-layout { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .layout-asymmetric { grid-template-columns: 1fr; gap: 40px; }
    .cases-grid { grid-template-columns: 1fr; }
    .service-img-preview { display: none; } /* Hide hover images on tablet/mobile */
    .modal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    :root { --section-padding: 80px 5%; }
    .navbar { mix-blend-mode: normal; background: rgba(10,10,10,0.8); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-links a { display: none; } /* Hide links but keep lang toggle */
    .lang-toggle { margin-left: 0; }
    
    .layout-asymmetric { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { letter-spacing: -0.02em; }
    .section-padding { padding: 80px 5%; }
    
    .service-block { grid-template-columns: 1fr; gap: 10px; }
    
    .hero-glow { width: 120vw; height: 120vw; }
    .footer-layout { flex-direction: column; gap: 30px; text-align: center; }
    .modal-content { padding: 30px; margin: 15px; width: auto; }
    .modal-grid { grid-template-columns: 1fr; gap: 30px; }
}
