/* src/styles.css */
:root {
  --dark-green: #126C13;
  --light-green: #158011;
  --ink: #111111;
  --cream: #f5f2ec;
  --white: #ffffff;
  --black: #000000;
  --soft-blue: #caf3ff;
  --soft-green: #caffde;
  --soft-purple: #d8caff;
}

* { box-sizing: border-box; }
#google_translate_element { display: none !important; }
.goog-te-banner-frame { display: none !important; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--white);
  top: 0 !important; 
}

.noise::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hero-bg {
  background:
    radial-gradient(circle at 18% 50%, rgba(21, 128, 17, .18), transparent 26%), 
    radial-gradient(circle at 78% 42%, rgba(18, 108, 19, .15), transparent 30%), 
    linear-gradient(120deg, rgba(255,255,255,.08), transparent 24%),
    var(--ink);
}

.speed-lines {
  /* position: absolute; */
  inset: -20%;
  opacity: .25;
  pointer-events: none;
  background:
    repeating-conic-gradient(from 215deg at 18% 50%, rgba(255,255,255,.24) 0deg, transparent 1.4deg, transparent 5deg),
    radial-gradient(circle at 18% 50%, rgba(255,255,255,.14), transparent 32%);
  filter: blur(1px);
  transform: scale(1.1);
}

.diagonal-shadow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 55%, rgba(255,255,255,.055) 55% 70%, transparent 70%);
  clip-path: polygon(56% 0, 100% 0, 80% 100%, 36% 100%);
  opacity: .7;
}

/* --- SVG STYLING FOR HERO & ABOUT SECTIONS --- */
.svg-piece, .svg-reform-piece {
  transform-origin: center center;
  will-change: transform;
}

.svg-piece image, .svg-reform-piece image {
  filter: grayscale(0.82) contrast(1.08) brightness(0.76);
  transition: filter 0.95s cubic-bezier(0.19,1,0.22,1);
}

.split-stage.is-merged .svg-piece image,
.ev-reform-stage.is-reformed .svg-reform-piece image {
  filter: grayscale(0) contrast(1.05) brightness(0.96);
}

/* ------------------------------------------------ */

.circle-btn {
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: var(--dark-green);
  color: var(--white);
  display: grid;
  place-items: center;
  letter-spacing: .45em;
  text-indent: .45em;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 25px 55px rgba(21, 128, 17, .22); 
  transition: transform .45s cubic-bezier(.19,1,.22,1), background .35s ease;
  z-index: 999; /* Ensure it is higher than speed-lines and shadow */
  position: relative;
  cursor: pointer;
}
.circle-btn:hover { transform: scale(1.08); background: var(--light-green); }

@media (max-width: 640px) {
  .circle-btn { width: 92px; height: 92px; font-size: 9px; }
}

/* Fix for Menu Panel */
.menu-panel {

  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.95);
  transform: translateY(-100%);
  visibility: hidden;
}

.menu-panel.active {
  transform: translateY(0);
  visibility: visible;
}

/* Ensure body doesn't scroll when menu is open */
body.menu-open-active {
  overflow: hidden;
}
.menu-line {
  width: 40px;
  height: 2px;
  background: var(--white);
  display: block;
  transition: .35s ease;
}
.menu-open .line-1 { transform: rotate(45deg) translate(7px, 7px); }
.menu-open .line-2 { transform: rotate(-45deg); }

.featured-vehicles {
  min-height: 100vh;
  background-color: var(--cream);
  transition: color 0.45s ease, background-color 0.45s ease;
  overflow: hidden;
  isolation: isolate;
}

.ghost-title {
  pointer-events: none;
  user-select: none;
  line-height: 0.75;
  letter-spacing: -0.08em;
  opacity: 0.07;
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  background: white; 
  border-radius: 1.5rem;
  overflow: hidden;
  height: 100%;
}

/* Swiper fixes for mobile layout */
@media (max-width: 1024px) {
  .vehicles-swiper { overflow: visible; padding-bottom: 2rem; }
  .vehicle-card { 
    clip-path: none !important; 
    border-radius: 20px; 
    height: 420px; 
  }
}

