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

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

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

::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f0f5f0;
}

/* ===== HERO RADIAL GRADIENT ===== */
.bg-radial-gradient-hero {
    background: radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, rgba(3, 8, 4, 0.4) 60%, rgba(3, 8, 4, 0.85) 100%);
}

/* ===== HERO ORBS ===== */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orb-float 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-orb--red {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 50, 50, 0.6) 0%, transparent 70%);
    animation-delay: 0s;
}

.hero-orb--gold {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.5) 0%, transparent 70%);
    animation-delay: -2s;
}

.hero-orb--green {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 94, 54, 0.7) 0%, transparent 70%);
    animation-delay: -4s;
}

.hero-orb--blue {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(50, 100, 220, 0.5) 0%, transparent 70%);
    animation-delay: -6s;
}

.hero-orb--purple {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(140, 50, 200, 0.5) 0%, transparent 70%);
    animation-delay: -1s;
}

.hero-orb--pink {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(220, 80, 150, 0.5) 0%, transparent 70%);
    animation-delay: -3s;
}

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

/* ===== HERO BADGE ANIMATION ===== */
.hero-badge {
    animation: badge-in 0.8s ease-out both;
}

@keyframes badge-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO CONTENT ANIMATIONS ===== */
#hero h1 {
    animation: hero-text-in 1s ease-out 0.2s both;
}

#hero p {
    animation: hero-text-in 1s ease-out 0.4s both;
}

#hero > div > div:last-child {
    animation: hero-text-in 1s ease-out 0.6s both;
}

#hero > div > div:last-child > div {
    animation: hero-text-in 1s ease-out 0.8s both;
}

@keyframes hero-text-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL LINE ===== */
.animate-scroll-line {
    animation: scroll-line-anim 2s ease-in-out infinite;
}

@keyframes scroll-line-anim {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ===== NAVIGATION ===== */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.scrolled {
    background: rgba(3, 8, 4, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 160, 23, 0.1), 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4a017, #f5d97a);
    transition: width 0.3s ease;
}

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

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

/* Stagger children */
.grid > .scroll-reveal[data-reveal-state="hidden"]:nth-child(1) { transition-delay: 0.05s; }
.grid > .scroll-reveal[data-reveal-state="hidden"]:nth-child(2) { transition-delay: 0.1s; }
.grid > .scroll-reveal[data-reveal-state="hidden"]:nth-child(3) { transition-delay: 0.15s; }
.grid > .scroll-reveal[data-reveal-state="hidden"]:nth-child(4) { transition-delay: 0.2s; }
.grid > .scroll-reveal[data-reveal-state="hidden"]:nth-child(5) { transition-delay: 0.25s; }
.grid > .scroll-reveal[data-reveal-state="hidden"]:nth-child(6) { transition-delay: 0.3s; }

/* ===== MOBILE MENU ===== */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 160, 23, 0.15), transparent);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
    width: 12px;
}

/* ===== CARD HOVER EFFECTS ===== */
.scroll-reveal.group:hover .aspect-\[4\/3\] img {
    transform: scale(1.1);
}

/* ===== MAP INVERT FIX ===== */
iframe[style*="invert"] {
    border-radius: 0.75rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .hero-orb {
        filter: blur(60px);
        opacity: 0.35;
    }
    .hero-orb--red { width: 250px; height: 250px; }
    .hero-orb--gold { width: 200px; height: 200px; }
    .hero-orb--green { width: 180px; height: 180px; }
    .hero-orb--blue { width: 160px; height: 160px; }
    .hero-orb--purple { width: 140px; height: 140px; }
    .hero-orb--pink { width: 120px; height: 120px; }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .scroll-reveal { opacity: 1 !important; transform: none !important; }
}
