/* Base & Utilities */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(244, 160, 122, 0.25);
  color: #1a1a2e;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
  }

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

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

/* Hero Animations */
@media (prefers-reduced-motion: no-preference) {
  .hero-badge {
    animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
  }
  .hero-headline {
    animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
  }
  .hero-sub {
    animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
  }
  .hero-cta {
    animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar States */
.navbar-scrolled {
  background-color: rgba(254, 253, 251, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 1px 0 rgba(26, 26, 46, 0.06), 0 4px 20px rgba(26, 26, 46, 0.04);
}

.navbar-scrolled .nav-logo-text {
  color: #1a1a2e !important;
}

.navbar-scrolled .nav-link {
  color: #5c5c6f !important;
}

.navbar-scrolled .nav-btn {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(26, 26, 46, 0.1) !important;
}

.navbar-scrolled .nav-btn span {
  background-color: #1a1a2e !important;
}

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

/* Smooth image loading */
img {
  transition: opacity 0.4s ease;
}

img[data-loaded="true"] {
  opacity: 1;
}

img {
  opacity: 0;
}

img[data-loaded="false"] {
  opacity: 0;
}

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

::-webkit-scrollbar-track {
  background: #fdf8f0;
}

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

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

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid #f4a07a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Print styles */
@media print {
  nav, #contact, footer, .reveal {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
  section {
    padding: 2rem 0;
  }
}
