/* =========================================
   GOVEN AGENCY - TECH & UNIQUE CSS
   ========================================= */

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

:root {
    /* Colors - Tech Dark Aesthetic */
    --bg-dark: #030712; /* Deep space black */
    --bg-card: rgba(17, 24, 39, 0.6); /* Translucent dark blue */
    --primary: #00f0ff; /* Neon Cyan */
    --primary-dim: rgba(0, 240, 255, 0.1); /* Faint cyan for backgrounds */
    --primary-glow: rgba(0, 240, 255, 0.5); /* Stronger neon shadow */
    --accent-electric: #7000ff; /* Electric purple for gradients */
    --accent-glow: rgba(112, 0, 255, 0.4);
    
    --text-main: #f8fafc; /* Near white for high legibility */
    --text-muted: #94a3b8; /* Cool grey */
    --border-glass: rgba(255, 255, 255, 0.1); /* Very light glass border */
    --border-accent: rgba(0, 240, 255, 0.3); /* Glowing border */
    
    /* Fonts */
    --font-main: 'Outfit', sans-serif;
    --font-tech: 'Space Grotesk', sans-serif; /* For numbers/metrics */
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* =========================================
   ANIMATED TECH BACKGROUND
   ========================================= */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Subtle animated grid */
    background-image: 
        linear-gradient(var(--bg-card) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-card) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    z-index: -2;
    opacity: 0.3;
}

/* Moving neon gradient orb behind content */
body::after {
    content: '';
    position: fixed;
    top: -20%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatOrb 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30vw, 20vh) scale(1.2); background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%); }
    100% { transform: translate(-10vw, 40vh) scale(0.9); }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Typography & Utils */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.text-dark { color: var(--text-main) !important; } /* Overriding to white for dark theme */
.text-blue { color: var(--primary) !important; text-shadow: 0 0 15px var(--primary-glow); }
.text-muted { color: var(--text-muted) !important; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.fs-h2 { font-size: 2.5rem; font-family: var(--font-tech); }
.fs-sm { font-size: 0.9rem; }
.bg-white { background-color: transparent !important; } /* Stripping white bg */
.bg-light { background-color: transparent !important; } /* Stripping light bg */
.bg-blue-light { background: linear-gradient(135deg, var(--primary-dim), rgba(112, 0, 255, 0.1)); border-radius: 50%; padding: 1rem; width: 60px; height: 60px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-accent); box-shadow: 0 0 15px var(--primary-dim); }

