/* =========================================
           ELITE VARIABLES & COLORS
           ========================================= */
        :root {
            --bg-void: #030303;
            --bg-grid: #020508; 
            
            --bg-surface: rgba(12, 12, 14, 0.4);
            --bg-glass: rgba(20, 20, 24, 0.2);
            
            /* Core Identity */
            --tier1-color: #C5FF4A; /* Neon Lime */
            --tier2-color: #00F0FF; /* Cyan */
            --tier3-color: #B026FF; /* Purple */
            --donor-color: #FFD700; /* Gold */
            
            --text-main: #F4F4F5;
            --text-dim: #A1A1AA;
            
            --font-display: 'Space Grotesk', sans-serif;
            --font-mono: 'JetBrains Mono', monospace;
            
            --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
            --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* =========================================
           RESET
           ========================================= */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            background-color: var(--bg-void);
            color: var(--text-main);
            font-family: var(--font-mono);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg-void); }
        ::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--tier1-color); }

        /* =========================================
           PRELOADER GLITCH (F5 EFFECT)
           ========================================= */
        #preloader {
            position: fixed; inset: 0; background: var(--bg-void); z-index: 999999;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            transition: opacity 0.5s var(--ease-fluid);
        }
        .kernel-panic { text-align: center; font-family: var(--font-mono); }
        .kernel-panic p { color: #ff003c; font-size: 0.85rem; margin-bottom: 0.5rem; opacity: 0.8; }
        .glitch-error {
            font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); font-weight: 900;
            color: #fff; text-transform: uppercase; position: relative;
            text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.025em -0.05em 0 rgba(0,255,0,0.75), 0.025em 0.05em 0 rgba(0,0,255,0.75);
            animation: glitchEffect 500ms infinite;
        }
        @keyframes glitchEffect {
            0%, 14%, 15%, 49%, 50%, 99%, 100% { text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.05em -0.02em 0 rgba(0,255,0,0.75), -0.025em 0.05em 0 rgba(0,0,255,0.75); }
        }

        /* =========================================
           AUTHENTIC CRT & NOISE
           ========================================= */
        .crt-scanlines {
            position: fixed; inset: 0; pointer-events: none; z-index: 9999;
            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%), 
                        linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
            background-size: 100% 3px, 3px 100%; opacity: 0.7;
        }
        .crt-flicker { position: fixed; inset: 0; pointer-events: none; z-index: 9998; background: rgba(0,0,0,0.1); animation: flicker 0.15s infinite; }
        .crt-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 9997; background: radial-gradient(circle at center, transparent 50%, rgba(0,0,0,0.7) 100%); }
        .noise {
            position: fixed; inset: 0; pointer-events: none; z-index: 9996; opacity: 0.04;
            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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        }

        /* =========================================
           BACKGROUNDS & TRANSITIONS
           ========================================= */
        #void-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.5; }
        
        /* Subtle wavy background logic for Contact page */
        .contact-bg-waves {
            position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.2;
            background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
            background-size: 60px 60px;
            filter: url(#soft-wave);
            mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 80%);
            -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 80%);
        }

        .container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 10; }
        
        .reveal { opacity: 0; transform: translateY(40px); transition: all 1s var(--ease-fluid); will-change: transform, opacity; }
        .reveal.active { opacity: 1; transform: translateY(0); }

        /* =========================================
           GLOBAL NAVIGATION (REFINED)
           ========================================= */
        .navbar {
            position: fixed; top: 0; width: 100%; padding: 1.5rem 4rem; z-index: 1000;
            display: flex; justify-content: space-between; align-items: center;
            background: linear-gradient(to bottom, rgba(3,3,3,0.9), transparent);
            transition: all 0.4s var(--ease-fluid);
        }
        .navbar.scrolled {
            padding: 1rem 4rem; background: rgba(3, 3, 3, 0.85);
            backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        .nav-logo { 
            font-family: var(--font-display); font-size: 1.8rem; font-weight: 900;
            color: var(--text-main); text-decoration: none; letter-spacing: -1px;
            display: flex; align-items: center; gap: 0.5rem;
        }
        .nav-logo span { color: var(--tier1-color); }

        .nav-links { display: flex; gap: 2rem; align-items: center; }
        .nav-links a {
            font-size: 0.8rem; color: var(--text-dim); text-decoration: none;
            text-transform: uppercase; font-weight: 700; transition: color 0.3s;
            position: relative; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px;
        }
        .nav-links a::before { content: '>'; opacity: 0; color: var(--tier1-color); transform: translateX(-10px); transition: all 0.3s var(--ease-fluid); }
        .nav-links a::after { content: '<'; opacity: 0; color: var(--tier1-color); transform: translateX(10px); transition: all 0.3s var(--ease-fluid); }
        .nav-links a:hover { color: var(--text-main); }
        .nav-links a:hover::before, .nav-links a.active::before { opacity: 1; transform: translateX(0); }
        .nav-links a:hover::after, .nav-links a.active::after { opacity: 1; transform: translateX(0); }

        .btn-auth {
            background: transparent; color: var(--tier1-color); font-family: var(--font-mono);
            font-weight: 700; font-size: 0.8rem; padding: 0.6rem 1.5rem;
            border: 1px solid var(--tier1-color); cursor: pointer; transition: all 0.2s;
            text-transform: uppercase; position: relative;
        }
        .btn-auth:hover {
            background: var(--tier1-color); color: #000;
            box-shadow: 4px 4px 0px rgba(197, 255, 74, 0.4); transform: translate(-2px, -2px);
        }

        /* =========================================
           CONTACT SECTION (SECURE UPLINK)
           ========================================= */
        .contact-section { 
            position: relative; min-height: 100vh; display: flex; align-items: center; 
            padding: 10rem 0 6rem 0; background: var(--bg-void); overflow: hidden;
        }

        .contact-grid {
            display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; width: 100%;
            align-items: flex-start;
        }

        /* Titles */
        .sys-status {
            display: inline-flex; align-items: center; gap: 0.8rem;
            padding: 0.4rem 1rem; border: 1px solid rgba(255,255,255,0.1);
            font-size: 0.7rem; color: var(--text-dim); margin-bottom: 2rem; 
            text-transform: uppercase; background: rgba(0,0,0,0.5);
        }
        .sys-line { width: 20px; height: 2px; background: var(--tier2-color); box-shadow: 0 0 10px var(--tier2-color); }

        .section-title {
            font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.5rem); 
            font-weight: 900; line-height: 1.05; letter-spacing: -0.03em;
            margin-bottom: 1.5rem; text-transform: uppercase; color: #fff;
        }
        .section-title span { color: var(--tier2-color); }

        .section-desc {
            font-size: 0.95rem; color: var(--text-dim); line-height: 1.8;
            max-width: 500px; margin-bottom: 3rem;
        }

        /* =========================================
           LEFT PANEL: NOMADIC NODE & COMMS
           ========================================= */
        .info-panel { display: flex; flex-direction: column; gap: 2rem; }

        /* The New Network Node Box (Replaces Parnamirim Geo-Loc) */
        .node-status-box {
            background: rgba(5,5,7,0.7); border: 1px solid rgba(0, 240, 255, 0.2);
            padding: 2rem; position: relative; display: flex; flex-direction: column;
            gap: 1rem; overflow: hidden; border-radius: 2px; backdrop-filter: blur(10px);
        }
        
        /* Sci-Fi Radar Animation inside the box */
        .radar-bg {
            position: absolute; top: -50%; right: -50%; width: 200px; height: 200px;
            border: 1px solid rgba(0, 240, 255, 0.1); border-radius: 50%;
            display: flex; align-items: center; justify-content: center; pointer-events: none;
        }
        .radar-bg::before {
            content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%;
            border: 1px solid rgba(0, 240, 255, 0.2); animation: radarPulse 3s infinite ease-out;
        }
        .radar-bg::after {
            content: ''; position: absolute; width: 50%; height: 50%; border-radius: 50%;
            border: 1px solid rgba(0, 240, 255, 0.3); animation: radarPulse 3s infinite ease-out 1.5s;
        }
        @keyframes radarPulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }

        .geo-title { font-family: var(--font-display); font-size: 1.2rem; color: #fff; text-transform: uppercase; letter-spacing: 0.05em;}
        .geo-coords { font-family: var(--font-mono); font-size: 0.85rem; color: var(--tier2-color); }
        .geo-text { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; position: relative; z-index: 2;}
        .geo-marker { display: flex; align-items: center; gap: 0.5rem; color: #fff; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; position: relative; z-index: 2;}
        .pulse-dot { width: 8px; height: 8px; background: var(--tier2-color); border-radius: 50%; animation: blink 2s infinite; box-shadow: 0 0 10px var(--tier2-color); }

        /* Contact Cards (Tilt) */
        .contact-card {
            background: rgba(12, 12, 14, 0.6); border: 1px solid rgba(255,255,255,0.05);
            padding: 1.5rem; border-radius: 2px; display: flex; align-items: center; gap: 1.5rem;
            text-decoration: none; transition: all 0.4s var(--ease-fluid);
            transform-style: preserve-3d; backdrop-filter: blur(5px);
        }
        .contact-card:hover { background: rgba(20,20,24,0.8); border-color: rgba(255,255,255,0.2); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
        
        .c-icon-wrap {
            width: 50px; height: 50px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
            background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); transition: all 0.4s;
            transform: translateZ(20px);
        }
        .c-text { display: flex; flex-direction: column; gap: 0.3rem; transform: translateZ(30px); }
        .c-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
        .c-value { font-family: var(--font-display); font-size: 1.2rem; color: #888; font-weight: 700; transition: color 0.4s var(--ease-fluid); }

        .contact-card:hover .c-value { color: #fff; }
        
        .card-discord:hover .c-icon-wrap { border-color: #5865F2; color: #5865F2; box-shadow: inset 0 0 15px rgba(88, 101, 242, 0.2); }
        .card-email:hover .c-icon-wrap { border-color: var(--tier1-color); color: var(--tier1-color); box-shadow: inset 0 0 15px rgba(197, 255, 74, 0.2); }

        /* =========================================
           RIGHT PANEL: CYBERPAYLOAD FORM
           ========================================= */
        .terminal-form {
            background: rgba(6, 6, 8, 0.8); border: 1px solid rgba(255,255,255,0.05);
            padding: 3.5rem 3rem; border-radius: 2px; backdrop-filter: blur(15px);
            position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.6);
        }
        .terminal-form::before {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
            background: var(--tier1-color); box-shadow: 0 0 15px var(--tier1-color);
        }

        .form-group { margin-bottom: 2.5rem; position: relative; }
        
        .form-label {
            display: block; font-family: var(--font-mono); font-size: 0.75rem;
            color: var(--text-dim); margin-bottom: 0.8rem; text-transform: uppercase;
            letter-spacing: 0.1em; transition: color 0.3s;
        }
        .form-label span { color: var(--tier1-color); margin-right: 0.5rem; }

        /* Elite Input Styling */
        .cyber-input {
            width: 100%; background: rgba(0,0,0,0.3); border: none;
            border-left: 2px solid transparent; border-bottom: 1px solid rgba(255,255,255,0.1);
            color: #fff; font-family: var(--font-mono); font-size: 0.95rem;
            padding: 1rem 1.2rem; transition: all 0.3s; outline: none; resize: none;
        }
        .cyber-input:focus {
            background: rgba(197, 255, 74, 0.03);
            border-left-color: var(--tier1-color);
            border-bottom-color: rgba(197, 255, 74, 0.5);
            box-shadow: inset 10px 0 20px -10px rgba(197, 255, 74, 0.2);
        }
        .cyber-input:focus + .form-label { color: var(--tier1-color); }

        .terminal-select {
            appearance: none; cursor: pointer; color: var(--text-dim);
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5FF4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em;
        }
        .terminal-select:focus { color: #fff; }

        /* Cyberpunk Submit Button */
        .btn-submit {
            width: 100%; background: rgba(0,0,0,0.8); border: 1px solid var(--tier1-color);
            color: var(--tier1-color); font-family: var(--font-mono); font-size: 0.95rem;
            font-weight: 700; padding: 1.2rem; text-transform: uppercase; letter-spacing: 0.1em;
            cursor: pointer; transition: all 0.4s var(--ease-fluid); position: relative;
            overflow: hidden; display: flex; justify-content: center; align-items: center; gap: 0.8rem;
        }
        .btn-submit::before {
            content: ''; position: absolute; inset: 0; background: var(--tier1-color);
            transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-fluid); z-index: 0;
        }
        .btn-submit span, .btn-submit i { position: relative; z-index: 1; transition: color 0.4s; }
        .btn-submit:hover::before { transform: scaleX(1); }
        .btn-submit:hover span, .btn-submit:hover i { color: #000; }
        
        /* JS States */
        .btn-submit.sending { border-color: var(--tier2-color); color: var(--tier2-color); pointer-events: none; }
        .btn-submit.sending::before { background: var(--tier2-color); transform: scaleX(0.5); animation: loadingScan 1.5s infinite; }
        .btn-submit.success { border-color: var(--tier1-color); background: var(--tier1-color); color: #000; pointer-events: none; }
        
        @keyframes loadingScan { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 50.1% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

        /* =========================================
           FOOTER (Identical to Home)
           ========================================= */
        .footer { padding: 6rem 0 3rem 0; background: var(--bg-void); position: relative; z-index: 10; border-top: 1px solid rgba(255,255,255,0.05); }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 4rem; margin-bottom: 4rem; }
        .f-brand h4 { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: 1rem; }
        .f-brand p { font-size: 0.85rem; color: #777; max-width: 300px; line-height: 1.6; }

        .f-nav h5 { font-size: 0.75rem; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
        .f-links { display: flex; flex-direction: column; gap: 1rem; }
        .f-links a { font-size: 0.85rem; color: #777; text-decoration: none; transition: color 0.3s; }
        .f-links a:hover { color: var(--tier1-color); padding-left: 5px; }

        .f-social { display: flex; gap: 1rem; flex-wrap: wrap; }
        .social-btn { width: 48px; height: 48px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #aaa; text-decoration: none; background: rgba(255,255,255,0.02); transition: all 0.5s var(--spring); position: relative; }
        .social-twitter:hover { border-color: #1DA1F2; background: #1DA1F2; color: #fff; transform: translateY(-10px) rotate(-12deg) scale(1.1); box-shadow: 0 10px 25px rgba(29, 161, 242, 0.5); }
        .social-youtube:hover { border-color: #FF0000; background: #FF0000; color: #fff; transform: translateY(-8px) rotate(15deg) scale(1.15); box-shadow: 0 10px 25px rgba(255, 0, 0, 0.5); }
        .social-github:hover { border-color: #fff; background: #fff; color: #000; transform: translateY(-12px) rotate(-5deg) scale(1.1); box-shadow: 0 10px 25px rgba(255, 255, 255, 0.4); }
        .social-instagram:hover { border-color: transparent; color: #fff; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); transform: translateY(-10px) rotate(8deg) scale(1.1); box-shadow: 0 10px 25px rgba(220, 39, 67, 0.5); }
        .social-tiktok:hover { border-color: #fff; background: #000; color: #fff; transform: translateY(-12px) rotate(-10deg) scale(1.1); box-shadow: -4px 4px 0 #fe0979, 4px -4px 0 #00f2fe, 0 10px 25px rgba(255, 255, 255, 0.2); }

        .footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
        .copyright { font-size: 0.75rem; color: #555; text-transform: uppercase; letter-spacing: 0.1em; }
        .legal { display: flex; gap: 2rem; }
        .legal a { font-size: 0.75rem; color: #555; text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.3s;}
        .legal a:hover { color: #fff; }

        /* =========================================
           ANIMATIONS & RESPONSIVE
           ========================================= */
        @keyframes flicker { 0% { opacity: 0.85; } 50% { opacity: 0.75; } 100% { opacity: 0.85; } }
        @keyframes blink { 50% { opacity: 0; } }

        /* SVG Filter Container */
        .svg-filters { position: absolute; width: 0; height: 0; pointer-events: none; }

        @media (max-width: 1024px) {
            .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
            .sys-status, .section-desc { justify-content: center; margin-inline: auto; text-align: center;}
            .section-title { text-align: center; }
            .navbar { padding: 1.5rem 2rem; }
            .nav-links { display: none; }
            .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
            .f-brand p, .f-social { margin-inline: auto; justify-content: center; }
            .footer-bottom { flex-direction: column; text-align: center; }
            .info-panel { order: -1; } /* Põe as infos em cima no mobile */
        }