/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

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

/* ========== NAVIGATION ========== */
.nav-fixed {
  transition: box-shadow 0.3s ease;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #7B1E3A;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 60%;
}

/* ========== HERO SHAPES ========== */
.hero-shape-1 {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 126, 144, 0.08);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
  position: absolute;
  bottom: 15%;
  right: 15%;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: float 6s ease-in-out infinite reverse;
}

.hero-shape-3 {
  position: absolute;
  top: 25%;
  right: 30%;
  width: 80px;
  height: 80px;
  background: rgba(255, 194, 204, 0.12);
  transform: rotate(45deg);
  animation: spin 12s linear infinite;
}

.hero-shape-4 {
  position: absolute;
  bottom: 25%;
  left: 5%;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: float 7s ease-in-out infinite;
}

.hero-shape-5 {
  position: absolute;
  top: 60%;
  left: 15%;
  width: 60px;
  height: 60px;
  background: rgba(255, 126, 144, 0.1);
  border-radius: 12px;
  transform: rotate(30deg);
  animation: spin 15s linear infinite reverse;
}

.hero-shape-6 {
  position: absolute;
  top: 5%;
  left: 35%;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== SERVICE CARDS ========== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7B1E3A, #ff7e90);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    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; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  display: block;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7B1E3A;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(123, 30, 58, 0.2);
  color: #7B1E3A;
}
