/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

::selection { background: #f9cfd8; color: #5c1f2c; }

/* === NAVBAR === */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
  background: rgba(254, 252, 251, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

/* === HERO ANIMATIONS === */
.hero-badge {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}
.hero-title {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}
.hero-subtitle {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}
.hero-ctas {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}
.hero-stats {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
}

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

/* === FLOATING SHAPES === */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}
@keyframes float-delay {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, 20px) scale(1.08); }
}
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -15px); }
}
.animate-float { animation: float 8s ease-in-out infinite; }
.animate-float-delay { animation: float-delay 10s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 12s ease-in-out infinite; }

/* === SCROLL LINE === */
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0.5; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.5; }
}
.animate-scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

/* === SCROLL REVEAL === */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === SERVICE CARDS === */
.service-card {
  will-change: transform;
}

/* === SERVICE TAG === */
.service-tag {
  letter-spacing: 0.12em;
}

/* === MOBILE MENU === */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}
#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* === MOBILE MENU OVERLAY === */
#mobileMenu {
  transition: opacity 0.3s ease, pointer-events 0.3s ease;
}
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}
#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* === BUTTONS === */
a, button { cursor: pointer; }

/* === INPUTS === */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
}

/* === MOBILE HAMBURGER === */
#menuBtn svg {
  transition: transform 0.3s ease;
}
#menuBtn.active svg {
  transform: rotate(90deg);
}
