/* ============================================
   INFINITE WORLDS GAME LOUNGE — CUSTOM STYLES
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   HERO ANIMATIONS
   ============================================ */
.hero-orb {
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    top: -10%;
    right: -5%;
    background: radial-gradient(circle, rgba(200, 164, 78, 0.6) 0%, transparent 70%);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -5%;
    left: -5%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, transparent 70%);
    animation-delay: -3s;
}

.orb-3 {
    top: 40%;
    left: 20%;
    background: radial-gradient(circle, rgba(200, 164, 78, 0.4) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    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 REVEAL
   ============================================ */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Prefers reduced motion: disable scroll animations */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

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

#navbar.scrolled {
    background: rgba(4, 13, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(200, 164, 78, 0.1), 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

/* ============================================
   BUTTONS & LINKS
   ============================================ */
a {
    text-decoration: none;
}

input:focus,
textarea:focus {
    outline: none;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: rgba(200, 164, 78, 0.3);
    color: #fff;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 164, 78, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 164, 78, 0.5);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .hero-orb {
        opacity: 0.6;
    }
    
    .orb-1 {
        width: 300px;
        height: 300px;
    }
    
    .orb-2 {
        width: 250px;
        height: 250px;
    }
    
    .orb-3 {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 640px) {
    #navbar {
        background: rgba(4, 13, 26, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}
