/* ==========================================================================
   NovaTrans Global - Ultimate Premium CSS
   ========================================================================== */

/* Variables & Theming */
:root {
  --primary: #0a2540;          /* Deep Corporate Blue */
  --primary-light: #16406e;
  --primary-rgb: 10, 37, 64;
  --secondary: #00d2ff;        /* Neon Cyber Blue */
  --accent: #ff4a1c;           /* Energetic Orange */
  
  --bg-color: #f8fafc;
  --bg-color-alt: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  --font-main: 'Outfit', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
  --glow: 0 0 20px rgba(0, 210, 255, 0.5);
  --border-radius: 12px;
}

[data-theme="dark"] {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --bg-color: #020617;
  --bg-color-alt: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button, input, select { font-family: inherit; outline: none; }

.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
@media (min-width: 1024px) {
  .cursor {
    width: 8px; height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    position: fixed; pointer-events: none;
    z-index: 9999; transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
  }
  .cursor-follower {
    width: 40px; height: 40px;
    border: 1px solid var(--secondary);
    border-radius: 50%;
    position: fixed; pointer-events: none;
    z-index: 9998; transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
  }
  a:hover ~ .cursor, button:hover ~ .cursor, .btn:hover ~ .cursor {
    transform: scale(2); background: var(--accent);
  }
  a:hover ~ .cursor-follower, button:hover ~ .cursor-follower, .btn:hover ~ .cursor-follower {
    transform: scale(1.5); border-color: var(--accent);
    background: rgba(255, 74, 28, 0.1);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: var(--transition); position: relative; overflow: hidden;
  border: none; z-index: 1;
}

.btn::before {
  content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
  background: rgba(255,255,255,0.2); transition: var(--transition); z-index: -1;
}

.btn:hover::before { width: 100%; }

.btn-primary { background: var(--secondary); color: #000; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(0, 210, 255, 0.8); }

.btn-outline { background: transparent; border: 2px solid var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); }

.btn-glass {
  background: rgba(255,255,255,0.1); color: #fff;
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
}
.btn-glass:hover { background: #fff; color: #000; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 45px; font-size: 1.1rem; }

/* ==========================================================================
   Top Bar & Header
   ========================================================================== */
.top-bar {
  background: var(--primary);
  color: #fff; padding: 10px 0; font-size: 0.85rem; font-weight: 500;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-left { display: flex; gap: 20px; }
.top-left span { display: flex; align-items: center; gap: 8px; }
.top-left i { color: var(--secondary); }

.top-right { display: flex; align-items: center; gap: 25px; }
.top-right a:hover { color: var(--secondary); }
.lang-selector { position: relative; cursor: pointer; }
.lang-dropdown {
  position: absolute; top: 100%; right: 0;
  background: #fff; color: #000; min-width: 80px;
  border-radius: 6px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: var(--transition);
  padding: 10px 0; z-index: 10;
}
.lang-selector:hover .lang-dropdown { opacity: 1; visibility: visible; top: calc(100% + 10px); }
.lang-dropdown a { display: block; padding: 8px 20px; }
.lang-dropdown a:hover { background: #f1f5f9; color: var(--primary); }

.theme-toggle {
  background: transparent; border: none; color: #fff; font-size: 1.1rem; cursor: pointer;
}
.theme-toggle:hover { color: var(--secondary); }

.header {
  position: sticky; top: 0; width: 100%; z-index: 1000;
  background: var(--glass-bg); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); padding: 5px 0; }

.header-inner {
  display: flex; justify-content: space-between; align-items: center; height: 90px;
}

.logo { font-size: 2rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.logo i { color: var(--secondary); }
.logo span { font-weight: 300; }

.nav-menu { display: flex; align-items: center; gap: 35px; height: 100%; }
.nav-menu > li { position: relative; height: 100%; display: flex; align-items: center; }
.nav-menu > li > a {
  font-weight: 600; color: var(--text-main); position: relative; display: flex; align-items: center; gap: 5px;
}
.nav-menu > li > a::after {
  content: ''; position: absolute; bottom: -10px; left: 0; width: 0; height: 2px;
  background: var(--secondary); transition: var(--transition);
}
.nav-menu > li > a:hover::after, .nav-menu > li > a.active::after { width: 100%; }

/* Mega Menu */
.mega-menu {
  position: absolute; top: 100%; left: -200px; width: 800px;
  background: var(--bg-color-alt); border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-color);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: var(--transition); padding: 30px; pointer-events: none;
}
.has-dropdown:hover .mega-menu {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.mega-menu-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 30px; }
.mega-col h4 { font-size: 1.1rem; margin-bottom: 15px; color: var(--primary); border-bottom: 1px solid var(--border-color); padding-bottom: 10px;}
[data-theme="dark"] .mega-col h4 { color: var(--text-main); }
.mega-col a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--text-muted); font-weight: 500; }
.mega-col a:hover { color: var(--secondary); transform: translateX(5px); }
.mega-image { position: relative; border-radius: 8px; overflow: hidden; }
.mega-image img { width: 100%; height: 100%; object-fit: cover; }
.mega-image-text {
  position: absolute; bottom: 0; left: 0; width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff; padding: 20px; font-weight: 600;
}

.header-actions { display: flex; align-items: center; gap: 15px; }
.hamburger { display: none; font-size: 1.8rem; cursor: pointer; color: var(--text-main); }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative; height: 100vh; min-height: 800px;
  display: flex; align-items: center; overflow: hidden;
  background: var(--primary);
}

.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
  background-image: url('images/hero.png');
  background-size: cover; background-position: center;
}
.grid-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px; z-index: 1;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(10,37,64,0.95) 0%, rgba(10,37,64,0.6) 50%, rgba(10,37,64,0.2) 100%);
  z-index: 2;
}

