/* ============================================
   Import Auto Parts — Custom Styles
   ============================================ */

/* CSS Custom Properties */
:root {
  --emerald-950: #052e16;
  --emerald-900: #14532d;
  --emerald-800: #166534;
  --emerald-700: #15803d;
  --emerald-600: #16a34a;
  --emerald-500: #22c55e;
  --emerald-400: #4ade80;
  --emerald-300: #86efac;
  --emerald-200: #bbf7d0;
  --emerald-100: #dcfce7;
  --emerald-50: #f0fdf4;
  --cream-50: #fefdf8;
  --cream-100: #fefce8;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--cream-50);
  color: #111827;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Geometric Background Shapes */
.geo-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.geo-circle-1 {
  top: 15%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
  bottom: 20%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(22, 101, 52, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 25s ease-in-out infinite reverse;
}

.geo-triangle {
  top: 40%;
  left: 5%;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(74, 222, 128, 0.05);
  animation: spin-slow 30s linear infinite;
}

.geo-square {
  top: 60%;
  right: 8%;
  width: 80px;
  height: 80px;
  background: rgba(22, 101, 52, 0.04);
  transform: rotate(45deg);
  animation: spin-slow 25s linear infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

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

/* Navigation */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(20, 83, 45, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile Menu */
.mobile-nav-link {
  position: relative;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Hero Section */
#hero {
  position: relative;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--cream-50), transparent);
  z-index: 1;
  pointer-events: none;
}

/* Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald-800), var(--emerald-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Contact Form */
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #9ca3af;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Button hover glow effect */
button:hover, a:hover {
  transition: all 0.3s ease;
}

/* Selection color */
::selection {
  background: var(--emerald-200);
  color: var(--emerald-950);
}

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .geo-circle-1,
  .geo-circle-2 {
    display: none;
  }
  
  .geo-triangle,
  .geo-square {
    display: none;
  }
}

/* Large desktop */
@media (min-width: 1920px) {
  .max-w-7xl {
    max-width: 80rem;
  }
}
