/* =========================================================
   AGILE VISA - GLOBAL DESIGN SYSTEM 
   ========================================================= */

/* --- 1. DESIGN SYSTEM --- */
:root {
    --bg-navy: #0a192f;
    --bg-light-navy: #112240;
    --bg-card-hover: #1d3459;
    --text-platinum: #e6f1ff;
    --text-slate: #a8b2d1;
    --accent-teal: #64ffda;
    --accent-gold: #ffd700;
    --border: rgba(255,255,255,0.1);
    --container: 1200px;
}

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; }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--text-platinum); margin: 0 0 20px 0; letter-spacing: -0.5px; }
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); }

/* --- 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; }
.btn:hover { background: rgba(100, 255, 218, 0.1); transform: translateY(-2px); }
.btn-filled { background: var(--accent-teal); color: var(--bg-navy); }
.btn-filled:hover { background: #4cdbb9; color: var(--bg-navy); }

/* --- 3. NAVIGATION --- */
nav { position: fixed; top: 0; width: 100%; height: 80px; background: rgba(10, 25, 47, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); z-index: 1000; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 45px; 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: 30px; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--text-platinum); }
.nav-links a:hover { color: var(--accent-teal); }

.mobile-toggle { display: none; color: var(--accent-teal); font-size: 1.8rem; cursor: pointer; }

/* Ensure nav buttons always keep their specific colors */
.nav-links a.btn {
    color: var(--accent-teal) !important;
}
.nav-links a.btn:hover {
    color: var(--accent-teal) !important;
    background: rgba(100, 255, 218, 0.1);
}

/* --- 4. HERO SECTION & CANVAS --- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; padding-top: 80px; 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.3s; border-top: 4px solid transparent; }
.pillar-card:hover { transform: translateY(-10px); background: var(--bg-card-hover); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.pillar-card:nth-child(1):hover { border-top-color: var(--accent-teal); }
.pillar-card:nth-child(2):hover { border-top-color: #bd93f9; }
.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; }
.pillar-card h3 { font-size: 1.5rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.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); 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: 3rem; 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); }
.info-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--text-platinum); }
.info-card p { font-size: 0.95rem; margin-bottom: 15px; }
.info-card p:last-child { margin-bottom: 0; }

/* --- 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: 15px; 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: 0.95rem; box-sizing: border-box; }
.lead-capture-form input:focus { outline: none; border-color: var(--accent-teal); }

/* --- 11. COMPLEX FOOTER (REDESIGNED) --- */
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); }

/* Contact Info in Footer */
.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 */
.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); }

/* --- INTEGRATIONS (WHATSAPP & CHAT) --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Left side to avoid conflict with the B2B button */
    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); }
/* Placeholder style for future chat widget location */
#chat-widget-placeholder { position: fixed; bottom: 20px; right: 20px; z-index: 9990; }

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .whatsapp-float { bottom: 20px; left: 20px; width: 50px; height: 50px; font-size: 24px; }
}
/* --- STICKY B2B WIDGET & MODAL --- */
.sticky-private-btn { position: fixed; bottom: 30px; right: 30px; background: var(--accent-teal); color: var(--bg-navy); padding: 15px 25px; border-radius: 30px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3); transition: 0.3s; z-index: 999; display: flex; align-items: center; gap: 10px; border: none; }
.sticky-private-btn:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(100, 255, 218, 0.5); }

.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(--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: 12px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); color: #fff; border-radius: 4px; margin-bottom: 15px; font-family: 'Inter'; box-sizing: border-box; }
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { outline: none; border-color: var(--accent-teal); }

@media (max-width: 900px) {
    .sticky-private-btn { bottom: 20px; right: 20px; padding: 12px 20px; font-size: 0.75rem; }
    .modal-content { padding: 30px; margin: 20px; }
}

/* --- UPDATED NAVIGATION DROPDOWNS --- */
/* --- NAVIGATION DROPDOWNS (Gap Fixed) --- */
.dropdown-wrapper { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown-menu {
    position: absolute;
    top: 100%; /* Fixes the gap: perfectly attaches to the bottom of the nav bar */
    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; 
}

/* Add a transparent top border acting as an invisible bridge just to be extra safe */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

/* Show menu on hover */
.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-slate) !important;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: 0.2s;
    display: block;
    position: relative;
}

.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; }