.glow { position: absolute; border-radius: 50%; filter: blur(100px); z-index: 1; }
.glow-1 { width: 400px; height: 400px; background: var(--secondary); top: 10%; right: 10%; opacity: 0.3; }
.glow-2 { width: 500px; height: 500px; background: var(--accent); bottom: -10%; left: 20%; opacity: 0.2; }

.hero-content {
  position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; width: 100%;
}

.hero-text { color: #fff; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px;
  backdrop-filter: blur(4px); color: var(--secondary);
}
.hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 24px; font-weight: 800; }
.hero h1 span {
  background: linear-gradient(90deg, var(--secondary) 0%, #00ff88 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.25rem; color: rgba(255,255,255,0.8); margin-bottom: 40px; max-width: 550px; }
.hero-btns { display: flex; gap: 20px; }

/* Tracking Widget */
.widget-glass {
  background: rgba(255,255,255,0.05); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 24px;
  padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); color: #fff;
}
.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.widget-header h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.widget-header h3 i { color: var(--secondary); }
.pulse {
  width: 12px; height: 12px; background: #00ff88; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0,255,136, 0.7); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.input-group { display: flex; background: rgba(255,255,255,0.1); border-radius: 50px; padding: 5px; border: 1px solid rgba(255,255,255,0.2); }
.input-group input {
  flex: 1; background: transparent; border: none; padding: 0 20px; color: #fff; font-size: 1rem;
}
.input-group input::placeholder { color: rgba(255,255,255,0.5); }
.input-group .btn { border-radius: 50px; width: 50px; height: 50px; padding: 0; }

.tracking-result { margin-top: 30px; display: none; }
.tracking-result.show { display: block; animation: slideUp 0.5s forwards; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.status-badge {
  display: inline-block; padding: 5px 12px; background: rgba(0,255,136,0.2);
  color: #00ff88; border-radius: 5px; font-size: 0.85rem; font-weight: 600; margin-bottom: 10px;
}
.tracking-result h4 { font-size: 1.2rem; margin-bottom: 20px; }

.tracking-timeline { position: relative; padding-left: 30px; }
.tracking-timeline::before {
  content: ''; position: absolute; top: 0; left: 14px; width: 2px; height: 100%;
  background: rgba(255,255,255,0.1);
}
.timeline-step { position: relative; margin-bottom: 25px; }
.timeline-step:last-child { margin-bottom: 0; }
.timeline-step .icon {
  position: absolute; left: -30px; width: 30px; height: 30px;
  background: var(--primary); border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; z-index: 2;
}
.timeline-step.completed .icon { background: #00ff88; border-color: #00ff88; color: #000; }
.timeline-step.active .icon { background: var(--secondary); border-color: var(--secondary); color: #000; box-shadow: 0 0 10px var(--secondary); }
.timeline-step .info strong { display: block; font-size: 1.05rem; }
.timeline-step .info span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ==========================================================================
   Section Utilities
   ========================================================================== */
section { padding: 120px 0; }
.section-title { margin-bottom: 60px; }
.section-title h2 { font-size: 2.8rem; font-weight: 800; color: var(--text-main); margin-bottom: 20px; }
.section-title p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; }
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 30px; }
.mb-4 { margin-bottom: 30px; }

/* ==========================================================================
   Cost Calculator
   ========================================================================== */
.calculator-section { background: var(--bg-color-alt); }
.calc-wrapper {
  background: var(--bg-color); border-radius: 24px; padding: 50px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-color);
  display: grid; grid-template-columns: 2fr 1fr; gap: 50px;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--text-main); }
.input-with-icon { position: relative; }
.input-with-icon i {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--secondary);
}
.input-with-icon select, .input-with-icon input {
  width: 100%; padding: 15px 15px 15px 45px; border-radius: 12px;
  border: 1px solid var(--border-color); background: var(--bg-color-alt);
  color: var(--text-main); font-size: 1rem; transition: var(--transition);
  appearance: none; -webkit-appearance: none;
}
.input-with-icon select:focus, .input-with-icon input:focus {
  border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.2);
}

