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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #e8bef9;
  color: #441554;
}

/* ===== NAVBAR ===== */
#navbar {
  background: rgba(249, 240, 253, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123, 45, 142, 0.08);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(123, 45, 142, 0.08);
}

.nav-link {
  position: relative;
}

/* ===== HERO BLOBS ===== */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  will-change: transform;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: #e8bef9;
  top: -100px;
  right: -100px;
  animation: float-slow 8s ease-in-out infinite;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: #ffe98a;
  bottom: 10%;
  left: -50px;
  animation: float-slow 10s ease-in-out infinite reverse;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: #f3dffc;
  top: 40%;
  right: 30%;
  animation: float-slow 6s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* ===== VISIT SECTION BLOBS ===== */
.visit-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.blob-a {
  width: 400px;
  height: 400px;
  background: rgba(168, 68, 207, 0.3);
  top: -100px;
  left: -100px;
}

.blob-b {
  width: 300px;
  height: 300px;
  background: rgba(245, 197, 24, 0.15);
  bottom: -50px;
  right: -50px;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

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

.mobile-link:hover {
  background: rgba(232, 190, 249, 0.3) !important;
}

/* ===== IMAGE HOVER ===== */
.rounded-3xl.overflow-hidden img {
  display: block;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #F5C518;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f9f0fd;
}
::-webkit-scrollbar-thumb {
  background: #d792f4;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a844cf;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
  .font-serif {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}
