/* styles.css - Complete with modern Services section */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

html {
  overflow-y: auto;
}

body {
  font-family: 'Outfit', sans-serif;
  background: #f8faff;
  overflow-y: auto;
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
  color: #1e293b;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

#main-content,
#vehicles-grid {
  overflow: visible;
}

/* Prevent accidental horizontal overflow on small screens */
@media (max-width: 640px) {
  body {
    max-width: 100vw;
  }
  html, body {
    min-height: auto;
  }
  #vehicles-grid {
    overflow: visible !important;
  }
  #vehicles-grid .grid {
    grid-template-columns: 1fr !important;
  }
  .vehicle-card {
    min-width: 0;
  }
}

/* === TOP YELLOW INFO BAR === */
.top-info-bar {
  background: #f5c542;
  color: #01469b;
  padding: 0.4rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(1, 70, 155, 0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease-in-out, opacity 0.5s ease;
  opacity: 0;
}

.top-info-bar.visible {
  opacity: 1;
}

.top-info-bar.hidden {
  transform: translateY(-100%);
}

@media (max-width: 768px) {
  .top-info-bar {
    display: none;
  }
}

.info-bar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.2px;
  font-size: 0.75rem;
}

.info-item i {
  font-size: 0.8rem;
  color: #01469b;
  opacity: 0.9;
}



/* === PRELOADER WITH DRAWING ANIMATION === */
#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preloader-container {
  text-align: center;
  padding: 20px;
  max-width: 500px;
  width: 90%;
}

.preloader-svg-wrapper {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 30px;
  position: relative;
}

#logo-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Force stroke properties for all SVG elements */
#logo-svg path,
#logo-svg polygon,
#logo-svg polyline {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill-opacity: 0;
}

.preloader-text {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #f5c542;
  letter-spacing: -0.02em;
  margin-top: 20px;
  opacity: 0;
  font-family: 'Outfit', sans-serif;
}

.preloader-subtitle {
  font-size: clamp(0.75rem, 3vw, 0.9rem);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3em;
  margin-top: 10px;
  opacity: 0;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.preloader-progress {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 30px auto 0;
  overflow: hidden;
  opacity: 0;
}

.preloader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f5c542, #fec20e);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .preloader-svg-wrapper {
    max-width: 200px;
  }
  .preloader-progress {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .preloader-svg-wrapper {
    max-width: 150px;
  }
}
/* === NAVIGATION BAR === */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(1, 70, 155, 0.08);
  border-bottom: 1px solid rgba(1, 70, 155, 0.1);
  transition: top 0.3s ease-in-out;
  top: 32px;
}

.navbar.nav-up {
  top: 0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px !important;
  width: auto;
  object-fit: contain;
}

.nav-links {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-link {
  position: relative;
  color: #01469b;
  text-decoration: none;
  padding: 0.4rem 0;
  transition: color 0.3s;
  font-size: 0.95rem;
  overflow: hidden;
}

.nav-link::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #f5c542;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link:hover {
  color: transparent;
}

.nav-link:hover::before {
  transform: translateY(0);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f5c542;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: #f5c542;
}

.nav-link.active::after {
  transform: scaleX(1);
}

.btn-contact {
  background: #f5c542;
  color: #01469b;
  font-weight: 600;
  padding: 0.5rem 1.8rem;
  border-radius: 40px;
  transition: all 0.3s;
  border: 2px solid #f5c542;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 10px rgba(245, 197, 66, 0.2);
}

.btn-contact:hover {
  background: transparent;
  color: #f5c542;
  border-color: #f5c542;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(245, 197, 66, 0.3);
}

/* === LANDING SECTION === */
.landing-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: 0;
  padding-top: 0;
}

.landing-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  align-items: center;
  height: 100%;
  padding-top: 70px;
}

.carousel-container.modern-carousel .carousel-slide {
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.carousel-container.modern-carousel .carousel-slide.active {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 2;
}

.carousel-container.modern-carousel .carousel-slide:not(.active) {
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(1, 70, 155, 0.85) 0%, rgba(1, 70, 155, 0.3) 70%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 3;
}

.text-container {
  max-width: 800px;
  color: white;
}

.subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  opacity: 0.9;
}

.main-heading.modern-heading {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.description {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1.8rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  font-weight: 300;
}

.scroll-down-btn.modern-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  background: rgba(1, 70, 155, 0.3);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(245, 197, 66, 0.7);
  border-radius: 50px;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: gentlePulse 2s infinite ease-in-out;
}

