/* =========================================================
   AGILE VISA - GLOBAL DESIGN SYSTEM (ENTERPRISE DARK THEME)
   ========================================================= */

/* --- 1. DESIGN SYSTEM & ENTERPRISE VARIABLES --- */
:root {
    /* Backgrounds: Premium Executive Dark */
    --bg-navy: #0a192f;
    --bg-light-navy: #112240;
    --bg-card-hover: #1d3459;
    
    /* Typography Colors */
    --text-platinum: #e6f1ff; /* Crisp White for Headings */
    --text-slate: #a8b2d1;    /* Soft Slate for Body Copy */
    
    /* Brand Accents: Agile Visa Heritage */
    --accent-teal: #64ffda;   /* Primary Action Teal */
    --accent-gold: #ffd700;   /* Executive Leadership Gold */
    --accent-growth: #bd93f9; /* Secondary accent */
    
    /* Structural */
    --border: rgba(255, 255, 255, 0.1);
    --container: 1200px;
}

/* Base Reset & Optimization */
*, *::before, *::after { 
    box-sizing: border-box; 
}

body, html { 
    margin: 0; padding: 0; 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-navy); 
    color: var(--text-slate); 
    line-height: 1.6; 
    overflow-x: hidden; 
    scroll-behavior: smooth; 
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.section-pad { padding: 100px 0; }

/* Headings: Playfair Display for Executive Authority */
h1, h2, h3, h4 { 
    font-family: 'Playfair Display', serif; 
    color: var(--text-platinum); 
    margin: 0 0 20px 0; 
    letter-spacing: -0.5px; 
    font-weight: 700;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
strong { color: var(--text-platinum); font-weight: 700; }

/* --- 2. BUTTONS --- */
.btn { 
    display: inline-flex; align-items: center; justify-content: center; 
    padding: 14px 28px; 
    border: 1px solid var(--accent-teal); 
    color: var(--accent-teal); 
    text-transform: uppercase; font-size: 0.85rem; font-weight: 600; 
    letter-spacing: 1px; border-radius: 4px; cursor: pointer; transition: 0.3s ease; background: transparent;
}
.btn:hover { background: rgba(100, 255, 218, 0.1); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(100, 255, 218, 0.2); }
.btn-filled { background: var(--accent-teal); color: var(--bg-navy); border-color: var(--accent-teal); font-weight: 700; }
.btn-filled:hover { background: #4cdbb9; color: var(--bg-navy); box-shadow: 0 8px 20px rgba(100, 255, 218, 0.3); }

/* --- 3. NAVIGATION (RIGID ENTERPRISE ARCHITECTURE) --- */
nav { 
    position: fixed; top: 0; left: 0; width: 100%; height: 85px; 
    background: rgba(10, 25, 47, 0.95); backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--border); z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.2); 
}
.nav-inner { 
    display: flex; justify-content: space-between; align-items: center; 
    height: 100%; max-width: 1350px; margin: 0 auto; width: 100%; padding: 0 30px; 
    box-sizing: border-box; gap: 40px; 
}
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { height: 48px; width: auto; display: block; object-fit: contain; }
.logo-text-fallback { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--text-platinum); margin-left: 10px; }
.logo-text-fallback span { color: var(--accent-teal); }

.nav-links { display: flex; align-items: center; gap: 28px; flex-wrap: nowrap; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--text-platinum); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-teal); }

/* Mobile Toggle (Hidden on Desktop) */
.mobile-toggle { display: none; color: var(--accent-teal); font-size: 1.8rem; cursor: pointer; }

/* Button Overrides inside Nav */
.nav-links a.btn { color: var(--accent-teal) !important; padding: 10px 20px; }
.nav-links a.btn:hover { background: rgba(100, 255, 218, 0.1); }

/* --- 4. HERO SECTION & CANVAS --- */
.hero { 
    position: relative; padding: 160px 0 100px 0; display: flex; align-items: center; 
    overflow: hidden; background: linear-gradient(180deg, var(--bg-navy) 0%, #061121 100%); 
}
#network-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.6; pointer-events: none; }
.hero-content { position: relative; z-index: 5; } 
.hero-badge { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-teal); font-weight: 700; margin-bottom: 20px; border: 1px solid rgba(100, 255, 218, 0.3); padding: 6px 12px; border-radius: 20px; }
.hero-desc { font-size: 1.2rem; max-width: 700px; margin-bottom: 40px; color: var(--text-slate); }