/* Layout & Spacing */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }
.py-huge { padding: 8rem 0; }
.py-5 { padding: 4rem 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.align-left { text-align: left; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.d-block { display: block; }
.d-flex-center { display: flex; align-items: center; justify-content: center; }

/* Grid Helper Classes */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; align-items: stretch;}
.flex-centered-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.flex-centered-grid > * { flex: 1 1 calc(33.333% - 2rem); min-width: 300px; max-width: 380px; }

/* Custom Pain Cards */
.pain-card { position: relative; z-index: 1; overflow: hidden; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); border: 1px solid var(--border-glass); }
.pain-card::before {
    content: attr(data-number); position: absolute; top: -10%; right: -5%;
    font-size: 8rem; font-weight: 900; color: rgba(255,255,255,0.02);
    z-index: -1; font-family: var(--font-tech); line-height: 1;
    transition: all 0.4s ease;
}
.pain-card:hover { transform: translateY(-5px); border-color: rgba(0,240,255,0.3); box-shadow: 0 10px 40px rgba(0,240,255,0.1); }
.pain-card:hover::before { color: rgba(0,240,255,0.05); transform: scale(1.1) translate(-10px, 10px); }
.pain-icon-wrapper { width: 50px; height: 50px; border-radius: 12px; background: rgba(0,240,255,0.05); border: 1px solid rgba(0,240,255,0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: var(--primary); font-size: 1.5rem; box-shadow: 0 0 15px rgba(0,240,255,0.1); }

/* Buttons (Cyber Aesthetic) */
.btn-primary {
    background: linear-gradient(90deg, var(--primary), #0099ff);
    color: #030712 !important;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--primary-glow);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px var(--primary-glow), 0 0 10px #ffffff inset;
}
.btn-primary:hover::before { left: 100%; }
.btn-large { font-size: 1.1rem; padding: 1.25rem 2.5rem; }

/* ZigZag Premium Layout */
.method-zigzag { display: flex; flex-direction: column; gap: 6rem; padding-top: 3rem; }
.zigzag-row { display: flex; flex-wrap: wrap; gap: 4rem; align-items: center; }
.zigzag-row.row-reverse { flex-direction: row-reverse; }
.zigzag-content { flex: 1 1 400px; text-align: left; }
.zigzag-visual { 
    flex: 1 1 400px; 
    border: 1px solid var(--border-accent); 
    background: linear-gradient(135deg, rgba(3,7,18,0.8), rgba(0,240,255,0.05)); 
    border-radius: var(--radius-lg); 
    padding: 3rem !important; 
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.zigzag-visual::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,240,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.badge-pill {
    padding: 0.4rem 1rem; border: 1px solid var(--primary); color: var(--primary);
    border-radius: 50px; font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
    background: rgba(0, 240, 255, 0.1); box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.fs-md { font-size: 1.1rem; }
.d-inline-block { display: inline-block; }

/* Navbar (Glass) */
.navbar-global {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(3, 7, 18, 0.7);
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    z-index: 100;
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.desktop-nav { display: flex; align-items: center; gap: 2.5rem; }
.desktop-nav .nav-link { font-family: var(--font-tech); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; color: var(--text-muted); transition: color 0.3s, text-shadow 0.3s; }
.desktop-nav .nav-link:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }

.menu-toggle { display: none; border: none; background: transparent; font-size: 1.5rem; cursor: pointer; color: var(--primary); }
.mobile-nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(3, 7, 18, 0.95); backdrop-filter: blur(20px); z-index: 1000; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; }
.mobile-nav-overlay.visible { display: flex; animation: fadeIn 0.3s ease; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.mobile-link { font-family: var(--font-tech); font-size: 1.5rem; font-weight: 700; color: var(--text-main); text-transform: uppercase; letter-spacing: 2px; }
.mobile-link:hover { color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }
.close-menu { position: absolute; top: 1.5rem; right: 2rem; font-size: 2.5rem; border: none; background: transparent; cursor: pointer; color: var(--primary); transition: transform 0.3s; }
.close-menu:hover { transform: rotate(90deg); }

/* Hero */
.hero-goven { padding: 12rem 0 6rem; min-height: 90vh; display: flex; align-items: center; }
.hero-split { display: flex; align-items: center; gap: 4rem; justify-content: space-between; }
.hero-content { flex: 1; min-width: 300px; }
.hero-title { font-size: 4.5rem; letter-spacing: -2px; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.15rem; font-weight: 300; line-height: 1.8; color: var(--text-muted); }
.hero-visual { flex: 1; min-width: 300px; display: flex; justify-content: center; position: relative; }

/* VSL Tech Mockup */
.hero-visual::before {
    content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0;
    background: radial-gradient(circle at center, var(--primary-glow), transparent 70%);
    filter: blur(40px); z-index: -1;
}
.vsl-mockup { 
    width: 100%; max-width: 550px; aspect-ratio: 16/9; 
    background: rgba(17, 24, 39, 0.8); 
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; 
    border: 1px solid var(--border-accent); cursor: pointer; 
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.1), inset 0 0 20px rgba(0, 240, 255, 0.05); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.vsl-mockup:hover { transform: scale(1.03) translateY(-10px); box-shadow: 0 0 60px rgba(0, 240, 255, 0.2), inset 0 0 30px rgba(0, 240, 255, 0.1); border-color: var(--primary); }
.vsl-inner i { font-size: 4.5rem; background: linear-gradient(135deg, var(--primary), var(--accent-electric)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px var(--primary-glow)); }

/* VSL HUD Decoration */
.vsl-decoration {
    position: absolute; width: 160%; height: 160%; top: -30%; left: -30%;
    z-index: -1; pointer-events: none; display: flex; align-items: center; justify-content: center;
}
.hud-ring {
    position: absolute; border-radius: 50%; border: 1px dashed rgba(0, 240, 255, 0.2);
}
.ring-1 { width: 70%; height: 70%; animation: rotateCCW 20s linear infinite; }
.ring-2 { width: 85%; height: 85%; border: 1px dotted rgba(0, 240, 255, 0.1); animation: rotateCW 30s linear infinite; }

.scan-line {
    position: absolute; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.5), transparent);
    top: 0; animation: scanning 4s ease-in-out infinite; z-index: 2;
}

.grid-floor {
    position: absolute; bottom: -10%; left: 0; width: 100%; height: 40%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(600px) rotateX(60deg) scale(1.5);
    mask-image: linear-gradient(to top, black, transparent);
    opacity: 0.5;
}

@keyframes rotateCW { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotateCCW { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes scanning {
    0%, 100% { top: 10%; opacity: 0; }
    50% { top: 90%; opacity: 1; }
}

/* Platforms Trust Bar - Refined */
.platforms-bar {
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(3, 7, 18, 0.85); /* Slightly darker for contrast */
    padding: 2.5rem 0; /* More vertical breathing room */
}
.platforms-flex {
    display: flex;
    justify-content: space-between; /* Space out fully */
    align-items: center;
    flex-wrap: wrap;
    gap: 5rem; /* Large gap for premium feel */
}
.platform-item {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.platform-item:hover { transform: scale(1.15) translateY(-5px); }

.platform-img {
    height: 42px; width: auto; object-fit: contain; 
}

.meta-img { height: 38px; }
.google-img { height: 50px; }
.tiktok-img { height: 50px; }
.perfit-img { height: 55px; }

/* HUD Particles Simulation in CSS */
.particles-container::before {
    content: ''; position: absolute; width: 100%; height: 100%;
    background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.2; animation: drift 15s linear infinite;
}
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-100px); } }

/* Casos brand logos */
.caso-brand-logo { 
    display: none; 
}

/* Glass Cards & Shadows */
.premium-card, .method-step { 
    background: var(--bg-card); padding: 2.5rem; border-radius: var(--radius-md); 
    border: 1px solid var(--border-glass); 
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s ease; display: flex; flex-direction: column; 
    position: relative; overflow: hidden;
}
/* Card Hover Glow Effect */
.premium-card::after, .method-step::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg); transition: left 0.7s ease; pointer-events: none;
}
.premium-card:hover::after, .method-step:hover::after { left: 200%; }