.calc-result { height: 100%; display: flex; align-items: stretch; }
.result-card {
  width: 100%; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 20px; padding: 40px 30px; color: #fff; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.result-card::after {
  content: '\f54b'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; right: -20px; bottom: -20px; font-size: 10rem;
  opacity: 0.05; transform: rotate(-15deg); pointer-events: none;
}
.rc-header { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--secondary); margin-bottom: 10px; font-weight: 600; }
.rc-price { font-size: 3.5rem; font-weight: 800; margin-bottom: 30px; }
.rc-details { margin-bottom: 30px; }
.rc-details li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.rc-details i { color: var(--secondary); }

/* ==========================================================================
   Global Network
   ========================================================================== */
.network-section { background: var(--primary); color: #fff; padding-bottom: 0; }
.network-section .section-title h2 { color: #fff; }
.network-section .section-title p { color: rgba(255,255,255,0.7); }

.map-container { position: relative; height: 600px; width: 100%; margin-top: 50px; }
#leaflet-map { width: 100%; height: 100%; filter: grayscale(100%) invert(100%) hue-rotate(180deg); }
[data-theme="dark"] #leaflet-map { filter: grayscale(100%) invert(100%) hue-rotate(200deg) contrast(1.2); }

.map-overlay-card {
  position: absolute; bottom: 40px; right: 40px; z-index: 1000;
  background: var(--glass-bg); backdrop-filter: blur(15px);
  padding: 30px; border-radius: 20px; width: 350px;
  border: 1px solid var(--border-color); color: var(--text-main);
  box-shadow: var(--shadow-lg);
}
.map-overlay-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--primary); }
[data-theme="dark"] .map-overlay-card h3 { color: #fff; }
.map-overlay-card h3 i { color: var(--secondary); }
.map-overlay-card p { color: var(--text-muted); margin-bottom: 20px; }
.stats-mini { display: flex; justify-content: space-between; border-top: 1px solid var(--border-color); padding-top: 15px; }
.stats-mini strong { display: block; font-size: 1.2rem; color: var(--text-main); }

/* ==========================================================================
   Fleet & Tech
   ========================================================================== */
.fleet-section { background: var(--bg-color); }
.fleet-swiper { padding: 50px 20px 80px; }
.fleet-card {
  background: var(--bg-color-alt); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--border-color);
  transition: var(--transition);
}
.fleet-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.fleet-card img { width: 100%; height: 250px; object-fit: cover; }
.fleet-info { padding: 30px; position: relative; }
.fleet-icon {
  position: absolute; top: -30px; right: 30px; width: 60px; height: 60px;
  background: var(--secondary); border-radius: 15px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #000; box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}
.fleet-info h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-main); }
.fleet-info p { color: var(--text-muted); margin-bottom: 25px; }
.fleet-specs { display: flex; justify-content: space-between; background: var(--bg-color); padding: 15px; border-radius: 12px; }
.fleet-specs li { text-align: center; font-weight: 700; font-size: 1.1rem; color: var(--text-main); }
.fleet-specs span { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; }

.swiper-button-next, .swiper-button-prev { color: var(--primary) !important; background: var(--bg-color-alt); width: 50px !important; height: 50px !important; border-radius: 50%; box-shadow: var(--shadow-md); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 1.2rem !important; }
.swiper-pagination-bullet-active { background: var(--secondary) !important; }

