/* ========================================
   Woods Mills Detailing — Custom Styles
   ======================================== */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #111114;
}
::-webkit-scrollbar-thumb {
  background: #33333D;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF5A3A;
}

/* Selection */
::selection {
  background: #FF5A3A;
  color: #fff;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(11, 11, 13, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(51, 51, 61, 0.5);
}

/* Service card hover glow */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 90, 58, 0.08) 0%, transparent 70%);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card:hover::before {
  opacity: 1;
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

/* Pulse dot */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.animate-pulse {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Scroll reveal base state (visible by default for progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .font-heading {
    font-size: clamp(1.75rem, 8vw, 3rem);
  }
}

/* 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;
  }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #FF5A3A;
  outline-offset: 2px;
}
