/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@300;400;500&display=swap');

/* Base styles */
:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;

  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;

  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;

  --primary: 0 85% 43%; /* Red */
  --primary-foreground: 0 0% 100%;

  --secondary: 220 14% 96%;
  --secondary-foreground: 222.2 47.4% 11.2%;

  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;

  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 0 85% 43%;

  --radius: 0.5rem;
}

body {
  font-family: 'Poppins', sans-serif;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  min-height: 100vh;
}

/* Utility classes */
.text-primary {
  color: hsl(var(--primary));
}

.bg-primary {
  background-color: hsl(var(--primary));
}

.bg-primary\/10 {
  background-color: hsla(var(--primary), 0.1);
}

.bg-primary\/90 {
  background-color: hsla(var(--primary), 0.9);
}

/* Navbar hover effects */
.nav-link {
  transition: all 0.3s ease;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
}

.nav-link.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
}

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

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

.nav-link:hover {
  transform: translateY(-3px);
  text-shadow: 0 2px 8px hsla(var(--primary), 0.2);
}

.svg-placeholder {
  width: 40px;
  height: 40px;
  animation: rotate 4s linear infinite;
}

.svg-placeholder:hover {
  transform: scale(1.25);
  animation-duration: 1.5s;
  filter: drop-shadow(0 0 8px hsla(var(--primary), 0.6));
}

.phone-link {
  transition: all 0.3s ease;
}

.phone-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hero section styles */
.tire-section {
  background-image: url('/public/tire-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.tire-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.4) 100%);
}

.svg-placeholder {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  z-index: 10;
  opacity: 0.8;
  transition: all 0.3s ease;
  animation: rotate 5s linear infinite;
}

.svg-placeholder:hover {
  opacity: 1;
  transform: scale(1.2);
  animation-duration: 2s;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Animation classes */
.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.fade-in-element {
  opacity: 0;
  animation: fadeIn 0.8s ease-in-out forwards;
}

.service-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.service-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll animations */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-scale {
  transform: scale(0.95);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-scale.active {
  transform: scale(1);
}

.stagger-1 {
  animation-delay: 0.2s;
}

.stagger-2 {
  animation-delay: 0.4s;
}

/* Emergency pulse animation */
.emergency-pulse {
  position: relative;
  overflow: hidden;
}

.emergency-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsla(var(--primary), 0.4);
  border-radius: inherit;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
  transform: scale(1.05);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Interactive hover animations */

/* Scroll animations */
.scroll-fade {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-scale {
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-scale.active {
  transform: scale(1);
  opacity: 1;
}

.scroll-slide-left {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-slide-left.active {
  opacity: 1;
  transform: translateX(0);
}

.scroll-slide-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-slide-right.active {
  opacity: 1;
  transform: translateX(0);
}
.blur-animation {
  transition: filter 0.3s ease;
  filter: blur(0);
}

.blur-animation.active {
  filter: blur(5px);
}

/* Blur animation for scroll */
.scroll-blur {
  transition: filter 0.5s ease-out;
  filter: blur(0);
  will-change: filter;
}

.scroll-blur.active {
  filter: blur(3px);
}
.button-hover {
  transition: all 0.3s ease;
}

.button-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

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

/* Section layout styles */
.section-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.section-stack > * {
  width: 100%;
  margin-bottom: 4rem;
}

#testimonials,
#faq,
#contact {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 6rem 0;
  padding: 2rem 0;
  gap: 2rem;
  position: relative;
  grid-column: 1 / -1;
  grid-row: auto;
}

#testimonials::before,
#faq::before,
#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: hsl(var(--border));
}

.section-stack > *:last-child {
  margin-bottom: 0;
}
.service-card {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 16px;
  transition: opacity 0.3s ease-in-out;
}