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

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

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

/* ========== NAV ========== */
#site-header {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(107, 58, 125, 0.08);
}

/* ========== HERO BLOBS ========== */
.hero-blob {
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  animation-delay: 0s;
}

.blob-2 {
  animation-delay: -3s;
}

.blob-3 {
  animation-delay: -5s;
}

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

/* ========== SCROLL INDICATOR ========== */
.scroll-dot {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ========== SERVICE CARDS ========== */
.service-card {
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(107, 58, 125, 0.08);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ========== REVEAL ANIMATIONS ========== */
/* Default state: fully visible */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animated state — applied by JS only */
.reveal-up.animating,
.reveal-left.animating,
.reveal-right.animating {
  opacity: 0;
}

.reveal-up.animating {
  transform: translateY(30px);
}

.reveal-left.animating {
  transform: translateX(-30px);
}

.reveal-right.animating {
  transform: translateX(30px);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-blob {
    animation: none;
  }

  .scroll-dot {
    animation: none;
  }
}

/* ========== FORM ========== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* ========== UTILITY ========== */
.no-underline {
  text-decoration: none;
}
