*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1e293b;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* NAVBAR */
#navbar {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#navbar.scrolled {
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* MOBILE MENU */
#mobileMenu {
  animation: slideDown 0.25s ease-out;
}

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

/* SCROLL REVEAL — progressive enhancement via prefers-reduced-motion */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

/* HERO */
#hero {
  position: relative;
}

/* SERVICE CARDS */
.service-card:hover .service-icon {
  transform: scale(1.05);
}

.service-icon {
  transition: transform 0.3s ease;
}

/* BUTTONS */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* FOCUS */
*:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* SELECTION */
::selection {
  background: #0d9488;
  color: #ffffff;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* FORM STYLES */
input:focus, select:focus, textarea:focus {
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* MAP SECTION */
iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 70px;
  }

  #hero h1 {
    font-size: 2.75rem;
  }

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

@media (min-width: 641px) and (max-width: 1023px) {
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
  }
}