.premium-card:hover, .method-step:hover { 
    transform: translateY(-8px); border-color: var(--border-accent); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px var(--primary-dim); 
}
.premium-card .card-title { font-size: 1.3rem; font-family: var(--font-tech); text-transform: uppercase; letter-spacing: 1px; }

/* Casos specific */
.casos-grid .premium-card { border-top: 3px solid var(--primary); }
.caso-metric { font-family: var(--font-tech); text-shadow: 0 0 20px var(--primary-glow); }

/* Clean Form -> Cyber Form */
.clean-form { 
    background: rgba(17, 24, 39, 0.7); border: 1px solid var(--border-accent); 
    padding: 3.5rem; border-radius: var(--radius-lg); 
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.05); text-align: left; 
}
.input-modern { 
    width: 100%; padding: 1.25rem; border: 1px solid var(--border-glass); 
    border-radius: var(--radius-sm); background: rgba(3, 7, 18, 0.8); 
    color: var(--text-main); font-size: 1rem; transition: all 0.3s ease; font-family: var(--font-main); 
}
.input-modern:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 15px var(--primary-dim), inset 0 0 10px var(--primary-dim); }
.input-modern::placeholder { color: #475569; }

/* Custom Radio Links */
.radio-group-modern { display: flex; gap: 1rem; }
.radio-card { flex: 1; position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; cursor: pointer; }
.radio-card span { 
    display: block; padding: 1.25rem; text-align: center; border: 1px solid var(--border-glass); 
    border-radius: var(--radius-sm); background: rgba(3, 7, 18, 0.8); transition: all 0.3s; font-weight: 600; 
}
.radio-card input:checked ~ span { border-color: var(--primary); background: rgba(0, 240, 255, 0.05); color: var(--primary); box-shadow: 0 0 15px var(--primary-dim) inset; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Utils & Animations */
.fade-in { opacity: 0; }
.fade-in.visible { animation: fadeInUp 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.border-top-light { border-top: 1px solid var(--border-glass); }

/* --- Glowing Tech Modal --- */
.tech-modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto;
    background-color: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    align-items: center; justify-content: center;
}
.tech-modal.show { display: flex; animation: fadeInModal 0.3s ease; }
@keyframes fadeInModal { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.tech-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.05);
    margin: auto; padding: 3rem; width: 90%; max-width: 1000px;
    position: relative; border-radius: var(--radius-lg);
    max-height: 90vh; overflow-y: auto;
}
.close-modal {
    position: absolute; top: 1.5rem; right: 2rem;
    color: var(--text-muted); font-size: 2rem;
    font-weight: bold; cursor: pointer; transition: color 0.3s;
}
.close-modal:hover { color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.modal-img-container img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border-glass); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* --- Mobile Breakpoints --- */
@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .menu-toggle { display: block; }
    .hero-goven { padding: 9rem 0 5rem; text-align: center; }
    .hero-split { flex-direction: column; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { max-width: 600px; margin: 0 auto 2rem; }
    body::after { width: 100vw; height: 100vw; }
}

@media (max-width: 768px) {
    .py-huge { padding: 5rem 0; }
    .hero-title { font-size: 2.5rem; letter-spacing: -1px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1.5rem; }
    .clean-form { padding: 2rem 1.5rem; }
    .fs-h2 { font-size: 2rem; }
    .zigzag-row.row-reverse { flex-direction: column; }
    .zigzag-row { flex-direction: column; text-align: center; gap: 2rem; }
    .zigzag-content { text-align: center; }
    .method-zigzag { gap: 4rem; }
}

/* --- Responsive Media Queries --- */

@media (max-width: 992px) {
    .hero-split { flex-direction: column; text-align: center; gap: 4rem; }
    .hero-content { max-width: 100% !important; margin: 0 auto; }
    .hero-visual { width: 100%; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .py-huge { padding: 5rem 0; }
    .section-title { font-size: 2.2rem; }
    
    /* Platforms Bar Mobile - Stack in 2x2 for better scale */
    .platforms-flex {
        justify-content: center;
        gap: 3rem;
        padding: 1rem 0;
    }
    .platform-item {
        flex: 1 1 40%; /* 2 items per row */
        display: flex;
        justify-content: center;
    }
    .platform-img { height: 35px; }
    .meta-img { height: 32px; }
    .google-img { height: 42px; }
    .tiktok-img { height: 42px; }
    .perfit-img { height: 50px; } /* Improved scale for visibility */

    /* Social Proof Stats Grid - Stack on mobile */
    .proof-stats-grid { grid-template-columns: 1fr !important; }

    /* Contact Form Mobile - Absolute Vertical Stack */
    #govenForm .form-row { 
        display: flex !important;
        flex-direction: column !important; 
        gap: 1.25rem !important; 
        width: 100% !important;
        margin-bottom: 1.25rem !important;
    }
    #govenForm .form-group, 
    #govenForm .input-group { 
        width: 100% !important; 
        max-width: 100% !important;
        margin-bottom: 0 !important; 
    }
    #govenForm .radio-group-modern {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    #govenForm .radio-card {
        width: 100% !important;
    }
    
    /* GPS Mobile */
    .method-step { flex-direction: column !important; text-align: center; gap: 2rem; padding: 2rem; }
    .step-icon-wrapper { margin-bottom: 1rem; }
    .step-line { display: none; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 1.8rem; }
    
    .container { padding: 0 1.5rem; }
    
    .platforms-flex { gap: 2rem; }
    .platform-img { height: 28px; }
    .google-img { height: 34px; }
    .tiktok-img { height: 34px; }
    .perfit-img { height: 38px; }

    .vsl-decoration { width: 100% !important; height: 100% !important; top: 0 !important; left: 0 !important; }
    
    .btn-primary { width: 100%; display: flex; justify-content: center; }
}