.scroll-down-btn.modern-btn .btn-icon {
  width: 30px;
  height: 30px;
  background: #f5c542;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #01469b;
  animation: iconBounce 1.5s infinite;
}

@keyframes gentlePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 12px 25px rgba(245, 197, 66, 0.3); }
  100% { transform: scale(1); }
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.carousel-indicators {
  position: absolute;
  bottom: 40px;
  right: 4%;
  z-index: 20;
  display: flex;
  gap: 10px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.indicator.active {
  background: #f5c542;
  transform: scale(1.3);
  box-shadow: 0 0 15px #f5c542;
}

/* === ABOUT SECTION (unchanged) === */
.about-section {
  background: white;
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.about-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: #f5c542;
  background: rgba(245, 197, 66, 0.1);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #01469b;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 20px;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: #f5c542;
  margin: 0 auto;
  border-radius: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.about-paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #01469b;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.about-cta {
  margin-top: 30px;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #01469b;
  font-weight: 600;
  padding: 14px 32px;
  border: 2px solid #f5c542;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.about-btn i {
  transition: transform 0.3s ease;
}

.about-btn:hover {
  background: #f5c542;
  color: #01469b;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(245, 197, 66, 0.3);
}

.about-btn:hover i {
  transform: translateX(8px);
}

.image-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.main-image-container:hover .main-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(1, 70, 155, 0.3), rgba(245, 197, 66, 0.2));
  pointer-events: none;
}

.image-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #01469b;
}

.image-caption i {
  color: #f5c542;
}

.image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.small-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
}

.small-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.small-image-container:hover .small-image {
  transform: scale(1.05);
}

.small-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1, 70, 155, 0.2), rgba(245, 197, 66, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.small-image-container:hover .small-image-overlay {
  opacity: 1;
}

.small-image-overlay i {
  color: white;
  font-size: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.feature-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #01469b, #012a5e);
  padding: 30px 40px;
  border-radius: 60px;
  margin-top: 40px;
  color: white;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(245, 197, 66, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #f5c542;
}

.feature-text {
  font-weight: 500;
  font-size: 0.95rem;
}

.feature-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
}

/* ===== MODERN SERVICES SECTION ===== */
.services-section {
  position: relative;
  padding: 100px 5%;
  background: linear-gradient(135deg, #f8faff 0%, #eef2f9 100%);
  overflow: hidden;
}

.services-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(245, 197, 66, 0.03) 0%, transparent 30%),
    radial-gradient(circle at 90% 70%, rgba(1, 70, 155, 0.03) 0%, transparent 40%),
    repeating-linear-gradient(45deg, rgba(1, 70, 155, 0.01) 0px, rgba(1, 70, 155, 0.01) 2px, transparent 2px, transparent 8px);
  pointer-events: none;
  z-index: 1;
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-subtitle {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: #01469b;
  background: rgba(1, 70, 155, 0.05);
  padding: 8px 20px;
  border-radius: 40px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.services-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #01469b;
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
}

.services-description {
  max-width: 700px;
  margin: 0 auto;
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 60px 0 50px;
}

/* Service Card with 3D Flip Effect */
.service-card {
  perspective: 1500px;
  height: 380px;
  cursor: pointer;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-front, .service-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 24px;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
}

.service-front {
  background: white;
  border: 1px solid rgba(1, 70, 155, 0.1);
  background-image: radial-gradient(circle at 100% 0%, rgba(245, 197, 66, 0.05) 0%, transparent 50%);
}

.service-back {
  background: linear-gradient(135deg, #01469b, #012a5e);
  color: white;
  transform: rotateY(180deg);
  border: 2px solid #f5c542;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(245, 197, 66, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 2.2rem;
  color: #f5c542;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  background: rgba(245, 197, 66, 0.25);
}

.service-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #01469b;
  margin-bottom: 15px;
  line-height: 1.3;
}

.service-desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: auto;
  font-family: 'Inter', sans-serif;
}

.service-number {
  font-size: 5rem;
  font-weight: 800;
  color: rgba(1, 70, 155, 0.05);
  position: absolute;
  bottom: 15px;
  right: 20px;
  line-height: 1;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s ease;
}

.service-card:hover .service-number {
  color: rgba(245, 197, 66, 0.15);
}

/* Back side styles */
.back-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #f5c542;
  border-bottom: 2px solid rgba(245, 197, 66, 0.3);
  padding-bottom: 10px;
}

.back-list {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.back-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
}

