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

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

body {
    overflow-x: hidden;
}

/* ─── Hero Gradient ─── */
.hero-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 25%, #3d2040 40%, #6b2a3a 60%, #c45a3c 80%, #e8705a 100%);
}

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

/* ─── Floating Orbs ─── */
.hero-orb {
    will-change: transform;
}

.orb-1 {
    background: radial-gradient(circle, #f9a8d4 0%, transparent 70%);
    animation: float-orb 8s ease-in-out infinite;
}

.orb-2 {
    background: radial-gradient(circle, #fb7185 0%, transparent 70%);
    animation: float-orb 10s ease-in-out infinite reverse;
}

.orb-3 {
    background: radial-gradient(circle, #fcd34d 0%, transparent 70%);
    animation: float-orb 12s ease-in-out infinite;
}

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

/* ─── Hero Animations ─── */
.hero-badge {
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-title {
    animation: fadeUp 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease-out 0.6s both;
}

.hero-cta {
    animation: fadeUp 0.8s ease-out 0.8s both;
}

.hero-scroll {
    animation: fadeUp 0.8s ease-out 1s both;
}

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

/* ─── Scroll Indicator ─── */
.hero-scroll {
    cursor: pointer;
}

/* ─── Navbar ─── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-blur-xl;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-logo {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo {
    color: #18181B;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E8705A;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

#navbar.scrolled .nav-link {
    color: #52525B;
}

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

/* ─── Mobile Menu ─── */
.mobile-link {
    position: relative;
}

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

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

.reveal.visible:nth-child(2) { transition-delay: 100ms; }
.reveal.visible:nth-child(3) { transition-delay: 200ms; }

/* ─── Card Hover ─── */
.card-group {
    transform: translateY(0);
}

.card-group:hover {
    transform: translateY(-6px);
}

/* ─── Visit Section Orbs ─── */
.visit-orb {
    will-change: transform;
    animation: float-orb 14s ease-in-out infinite;
}

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

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

::-webkit-scrollbar-thumb {
    background: #D1D1D8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A1A1AA;
}

/* ─── Selection ─── */
::selection {
    background: #FFE0D8;
    color: #18181B;
}

/* ─── Focus Visible ─── */
:focus-visible {
    outline: 2px solid #E8705A;
    outline-offset: 2px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(160deg, #1a1a2e 0%, #2d1f3d 30%, #6b2a3a 65%, #e8705a 100%);
    }

    .orb-1, .orb-2, .orb-3 {
        display: none;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .reveal {
        transform: translateY(20px);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5.5rem;
    }
}
