/* ============================================================
   MODERN TECH STARTUP THEME — Mastery Delivery v0.1
   Blue → Cyan Gradient • Smooth Transitions • Glass Effects
   ============================================================ */

:root {
  --primary: #004aad;
  --primary-dark: #003b8b;
  --accent: #00d4ff;
  --secondary: #ffd24d;
  --dark: #121318;
  --light: #f8f9fa;
  --white: #ffffff;
  --text: #495057;
  --radius: 12px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 8px 30px rgba(0, 212, 255, 0.12);
  --transition: all 0.35s ease;
}

/* Dark Mode Variables */
.dark {
  --light: #0f172a;
  --white: #1e293b;
  --text: #f1f5f9;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* =============================
   Base Setup
   ============================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: var(--light);
  color: var(--text);
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

/* =============================
   Navbar
   ============================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(11, 19, 43, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: var(--shadow);
}

.navbar .logo img {
  height: 45px;
  transition: var(--transition);
}

.navbar .nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.navbar .nav-links a {
  color: var(--white);
  font-weight: 500;
  position: relative;
}

.navbar .nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.navbar .nav-links a:hover::after {
  width: 100%;
}

/* =============================
   Buttons
   ============================= */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* =============================
   Hero Section
   ============================= */
.hero {
  /* position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white); */
  background: url('../images/delivery_bg.jpg') center/cover no-repeat;
}

.hero-content {
  animation: fadeUp 1.2s ease-out;
  max-width: 750px;
  padding: 0 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--white);
}

.hero p {
  font-size: 1.25rem;
  margin: 1.5rem 0 2.5rem;
  opacity: 0.9;
}

/* =============================
   Sections & Cards
   ============================= */
section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.card img {
  width: 64px;
  margin-bottom: 1.2rem;
}

/* =============================
   About / Services
   ============================= */
.about-container,
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =============================
   Why Us / Stats
   ============================= */
.why-us {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: var(--white);
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.why-grid div {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stats .counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
}

/* =============================
   Footer
   ============================= */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer a {
  color: var(--accent);
  opacity: 0.85;
}

.footer a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* =============================
   Floating Buttons
   ============================= */
.whatsapp-float,
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.whatsapp-float {
  background: #25D366;
  bottom: 5.5rem;
}

.to-top {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-float:hover,
.to-top:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* =============================
   Animations
   ============================= */
/* =============================
   Preloader
   ============================= */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .45s ease, visibility .45s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader img {
  width: 120px;
  height: auto;
  transform: scale(0.96);
  opacity: 0;
  transition: transform .9s cubic-bezier(.2, .9, .2, 1), opacity .9s;
}

#preloader img.loaded {
  transform: scale(1);
  opacity: 1;
}

/* =============================
   Theme Switch (Glassmorphism)
   ============================= */
.switch {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.switch .knob {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform .25s cubic-bezier(.2, .9, .2, 1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.switch.on {
  background: linear-gradient(90deg, #ffd24d, #ffb84d);
}

.switch.on .knob {
  transform: translateX(20px);
}

/* =============================
   Mobile Menu & Helpers
   ============================= */
.mobile-overlay {
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(6px);
}

.nav-link-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #FFD24D, #FFB84D);
  border-radius: 8px;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Landing Page Animations */
.animate-truck {
  animation: drive 3s ease-in-out infinite;
}

@keyframes drive {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

.animate-fade-in {
  animation: fadeInUp 1s ease-out both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fadein {
  animation: fadein 1.2s ease forwards;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =============================
   Responsive
   ============================= */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}