@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --primary-dark: #0B131F;
  --teal-accent: #0D2826;
  --green-brand: #22C55E;
  --green-hover: #16A34A;
  --card-bg: #FFFFFF;
  --body-bg: #F3F4F6;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--body-bg);
  color: #1E293B;
  -webkit-tap-highlight-color: transparent;
}

/* Hero Section Full Screen Background */
.hero-bg-overlay {
  background-image: url('assets/hero-image.jpeg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* All Titles & Headings use Google Font Michroma */
.font-michroma,
.font-display,
h1, h2, h3, .heading-michroma {
  font-family: 'Michroma', 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

/* Custom scrollbar for horizontal tabs & gallery */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Glow effects */
.glow-teal {
  box-shadow: 0 0 40px rgba(20, 184, 166, 0.25);
}

.glow-green {
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

/* Smooth transitions */
.transition-all-300 {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active tab styles */
.model-tab.active {
  background-color: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.model-tab.active .model-tag {
  color: #94A3B8;
}

/* Image switch animation */
.car-image-container {
  perspective: 1000px;
}

.car-image-enter {
  animation: fadeInCar 0.4s ease-out forwards;
}

@keyframes fadeInCar {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Accordion collapse transition */
.spec-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
}

.spec-accordion-content.expanded {
  max-height: 2000px;
  opacity: 1;
}

/* 3D Card Flip Animation Styles */
.flip-card-container {
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

/* Trigger flip on desktop hover or mobile .flipped class */
.flip-card-container:hover .flip-card-inner,
.flip-card-container.flipped .flip-card-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.flip-card-front {
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
}

.flip-card-back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

/* Subtle Floating Animation */
@keyframes floatSubtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.animate-float {
  animation: floatSubtle 3s ease-in-out infinite;
}

/* Modal backdrop */
.modal-backdrop {
  backdrop-filter: blur(8px);
}

/* ==================== ADVANCED MOTION & ANIMATION UTILITIES ==================== */

/* Hero Section Staggered Entrance Animations */
@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-reveal-title {
  opacity: 0;
  animation: heroEntrance 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.hero-reveal-sub {
  opacity: 0;
  animation: heroEntrance 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.hero-reveal-btn {
  opacity: 0;
  animation: heroEntrance 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

/* Scroll Reveal Animations - Silky & Elegant Speed (~950ms) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  will-change: opacity, transform;
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay helpers */
.delay-100 { transition-delay: 150ms; }
.delay-200 { transition-delay: 300ms; }
.delay-300 { transition-delay: 450ms; }

/* Continuous Glow Pulse */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.75);
  }
}

.glow-green-pulse {
  animation: glowPulse 2.5s ease-in-out infinite;
}

/* Subtle Reverse Floating Animation for Organic Layering */
@keyframes floatSubtleReverse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

.animate-float-reverse {
  animation: floatSubtleReverse 3.5s ease-in-out infinite;
}

/* Shimmer Highlight Effect */
@keyframes shimmerPass {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmerPass 4s infinite linear;
}

/* Button & Interactive Card Hover Elevations */
button, .model-tab, .flip-card-container, a {
  will-change: transform;
}

/* Smooth Tab Bounce */
.model-tab {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, border-color 0.25s ease;
}

.model-tab:active {
  transform: scale(0.92);
}

/* Enhanced 3D Profile Flip Curve */
.flip-card-inner {
  transition: transform 0.7s cubic-bezier(0.34, 1.25, 0.64, 1);
  -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.34, 1.25, 0.64, 1);
}

/* ==================== TITLE FADE IN FROM BOTTOM ==================== */
@keyframes fadeInBottom {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-bottom {
  animation: fadeInBottom 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Re-triggerable Title Entrance */
.title-entrance {
  animation: fadeInBottom 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ==================== TYPING TEXT EFFECT CURSOR ==================== */
.typing-text {
  display: inline;
  border-right: 2px solid #22c55e;
  animation: blinkCursor 0.75s step-end infinite;
  white-space: normal;
}

.typing-done {
  border-right: none;
  animation: none;
}

@keyframes blinkCursor {
  from, to { border-color: transparent }
  50% { border-color: #22c55e }
}

/* ==================== NUMBER COUNTER TICKER GLOW ==================== */
.number-counting {
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.number-count-glow {
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

/* ==================== MICRO INTERACTION HOVERS & LIFTS ==================== */
/* Interactive Cards Hover Elevation */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.12);
}

/* Icon Hover Spin/Bounce */
.icon-bounce:hover i {
  transform: scale(1.2) rotate(8deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