/* ==========================================================================
   Live Statistics & Trust Badges
   ========================================================================== */
.live-stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0; color: #fff; position: relative; overflow: hidden;
}
.stats-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat-icon { font-size: 3rem; color: var(--secondary); margin-bottom: 20px; }
.stat-item h3 { font-size: 4rem; font-weight: 800; display: inline-block; line-height: 1; margin-bottom: 10px; }
.stat-item span { font-size: 2rem; font-weight: 700; color: var(--secondary); }
.stat-item p { font-size: 1.2rem; font-weight: 500; opacity: 0.9; }

/* Infinite Scroller */
.trust-section { padding: 60px 0; background: var(--bg-color-alt); border-bottom: 1px solid var(--border-color); }
.scroller { max-width: 100%; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.scroller__inner { display: flex; flex-wrap: nowrap; gap: 80px; padding-block: 20px; animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite; width: max-content; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 2rem; font-weight: 700; color: var(--text-muted); filter: grayscale(100%); opacity: 0.6; transition: var(--transition); }
.brand:hover { filter: grayscale(0%); opacity: 1; color: var(--text-main); }
@keyframes scroll { to { transform: translate(calc(-50% - 40px)); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: #020617; color: #94a3b8; padding: 100px 0 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 80px; }
.footer-brand h2 { color: #fff; font-size: 2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.footer-brand h2 span { font-weight: 300; }
.footer-brand h2 i { color: var(--secondary); }
.footer-brand p { margin-bottom: 30px; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: #fff; transition: var(--transition); }
.social-links a:hover { background: var(--secondary); color: #000; transform: translateY(-3px); }

.footer-links h4, .footer-newsletter h4 { color: #fff; font-size: 1.2rem; margin-bottom: 25px; }
.footer-links ul li { margin-bottom: 15px; }
.footer-links ul li a:hover { color: var(--secondary); padding-left: 5px; }

.newsletter-form { display: flex; margin-top: 20px; }
.newsletter-form input { flex: 1; padding: 15px 20px; border: none; border-radius: 8px 0 0 8px; background: rgba(255,255,255,0.1); color: #fff; }
.newsletter-form button { padding: 0 25px; background: var(--secondary); border: none; border-radius: 0 8px 8px 0; color: #000; cursor: pointer; transition: var(--transition); }
.newsletter-form button:hover { background: var(--accent); color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 30px 0; display: flex; justify-content: space-between; align-items: center; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: #fff; }

/* ==========================================================================
   Chatbot Widget
   ========================================================================== */
.chatbot-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.chat-trigger { width: 65px; height: 65px; border-radius: 50%; background: var(--secondary); color: #000; border: none; font-size: 1.8rem; cursor: pointer; box-shadow: 0 10px 30px rgba(0,210,255,0.4); transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.chat-trigger:hover { transform: scale(1.1); }

.chat-window { position: absolute; bottom: 85px; right: 0; width: 350px; height: 500px; background: var(--bg-color-alt); border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--transition); }
.chat-window.active { opacity: 1; visibility: visible; transform: translateY(0); }

.chat-header { background: var(--primary); padding: 20px; color: #fff; display: flex; align-items: center; gap: 15px; position: relative; }
.ai-avatar { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--secondary); }
.chat-header h4 { font-size: 1.1rem; }
.chat-header span { font-size: 0.8rem; color: #00ff88; display: flex; align-items: center; gap: 5px; }
.online-dot { width: 8px; height: 8px; background: #00ff88; border-radius: 50%; }
.close-chat { position: absolute; right: 20px; top: 25px; background: transparent; border: none; color: #fff; cursor: pointer; font-size: 1.2rem; }

.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background: var(--bg-color); }
.msg { max-width: 80%; padding: 12px 16px; border-radius: 15px; font-size: 0.95rem; line-height: 1.4; color: var(--text-main); }
.ai-msg { background: var(--bg-color-alt); border: 1px solid var(--border-color); border-bottom-left-radius: 0; align-self: flex-start; }
.user-msg { background: var(--primary); color: #fff; border-bottom-right-radius: 0; align-self: flex-end; }

.chat-input { padding: 15px; background: var(--bg-color-alt); border-top: 1px solid var(--border-color); display: flex; gap: 10px; }
.chat-input input { flex: 1; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 50px; background: var(--bg-color); color: var(--text-main); }
.chat-input button { width: 45px; height: 45px; border-radius: 50%; background: var(--secondary); border: none; color: #000; cursor: pointer; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .hero h1 { font-size: 3.5rem; }
  .calc-wrapper { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .nav-menu, .header-actions .btn { display: none; }
  .hamburger { display: block; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 40px; }
  .hero-btns { justify-content: center; }
  .stats-wrapper { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .calc-grid { grid-template-columns: 1fr; }
  .map-overlay-card { position: relative; bottom: 0; right: 0; width: 100%; margin-top: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .stats-wrapper { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
}

/* ==========================================================================
   NEW FEATURES: Preloader, Ticker, Scroll Progress, Glitch, Floating Icons
   ========================================================================== */

/* Preloader */
.preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--primary); z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.fade-out { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; color: #fff; }
.loader-truck { font-size: 4rem; color: var(--secondary); margin-bottom: 20px; animation: drive 2s infinite ease-in-out; }
.loader-road { width: 100px; height: 4px; background: rgba(255,255,255,0.2); margin: 0 auto 20px; position: relative; overflow: hidden; border-radius: 2px; }
.loader-road::after {
  content: ''; position: absolute; top: 0; left: -50%; width: 50%; height: 100%; background: var(--secondary);
  animation: roadSpeed 1s infinite linear;
}
.loader-text { font-size: 2rem; font-weight: 800; }
.loader-text span { color: var(--secondary); font-weight: 300; }
.loader-text small { font-size: 1rem; color: var(--text-muted); font-weight: 400; display: block; margin-top: 5px; }

@keyframes drive {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes roadSpeed {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 4px;
  background: transparent; z-index: 10000;
}
.scroll-progress-bar {
  height: 100%; width: 0%; background: linear-gradient(90deg, var(--secondary), var(--accent));
  box-shadow: 0 0 10px var(--secondary); transition: width 0.1s;
}

/* Live News Ticker */
.news-ticker {
  background: #020617; color: #fff; padding: 10px 0; font-size: 0.9rem;
  font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden; white-space: nowrap; position: relative;
}
.ticker-content { display: inline-block; animation: tickerScroll 30s linear infinite; }
.ticker-content span { display: inline-block; padding: 0 50px; }
.ticker-content i { color: var(--secondary); margin-right: 8px; }
.blink { animation: blinker 1s linear infinite; color: #ff4a1c !important; }
@keyframes blinker { 50% { opacity: 0; } }
@keyframes tickerScroll { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }

/* Glitch Effect on Text */
.glitch { position: relative; color: var(--secondary); display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary);
}
.glitch::before {
  left: 2px; text-shadow: -2px 0 red; clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
  left: -2px; text-shadow: -2px 0 blue; clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 2.5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
  0% { clip: rect(81px, 9999px, 83px, 0); transform: skew(0.6deg); }
  20% { clip: rect(6px, 9999px, 83px, 0); transform: skew(0.4deg); }
  40% { clip: rect(22px, 9999px, 4px, 0); transform: skew(0.2deg); }
  60% { clip: rect(38px, 9999px, 49px, 0); transform: skew(0.1deg); }
  80% { clip: rect(98px, 9999px, 23px, 0); transform: skew(0.4deg); }
  100% { clip: rect(32px, 9999px, 66px, 0); transform: skew(0.2deg); }
}
@keyframes glitch-anim-2 {
  0% { clip: rect(65px, 9999px, 100px, 0); transform: skew(0.5deg); }
  20% { clip: rect(10px, 9999px, 20px, 0); transform: skew(0.3deg); }
  40% { clip: rect(40px, 9999px, 60px, 0); transform: skew(0.1deg); }
  60% { clip: rect(80px, 9999px, 90px, 0); transform: skew(0.4deg); }
  80% { clip: rect(20px, 9999px, 30px, 0); transform: skew(0.2deg); }
  100% { clip: rect(50px, 9999px, 70px, 0); transform: skew(0.1deg); }
}

/* Floating Elements */
.float-icon-1, .float-icon-2 { position: absolute; color: rgba(255,255,255,0.05); z-index: 0; pointer-events: none; }
.float-icon-1 { font-size: 20rem; top: -50px; left: -50px; animation: float 10s infinite ease-in-out; }
.float-icon-2 { font-size: 30rem; bottom: -100px; right: -100px; animation: float 15s infinite ease-in-out reverse; }
@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
