/* ==========================================================================
   Premium CSS Variables & Tokens
   ========================================================================== */
:root {
    --primary: #0a1628;
    --primary-light: #1e3a62;
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --gold: #d4af37;
    --light: #f8fafc;
    --dark: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --border: rgba(226, 232, 240, 0.5);
    --white: #ffffff;
    
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Bebas Neue', cursive;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 40px -10px rgba(10, 22, 40, 0.08);
    --shadow-float: 0 20px 40px -10px rgba(10, 22, 40, 0.15);
    --shadow-glow: 0 0 25px rgba(220, 38, 38, 0.4);
}

/* ==========================================================================
   Base Elements & Reset
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: var(--font-body); 
    color: var(--text); 
    line-height: 1.7; 
    background-color: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-heading); 
    font-weight: 700; 
    line-height: 1.2; 
    color: var(--primary); 
    letter-spacing: -0.02em;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   Premium Utilities
   ========================================================================== */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.glass-dark {
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-light {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Header & Navigation (Ultra-Premium)
   ========================================================================== */
.topbar { background: var(--primary); color: rgba(255,255,255,0.8); padding: 8px 0; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.5px;}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left a, .topbar-right a { color: inherit; margin-right: 20px; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.topbar-left a:hover, .topbar-right a:hover { color: var(--accent); }

.header { 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000; transition: var(--transition); 
}
.header.scrolled { padding: 5px 0; box-shadow: var(--shadow-float); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; transition: var(--transition); }
.header.scrolled .header-inner { padding: 4px 0; }
.logo h2 { font-size: 2rem; margin: 0; font-weight: 800; letter-spacing: -1px; }

.nav-links { display: flex; gap: 14px; align-items: center; margin: 0; }
.nav-links a { 
    font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; 
    color: var(--primary); position: relative; padding: 8px 2px; display: inline-block; 
    white-space: nowrap; transition: color 0.3s ease;
}
.nav-links a::after { 
    content: ''; position: absolute; bottom: 0px; left: 50%; transform: translateX(-50%); width: 0; height: 2.5px; 
    background: var(--accent); transition: width 0.3s ease; border-radius: 2px;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* Dropdown Menu Styles */
.nav-links .has-dropdown { position: relative; padding: 10px 0; }
.dropdown-menu { 
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(20px); 
    background: var(--white); min-width: 260px; box-shadow: var(--shadow-float); 
    border-radius: 12px; opacity: 0; visibility: hidden; transition: var(--transition); 
    z-index: 999; padding: 12px; border: 1px solid var(--border);
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu li { display: block; width: 100%; margin-bottom: 4px; }
.dropdown-menu li a { 
    display: block; padding: 10px 16px; font-weight: 500; font-size: 0.9rem; 
    color: var(--text); border-radius: 8px; transition: var(--transition);
}
.dropdown-menu li a::after { display: none !important; }
.dropdown-menu li a:hover { background: rgba(220, 38, 38, 0.05); color: var(--accent); padding-left: 20px; }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

/* ==========================================================================
   Hero Section Animations
   ========================================================================== */
.hero-section { position: relative; height: 95vh; min-height: 750px; max-height: 1000px; width: 100%; overflow: hidden; background: #000; }
.heroSwiper { width: 100%; height: 100%; }
.hero-slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.7) 50%, rgba(10,22,40,0.2) 100%); z-index: 2; }
.hero-content-wrapper { height: 100%; display: flex; align-items: center; position: relative; z-index: 3; }
.hero-content { max-width: 750px; text-align: left; }

.hero-title { font-size: 4.5rem; color: var(--white); line-height: 1.05; margin-bottom: 24px; font-weight: 900; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.25rem; color: rgba(255,255,255,0.85); font-weight: 400; line-height: 1.6; }

/* Active slide animations */
.swiper-slide-active .hero-badge { animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; opacity: 0; transform: translateY(40px); }
.swiper-slide-active .hero-title { animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards; opacity: 0; transform: translateY(40px); }
.swiper-slide-active .hero-subtitle { animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards; opacity: 0; transform: translateY(40px); }
.swiper-slide-active .hero-btn { animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards; opacity: 0; transform: translateY(40px); }
.swiper-slide-active .hero-slide-bg { transform: scale(1.1); transition: transform 10s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 100px 0 0; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer h3, .footer h4 { color: var(--white); margin-bottom: 25px; font-weight: 700; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { display: inline-flex; align-items: center; gap: 8px; }
.footer-col ul li a::before { content: '→'; font-size: 0.8em; color: var(--accent); opacity: 0; transform: translateX(-10px); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li a:hover::before { opacity: 1; transform: translateX(0); }
.footer-bottom { background: rgba(0,0,0,0.4); padding: 25px 0; margin-top: 60px; text-align: center; font-size: 0.9rem; }

/* ==========================================================================
   Floating Elements & Globals
   ========================================================================== */
.whatsapp-btn { 
    position: fixed; bottom: 30px; right: 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: 100; transition: var(--transition); animation: float 6s ease-in-out infinite;
}
.whatsapp-btn:hover { transform: scale(1.1) rotate(-10deg); background: #20b858; box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5); }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes slideUpFade { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
@keyframes shimmer { 0% { background-position: -1000px 0; } 100% { background-position: 1000px 0; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 3.5rem; }
    
    /* Responsive Navbar for Tablet & Mobile */
    .topbar { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-links { 
        display: none; position: absolute; top: 100%; left: 0; width: 100%; 
        height: calc(100vh - 65px); /* Covers full height instead of getting stuck */
        background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); 
        padding: 20px 24px 40px; box-shadow: var(--shadow-float); flex-direction: column; 
        text-align: left; border-top: 1px solid rgba(0,0,0,0.05); gap: 0; 
        overflow-y: auto; 
    }
    .nav-links.active { display: flex; }
    .nav-links li:not(.mobile-btn) > a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.05); width: 100%; white-space: normal; color: var(--primary); font-size: 1rem; }
    .nav-links li:not(.mobile-btn) > a::after { display: none; }
    .nav-links li { width: 100%; }
    .nav-links li:not(.mobile-btn):last-child > a { border-bottom: none; }
    
    /* Fix Get Quote Button */
    .nav-links li.mobile-btn { margin-top: auto; padding-top: 20px; }
    .nav-links li.mobile-btn a { color: #ffffff !important; padding: 12px 24px !important; }
    
    /* Mobile Dropdown Fix */
    .nav-links .has-dropdown { padding: 0; }
    .dropdown-menu { 
        position: static !important; transform: none !important; visibility: visible; opacity: 1; 
        box-shadow: none; border: none; background: rgba(0,0,0,0.02); 
        padding: 0; min-width: 100%; margin: 0; border-radius: 8px; 
        display: none !important; left: 0 !important;
    }
    .has-dropdown:hover .dropdown-menu,
    .has-dropdown.active-dropdown .dropdown-menu { 
        display: block !important; padding: 10px 0; margin-top: 5px; margin-bottom: 10px;
        transform: none !important; left: 0 !important;
    }
    .has-dropdown > a i { transition: transform 0.3s ease; }
    .has-dropdown.active-dropdown > a i { transform: rotate(180deg); }
    
    .dropdown-menu li a { padding: 12px 20px !important; font-size: 0.95rem !important; border-bottom: 1px solid rgba(0,0,0,0.03) !important; color: var(--text) !important; font-weight: 500 !important; display: block !important; }
    .dropdown-menu li:last-child a { border-bottom: none !important; }
}

@media (max-width: 768px) {
    .header-action .btn, .header-action a { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .hero-nav-wrapper { right: 10px; bottom: 10px; flex-direction: row; }
}