/* --- 5. THE THREE PILLARS --- */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: -60px; position: relative; z-index: 10; padding-bottom: 60px; }
.pillar-card { background: var(--bg-light-navy); border: 1px solid var(--border); padding: 40px 30px; border-radius: 8px; display: flex; flex-direction: column; transition: 0.4s; border-top: 4px solid transparent; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.pillar-card:hover { transform: translateY(-10px); background: var(--bg-card-hover); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.pillar-card:nth-child(1):hover { border-top-color: var(--accent-teal); }
.pillar-card:nth-child(2):hover { border-top-color: var(--accent-growth); }
.pillar-card:nth-child(3):hover { border-top-color: var(--accent-gold); }
.pillar-tag { font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 15px; font-weight: 700; color: var(--text-slate); }
.pillar-card h3 { font-size: 1.5rem; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--text-platinum); }
.pillar-card p { font-size: 0.95rem; margin-bottom: 30px; flex-grow: 1; }

/* --- 6. IMPACT METRICS --- */
.metrics-section { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; text-align: center; }
.metric h2 { font-size: 3.5rem; color: var(--accent-teal); margin-bottom: 5px; font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -1px; }
.metric p { font-size: 0.85rem; color: var(--text-slate); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin: 0; }

/* --- 7. GRID CARDS --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 50px; }
.info-card { background: var(--bg-light-navy); padding: 40px; border-radius: 8px; border: 1px solid var(--border); transition: 0.3s ease; }
.info-card:hover { border-color: var(--accent-teal); transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.3); }
.info-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--text-platinum); }
.info-card p { font-size: 0.95rem; margin-bottom: 15px; }

/* --- 8. HERITAGE STRIP --- */
.logo-strip { padding: 50px 0; background: rgba(0,0,0,0.2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.logo-track { display: flex; align-items: center; gap: 80px; width: max-content; animation: scrollLogos 40s linear infinite; }
.logo-track img { max-height: 45px; max-width: 160px; width: auto; height: auto; object-fit: contain; opacity: 0.5; filter: grayscale(100%) brightness(200%); transition: all .4s ease; flex-shrink: 0; }
.logo-track img:hover { opacity: 1; filter: grayscale(0%) brightness(100%); transform: scale(1.05); }
@keyframes scrollLogos { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 9. PHOTO GALLERY --- */
.gallery-section { padding: 100px 0 0 0; overflow: hidden; }
.gallery-wrapper { position: relative; margin-top: 50px; overflow: hidden; display: flex; }
.gallery-track { display: flex; gap: 30px; width: max-content; animation: scrollGallery 40s linear infinite; padding-bottom: 40px; }
.gallery-track img { width: 260px; height: 140px; object-fit: contain; background: #ffffff; padding: 25px; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 15px 30px rgba(0,0,0,0.4); flex-shrink: 0; transition: .4s ease; }
.gallery-track img:hover { transform: translateY(-8px); border-color: var(--accent-teal); box-shadow: 0 15px 30px rgba(100, 255, 218, 0.15); }
@keyframes scrollGallery { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 10. LEAD CAPTURE --- */
.lead-capture { background: linear-gradient(135deg, var(--bg-light-navy) 0%, #061121 100%); border: 1px solid var(--border); border-radius: 8px; padding: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 100px auto; position: relative; z-index: 5; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.lead-capture-form input { width: 100%; padding: 16px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); color: #fff; border-radius: 4px; margin-bottom: 15px; font-family: 'Inter'; font-size: 1rem; box-sizing: border-box; transition: 0.3s; }
.lead-capture-form input:focus { outline: none; border-color: var(--accent-teal); box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1); }

/* --- 11. COMPLEX FOOTER --- */
footer { background: #020c1b; padding-top: 80px; border-top: 1px solid var(--border); color: var(--text-slate); font-size: 0.9rem; }
.footer-top { padding-bottom: 50px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col h4 { color: var(--text-platinum); font-family: 'Inter', sans-serif; font-size: 1.1rem; margin-bottom: 25px; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-slate); transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--accent-teal); transform: translateX(5px); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.contact-icon { font-size: 1.2rem; color: var(--accent-teal); margin-top: 2px; }
.contact-details strong { display: block; color: var(--text-platinum); margin-bottom: 5px; }
.contact-details p { margin: 0; line-height: 1.5; font-size: 0.85rem; }
.footer-bottom { background: #010812; padding: 25px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 0.8rem; opacity: 0.7; }
.footer-legal { display: flex; gap: 25px; }
.footer-legal a:hover { color: var(--accent-teal); }

/* --- TABLE RESPONSIVENESS (PREVENTS SQUISHING) --- */
.table-responsive-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 20px; border-radius: 8px; }

/* --- STICKY WIDGETS (DARK THEME ADAPTED) --- */
.whatsapp-float { position: fixed; bottom: 30px; left: 30px; background: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); z-index: 9999; transition: 0.3s; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6); }

.side-sticky-bar, .floating-sidebar { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.side-sticky-bar a, .side-sticky-bar button, .sticky-btn { display: flex; align-items: center; gap: 12px; background: var(--bg-light-navy) !important; color: var(--text-platinum) !important; padding: 14px 24px; border-radius: 40px 0 0 40px; box-shadow: -4px 10px 20px rgba(0,0,0, 0.5); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9rem; text-decoration: none; border: 1px solid var(--border); border-right: none; cursor: pointer; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); width: max-content; margin-left: auto; }
.side-sticky-bar a:hover, .side-sticky-bar button:hover, .sticky-btn:hover { background: var(--accent-teal) !important; color: var(--bg-navy) !important; transform: translateX(-5px); box-shadow: -8px 15px 25px rgba(100,255,218, 0.2); border-color: var(--accent-teal) !important; }
.side-sticky-bar i, .side-sticky-bar svg { font-size: 1.2rem; width: 20px; height: 20px; flex-shrink: 0; color: inherit; }

/* --- MODAL (DARK THEME ADAPTED) --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 25, 47, 0.9); backdrop-filter: blur(5px); z-index: 10000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background: var(--bg-light-navy); border: 1px solid var(--border); border-top: 4px solid var(--accent-teal); padding: 50px; border-radius: 12px; width: 100%; max-width: 500px; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.5); transform: translateY(20px); transition: 0.3s; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 20px; right: 20px; background: transparent; border: none; color: var(--text-slate); font-size: 1.5rem; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: var(--accent-teal); transform: rotate(90deg); }
.modal-form input, .modal-form select, .modal-form textarea { width: 100%; padding: 14px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); color: #fff; border-radius: 6px; margin-bottom: 15px; font-family: 'Inter'; box-sizing: border-box; transition: 0.3s; }
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { outline: none; border-color: var(--accent-teal); background: rgba(10,25,47,0.8); box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1); }

/* --- NAVIGATION DROPDOWNS (GAP FIXED & DARK THEMED) --- */
.dropdown-wrapper { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown-menu { position: absolute; top: 100%; left: -20px; background: var(--bg-light-navy); min-width: 280px; border: 1px solid var(--border); border-top: 3px solid var(--accent-teal); border-radius: 0 0 8px 8px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1001; padding: 15px 0; pointer-events: none; }
.dropdown-menu::before { content: ''; position: absolute; top: -10px; left: 0; width: 100%; height: 10px; }
.dropdown-wrapper:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.dropdown-menu a { padding: 15px 25px !important; color: var(--text-platinum) !important; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem !important; font-weight: 500 !important; transition: 0.2s; display: block; position: relative; text-transform: none; letter-spacing: 0; }
.dropdown-menu a:hover { background: rgba(100, 255, 218, 0.05); color: var(--accent-teal) !important; padding-left: 30px !important; }
.dropdown-menu a:last-child { border-bottom: none; }

/* --- ELITE SHIMMER EFFECTS (DARK THEME ADAPTED) --- */
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.shimmer-btn { background: linear-gradient(90deg, #14b8a6 25%, #2dd4bf 50%, #14b8a6 75%); background-size: 200% auto; animation: shimmer 3s linear infinite; color: var(--bg-navy) !important; border: none !important; box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4); transition: transform 0.2s ease; font-weight: 800; }
.shimmer-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(20, 184, 166, 0.6); }
.shimmer-btn-compass { background: linear-gradient(90deg, #d97706 25%, #fef08a 50%, #d97706 75%); background-size: 200% auto; animation: shimmer 3s linear infinite; color: var(--bg-navy) !important; font-weight: 800 !important; border: none !important; box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4); transition: all 0.3s ease; }
.shimmer-btn-compass:hover { background: linear-gradient(90deg, #b45309 25%, #fde047 50%, #b45309 75%); box-shadow: 0 6px 20px rgba(217, 119, 6, 0.6); transform: translateY(-2px); color: var(--bg-navy) !important; }

/* =========================================================================
   RESPONSIVE DESIGN COMMAND CENTER
   ========================================================================= */

@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-stats { justify-content: center; }
    .hero-img { max-width: 600px; margin: 0 auto; }
    .content-container { grid-template-columns: 1fr; gap: 50px; }
    .sidebar-hook { position: static; } 
    .private-modal-content { grid-template-columns: 1fr; }
    .modal-img-side { display: none; } 
}

/* 🚨 GLOBAL MOBILE ARCHITECTURE (MAX WIDTH: 768px) 🚨 */
@media (max-width: 768px) {
    /* 0. THE OVERFLOW & GRID BLOWOUT KILLER */
    html, body { overflow-x: hidden !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
    *, *::before, *::after { box-sizing: border-box !important; }
    
    /* 1. Global Container Locked Down */
    .container { width: 100% !important; max-width: 100% !important; padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box !important; }
    .content-container, .main-body, aside, .pillars-grid, .grid-3 { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
    p, h1, h2, h3, li, span, a { max-width: 100% !important; white-space: normal !important; word-break: break-word !important; overflow-wrap: break-word !important; }

    .hero { padding: 100px 0 50px 0 !important; text-align: center; }
    h1, .hero-title { font-size: 2.2rem !important; line-height: 1.2 !important; }
    h2, .section-title { font-size: 1.8rem !important; }

    /* 2. Navigation Menu Overflow Fixes (DARK THEME ADAPTED) */
    .mobile-toggle { display: block !important; }
    .nav-links { display: none; position: absolute; top: 85px; left: 0; width: 100%; background: var(--bg-light-navy); flex-direction: column; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); gap: 15px; align-items: stretch; border-bottom: 1px solid var(--border); }
    .nav-links.active { display: flex !important; } 
    .nav-links a { white-space: normal !important; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-links a.btn { margin-left: 0 !important; text-align: center; justify-content: center; }

    /* 3. Hide Desktop Widgets */
    .global-sticky-bar { display: none !important; }
    .sticky-private-btn { display: none !important; } 

    /* 4. Structural Grids */
    .pillars-grid, .grid-3, .lead-capture, .footer-top { grid-template-columns: 1fr !important; margin-top: 20px !important; }
    .lead-capture { padding: 30px !important; }
    .pillar-card { margin-bottom: 20px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .logo-track img { max-width: 100px; }
    
    /* 5. 🚨 CRITICAL FIX: The WhatsApp Collision Overlap */
    .whatsapp-float { 
        bottom: 85px !important; /* Pushes the bubble above the new 70px Sticky Footer */
        right: 20px !important; 
        left: auto !important; 
        width: 50px; 
        height: 50px; 
        font-size: 24px; 
        z-index: 9999;
    }
}

/* --- MOBILE CONVERSION BAR (STICKY FOOTER - DARK THEMED) --- */
.mobile-conversion-bar {
    display: none; 
}

@media (max-width: 767px) {
    .mobile-conversion-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: var(--bg-light-navy);
        box-shadow: 0 -4px 15px rgba(0,0,0,0.5);
        padding: 0 20px;
        z-index: 10000;
        justify-content: space-between;
        align-items: center;
        border-top: 2px solid var(--accent-teal);
    }

    .mobile-price-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .mobile-price-info .label { font-size: 10px; color: var(--text-slate); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700;}
    .mobile-price-info .amount { font-size: 1.2rem; font-weight: 900; color: var(--text-platinum); line-height: 1.1;}

    .mobile-cta-btn {
        background: linear-gradient(135deg, var(--accent-teal), #4cdbb9); 
        color: var(--bg-navy);
        padding: 10px 20px;
        border-radius: 4px;
        font-weight: 800;
        text-decoration: none;
        font-size: 0.9rem;
        box-shadow: 0 4px 10px rgba(100, 255, 218, 0.2);
    }
}

