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

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

body { margin: 0; }

::selection { background: #B85446; color: #fff; }

/* Navbar scroll state */
#header.scrolled {
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* Service card stagger animation */
.service-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Hero content fade-in */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.6s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }

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

/* Mobile menu transition */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

#mobileMenu.open {
  max-height: 400px;
}

/* Smooth focus styles */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* Gallery hover */
section img {
  display: block;
}
