/* =========================================
   VARIABLES & GLOBALS
   ========================================= */
:root {
  --primary-green: #4CAF50;
  --primary-orange: #F97316;
  --primary-black: #111111;
  --bg-light: #f8fafc;
  --text-dark: #333333;
  --text-muted: #6b7280;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease-in-out;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary-black);
}

a {
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-orange);
}

.btn-primary {
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #e06512;
  border-color: #e06512;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  color: var(--primary-orange);
  border-color: var(--primary-orange);
  border-radius: 50px;
}

.btn-outline-primary:hover {
  background-color: var(--primary-orange);
  color: var(--white);
}

.btn-success {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  border-radius: 50px;
}

.btn-success:hover {
  background-color: #439a46;
  border-color: #439a46;
}

/* =========================================
   NAVIGATION / HEADER
   ========================================= */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 15px 0;
}

.navbar.sticky-top.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-black);
}

.navbar-brand span {
  color: var(--primary-orange);
}

.nav-link {
  font-weight: 600;
  color: var(--primary-black) !important;
  margin: 0 10px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-orange) !important;
}

.btn-track-nav {
  background-color: var(--primary-orange);
  color: var(--white) !important;
  border-radius: 50px;
  padding: 8px 20px !important;
  font-weight: 700;
}

.btn-track-nav:hover {
  background-color: #e06512;
  transform: translateY(-2px);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-slider {
  height: 85vh;
  min-height: 550px;
  position: relative;
  margin-bottom: 0;
}

.hero-slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.65);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--white);
  padding: 60px 0;
  margin-top: 5vh; /* Shifts the vertical center down for better breathing room */
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 25px;
  line-height: 1.1;
  letter-spacing: -1px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.6;
}

.tracking-widget {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.tracking-widget .form-control {
  border-radius: 40px 0 0 40px;
  border: none;
  padding: 15px 25px;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.95);
}

.tracking-widget .form-control:focus {
  background: #ffffff;
  box-shadow: none;
}

.tracking-widget .btn {
  border-radius: 0 40px 40px 0 !important;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* =========================================
   TRUST INDICATORS
   ========================================= */
.trust-section {
  background-color: var(--primary-black);
  color: var(--white);
  padding: 40px 0;
}

.counter-box {
  text-align: center;
  padding: 15px 10px;
}

.counter-box h2 {
  font-size: 2.5rem;
  color: var(--primary-orange);
  margin-bottom: 5px;
}

.counter-box p {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

/* =========================================
   SERVICES CARDS
   ========================================= */
.service-card {
  background: var(--white);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary-green);
  color: var(--white);
}

/* =========================================
   WHY CHOOSE US & PROCESS
   ========================================= */
.feature-box {
  display: flex;
  margin-bottom: 30px;
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary-orange);
  margin-right: 20px;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.process-step:last-child::after {
  display: none;
}

.process-icon {
  width: 80px;
  height: 80px;
  background-color: var(--white);
  border: 2px dashed var(--primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-orange);
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.process-step:hover .process-icon {
  background-color: var(--primary-orange);
  color: var(--white);
  border-style: solid;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background-color: var(--primary-black);
  color: #a0aec0;
  padding: 80px 0 30px;
}

.footer-heading {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #a0aec0;
}

.footer-links a:hover {
  color: var(--primary-orange);
  padding-left: 5px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-orange);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 50px;
  text-align: center;
}

/* =========================================
   TRACKING PAGE
   ========================================= */
.tracking-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  padding: 30px;
  margin-bottom: 30px;
}

