/* css/main.css */

/* 1. INDUSTRIAL FONTS (Oswald & JetBrains Mono) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg: #050505;
    --card-bg: #0a0a0a;
    --text: #e0e0e0;
    --text-muted: #888888;
    --accent: #00a8c6;
    --accent-red: #ff3333;
    --border: #222;
    
    /* FONT VARIABLES */
    --font-main: 'Oswald', sans-serif;       /* HEADERS */
    --font-mono: 'JetBrains Mono', monospace; /* BODY */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: var(--font-mono); 
    overflow-x: hidden; 
    font-size: 14px; 
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- TYPOGRAPHY UTILS --- */
h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-main); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    line-height: 0.95; 
    font-weight: 700;
}

.mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0; }

.meta-tag { 
    border: 1px solid var(--accent); color: var(--accent); 
    display: inline-block; padding: 5px 10px; 
    font-family: var(--font-mono); font-size: 0.7rem; margin-bottom: 20px;
}

.blink { animation: blinker 2s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* --- FX LAYERS --- */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 999;
}
.scanline {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    background: rgba(255,255,255,0.05); animation: scan 6s linear infinite;
    pointer-events: none; z-index: 998;
}
.vignette {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 60%, #000 100%);
    pointer-events: none; z-index: 990;
}
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

/* --- NAVIGATION --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(5,5,5,0.95); backdrop-filter: blur(5px); border-bottom: 1px solid var(--border);
}
.nav-logo img { height: 26px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-family: var(--font-mono); font-size: 0.8rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: #fff; }
.nav-btn-glitch {
    border: 1px solid var(--accent); color: var(--accent) !important; padding: 10px 20px;
    font-weight: 700; position: relative; overflow: hidden;
}
.nav-btn-glitch:hover { background: var(--accent); color: #000 !important; }

/* --- HERO --- */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.hero-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.4; filter: grayscale(100%) contrast(1.2);
}
.hero-content { position: relative; z-index: 10; text-align: center; }
.hero h1 { 
    font-size: 9vw; color: #fff; 
    text-shadow: 0 0 30px rgba(0,168,198,0.2); margin: 20px 0; 
    letter-spacing: -2px; 
}
.scroll-indicator {
    position: absolute; bottom: 40px; font-family: var(--font-mono); font-size: 0.7rem; color: #666; animation: blinker 3s infinite;
}

/* --- TICKER (SEAMLESS LOOP FIX) --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--accent);
    color: #000;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    white-space: nowrap; /* Ensures text stays on one line */
    font-size: 0; /* Removes spacing between inline-block elements */
}

.ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 40s linear infinite; /* Smooth continuous speed */
}

.ticker-item {
    display: inline-block;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem; /* Reset font size */
    padding-right: 0;
}

/* The magic: Move left by exactly half the total width (one full text copy) */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* --- PHILOSOPHY --- */
.philosophy {
    position: relative; min-height: 700px; display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--border); overflow: hidden;
}
.philo-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    background-attachment: fixed; opacity: 0.6; 
    filter: grayscale(100%) contrast(1.2); z-index: 0;
}
.philo-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1;
}

