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

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.35s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.4s; }

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(250, 247, 244, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-link {
  color: #2D2D2D;
}

.nav-scrolled .menu-line {
  background: #1F1F1F;
}

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

.mobile-link {
  transition: opacity 0.3s ease;
}

/* Custom selection */
::selection {
  background: #F2726F;
  color: white;
}

/* Subtle image hover */
.group:hover img {
  transform: scale(1.05);
}

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

/* Smooth transitions for all interactive elements */
button, a {
  transition: all 0.2s ease;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .group:hover img,
  img {
    transition: none;
  }
}