.tracking-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.status-badge {
  padding: 8px 15px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.status-pending { background: #fef08a; color: #854d0e; }
.status-processing { background: #bfdbfe; color: #1e40af; }
.status-in-transit { background: #fed7aa; color: #9a3412; }
.status-out-for-delivery { background: #c7d2fe; color: #3730a3; }
.status-delivered { background: #bbf7d0; color: #166534; }

.timeline {
  list-style: none;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: #e2e8f0;
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary-orange);
  z-index: 1;
}

.timeline-item.completed::before {
  background: var(--primary-orange);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-content h5 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

/* ProgressBar for visual aid */
.progress-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 50px;
    margin-top: 30px;
}

.progress-container::before {
    content: '';
    background-color: #e2e8f0;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    z-index: 1;
}

.progress-bar-fill {
    background-color: var(--primary-green);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    z-index: 1;
    transition: width 0.4s ease;
}

.progress-step {
    background-color: white;
    color: var(--text-muted);
    border-radius: 50%;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e2e8f0;
    z-index: 2;
    position: relative;
    font-weight: bold;
}

.progress-step.active {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.progress-step.completed {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}
.progress-step-label {
    position: absolute;
    top: 50px;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.progress-step.completed .progress-step-label {
    color: var(--primary-green);
}

/* Media Queries */
@media (max-width: 991px) {
  .card[style*="scale"] {
     transform: none !important;
     margin-top: 15px;
     margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1rem; }
  .process-step::after { display: none; }
  .process-step { margin-bottom: 40px; }
  .progress-step-label { 
      font-size: 0.65rem; 
      white-space: normal; 
      text-align: center; 
      max-width: 60px; 
      line-height: 1.2; 
      left: 50%;
      transform: translateX(-50%);
  }
  .counter-box h2 { font-size: 1.8rem; margin-bottom: 0; }
  .counter-box p { font-size: 0.75rem; letter-spacing: 0; }
  .trust-section { padding: 25px 0; }
  .counter-box { padding: 10px 5px; }
  .site-footer { padding: 50px 0 20px; }
  
  /* Shrink hero tracking widget slightly */
  .tracking-widget .form-control, .tracking-widget .btn {
      padding: 12px 20px;
      font-size: 1rem;
  }
  
  /* Reduce global section spacing on mobile */
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .my-5 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
  .mt-5 { margin-top: 2rem !important; }
  .mb-5 { margin-bottom: 2rem !important; }
  .pt-5 { padding-top: 2rem !important; }
  .pb-5 { padding-bottom: 2rem !important; }
}

@media (max-width: 576px) {
  .hero-slider { min-height: 450px; height: 75vh; }
  .hero-content h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .display-3 { font-size: 2.2rem; }
  .display-4 { font-size: 2rem; }
  .service-card { padding: 30px 20px; }
  .tracking-header { flex-direction: column; align-items: flex-start !important; }
  
  /* Force tracking widget to stay inline but scale down drastically for mobile */
  .tracking-widget {
      padding: 5px;
      max-width: 100%;
  }
  .tracking-widget form {
      flex-direction: row !important;
  }
  .tracking-widget .form-control {
      padding: 10px 10px !important;
      font-size: 0.85rem !important;
      border-radius: 40px 0 0 40px !important;
  }
  .tracking-widget .form-control::placeholder {
      font-size: 0.75rem;
  }
  .tracking-widget .btn {
      padding: 10px 15px !important;
      font-size: 0.85rem !important;
      border-radius: 0 40px 40px 0 !important;
      white-space: nowrap;
      min-width: auto;
  }
  
  /* Demo tracking form bottom of page */
  section form.d-flex.flex-column .btn {
      width: 100%;
      padding: 12px;
      font-size: 1rem;
  }
  section form.d-flex.flex-column .form-control {
      padding: 12px;
      font-size: 1rem;
  }
}

@media print {
  body {
    background-color: #fff;
    font-size: 11pt;
  }
  .navbar, .site-footer {
    display: none !important;
  }
  .py-5, .my-5, .mt-5, .mt-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }
  .tracking-card {
    box-shadow: none !important;
    border: 1px solid #ccc;
    padding: 15px !important;
    page-break-inside: avoid;
  }
  .col-lg-8, .col-lg-4, .col-md-6 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .progress-container {
    margin-bottom: 10px;
    margin-top: 10px;
  }
}