.philo-box {
    position: relative; z-index: 5; 
    background: rgba(0,0,0,0.85); 
    border: 1px solid #333;
    padding: 60px; max-width: 700px; text-align: left;
    box-shadow: 10px 10px 0px var(--accent);
    backdrop-filter: blur(5px);
}
.line-break { width: 50px; height: 2px; background: var(--accent); margin: 20px 0; }
.philo-box h2 { font-size: 3rem; margin-bottom: 20px; color: #fff; line-height: 0.9; }

.mono-bold {
    font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; 
    color: #fff; text-transform: uppercase; letter-spacing: -0.5px; margin-bottom: 20px;
}
.philo-box p.mono { 
    font-family: var(--font-mono); font-size: 0.9rem; color: #888; 
    line-height: 1.6; text-transform: uppercase; 
}

/* --- METHODOLOGY --- */
.methodology { padding: 100px 0; background: var(--bg); border-bottom: 1px solid var(--border); }
.method-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 1px; background: #222; border: 1px solid #222; 
}
.method-card { 
    background: var(--card-bg); padding: 50px 30px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    border: 1px solid transparent; position: relative; overflow: hidden;
}
.icon-wrap img { 
    width: 50px; height: 50px; filter: brightness(0) invert(1); 
    opacity: 0.7; margin-bottom: 20px; transition: all 0.4s ease;
}
.method-card h3 { font-size: 1.4rem; color: #fff; margin-bottom: 10px; transition: transform 0.3s ease; }
.method-card p { font-family: var(--font-mono); color: #888; font-size: 0.85rem; transition: color 0.3s ease; }

.method-card:hover { 
    background: #111; border-color: var(--accent); 
    box-shadow: inset 0 0 20px rgba(0, 168, 198, 0.1); 
}
.method-card:hover .icon-wrap img { 
    opacity: 1; transform: scale(1.2) rotate(5deg); 
    filter: drop-shadow(0 0 8px var(--accent)); 
}
.method-card:hover h3 { transform: translateX(10px); color: var(--accent); }
.method-card:hover p { color: #fff; }

/* --- VISUAL BREAKS (THE ARCHITECTS) --- */
.visual-break {
    position: relative; height: 600px; display: flex; 
    align-items: center; justify-content: center; overflow: hidden; 
    border-bottom: 1px solid var(--border); background: #000; /* FORCE BLACK BACKGROUND */
}
.break-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; background-attachment: fixed; 
    z-index: 0; filter: grayscale(100%) contrast(1.5); 
}
.break-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 1; /* Darker overlay for contrast */
}
.break-content { position: relative; z-index: 2; text-align: center; mix-blend-mode: normal; }
.break-content h2 { 
    font-size: 6vw; color: #fff; text-shadow: 0 0 30px rgba(0,0,0,0.8); 
    font-weight: 700; text-transform: uppercase; margin-bottom: 20px;
}

/* --- EDITORIAL --- */
.editorial { 
    display: grid; grid-template-columns: 1fr 1fr; 
    border-bottom: 1px solid var(--border); background: #000; /* Dark background */
}
.ed-img { 
    position: relative; height: 100%; min-height: 600px; 
    overflow: hidden; border-right: 1px solid var(--border);
}
.ed-img img { 
    width: 100%; height: 100%; object-fit: cover; object-position: center; 
    filter: grayscale(100%) contrast(1.1); 
}
.scan-bar {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px; 
    background: rgba(0, 168, 198, 0.8); box-shadow: 0 0 15px var(--accent); 
    animation: scan 4s ease-in-out infinite; z-index: 2;
}
.ed-text { 
    padding: 80px; display: flex; flex-direction: column; justify-content: center; 
    background: #0a0a0a; border-left: 1px solid var(--border);
}
.ed-text h2 { font-size: 4rem; margin-bottom: 30px; line-height: 0.9; color: #fff; }
.ed-text p { color: #888; margin-bottom: 40px; max-width: 450px; font-family: var(--font-mono); line-height: 1.6; }
.text-link { 
    color: var(--accent); font-weight: 700; font-family: var(--font-mono); 
    text-transform: uppercase; font-size: 1.1rem; letter-spacing: 1px;
}
.text-link:hover { color: #fff; text-shadow: 0 0 10px var(--accent); }

/* --- CRISIS CONTROL (HAZARD) --- */
.crisis-section {
    position: relative; height: 500px; display: flex; 
    align-items: center; justify-content: center; overflow: hidden; 
    background: #000; border-bottom: 1px solid var(--border);
}
.crisis-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0.6;
    filter: grayscale(100%) contrast(1.5) brightness(0.5);
    animation: alarmPulse 2s infinite alternate; z-index: 0;
}
@keyframes alarmPulse {
    0% { filter: grayscale(100%) contrast(1.5) brightness(0.5) drop-shadow(0 0 0 red); }
    100% { filter: grayscale(100%) sepia(100%) hue-rotate(-50deg) saturate(5) brightness(0.6); }
}
.crisis-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.5) 3px);
    z-index: 1; pointer-events: none;
}
.crisis-content {
    position: relative; z-index: 10; text-align: center; 
    border: 1px solid red; padding: 40px; background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px); box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}
