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

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

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(255, 143, 125, 0.25);
  color: #ffded6;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #1e2025;
}
::-webkit-scrollbar-thumb {
  background: #464951;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5c5f68;
}

/* Selection highlight for selects */
select option {
  background: #1e2025;
  color: #e3e4e6;
  padding: 8px;
}

/* Nav active state */
#nav.scrolled {
  background: rgba(18, 19, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(70, 73, 81, 0.5);
}

/* Service card hover */
.service-card {
  transition: background-color 0.4s ease;
}
.service-card:hover {
  background-color: rgba(70, 73, 81, 0.15);
}

/* Mobile menu animation */
#mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
  border-color: #ff8f7d !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .service-card {
    transition: none !important;
  }
  img {
    transition: none !important;
  }
  .animate-bounce {
    animation: none;
  }
}