/* Desktop flex styles */
@media (min-width: 1025px) {
  .vehicles-track { display: flex; transform-style: preserve-3d; }
  .vehicle-card { flex: 1 1 0%; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
  .vehicle-card:first-child { clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
  .vehicle-card:last-child { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
}

.vehicle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,17,17,.72), rgba(17,17,17,.22), rgba(17,17,17,.56));
  z-index: 2;
  opacity: .82;
  transition: opacity .65s cubic-bezier(.19, 1, .22, 1);
}

.vehicle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.20), transparent 36%);
  z-index: 3;
  opacity: 0;
  transition: opacity .65s cubic-bezier(.19, 1, .22, 1);
  mix-blend-mode: screen;
}

.vehicle-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.82);
  transform: scale(1.08);
  transition: transform 1.1s cubic-bezier(.19, 1, .22, 1), filter .9s ease;
}

.vehicle-card:hover::before,
.vehicle-card:focus-visible::before,
.vehicle-card.is-active::before { opacity: .48; }

.vehicle-card:hover::after,
.vehicle-card:focus-visible::after,
.vehicle-card.is-active::after { opacity: .6; }

.vehicle-card:hover img,
.vehicle-card:focus-visible img,
.vehicle-card.is-active img {
  filter: grayscale(0) contrast(1.04) brightness(.96);
  transform: scale(1.18);
}

.vehicle-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 54px 54px;
  color: var(--white);
}

.vehicle-number {
  color: var(--light-green);
  letter-spacing: .35em;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 12px;
}

.vehicle-title {
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 300;
}

.vehicle-info {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: max-height .7s cubic-bezier(.19, 1, .22, 1), opacity .5s ease, transform .55s ease;
}

.vehicle-card:hover .vehicle-info,
.vehicle-card:focus-visible .vehicle-info,
.vehicle-card.is-active .vehicle-info {
  max-height: 180px;
  opacity: 1;
  transform: translateY(0);
}

.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--light-green);
  border-radius: 999px;
  pointer-events: none;
  z-index: 50;
  transform: translate(-50%, -50%);
  opacity: .7;
  mix-blend-mode: difference;
}

@media (max-width: 1024px) {
  .vehicle-content { padding: 38px 32px; }
}

@media (max-width: 768px) {
  .cursor-ring { display: none; }
  .vehicle-title { font-size: 3rem; }
  .ghost-title { font-size: 7rem !important; top: 105px !important; }
}

.side-contact {
  position: fixed;
  right: clamp(14px, 2vw, 34px);
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  z-index: 45;
  display: none;
  align-items: center;
  gap: 18px;
  writing-mode: vertical-rl;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .48em;
  text-transform: uppercase;
  transition: color .35s ease, opacity .35s ease;
  mix-blend-mode: difference;
}
.side-contact:hover { color: var(--light-green); }
.side-contact-line {
  display: inline-block;
  width: 1px;
  height: 46px;
  background: rgba(255,255,255,.35);
}
@media (min-width: 768px) { .side-contact { display: flex; } }
@media (max-width: 767px) { .side-contact { display: none !important; } }

/* =========================================================================
   PREMIUM STRIP RE-WRITTEN FOR RESPONSIVENESS
========================================================================= */

.ev-premium-strip {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42% 58%;
  background: var(--light-green);
  color: var(--white);
  isolation: isolate;
}

.ev-strip-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ev-kicker {
  margin: 0 0 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.52em;
  text-transform: uppercase;
}

.ev-heading {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 72px);
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: -0.06em;
}

.ev-copy {
  margin: 22px 0 0;
  max-width: 520px;
  font-size: clamp(16px, 1.45vw, 24px);
  line-height: 1.5;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
}

.ev-round-btn {
  margin-top: 30px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  border: 1px solid var(--ink);
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), background 0.35s ease, border-color 0.35s ease;
}

.ev-round-btn:hover {
  transform: scale(1.08);
  background: var(--dark-green);
  border-color: var(--dark-green);
}

