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

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

body {
  overflow-x: hidden;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  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);
}

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

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* Hero Animation */
.hero-subtitle {
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-title {
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.hero-desc {
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

.hero-cta {
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
}

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

/* Service Card Hover */
.service-card {
  transition: background-color 0.5s ease;
}

.service-card:hover {
  background-color: #ffffff;
}

/* Testimonial Card Hover */
.testimonial-card {
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card:hover {
  border-color: #f5d5c0;
  box-shadow: 0 20px 60px -20px rgba(196, 114, 78, 0.1);
}

/* Scroll Indicator Pulse */
.scroll-indicator svg {
  animation: pulse-down 2s ease-in-out infinite;
}

@keyframes pulse-down {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* Navbar Transition */
#navbar.scrolled {
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(180, 176, 165, 0.3);
}

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

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Menu Lines Animation */
.menu-line {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

body.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 1rem;
}

/* Focus Styles */
input:focus, textarea:focus, button:focus {
  outline: none;
}

/* Selection */
::selection {
  background-color: #ebc4b0;
  color: #7d3b26;
}

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

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

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

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

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