/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --primary: #2563eb;       
    --primary-dark: #1e40af;
    --primary-light: #eff6ff;
    --text-main: #111827;     
    --text-muted: #6b7280;    
    --bg-body: #f3f4f6;       
    --bg-white: #ffffff;
    --bg-dark: #0f172a;       
    --nav-height: 70px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; -webkit-font-smoothing: antialiased; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-top: var(--nav-height);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }

/* =========================================
   2. NAVBAR (SHARED)
   ========================================= */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-soft);
    height: var(--nav-height);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
}

/* Navbar specific flex container */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text-main); display: flex; align-items: center;  }
.logo span { color: var(--primary); }

.nav-menu { display: flex; gap: 32px; align-items: center; }
.nav-link { font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); font-weight: 600; }

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-1px); }

/* Hamburger (Hidden on Desktop) */
.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 5px; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: 0.3s; background-color: var(--text-main); border-radius: 2px; }

/* Mobile Drawer (Hidden on Desktop) */
.mobile-nav { display: none; }

/* =========================================
   3. FOOTER (SHARED)
   ========================================= */
.site-footer { background-color: var(--bg-dark); color: #e5e7eb; padding: 80px 20px 30px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; max-width: 1200px; margin: 0 auto 40px; }
.footer-logo { color: white; margin-bottom: 20px; display: inline-block; }
.footer-desc { color: #94a3b8; max-width: 350px; line-height: 1.6; margin-bottom: 20px; }
.footer-col h3 { color: white; font-weight: 700; margin-bottom: 20px; font-size: 1.1rem; letter-spacing: 0.5px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; transition: 0.2s; text-decoration: none; display: inline-block; }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.footer-bottom { border-top: 1px solid #1f2937; padding-top: 30px; text-align: center; color: #64748b; font-size: 0.9rem; }

/* =========================================
   4. FLOATING BUTTON (SHARED)
   ========================================= */
.floating-btn { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 999; transition: 0.3s; box-shadow: 0 8px 20px rgba(37,99,235,0.4); text-decoration: none; }
.floating-btn:hover { transform: translateY(-5px); }
.floating-btn svg { width: 30px; height: 30px; stroke-width: 2.5; }

.support-tooltip { 
    position: absolute; right: 75px; top: 50%; transform: translateY(-50%) translateX(10px); 
    background-color: #1e293b; color: white; padding: 8px 16px; 
    font-size: 0.85rem; font-weight: 600; white-space: nowrap; 
    border-radius: 6px; opacity: 0; visibility: hidden; 
    transition: all 0.3s ease; pointer-events: none; 
}
.support-tooltip::after { content: ''; position: absolute; top: 50%; right: -6px; margin-top: -6px; border-width: 6px; border-style: solid; border-color: transparent transparent transparent #1e293b; transform: rotate(-90deg); }
.support-tooltip.show { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

/* =========================================
   5. RESPONSIVE (GLOBAL NAV)
   ========================================= */
@media (max-width: 768px) {
    .nav-menu { display: none; } 
    .hamburger { display: block; }
    
    .mobile-nav { 
        display: flex; flex-direction: column; position: fixed; left: -100%; top: 70px; width: 100%; 
        background: white; border-bottom: 1px solid #eee; transition: 0.3s; padding: 10px 0; z-index: 999;
        box-shadow: var(--shadow-soft);
    }
    .mobile-nav.active { left: 0; }
    .mobile-nav a { padding: 15px 25px; border-bottom: 1px solid #f9fafb; color: var(--text-main); font-weight: 500; display: block; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .floating-btn { width: 55px; height: 55px; bottom: 25px; right: 25px; }
    .support-tooltip { right: 70px; font-size: 0.8rem; }
}