.ev-strip-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.ev-road-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.34), rgba(17, 17, 17, 0.05)), url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?q=80&w=1800&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05) brightness(0.9);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  transform: scale(1.1);
}

.ev-gold-cut {
  position: absolute;
  z-index: 2;
  left: -9%;
  top: -20%;
  width: 35%;
  height: 150%;
  background: var(--light-green);
  transform: skewX(-28deg);
}

.ev-dark-cut {
  position: absolute;
  z-index: 3;
  left: 35%;
  bottom: -32%;
  width: 22%;
  height: 70%;
  background: rgba(17, 17, 17, 0.36);
  transform: skewX(-28deg);
  filter: blur(0.2px);
}

/* 1. Sizing Fixed for Large Displays */
.ev-scooty-wrap {
  position: absolute;
  z-index: 6;
  right: 2%;
  top: 50%;
  width: min(1000px, 50vw); /* Increased from 690px to 900px for larger desktops */
  transform: translateY(-50%);
  will-change: transform, opacity;
}

/* 2. Overflow removed */
.ev-scooty-img {
  width: 100%; /* Changed from 120% to 100% to stop aggressive overflowing bounds */
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 36px 55px rgba(17, 17, 17, 0.55));
  transition: transform 0.75s cubic-bezier(0.19, 1, 0.22, 1);
}

.ev-premium-strip:hover .ev-scooty-img { 
  transform: translateX(-18px) scale(1.035); 
}

/* 3. Tablet Responsiveness */
@media (max-width: 1024px) {
  .ev-premium-strip { grid-template-columns: 1fr; }
  .ev-strip-visual { height: 45vh; min-height: 400px; }
  .ev-road-bg { clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  .ev-gold-cut, .ev-dark-cut { display: none; }
  
  /* Centered perfectly without breaking edges */
  .ev-scooty-wrap { 
    left: 50%; 
    right: auto;
    width: min(600px, 85vw); 
    transform: translate(-50%, -50%); 
  }
  
  /* Hover floats up rather than left when stacked */
  .ev-premium-strip:hover .ev-scooty-img { 
    transform: translateY(-10px) scale(1.02); 
  }
}

/* 4. Mobile Responsiveness */
@media (max-width: 640px) {
  .ev-kicker { font-size: 9px; letter-spacing: 0.34em; }
  .ev-copy { font-size: 16px; }
  .ev-round-btn { width: 92px; height: 92px; font-size: 8px; margin-top: 26px; }
  .ev-strip-visual { height: 340px; min-height: 340px; }
  /* Kept strictly within screen bounds */
  .ev-scooty-wrap { width: 150vw; top: 50%; left: -25%;} 
}

/* =========================================================================
   WHO WE ARE SECTION
========================================================================= */

.ev-about-inner { width: min(1600px, 100%); margin: 0 auto; }
.ev-about-top { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; margin-bottom: clamp(48px, 6vw, 95px); }
.ev-about-kicker { margin: 16px 0 0; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.62em; color: var(--light-green); }
.ev-about-heading { margin: 0; max-width: 1040px; font-size: clamp(42px, 5.2vw, 92px); line-height: 0.98; font-weight: 300; letter-spacing: -0.065em; }
.ev-about-heading span { color: var(--light-green); }
.ev-about-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(50px, 8vw, 140px); align-items: center; }
.ev-about-content { position: relative; padding-top: 36px; }
.ev-about-content p { margin: 0; max-width: 620px; font-size: clamp(24px, 2.05vw, 42px); line-height: 1.5; font-weight: 300; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.7); }

.ev-about-btn {
  margin-top: 58px;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--light-green);
  color: var(--white);
  display: grid;
  place-items: center;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.48em;
  text-indent: 0.48em;
  padding: 1em;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), background 0.35s ease, color 0.35s ease;
}

.ev-about-btn:hover { transform: scale(1.08); background: var(--dark-green); color: var(--white); }