.back-list li i {
  color: #f5c542;
  font-size: 1.1rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f5c542;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: auto;
  padding: 8px 0;
  border-top: 1px solid rgba(245, 197, 66, 0.2);
  padding-top: 15px;
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover {
  color: white;
  gap: 12px;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Services CTA */
.services-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 60px;
  border: 1px solid rgba(245, 197, 66, 0.3);
}

.services-cta p {
  font-size: 1.2rem;
  color: #01469b;
  margin-bottom: 20px;
  font-weight: 500;
}

.services-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #f5c542;
  color: #01469b;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  border: 2px solid #f5c542;
}

.services-cta-btn i {
  transition: transform 0.3s ease;
}

.services-cta-btn:hover {
  background: transparent;
  color: #01469b;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(245, 197, 66, 0.79);
}

.services-cta-btn:hover i {
  transform: translateX(8px);
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-strip {
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px;
  }
  
  .feature-divider {
    width: 80px;
    height: 1px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 60px 4%;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    height: 350px;
  }
  
  .services-cta {
    padding: 30px 20px;
  }
}

/* === MAIN CONTENT INITIAL STATE === */
#main-content {
  opacity: 0;
  position: relative;
  min-height: 100vh;
  overflow: visible;
  transition: opacity 1s ease;
}

.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  animation: revealFade 0.8s forwards;
}

@keyframes revealFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 {
  animation-delay: 0.2s;
}

/* Shrink service cards and 5-per-row */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 40px 0 40px;
}

.service-card {
  height: 300px; /* smaller than original 380px */
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    height: 350px;
  }
}

/* ===== CALL US CAROUSEL FIXED ===== */
.call-us-carousel {
  background: #01469b;
  height: 40px;
  display: flex;
  align-items: center; /* vertical centering */
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: marquee-smooth 60s linear infinite;
}

.carousel-item {
  flex-shrink: 0;
  color: #f5c542;
  font-weight: bold;
  font-size: 20px;  /* fits nicely in 40px height */
  line-height: 40px; /* vertically centers within section */
}

/* Smooth infinite scroll */
@keyframes marquee-smooth {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Fade-up AOS animation */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(10px);
  transition-property: opacity, transform;
  transition-duration: 10s;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce top/bottom padding of services section */
.services-section {
  padding-top: 60px;   /* reduced from 100px */
  padding-bottom: 60px; /* reduced from 100px */
}

/* Reduce gap above services grid */
.services-grid {
  margin: 40px 0 30px; /* reduced from 60px 0 50px */
}

/* Reduce bottom CTA margin so carousel can come closer */
.services-cta {
  margin-top: 40px; /* reduced from 60px */
  padding: 30px;
}

/* ===== DARKER SERVICE CARDS & COMPACT SPACING ===== */

/* Services section padding reduced for compact look */
.services-section {
  padding-top: 50px;   /* reduced from 100px */
  padding-bottom: 50px; /* reduced from 100px */
}

/* Section header margin smaller */
.services-header {
  margin-bottom: 40px; /* reduced from 60px */
}

/* Services grid tighter */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* all 5 in single row */
  gap: 20px;  /* reduced gap for compact look */
  margin: 30px 0 20px; /* reduce empty space */
}

/* Darker service cards */
.service-card-inner {
  background: #e2e6ef; /* smooth light gray-blue, front default */
  border-radius: 20px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Card front */
.service-front {
  background: #d6dce8; /* slightly darker front */
  border: 1px solid rgba(1, 70, 155, 0.15);
}

/* Card back */
.service-back {
  background: linear-gradient(135deg, #013575, #011f3f); /* darker blue back */
  color: white;
  transform: rotateY(180deg);
  border: 2px solid #f5c542;
}

/* Hover smooth effect */
.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
  background: #c5cfe0; /* slightly brightened on hover for smooth effect */
}

/* Service numbers smaller to reduce empty space */
.service-number {
  font-size: 4rem;  /* slightly smaller than before */
  color: rgba(1, 70, 155, 0.07);
}

/* CTA spacing reduced */
.services-cta {
  margin-top: 30px;
  padding: 25px;
}

/* Call us carousel right under CTA, same smooth scroll */
.call-us-carousel {
  background: #01469b;
  height: 40px;
  display: flex;
  align-items: center; /* vertical center */
  overflow: hidden;
  width: 100%;
  margin-top: 10px; /* snug against CTA */
}

.carousel-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: marquee-smooth 20s linear infinite;
}

