/* ─── Base & Utilities ─── */
html {
    scroll-behavior: smooth;
}

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

/* ─── Hero Gradient ─── */
.hero-gradient {
    background: linear-gradient(135deg, #3D1247 0%, #7B2D8E 30%, #9B59B6 55%, #D4943A 85%, #F5B840 100%);
}

/* ─── Hero Decorative Pattern ─── */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 40px 40px;
}

/* ─── Hero Orbs ─── */
.hero-orb {
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 { animation-delay: 0s; }
.hero-orb-2 { animation-delay: -3s; }
.hero-orb-3 { animation-delay: -5s; }

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

/* ─── Visit Section Orbs ─── */
.visit-orb {
    background: radial-gradient(circle, rgba(212,148,58,0.5) 0%, transparent 70%);
    animation: visitOrb 10s ease-in-out infinite;
}

.visit-orb-2 {
    background: radial-gradient(circle, rgba(155,89,182,0.5) 0%, transparent 70%);
    animation: visitOrb 12s ease-in-out infinite reverse;
}

@keyframes visitOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

#navbar.scrolled {
    background: rgba(249, 245, 252, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(123, 45, 142, 0.08), 0 4px 24px rgba(123, 45, 142, 0.06);
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled .nav-link {
    color: #5C1E6B;
}

#navbar.scrolled .nav-link:hover {
    color: #7B2D8E;
}

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

/* ─── Section Spacing ─── */
section {
    position: relative;
}

/* ─── Focus Styles ─── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4943A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Selection ─── */
::selection {
    background: rgba(123, 45, 142, 0.15);
    color: #3D1247;
}

/* ─── Smooth Image Loading ─── */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ─── Mobile Menu Overlay Fix ─── */
body.menu-open {
    overflow: hidden;
}