@media (max-width: 1180px) {
  .ev-about-top { grid-template-columns: 1fr; gap: 18px; }
  .ev-about-kicker { margin: 0; }
  .ev-about-grid { grid-template-columns: 1fr; gap: 55px; }
  .ev-about-content { max-width: 760px; }
}

@media (max-width: 767px) {
  .ev-about-top { margin-bottom: 44px; }
  .ev-about-kicker { font-size: 9px; letter-spacing: 0.38em; }
  .ev-about-heading { font-size: clamp(38px, 12vw, 58px); line-height: 1; }
  .ev-about-content p { font-size: 23px; line-height: 1.45; }
  .ev-about-btn { width: 104px; height: 104px; font-size: 8px; margin-top: 38px; }
}


/* =========================================================================
  ALL COLLECTION SECTION
========================================================================= */
#productGrid {
  min-height: 400px;
}

.active-tab {
  background-color: var(--ink) !important;
  color: var(--cream) !important;
}

.product-item {
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
}

@media (max-width: 640px) {
  #tabContainer {
    gap: 8px;
  }
  #tabContainer button {
    padding: 10px 16px;
    font-size: 12px;
  }
}


/* =========================================================================
  FOOTER SECTION
========================================================================= */

footer {
  position: relative;
}

/* Keeps the image contained on larger screens */
@media (min-width: 1024px) {
  .footer-car-graphic {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40%;
  }
}
/* Custom Animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

/* ScrollTrigger will toggle this class */
.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effect for the contact button */
.group:hover {
  transform: scale(1.05);
}

/* =========================================================================
  FEATURED SECTION
========================================================================= */

/* 4:5 Aspect ratio for the vehicle cards image wrapper */
/* Update this for 4:5 aspect ratio and clean visibility */
.vehicle-image-wrapper {
  width: 100%;
  aspect-ratio: 4/5; /* Maintains perfect 4:5 ratio */
  overflow: hidden;
  background: #f8f8f8;
}

.vehicle-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures 4:5 filling without distortion */
  transition: transform 0.6s ease;
  display: block;
  
}

/* Remove the gradient overlay that hides the image */
.vehicle-content.align-bottom::before {
  display: none !important; 
}
/* .vehicle-content.align-bottom::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 84px;
  background: linear-gradient(to top, rgba(14,19,21,0.84) 80%, rgba(17,17,17,0.08) 100%, transparent 100%);
  z-index: -1;
  border-radius: 0 0 1rem 1rem;
  pointer-events: none;
} */
.vehicle-content.align-bottom .vehicle-number {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  opacity: .74;
  margin-bottom: 0.32rem;
}
.vehicle-content.align-bottom .vehicle-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .03em;
  color: #fff;
  letter-spacing: -.03em;
}
.vehicle-content.align-bottom .vehicle-info {
  margin-top: .13rem;
}
/* Bring cards to front if active/centered for subtle pop */
.vehicle-card.is-active .vehicle-image-wrapper img,
.vehicle-card.is-center .vehicle-image-wrapper img {
  box-shadow: 0 8px 38px 0 rgba(26,26,36,0.17);
}
/* Swiper slides & container responsive for aspect ratio */
@media (max-width: 1024px) {
  .vehicles-swiper .swiper-wrapper {
    gap: 0px;
    display: flex;
  }
  .vehicles-swiper .swiper-slide {
    width: 65vw !important;
    min-width: 260px !important;
    max-width: 340px;
    flex: 0 0 auto;
    margin-right: 18px;
    aspect-ratio: 4/5;
    border-radius: 1.2em;
  }
  .vehicle-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }
}
@media (min-width: 1025px) {
  .vehicles-swiper .swiper-slide {
    width: 415px !important;
    min-width: 355px;
    max-width: 430px;
    aspect-ratio: 4/5;
    border-radius: 1.4em;
  }
}
/* Re-enable hover bg color animation for desktop */
.vehicle-card:hover:not(.is-center) .vehicle-image-wrapper img {
  filter: brightness(1.07) blur(.5px);
  transition: filter 0.26s;
}