.carousel-item {
  flex-shrink: 0;
  color: #f5c542;
  font-weight: bold;
  font-size: 20px;
  line-height: 40px;
}

/* Smooth infinite scroll animation */
@keyframes marquee-smooth {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Fade-up AOS animation */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(10px);
  transition-property: opacity, transform;
  transition-duration: 1s;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Partner carousel smooth infinite scroll */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

/* ===== MOBILE FRIENDLY SERVICES SECTION ===== */

/* Extra small devices: 480px and below */
@media (max-width: 480px) {
  .services-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .services-header {
    margin-bottom: 30px;
  }

  .services-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .services-description {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 10px;
  }

  /* Services grid becomes single column */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 0 20px;
  }

  /* Reduce card height slightly for small screens */
  .service-card {
    height: 300px;
  }

  .service-card-inner {
    padding: 20px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .service-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .service-desc {
    font-size: 0.9rem;
  }

  .service-number {
    font-size: 3rem;
    bottom: 10px;
    right: 15px;
  }

  .back-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .back-list li {
    font-size: 0.9rem;
  }

  .service-link {
    font-size: 0.95rem;
    padding-top: 12px;
  }

  /* CTA section scaling */
  .services-cta {
    padding: 25px 15px;
  }

  .services-cta p {
    font-size: 1.1rem;
  }

  .services-cta-btn {
    padding: 14px 30px;
    font-size: 1rem;
  }
}

/* Tablets: 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr; /* single column for tablets */
    gap: 25px;
  }

  .service-card {
    height: 320px;
  }

  .services-header {
    margin-bottom: 35px;
  }

  .services-title {
    font-size: 2.2rem;
  }

  .services-description {
    font-size: 1.05rem;
  }

  .service-icon {
    width: 65px;
    height: 65px;
    font-size: 2rem;
    margin-bottom: 22px;
  }

  .service-title {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }

  .service-desc {
    font-size: 0.95rem;
  }

  .service-number {
    font-size: 3.5rem;
  }

  .services-cta {
    padding: 28px 20px;
  }

  .services-cta-btn {
    padding: 15px 35px;
    font-size: 1.05rem;
  }
}

/* scroll bar under navbar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  z-index: 9999;
  background: transparent;
}

/* actual bar */
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f5c542, #01469b);
  transition: width 0.1s linear;
}

/* ===== COMMERCIAL VEHICLES GRID FIXES ===== */

/* Clearfix for grid container to prevent float issues */
#vehicles-grid .grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

/* Define xs breakpoint (480px) since Tailwind doesn't include it by default */
@media (min-width: 480px) {
  #vehicles-grid .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  #vehicles-grid .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  #vehicles-grid .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Vehicle card styling */
.vehicle-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.2);
}

/* Image container consistent sizing */
.vehicle-card .relative {
  flex-shrink: 0;
}

.vehicle-card .h-40 {
  height: 160px;
}

@media (min-width: 480px) {
  .vehicle-card .xs\:h-44 {
    height: 176px;
  }
}

@media (min-width: 640px) {
  .vehicle-card .sm\:h-48 {
    height: 192px;
  }
}

@media (min-width: 768px) {
  .vehicle-card .md\:h-52 {
    height: 208px;
  }
}

/* Ensure images display properly */
.vehicle-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fix for grid container clearing floats */
#vehicles-grid {
  overflow: visible;
  clear: both;
}

#vehicles-grid::after {
  content: '';
  display: table;
  clear: both;
}

/* Footer spacing fix */
footer {
  clear: both;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

/* Section container overflow fixes */
section {
  overflow: visible;
}

#main-content {
  overflow: visible;
}

/* Fix for xs grid on very small screens */
@media (max-width: 480px) {
  #vehicles-grid .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100%;
  }
  
  .vehicle-card {
    width: 100% !important;
    float: none !important;
  }
}

@media (max-width: 768px) {
  .top-info-bar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    transition: transform 0.3s ease-in-out;
  }
  
  .info-bar-container {
    padding: 0 3%;
  }
  
  .info-item {
    font-size: 0.65rem;
    gap: 0.3rem;
  }
  
  .info-item i {
    font-size: 0.7rem;
  }
  
  /* Hide the center item on very small screens if it overflows */
  @media (max-width: 480px) {
    .info-item.center {
      display: block;
    }
    
    .info-bar-container {
      justify-content: space-around;
    }
  }
}


@media (max-width: 768px) {
  .top-info-bar {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 0 !important;
  }
}