.alert-tag {
    font-family: var(--font-mono); color: red; border: 1px solid red; 
    display: inline-block; padding: 5px 15px; font-size: 0.8rem; 
    margin-bottom: 20px; background: rgba(50, 0, 0, 0.5);
}
.blink-red { animation: blinker 0.2s infinite; }
.glitch-large {
    font-size: 5rem; line-height: 0.9; color: #fff; text-transform: uppercase; 
    font-weight: 900; position: relative; text-shadow: 2px 2px 0px red; margin-bottom: 20px;
}
.mono-crisis {
    font-family: var(--font-mono); color: #aaa; font-size: 1.2rem; 
    text-transform: uppercase; letter-spacing: 1px;
}
.hazard-tape {
    position: absolute; bottom: 20px; left: 0; width: 100%; 
    background: red; color: black; font-family: var(--font-mono); 
    font-weight: 900; font-size: 1rem; padding: 5px 0; 
    transform: rotate(-1deg) scale(1.1); z-index: 20; 
    overflow: hidden; white-space: nowrap; border-top: 2px solid #fff; border-bottom: 2px solid #fff;
}
.tape-track { display: inline-block; animation: scroll 10s linear infinite reverse; }

/* --- VERTICALS (EXPANDING GRID) --- */
.services { padding: 100px 0; max-width: 100%; overflow: hidden; }
.sec-head { 
    max-width: 1400px; margin: 0 auto 40px auto; padding: 0 20px; 
    border-bottom: 1px solid var(--border); padding-bottom: 20px; 
}
.srv-grid { display: flex; flex-wrap: wrap; width: 100%; background: #000; }
.srv-card {
    position: relative; flex: 1 1 33.333%; height: 400px; 
    border: 1px solid #222; padding: 40px; display: flex; flex-direction: column; 
    justify-content: space-between; transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
    overflow: hidden; cursor: pointer;
}
.srv-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-size: cover; background-position: center; opacity: 0.2; 
    filter: grayscale(100%) contrast(1.2); transition: all 0.5s ease; z-index: 0;
}
.srv-info { position: relative; z-index: 2; transition: all 0.3s ease; }
.srv-num { font-family: var(--font-mono); color: var(--accent); font-size: 0.9rem; margin-bottom: 20px; display: block; }
.srv-card h3 { font-size: 2rem; color: #fff; margin-bottom: 10px; text-transform: uppercase; white-space: nowrap; }
.srv-card p { font-family: var(--font-mono); font-size: 0.85rem; color: #888; max-width: 90%; line-height: 1.6; }

.srv-link {
    position: relative; z-index: 2; margin-top: 30px; display: inline-block; 
    color: #fff; font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; 
    border: 1px solid var(--accent); padding: 15px 30px; background: rgba(0,0,0,0.8); 
    opacity: 0; transform: translateY(20px); transition: all 0.4s ease 0.1s;
}
.srv-link:hover { background: var(--accent); color: #000; }

.srv-card:hover { flex: 1 1 100%; background: #000; z-index: 10; border-color: var(--accent); }
.srv-card:hover .srv-bg { opacity: 0.5; filter: grayscale(0%) contrast(1.1); transform: scale(1.02); }
.srv-card:hover h3 { font-size: 3rem; }
.srv-card:hover p { color: #fff; max-width: 600px; font-size: 1rem; }
.srv-card:hover .srv-link { opacity: 1; transform: translateY(0); }

/* --- CLIENTS --- */
.trusted { padding: 60px 0; border-top: 1px solid var(--border); background: #050505; }
.trusted h4 { text-align: center; font-family: var(--font-mono); color: #444; margin-bottom: 30px; letter-spacing: 2px; }
.marquee { overflow: hidden; white-space: nowrap; }
.track { display: inline-block; animation: scroll 20s linear infinite; }
.track span { font-size: 1.5rem; font-weight: 700; color: #333; margin: 0 30px; font-family: var(--font-main); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- CONTACT (INCREASED FORM SIZE) --- */
.contact-split { 
    display: grid; grid-template-columns: 0.8fr 1.2fr; 
    border-top: 1px solid var(--border); min-height: 700px; 
}
.contact-vis { position: relative; }
.contact-vis img { 
    width: 100%; height: 100%; object-fit: cover; 
    filter: grayscale(100%) contrast(1.2); display: block; 
}
.vis-tag { 
    position: absolute; bottom: 40px; left: 40px; 
    background: var(--accent); color: #000; padding: 10px 20px; 
    font-weight: 700; font-family: var(--font-mono); font-size: 0.9rem; 
}

.contact-form { 
    padding: 100px 80px; display: flex; flex-direction: column; 
    justify-content: center; background: #080808; 
}
.contact-form h2 { font-size: 3.5rem; margin-bottom: 20px; color: #fff; }
.input-row { margin-bottom: 30px; }
.input-row input, .input-row textarea {
    width: 100%; background: transparent; border: none; 
    border-bottom: 2px solid #333; padding: 20px 0; 
    color: #fff; font-family: var(--font-main); font-size: 1.4rem; font-weight: 700;
}
.input-row input::placeholder, .input-row textarea::placeholder { color: #555; font-weight: 400; font-family: var(--font-mono); }
.input-row input:focus, .input-row textarea:focus { outline: none; border-color: var(--accent); }
.btn-submit {
    background: var(--accent); color: #000; padding: 25px; width: 100%; 
    font-size: 1.2rem; font-weight: 900; border: none; cursor: pointer; 
    text-transform: uppercase; margin-top: 30px; font-family: var(--font-mono);
}
.btn-submit:hover { background: #fff; }

/* --- FOOTER --- */
/* --- NEW FOOTER STYLES --- */
footer {
    padding: 80px 40px;
    border-top: 1px solid var(--border);
    background: #000;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 Columns */
    gap: 1px;
    margin-bottom: 60px;
    background: #222; /* Creates the border lines */
    border: 1px solid #222;
}

.f-item {
    background: #050505;
    padding: 40px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.f-item:hover {
    background: #0a0a0a;
    box-shadow: inset 0 0 20px rgba(0, 168, 198, 0.05);
}

.f-item h4 {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.f-item p, .f-item a {
    color: #888;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    text-decoration: none;
    transition: 0.3s;
}

.f-item a:hover {
    color: #fff;
    padding-left: 5px;
}

/* System Message (Hover Reveal) */
.final-signal {
    position: relative;
    width: 100%;
    padding: 100px 0 0 0;
    overflow: hidden;
    background: #000;
    text-align: center;
    border-top: 1px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
}

.end-title {
    font-size: 18vw;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    color: #111; /* Dark text by default */
    opacity: 0.9;
    transition: opacity 0.2s;
    position: relative;
    white-space: nowrap;
    line-height: 0.8;
}

/* Hover Effect: Hides big text, shows system message */
.end-title:hover {
    color: transparent;
}

.end-title:hover::after {
    content: attr(data-terminal);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    background: #000;
    padding: 10px 20px;
    border: 1px solid var(--accent);
    box-shadow: 0 0 20px rgba(0, 168, 198, 0.4);
    white-space: nowrap;
}

.legal {
    border-top: 1px solid #222;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #444;
}

/* Responsive: Stack columns on mobile */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .end-title:hover::after {
        font-size: 0.9rem;
        white-space: normal;
    }
}
}

/* --- FINAL SIGNAL (NEO TERMINAL EDIT) --- */
.final-signal {
    position: relative;
    width: 100%;
    padding: 100px 0 0 0;
    overflow: hidden;
    background: #000;
    text-align: center;
    border-top: 1px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair; /* Changes cursor to target */
}

.end-title {
    position: relative;
    font-size: 18vw; 
    line-height: 0.8;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: -0.05em;
    margin: 0;
    padding: 0;
    color: #111; 
    
    /* STATIC NOISE TEXTURE (No Pulsating) */
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E"), linear-gradient(to bottom, #444, #111);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.9;
    transition: opacity 0.2s;
}

/* --- THE NEO TERMINAL HOVER EFFECT --- */
.end-title:hover {
    color: transparent; /* Hide CREPO MEDIA */
    background: none;
    text-shadow: none;
    opacity: 1;
}

/* The Secret Message */
.end-title:hover::after {
    content: attr(data-terminal); /* Pulls text from HTML */
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    
    /* Terminal Styling */
    font-family: var(--font-mono);
    font-size: 2vw; /* Much smaller, readable size */
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent); /* Cyan Terminal Text */
    background: #000;
    padding: 10px 20px;
    border: 1px solid var(--accent);
    box-shadow: 0 0 20px rgba(0, 168, 198, 0.4);
    
    /* Typing Cursor Animation */
    animation: terminalBlink 0.1s infinite alternate;
}

@keyframes terminalBlink {
    0% { opacity: 0.8; text-shadow: 0 0 10px var(--accent); }
    100% { opacity: 1; text-shadow: 0 0 20px var(--accent); }
}

/* Scanline Texture Overlay */
.end-title::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.3;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .editorial, .contact-split, .footer-grid { grid-template-columns: 1fr; }
    .method-grid, .srv-grid { grid-template-columns: 1fr; }
    .contact-vis { height: 400px; }
    .contact-form { padding: 60px 40px; }
    .contact-form h2 { font-size: 2.5rem; }
    .philo-box { padding: 30px; }
    .hero h1 { font-size: 15vw; }
    .srv-card { flex: 1 1 50%; }
}
@media (max-width: 600px) {
    .srv-card { flex: 1 1 100%; }
}

/* --- TESTIMONIALS (CLIENT INTEL) --- */
.testimonials-section {
    position: relative;
    min-height: 600px; /* Tall section */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: #000;
}

.testi-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; 
    background-position: center;
    /* Invert the image to make the white background black (Dark Mode compatible) */
    filter: invert(1) grayscale(100%) contrast(1.5) brightness(0.6);
    opacity: 0.8;
    z-index: 0;
}

/* Specific Noise Overlay for this section */
.testi-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.testi-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.testi-content h2 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(0,0,0,0.9);
}

.mono-quote {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.6); /* Text box backdrop */
    padding: 20px;
    border-left: 2px solid var(--accent);
}

.mono-sign {
    font-family: var(--font-main);
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- SUB-NAVIGATION DROPDOWN --- */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* Positions it right below the nav item */
    left: -20px;
    background-color: rgba(5, 5, 5, 0.95);
    min-width: 240px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.8);
    z-index: 2000;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    padding: 10px 0;
}

/* Show on Hover */
.nav-item-dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown-menu a {
    color: #888;
    padding: 15px 25px;
    text-decoration: none;
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border-bottom: 1px solid #111;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-menu a:hover {
    background-color: var(--accent);
    color: #000;
    padding-left: 30px; /* Slight slide effect */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- STRATEGY FLOW (CIRCUIT BOARD STYLE) --- */
.strategy-section {
    padding: 100px 0;
    background: #080808;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.strategy-track {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    padding-left: 30px;
    border-left: 2px solid #333; /* The "Circuit Line" */
}

.strategy-step {
    position: relative;
    margin-bottom: 60px;
    padding-left: 40px;
}

/* The Glowing Node */
.strategy-step::before {
    content: '';
    position: absolute;
    left: -39px; /* Aligns with the border line */
    top: 0;
    width: 16px;
    height: 16px;
    background: #000;
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    z-index: 2;
    transition: all 0.3s ease;
}

.strategy-step:hover::before {
    background: var(--accent);
    transform: scale(1.5);
    box-shadow: 0 0 20px var(--accent);
}

.step-num {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.strategy-step h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.strategy-step p {
    font-family: var(--font-mono);
    color: #888;
    line-height: 1.6;
    max-width: 600px;
}

/* Connect the last line */
.strategy-track::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -6px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

/* --- INTERNAL PAGE HEADER --- */
.hero-internal {
    height: 60vh; /* Shorter header */
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    background: #000;
    overflow: hidden;
}

.hero-internal h1 { font-size: 5rem; text-shadow: 2px 2px 0px var(--accent); z-index: 2; text-align: center; }

/* --- SIDEBAR LAYOUT (For Service Pages) --- */
.page-grid {
    display: grid;
    grid-template-columns: 300px 1fr; /* Sidebar + Content */
    min-height: 100vh;
    border-bottom: 1px solid var(--border);
}

.sidebar {
    background: #080808;
    border-right: 1px solid var(--border);
    padding: 60px 40px;
    position: sticky;
    top: 80px; /* Below nav */
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-title { font-family: var(--font-mono); color: #666; font-size: 0.8rem; margin-bottom: 20px; display: block; }
.sidebar-link {
    display: block; font-family: var(--font-main); font-size: 1.2rem; color: #fff;
    margin-bottom: 15px; opacity: 0.5; text-transform: uppercase;
}
.sidebar-link:hover, .sidebar-link.active { opacity: 1; color: var(--accent); padding-left: 10px; border-left: 2px solid var(--accent); }

.content-area { padding: 80px; background: #050505; }
.content-area h2 { font-size: 3rem; color: #fff; margin-bottom: 30px; }
.content-area h3 { font-size: 1.8rem; color: var(--accent); margin-top: 50px; margin-bottom: 20px; }
.content-area p { font-family: var(--font-mono); color: #aaa; font-size: 1rem; margin-bottom: 20px; max-width: 800px; }
.content-area ul { list-style: none; margin-bottom: 40px; }
.content-area ul li {
    font-family: var(--font-mono); color: #ddd; padding: 10px 0; border-bottom: 1px solid #222;
}
.content-area ul li::before { content: '// '; color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 900px) {
    .page-grid { grid-template-columns: 1fr; }
    .sidebar { height: auto; position: relative; top: 0; padding: 40px; border-right: none; border-bottom: 1px solid var(--border); }
    .hero-internal h1 { font-size: 3.5rem; }
    .content-area { padding: 40px 20px; }
}
/* --- ANIMATION & LAYOUT PATCH (Paste at bottom of main.css) --- */

/* Scroll Reveal Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}
.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image Blending Utilities */
.blend-exclusion { mix-blend-mode: exclusion; filter: invert(1); } /* Turns black ink to white on dark bg */
.blend-screen { mix-blend-mode: screen; } /* Removes black background */
.blend-overlay { mix-blend-mode: overlay; opacity: 0.5; }

/* Section Specific Layouts */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.sticky-image-container {
    height: 100%;
    position: sticky;
    top: 0;
    overflow: hidden;
    border-right: 1px solid var(--border);
}

.sticky-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: transform 0.5s;
}

.text-side {
    padding: 80px;
    background: #050505;
    position: relative;
    z-index: 2;
}

/* The Map Section (Parallax) */
.map-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.map-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0.4;
    transition: transform 0.2s linear; /* Smooth parallax hook */
}

/* Floating Elements */
.float-element {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
/* --- MOBILE HAMBURGER LOGIC --- */
@media (max-width: 900px) {
    /* Hide desktop nav alignment */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen horizontally */
        width: 100%; /* Full width for easier navigation */
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.4s ease-in-out;
        z-index: 999;
    }

    /* Horizontal Slide-in Trigger */
    .nav-links.active {
        right: 0;
        transform: translateX(0);
    }

    /* Style the Hamburger Bars */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1001; /* Must be higher than nav-links */
        padding: 10px;
    }

    .menu-toggle .bar {
        width: 30px;
        height: 3px;
        background-color: var(--accent);
        margin: 4px 0;
        transition: 0.3s;
    }

    /* Services Dropdown - Force visible in mobile menu */
    .dropdown-menu {
        position: static;
        display: block;
        opacity: 1;
        background: transparent;
        box-shadow: none;
        border: none;
        text-align: center;
    }
}

/* Hide hamburger on Desktop */
@media (min-width: 901px) {
    .menu-toggle { display: none; }
}

@media (max-width: 900px) {
    /* 1. Hide the desktop links from the header */
    .nav-links {
        display: none !important; /* Hide by default on mobile */
        position: fixed;
        top: 0;
        right: -100%; /* Position off-screen to the right */
        width: 100%;
        height: 100vh;
        background: #050505;
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 999;
    }

    /* 2. Show the menu when 'active' class is added via JS */
    .nav-links.active {
        display: flex !important;
        right: 0 !important;
    }

    /* 3. Show the Hamburger */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        z-index: 1001;
        padding: 5px;
    }

    .menu-toggle .bar {
        width: 25px;
        height: 2px;
        background-color: var(--accent);
        margin: 3px 0;
        transition: 0.3s;
    }

    /* 4. Fix dropdowns so they don't require hover on mobile */
    .dropdown-menu {
        position: static !important;
        display: block !important;
        opacity: 1 !important;
        background: transparent !important;
        border: none !important;
        text-align: center;
    }
}
/* --- 1. FONTS & ROOT VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg: #050505;
    --card-bg: #0a0a0a;
    --text: #e0e0e0;
    --text-muted: #888888;
    --accent: #00a8c6;
    --accent-red: #ff3333;
    --border: #222;
    --font-main: 'Oswald', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: var(--font-mono); 
    overflow-x: hidden; 
    font-size: 14px; 
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- 2. TYPOGRAPHY & UTILS --- */
h1, h2, h3, h4 { 
    font-family: var(--font-main); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    line-height: 0.95; 
    font-weight: 700;
}

.mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0; }
.meta-tag { border: 1px solid var(--accent); color: var(--accent); display: inline-block; padding: 5px 10px; font-family: var(--font-mono); font-size: 0.7rem; margin-bottom: 20px; }
.blink { animation: blinker 2s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* --- 3. CORE FX LAYERS --- */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 999;
}
.scanline {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    background: rgba(255,255,255,0.05); animation: scan 6s linear infinite;
    pointer-events: none; z-index: 998;
}
.vignette {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 60%, #000 100%);
    pointer-events: none; z-index: 990;
}
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

/* --- 4. NAVIGATION --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(5,5,5,0.95); backdrop-filter: blur(5px); border-bottom: 1px solid var(--border);
}
.nav-logo img { height: 26px; }

/* Hamburger Menu - Hidden on Desktop */
.menu-toggle { 
    display: none;
    flex-direction: column; 
    justify-content: center; 
    cursor: pointer; 
    z-index: 1001;
    gap: 5px;
}
.menu-toggle .bar { 
    width: 25px; 
    height: 2px; 
    background-color: var(--accent); 
    transition: all 0.3s ease;
}

/* Desktop Navigation */
.nav-links { 
    display: flex; 
    gap: 30px; 
    align-items: center; 
}
.nav-links a { 
    font-family: var(--font-mono); 
    font-size: 0.8rem; 
    color: #aaa; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}
.nav-links a:hover { color: #fff; }

/* Dropdown Menu */
.nav-item-dropdown { 
    position: relative; 
    display: flex; 
    align-items: center; 
    height: 100%; 
}
.dropdown-menu {
    display: none; 
    position: absolute; 
    top: 100%; 
    left: -20px;
    background-color: rgba(5, 5, 5, 0.95); 
    min-width: 240px;
    border: 1px solid var(--border); 
    backdrop-filter: blur(10px); 
    padding: 10px 0;
}
.nav-item-dropdown:hover .dropdown-menu { 
    display: block; 
    animation: fadeIn 0.2s ease; 
}
.dropdown-menu a { 
    padding: 15px 25px; 
    font-size: 0.75rem; 
    border-bottom: 1px solid #111; 
    display: block; 
}
.dropdown-menu a:hover { 
    background-color: var(--accent); 
    color: #000; 
}

.nav-btn-glitch { 
    border: 1px solid var(--accent); 
    color: var(--accent) !important; 
    padding: 10px 20px; 
    font-weight: 700; 
    position: relative; 
}
.nav-btn-glitch:hover { 
    background: var(--accent); 
    color: #000 !important; 
}

/* --- 5. HERO & TICKER --- */
.hero { 
    height: 100vh; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-bottom: 1px solid var(--border); 
}
.hero-video { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.4; 
    filter: grayscale(100%); 
}
.hero h1 { 
    font-size: 9vw; 
    color: #fff; 
    text-shadow: 0 0 30px rgba(0,168,198,0.2); 
    margin: 20px 0; 
    letter-spacing: -2px; 
}

.ticker-wrap { 
    width: 100%; 
    overflow: hidden; 
    background: var(--accent); 
    color: #000; 
    padding: 10px 0; 
    white-space: nowrap; 
    border-bottom: 1px solid var(--border); 
}
.ticker-track { 
    display: inline-block; 
    animation: ticker 40s linear infinite; 
}
@keyframes ticker { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* --- 6. PHILOSOPHY & METHODOLOGY --- */
.philosophy { 
    position: relative; 
    min-height: 700px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    border-bottom: 1px solid var(--border); 
}
.philo-box { 
    position: relative; 
    z-index: 5; 
    background: rgba(0,0,0,0.85); 
    border: 1px solid #333; 
    padding: 60px; 
    max-width: 700px; 
    box-shadow: 10px 10px 0px var(--accent); 
    backdrop-filter: blur(5px); 
}

.methodology { 
    padding: 100px 0; 
    background: var(--bg); 
    border-bottom: 1px solid var(--border); 
}
.method-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 1px; 
    background: #222; 
    border: 1px solid #222; 
}
.method-card { 
    background: var(--card-bg); 
    padding: 50px 30px; 
    transition: 0.3s; 
    position: relative; 
    overflow: hidden; 
}
.method-card:hover { 
    border-color: var(--accent); 
    background: #111; 
    box-shadow: inset 0 0 20px rgba(0, 168, 198, 0.1); 
}

/* --- 7. SERVICES GRID --- */
.srv-grid { 
    display: flex; 
    flex-wrap: wrap; 
    width: 100%; 
    background: #000; 
}
.srv-card { 
    position: relative; 
    flex: 1 1 33.333%; 
    height: 400px; 
    border: 1px solid #222; 
    padding: 40px; 
    overflow: hidden; 
    transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
    cursor: pointer; 
}
.srv-bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    opacity: 0.2; 
    filter: grayscale(100%); 
    transition: 0.5s ease; 
}
.srv-card:hover { 
    flex: 1 1 100%; 
    border-color: var(--accent); 
}
.srv-card:hover .srv-bg { 
    opacity: 0.5; 
    filter: grayscale(0%) contrast(1.1); 
    transform: scale(1.02); 
}

/* --- 8. FOOTER --- */
footer { 
    padding: 80px 40px; 
    border-top: 1px solid var(--border); 
    background: #000; 
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 1px; 
    background: #222; 
    border: 1px solid #222; 
    margin-bottom: 60px; 
}
.f-item { 
    background: #050505; 
    padding: 40px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    transition: 0.3s; 
}
.f-item:hover { background: #0a0a0a; }
.f-item h4 { 
    color: var(--accent); 
    font-family: var(--font-mono); 
    font-size: 0.9rem; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}
.f-item p, .f-item a { 
    color: #888; 
    font-size: 0.9rem; 
    display: block; 
    margin-bottom: 8px; 
    font-family: var(--font-mono); 
}
.f-item a:hover { 
    color: #fff; 
    padding-left: 5px; 
}

.final-signal { 
    text-align: center; 
    border-top: 1px solid #111; 
    padding-top: 100px; 
    position: relative; 
    cursor: crosshair; 
}
.end-title { 
    font-size: 18vw; 
    color: #111; 
    opacity: 0.9; 
    white-space: nowrap; 
    line-height: 0.8; 
    transition: color 0.2s; 
}
.end-title:hover { color: transparent; }
.end-title:hover::after { 
    content: attr(data-terminal); 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    color: var(--accent); 
    font-family: var(--font-mono); 
    font-size: 2vw; 
    border: 1px solid var(--accent); 
    padding: 10px 20px; 
    background: #000; 
    box-shadow: 0 0 20px rgba(0, 168, 198, 0.4); 
}

.legal { 
    border-top: 1px solid #222; 
    padding-top: 20px; 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.7rem; 
    color: #444; 
    font-family: var(--font-mono); 
}

/* --- 9. MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    /* Show Hamburger Menu */
    .menu-toggle { 
        display: flex !important; 
    }

    /* Mobile Navigation Drawer */
    .nav-links {
        position: fixed; 
        top: 0; 
        right: -100%;
        width: 100%; 
        height: 100vh; 
        background: rgba(5,5,5,0.98); 
        backdrop-filter: blur(10px);
        flex-direction: column !important;
        justify-content: center; 
        align-items: center; 
        gap: 40px !important;
        transition: right 0.4s ease; 
        z-index: 999;
    }
    
    .nav-links.active { 
        right: 0 !important; 
    }

    /* Mobile Navigation Links */
    .nav-links a {
        font-size: 1.2rem !important;
        color: #fff !important;
    }

    /* Flatten Dropdowns on Mobile */
    .nav-item-dropdown {
        flex-direction: column;
        gap: 20px;
    }
    
    .dropdown-menu { 
        position: static !important; 
        display: block !important; 
        background: transparent !important; 
        border: none !important; 
        padding: 0 !important;
        min-width: auto !important;
    }
    
    .dropdown-menu a {
        padding: 10px 0 !important;
        border: none !important;
        text-align: center;
        font-size: 1rem !important;
    }

    .dropdown-menu a:hover {
        background: transparent !important;
        color: var(--accent) !important;
    }

    /* Mobile Layout Adjustments */
    nav { padding: 15px 20px; }
    .hero h1 { font-size: 15vw; }
    .philo-box { padding: 40px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .srv-grid { display: block; }
    .srv-card { 
        flex: 1 1 100%; 
        height: auto; 
        min-height: 300px;
        padding: 40px 20px; 
        border-bottom: 1px solid var(--border); 
    }
    .method-grid { grid-template-columns: 1fr; }
    .legal { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 18vw; }
    .end-title { font-size: 25vw; }
    .end-title:hover::after { font-size: 3.5vw; }
}

/* Fade In Animation */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}