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

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

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: #4a2030;
  background: #fffcf8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Navbar ─── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7B2D3B, #ff8da8);
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

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

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ─── Hero ─── */
.hero-gradient {
  background: linear-gradient(135deg, #7B2D3B 0%, #a8445e 25%, #c46078 45%, #e8889a 65%, #f5aabe 85%, #fdd5df 100%);
}

.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: #ff8da8;
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: #f5aabe;
  top: 50%;
  right: -5%;
  animation-delay: -3s;
}

.blob-3 {
  width: 250px;
  height: 250px;
  background: #c46078;
  bottom: -5%;
  left: 30%;
  animation-delay: -5s;
}

.blob-4 {
  width: 180px;
  height: 180px;
  background: #fce7eb;
  top: 20%;
  right: 20%;
  animation-delay: -2s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  opacity: 0;
  transform: translateY(40px);
  animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-badge {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-scroll {
  opacity: 0;
  animation: fadeIn 0.8s ease 1.2s forwards;
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── Buttons ─── */
.btn-primary {
  background: linear-gradient(135deg, #7B2D3B 0%, #a8445e 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #622430 0%, #7B2D3B 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-hero {
  position: relative;
  overflow: hidden;
}

.btn-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-hero:hover::after {
  opacity: 1;
}

/* ─── Service Cards ─── */
.service-card {
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(123,45,59,0.03) 0%, rgba(255,141,168,0.03) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* ─── Approach Items ─── */
.approach-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.approach-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Testimonial Cards ─── */
.testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card:hover {
  box-shadow: 0 20px 60px rgba(123, 45, 59, 0.08);
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ─── Divider ─── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,45,59,0.12), transparent);
}

/* ─── Input Focus ─── */
input:focus, textarea:focus {
  background: white !important;
  box-shadow: 0 0 0 4px rgba(123, 45, 59, 0.08);
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f0a3b8, #7B2D3B);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e46e8e, #622430);
}

/* ─── Selection ─── */
::selection {
  background: rgba(123, 45, 59, 0.15);
  color: #4a2030;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-gradient {
    background: linear-gradient(160deg, #7B2D3B 0%, #a8445e 30%, #c46078 55%, #e8889a 80%, #fdd5df 100%);
  }

  .blob {
    filter: blur(40px);
    opacity: 0.25;
  }

  .blob-1 { width: 250px; height: 250px; }
  .blob-2 { width: 200px; height: 200px; }
  .blob-3 { width: 160px; height: 160px; }
  .blob-4 { width: 120px; height: 120px; }
}
