/* Design Tokens */
:root {
  --color-primary: #E53935;
  --color-accent-yellow: #FBC02D;
  --color-accent-blue: #1E88E5;
  --color-neutral-white: #FFFFFF;
  --color-neutral-light: #F5F5F5;
  --color-neutral-dark: #212121;

  --font-main: 'Inter', sans-serif;

  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-64: 64px;
}

/* Base Styles */
body {
  font-family: var(--font-main);
  background-color: var(--color-neutral-white);
  color: var(--color-neutral-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Sticky Header Shadow */
header.sticky-top.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  transition: transform 0.3s ease-in-out;
  transform: translateX(-100%);
}

.mobile-menu.show {
  transform: translateX(0);
}

.mobile-menu .nav-link {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.6s ease forwards;
}

.mobile-menu .nav-item:nth-child(1) .nav-link { animation-delay: 0.1s; }
.mobile-menu .nav-item:nth-child(2) .nav-link { animation-delay: 0.2s; }
.mobile-menu .nav-item:nth-child(3) .nav-link { animation-delay: 0.3s; }
.mobile-menu .nav-item:nth-child(4) .nav-link { animation-delay: 0.4s; }

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Desktop Nav Link Effects */
nav .nav-link {
  position: relative;
  transition: color 0.3s ease;
  overflow: hidden;
}

nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

nav .nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  font-weight: 600;
  color: var(--color-primary) !important;
  transition: color 0.3s ease;
}

.nav-link:active {
  animation: ripple 0.4s ease;
}

@keyframes ripple {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Animated Hamburger Icon */
#mobileMenuToggle i {
  transition: transform 0.3s ease;
}

#mobileMenuToggle:active i {
  transform: rotate(90deg);
}

/* Hero Section */
.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-neutral-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  animation: fadeIn 1.2s ease-in-out;
}

.hero-overlay h1,
.hero-overlay p,
.hero-overlay .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 1s ease forwards;
}

.hero-overlay h1 { animation-delay: 0.3s; }
.hero-overlay p { animation-delay: 0.6s; }
.hero-overlay .btn { animation-delay: 0.9s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services Section */
#services {
  background-color: var(--color-neutral-light);
  padding: var(--spacing-64) var(--spacing-24);
}

#services .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-32);
}

/* Individual Service Card */
.card {
  background-color: #fff;
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeCard 0.8s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }
.card:nth-child(4) { animation-delay: 0.8s; }
.card:nth-child(5) { animation-delay: 1s; }
.card:nth-child(6) { animation-delay: 1.2s; }

@keyframes fadeCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: #f8f9fa;
  padding: 8px;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.card-body {
  padding: var(--spacing-16);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-8);
}

.card-text {
  font-size: 0.95rem;
  color: #555;
}

/* FontAwesome Icon Animation */
.fas, .fab {
  transition: transform 0.3s ease;
}

.fas:hover, .fab:hover {
  transform: scale(1.2) rotate(-5deg);
}

/* Service Categories Scoped Styles */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.svc-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeCard 0.8s ease forwards;
}

.svc-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.svc-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background-color: #f8f9fa;
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.svc-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  text-align: center;
}

.svc-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.svc-desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.svc-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #E53935;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.svc-link:hover {
  background-color: #c62828;
  transform: scale(1.05);
}

@keyframes fadeCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scan & Pay */
.scan-pay img {
  max-height: 60px;
  margin: 0 8px;
}

/* Testimonials */
.testimonial-card {
  background-color: #f9f9f9;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.testimonial-card img {
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.testimonial-card .stars {
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.carousel-item {
  transition: opacity 1s ease-in-out;
}

/* Vehicle Types Section */
.vehicle-card {
  background-color: #ffffff;
  transition: transform 0.3s ease;
}

.vehicle-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vehicle-card img {
  transition: transform 0.3s ease;
}

.vehicle-card:hover img {
  transform: rotate(-5deg) scale(1.1);
}

/* FAQ Accordion */
.accordion-button {
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: var(--color-accent-yellow);
  color: #212121;
}

.accordion-body {
  background-color: #fff;
  color: #212121;
}

/* FAQ Search Input */
#faqSearch {
  max-width: 500px;
  margin: 0 auto;
  border-radius: 8px;
}

/* Social Sidebar */
.social-sidebar {
  background: rgba(255, 255, 255, 0.95);
  border-right: 2px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  padding: 8px;
}

.social-icon {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: #fff;
}

.social-icon:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.facebook { background-color: #3b5998; }
.instagram { background-color: #e1306c; }
.twitter { background-color: #1da1f2; }
.youtube { background-color: #ff0000; }
.linkedin { background-color: #0077b5; }

/* Discount Banner */
.discount-banner {
  font-size: 1rem;
  animation: bounce 1.2s infinite;
  z-index: 999;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Footer */
footer h6 {
  font-weight: 600;
  margin-bottom: 8px;
}

footer p, footer a {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-neutral-light);
}

footer a:hover {
  text-decoration: underline;
}

/* Floating CTA Buttons */
.floating-cta a {
  width: 56px;
  height: 56px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1000;
}

/* Glowing Variants */
.floating-cta a.glow {
  animation: glowPulse 2s infinite ease-in-out;
}

.floating-cta a.btn-danger.glow {
  box-shadow: 0 0 12px rgba(229, 57, 53, 0.6), 0 0 24px rgba(229, 57, 53, 0.4);
}

.floating-cta a.btn-success.glow {
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.6), 0 0 24px rgba(76, 175, 80, 0.4);
}

.floating-cta a.btn-primary.glow {
  box-shadow: 0 0 12px rgba(30, 136, 229, 0.6), 0 0 24px rgba(30, 136, 229, 0.4);
}

@keyframes glowPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .card {
    margin-bottom: var(--spacing-16);
  }

  .social-sidebar {
    display: none !important;
  }

  .discount-banner {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .floating-cta a {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}