/* ===================== VELOCITY DELIVERY HUB — MAIN STYLESHEET ===================== */

:root {
  --primary: #0F4C5C;
  --secondary: #2EC4B6;
  --bg: #F8FAFC;
  --text: #1F2937;
  --cta: #0EA5E9;
  --white: #FFFFFF;
  --gray-light: #E5E7EB;
  --gray-mid: #94A3B8;
  --shadow: 0 10px 30px rgba(15, 76, 92, 0.08);
  --radius: 14px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--primary); line-height: 1.25; }

.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.text-center { text-align: center; }

.section-tag {
  display: inline-block;
  background: rgba(46, 196, 182, 0.12);
  color: var(--secondary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.section-title { font-size: 34px; margin-bottom: 12px; }
.section-sub { color: #64748B; font-size: 16px; max-width: 600px; margin: 0 auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-cta { background: var(--cta); color: var(--white); box-shadow: 0 6px 18px rgba(14,165,233,0.35); }
.btn-cta:hover { background: #0c8fc7; transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #0a3843; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: #EF4444; color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--primary); }
.logo-icon { font-size: 26px; color: var(--secondary); }
.logo-accent { color: var(--secondary); }
.main-nav { display: flex; gap: 32px; }
.main-nav a { font-weight: 500; color: var(--text); position: relative; padding: 6px 0; transition: color 0.2s; }
.main-nav a:hover { color: var(--cta); }
.header-actions { display: flex; align-items: center; gap: 16px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; }
.hamburger span { width: 26px; height: 3px; background: var(--primary); border-radius: 2px; transition: 0.3s; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #103b47 100%);
  color: var(--white);
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(46,196,182,0.25), transparent 70%);
  border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero h1 { color: var(--white); font-size: 44px; margin-bottom: 18px; }
.hero h1 span { color: var(--secondary); }
.hero p { font-size: 17px; opacity: 0.9; margin-bottom: 28px; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 26px; font-family: var(--font-head); color: var(--secondary); }
.hero-stats div span { font-size: 13px; opacity: 0.85; }
.hero-image img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,0.35); }

/* ===== Tracking Box ===== */
.track-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-top: -70px;
  position: relative;
  z-index: 10;
}
.track-box h3 { margin-bottom: 6px; }
.track-box p { color: #64748B; margin-bottom: 18px; font-size: 14px; }
.track-form { display: flex; gap: 12px; flex-wrap: wrap; }
.track-form input {
  flex: 1;
  min-width: 220px;
  padding: 15px 18px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border 0.2s;
}
.track-form input:focus { border-color: var(--secondary); }
.track-form button { padding: 15px 30px; }

/* ===== Services Preview ===== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(15,76,92,0.14); }
.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--secondary), var(--cta));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--white);
  margin: 0 auto 18px;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: #64748B; }

/* ===== Why Choose Us ===== */
.why-section { background: var(--white); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.why-image img { border-radius: var(--radius); box-shadow: var(--shadow); }
.why-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item .icon {
  min-width: 46px; height: 46px;
  background: rgba(46,196,182,0.12);
  color: var(--secondary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.why-item h4 { font-size: 16px; margin-bottom: 4px; }
.why-item p { font-size: 14px; color: #64748B; }

/* ===== Stats band ===== */
.stats-band { background: var(--primary); color: var(--white); padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); text-align: center; gap: 20px; }
.stats-grid strong { display: block; font-size: 36px; font-family: var(--font-head); color: var(--secondary); }
.stats-grid span { font-size: 14px; opacity: 0.9; }

/* ===== Testimonials ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial-stars { color: #F59E0B; margin-bottom: 12px; font-size: 15px; }
.testimonial-card p.msg { font-size: 14.5px; color: #475569; margin-bottom: 18px; font-style: italic; }
.testimonial-client { display: flex; align-items: center; gap: 12px; }
.testimonial-client img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  background: var(--gray-light);
}
.testimonial-client strong { display: block; font-size: 14px; color: var(--primary); }
.testimonial-client span { font-size: 12.5px; color: #94A3B8; }

/* ===== CTA Band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--cta), var(--secondary));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  border-radius: var(--radius);
  margin: 0 20px;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { margin-bottom: 24px; opacity: 0.95; }

/* ===== Forms (contact, tracking result etc.) ===== */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--primary); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-size: 14.5px;
  outline: none;
  font-family: inherit;
  transition: border 0.2s;
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--secondary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== Alerts ===== */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 500; }
.alert-success { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.alert-info { background: #DBEAFE; color: #1E40AF; border: 1px solid #93C5FD; }

/* ===== Tracking Result ===== */
.tracking-result { margin-top: 40px; }
.tr-summary {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-bottom: 30px;
}
.tr-summary .badge {
  display: inline-block; padding: 6px 16px; border-radius: 30px; color: var(--white); font-size: 13px; font-weight: 600;
}
.tr-summary h3 { font-size: 22px; }
.tr-summary .label { font-size: 12.5px; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.5px; }
.tr-summary .value { font-weight: 600; color: var(--primary); }

/* ===== Simple Percentage Progress Bar (battery style) ===== */
.simple-progress-wrap { margin: 30px 0 10px; }
.simple-progress-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.simple-progress-top .current-label { font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: 17px; }
.simple-progress-top .current-percent { font-family: var(--font-head); font-weight: 700; color: var(--secondary); font-size: 20px; }
.simple-progress-bar {
  width: 100%;
  height: 22px;
  background: #E5E7EB;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}
.simple-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 30px;
  background: linear-gradient(90deg, #34D399, #10B981);
  transition: width 1s ease;
  box-shadow: 0 0 10px rgba(16,185,129,0.5);
}
.simple-progress-fill.warn { background: linear-gradient(90deg, #FBBF24, #F59E0B); box-shadow: 0 0 10px rgba(245,158,11,0.5); }
.simple-progress-fill.danger { background: linear-gradient(90deg, #F87171, #EF4444); box-shadow: 0 0 10px rgba(239,68,68,0.5); }

/* ===== Payment Required Box ===== */
.payment-alert {
  background: #FFF7ED;
  border: 2px solid #FDBA74;
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.payment-alert h3 { color: #C2410C; margin-bottom: 6px; }
.payment-alert p { color: #9A3412; font-size: 14px; }

/* ===== Payment Methods Page ===== */
.payment-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.payment-tab-btn {
  padding: 12px 22px; border-radius: 8px; background: var(--white); border: 2px solid var(--gray-light);
  font-weight: 600; font-size: 14px; color: var(--primary); cursor: pointer;
}
.payment-tab-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.payment-detail-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.payment-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--gray-light); font-size: 14.5px; }
.payment-row:last-child { border-bottom: none; }
.payment-row .lbl { color: #64748B; }
.payment-row .val { font-weight: 600; color: var(--primary); }

.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 30px 0; height: 380px; }
.map-box iframe { width: 100%; height: 100%; border: 0; }

.history-list { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.history-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gray-light); }
.history-item:last-child { border-bottom: none; }
.history-dot { min-width: 12px; height: 12px; border-radius: 50%; background: var(--secondary); margin-top: 6px; }
.history-item h4 { font-size: 15px; margin-bottom: 3px; }
.history-item .meta { font-size: 12.5px; color: #94A3B8; }
.history-item p.remarks { font-size: 13.5px; color: #64748B; margin-top: 4px; }

/* ===== About / Services page ===== */
.page-hero { background: var(--primary); color: var(--white); padding: 70px 0 50px; text-align: center; }
.page-hero h1 { color: var(--white); font-size: 36px; }
.page-hero p { opacity: 0.85; margin-top: 8px; }

/* ===== Footer ===== */
.site-footer { background: #0A2E38; color: #CBD5E1; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-col a { display: block; margin-bottom: 10px; font-size: 14px; color: #94A3B8; transition: color 0.2s; }
.footer-col a:hover { color: var(--secondary); }
.footer-col p { font-size: 14px; margin-bottom: 10px; color: #94A3B8; }
.site-footer .logo { color: var(--white); margin-bottom: 14px; }
.footer-bottom { text-align: center; padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: #64748B; }

/* ===== Admin ===== */
.admin-body { background: #F1F5F9; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px; background: var(--primary); color: var(--white);
  padding: 24px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .logo { color: var(--white); padding: 0 24px 24px; }
.admin-sidebar a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 24px; font-size: 14.5px; color: #CBD5E1; transition: 0.2s;
  border-left: 3px solid transparent;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.07); color: var(--white); border-left-color: var(--secondary); }
.admin-main { flex: 1; padding: 30px; max-width: calc(100% - 250px); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { font-size: 24px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.admin-card { background: var(--white); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.admin-card .num { font-size: 28px; font-weight: 700; color: var(--primary); font-family: var(--font-head); }
.admin-card .lbl { font-size: 13px; color: #64748B; margin-top: 4px; }
.admin-panel { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--gray-light); }
.admin-table th { background: #F8FAFC; color: var(--primary); font-weight: 600; }
.admin-table tr:hover { background: #F8FAFC; }
.badge-status { padding: 4px 12px; border-radius: 30px; color: var(--white); font-size: 12px; font-weight: 600; display: inline-block; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), #103b47); }
.login-card { background: var(--white); border-radius: var(--radius); padding: 40px; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.action-icons a { margin-right: 10px; font-size: 15px; }

/* ===== Preloader ===== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, var(--primary), #103b47);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 32px; color: #fff;
  margin-bottom: 26px;
  animation: preloaderPulse 1.4s ease-in-out infinite;
}
.preloader-logo .accent { color: var(--secondary); }
.preloader-spinner {
  width: 52px; height: 52px;
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.preloader-tagline { color: rgba(255,255,255,0.7); font-size: 13px; margin-top: 16px; letter-spacing: 1px; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes preloaderPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.85; } }

/* ===== Hero Word-by-Word Reveal ===== */
.hero-title { display: block; }
.reveal-word { display: inline-block; opacity: 0; animation: revealWord 4s ease-in-out infinite; }
.reveal-word.accent-word { color: var(--secondary); }
.reveal-word:nth-child(1) { animation-delay: 0s; }
.reveal-word:nth-child(2) { animation-delay: 0.2s; }
.reveal-word:nth-child(3) { animation-delay: 0.4s; }
.reveal-word:nth-child(4) { animation-delay: 0.6s; }
.reveal-word:nth-child(5) { animation-delay: 0.8s; }
@keyframes revealWord {
  0%   { opacity: 0; transform: translateY(14px); }
  15%  { opacity: 1; transform: translateY(0); }
  85%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* ===== Continuously vibrating buttons ===== */
@keyframes vibrateBtn {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, 2px); }
  80% { transform: translate(1px, -2px); }
}
.btn-vibrate { animation: vibrateBtn 0.4s infinite; }

/* ===== Pulsing tracking status / location text ===== */
@keyframes pulseText { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.pulse-text { display: inline-block; animation: pulseText 1.3s ease-in-out infinite; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-grid, .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; gap: 4px; transform: translateY(-150%); opacity: 0; transition: 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--gray-light); }
  .hamburger { display: flex; }
  .header-actions .btn-cta { display: none; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 18px; }
  .services-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-main { max-width: 100%; padding: 18px; }
  .admin-sidebar { position: fixed; left: -260px; z-index: 999; transition: 0.3s; }
  .admin-sidebar.open { left: 0; }
  .admin-cards { grid-template-columns: 1fr; }
  .tr-summary { flex-direction: column; }
  #sidebarToggle { display: flex !important; }
}

@media (max-width: 480px) {
  .section-title { font-size: 26px; }
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  animation: whatsappPulse 2.2s infinite;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 8px 22px rgba(37, 211, 102, 0.75), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

@media (max-width: 768px) {
  .whatsapp-float { bottom: 18px; left: 18px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}