html {
  /* This ensures the browser handles the jump between IDs smoothly */
  scroll-behavior: smooth;
  /* Adjust this value (80px) to match the height of your fixed header 
       so it doesn't overlap your section titles */
  scroll-padding-top: 80px;
}
:root {
  --primary: #F2540D;
  --dark: #000;
  --light: #fff;
  --grey: #f4f4f4;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* HEADER */
header {
  background: var(--dark);
  padding: 15px 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: 0.4s;
}
header.scrolled {
  padding: 10px 5%;
  background: rgba(0, 0, 0, 0.95);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}
.logo-text {
  color: var(--light);
  text-transform: uppercase;
}
.logo-text span {
  color: var(--primary);
}
.nav-links {
  list-style: none;
  display: flex;
}
.nav-links li a {
  color: var(--light);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative; /* Necessary for the underline position */
  transition: color 0.3s ease;
  padding: 5px 0;
}
/* Creating the sliding underline */
.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}
/* Hover State */
.nav-links li a:hover {
  color: var(--primary);
}

.nav-links li a:hover::after {
  width: 100%; /* Grows the line from left to right */
}

/* Optional: Subtle pulse for the Hamburger on hover */
.hamburger:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}
/* HAMBURGER STYLING & HOVER EFFECT */
.hamburger {
  display: none; /* Hidden on desktop */
  color: var(--primary);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease; /* Smooth transition for all properties */
  padding: 5px;
  border-radius: 5px;
}

.hamburger:hover {
  color: var(--light);
  background: rgba(242, 84, 13, 0.2); /* Light tint of your primary orange */
  transform: rotate(90deg) scale(1.1); /* Rotates and grows slightly */
  text-shadow: 0 0 10px var(--primary); /* Subtle glow effect */
}

/* Ensure the hamburger shows up on mobile */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
}

/* HERO */
.hero {
  height: 80vh;
  background: url("./images/Hero_IMG_4909.JPG?auto=format&fit=crop&q=5w=1500")
    center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light);
}
.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  top: 0;
}
.hero-content {
  z-index: 2;
  padding: 0 20px;
}
.btn-main {
  background: var(--primary);
  color: var(--light);
  padding: 12px 35px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
  border: 2px solid var(--primary);
}

/* ABOUT SECTION */
.about-section {
  padding: 80px 5%;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}
.about-image-wrapper {
  position: relative;
}
.main-about-img {
  width: 30%;
  border-radius: 50px;
  box-shadow: 15px 15px 0px var(--primary);
}
.experience-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: var(--dark);
  color: var(--primary);
  padding: 15px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  text-align: center;
}

/* STATS */
.stats-section {
  background: var(--dark);
  color: var(--light);
  padding: 50px 5%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: center;
}
.stat-item h2 {
  font-size: 2.5rem;
  color: var(--primary);
}

/* SERVICES & CARDS */
.services-section {
  padding: 80px 5%;
  background: var(--grey);
  text-align: center;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.card {
  background: var(--light);
  padding: 40px;
  border-top: 5px solid var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

/* TABLE */
.turnaround-section {
  padding: 80px 5%;
  text-align: center;
}
.table-container {
  max-width: 800px;
  margin: 30px auto;
  overflow-x: auto;
}
.repair-table {
  width: 100%;
  border-collapse: collapse;
}
.repair-table thead {
  background: var(--dark);
  color: var(--primary);
}
.repair-table th,
td {
  padding: 15px;
  border: 1px solid #ddd;
}
.tag-green {
  color: var(--primary);
  font-weight: bold;
}

/* FLEET GALLERY - UPDATED FOR 3D FLIP */
.gallery-section {
  padding: 80px 5%;
  background: #111;
  color: #fff;
  text-align: center;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

/* 3D Flip Card Container */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 350px;
  perspective: 1000px;
  cursor: pointer;
}

/* Inner Container */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Active State for JS */
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* Front & Back Styling */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

/* Front Image Styling */
.flip-card-front {
  background-color: #333;
}
.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Back Description Styling */
.flip-card-back {
  background-color: #000;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border: 2px solid var(--primary);
  pointer-events: auto; /* Ensures button is clickable */
}
.flip-card-back h3 {
  color: var(--primary);
  margin-bottom: 10px;
}
.flip-card-back p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}
.rating {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* CTA Button Styling */
.btn-card-cta {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.3s ease;
  z-index: 10;
}

.btn-card-cta:hover {
  background-color: #d3490b;
}

/* Updated Overlay Hint */
.gallery-overlay {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.gallery-overlay span {
  color: #fff;
  font-weight: bold;
  background: rgba(242, 84, 13, 0.9);
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.8rem;
  text-transform: uppercase;
  border: 2px solid #fff;
}

/* TESTIMONIALS */
.testimonials-section {
  padding: 60px 5%;
  background: var(--primary);
  color: #fff;
  text-align: center;
}
.carousel {
  height: 100px;
  position: relative;
  max-width: 700px;
  margin: auto;
}
.testimonial-slide {
  display: none;
}
.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.5s;
}

/* CONTACT FORM */
.contact-section {
  padding: 80px 5%;
  background: var(--grey);
  display: flex;
  justify-content: center;
}
.contact-container {
  width: 100%;
  max-width: 600px;
  text-align: center;
}
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}
.quote-form input,
select,
textarea {
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.btn-submit {
  background: #F2540D;
  color: #fff;
  border: none;
  padding: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1.1rem;
}
/* Consent Checkbox Styling */
.consent-box {
    display: flex;
    align-items: flex-start; /* Aligns checkbox with the top of the text line */
    gap: 12px;
    text-align: left;
    margin: 10px 0 20px 0;
    padding: 0 5px;
}

.consent-box input[type="checkbox"] {
    width: 18px; /* Fixed size for checkbox */
    height: 18px;
    margin-top: 4px; /* Perfectly centers with the first line of text */
    cursor: pointer;
}

.consent-box label {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    cursor: pointer;
}

.consent-box a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

/* FOOTER */
footer {
  background: var(--dark);
  color: var(--light);
  padding: 80px 5% 20px;
  border-top: 4px solid var(--primary);
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}
.footer-box h3 {
  color: var(--primary);
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
}
.footer-links li a i {
  margin-right: 8px;
  color: var(--primary);
  width: 15px; /* Ensures text aligns properly if icons vary slightly */
  text-align: center;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}
.footer-links li a:hover {
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.8rem;
  color: #777;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    position: fixed;
    right: -100%; /* Hidden by default */
    top: 0;
    width: 70%;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links li {
    margin: 20px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  z-index: 1000;
  box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.3);
}

/* REVEAL ANIMATIONS */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: 1s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: 1s ease;
}
.active-reveal {
  opacity: 1;
  transform: translateX(0);
}