/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
    --color-bg: #050505;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-accent: #FF6600; /* Naranja Tinga Interactiva */
    --color-accent-hover: #ff8533;
    
    --nav-height: 80px;
    --font-primary: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow: hidden; /* Ocultamos el scroll del body porque usamos el del contenedor */
}

/* =========================================
   TYPOGRAPHY
========================================= */
h1, h2, h3 {
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--color-accent);
}

/* =========================================
   NAVIGATION BAR (Voodoo Style)
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(5, 5, 5, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.logo-img {
    height: 65px; /* Increased from 52px */
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
}

/* =========================================
   SCROLL SNAPPING CONTAINER
========================================= */
.scroll-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.scroll-container::-webkit-scrollbar {
    display: none;
}

.snap-section {
    position: relative;
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* =========================================
   SECTION OVERLAYS & LAYOUT
========================================= */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* Oscurece el fondo */
    z-index: 1;
}

.gradient-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
}

.gradient-overlay-right {
    background: linear-gradient(-90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
}

.content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    padding: 0 40px;
}

.text-center { text-align: center; }
.align-left { text-align: left; max-width: 800px; margin-right: auto; }
.align-right { text-align: right; max-width: 800px; margin-left: auto; }

/* =========================================
   TYPOGRAPHY SPECIFICS
========================================= */
.main-title {
    font-size: 5rem;
    margin-bottom: 20px;
    text-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.section-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.subtitle, .game-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-bottom: 40px;
}

.badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* =========================================
   BUTTONS
========================================= */
.button-group, .store-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.button-group.justify-center { justify-content: center; }
.store-buttons.justify-end { justify-content: flex-end; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-store {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    height: 60px;
    border-radius: 12px;
}

.btn-store img {
    height: 100%;
    object-fit: contain;
}

.btn-store:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
}

/* =========================================
   FOOTER
========================================= */
.footer-section {
    background-color: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.footer-logo {
    height: 78px; /* 30% larger than 60px */
    opacity: 0.8;
}

.footer-tagline {
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.copyright {
    color: #555;
    font-size: 0.8rem;
    margin-top: 20px;
}

/* =========================================
   ANIMATIONS (Intersection Observer driven)
========================================= */
.animate-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
}

.fade-up {
    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);
}

.fade-in {
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   ANIMATED EARTH & STARS
========================================= */
#globe-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #020202; /* Espacio profundo */
    overflow: hidden;
}

.stars-wrapper {
    position: absolute;
    /* Extra space so translation doesn't show edges */
    top: -10%; left: -10%; right: -10%; bottom: -10%;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.1s ease-out; /* Smooth mouse parallax */
}

.stars {
    position: absolute;
    inset: 0;
    background: transparent;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #dddddd, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 200px 50px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 250px 150px, rgba(255,102,0,0.5), rgba(0,0,0,0)), /* Naranja sutil */
        radial-gradient(2px 2px at 300px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 350px 220px, #dddddd, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 400px 110px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2.5px 2.5px at 450px 280px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 250px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 120px 210px, rgba(255,255,255,0.6), rgba(0,0,0,0));
    background-repeat: repeat;
}

.stars-1 {
    background-size: 500px 500px;
    animation: driftStars 100s linear infinite;
    opacity: 0.8;
}

.stars-2 {
    background-size: 400px 400px;
    animation: driftStars 70s linear infinite reverse;
    opacity: 0.5;
}

.stars-3 {
    background-size: 600px 600px;
    animation: driftStars 130s linear infinite;
    opacity: 0.9;
}

@keyframes driftStars {
    from { background-position: 0 0; }
    to { background-position: -1000px -1000px; }
}

.earth-sphere {
    position: relative;
    width: 60vh;
    height: 60vh;
    border-radius: 50%;
    background: url('../images/earth_map.jpg');
    background-size: cover;
    /* Efecto 3D de sombra y resplandor atmosférico */
    box-shadow: 
        inset -30px -30px 50px rgba(0,0,0,0.9),
        inset 10px 10px 30px rgba(255,255,255,0.2),
        0 0 60px rgba(255, 102, 0, 0.15); /* Resplandor naranja sutil */
    animation: rotateEarth 40s linear infinite;
    z-index: 1;
}

@keyframes rotateEarth {
    0% { background-position: 0 0; }
    100% { background-position: 1024px 0; }
}

/* =========================================
   SCROLL DOWN ARROW
========================================= */
.scroll-down-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    margin-left: -20px;
    z-index: 20;
    color: rgba(255, 255, 255, 0.6);
    animation: bounceArrow 2s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
    transition: color 0.3s;
}

.scroll-down-arrow:hover {
    color: var(--color-accent);
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* Clases agregadas via JS cuando entra en vista */
.is-visible .animate-on-scroll.fade-up {
    opacity: 1;
    transform: translateY(0);
}

.is-visible .animate-on-scroll.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Delays to create stagger effect */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 991px) {
    .main-title { font-size: 3.5rem; }
    .section-title { font-size: 3rem; }
    .button-group, .store-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .nav-menu { display: none; /* Hide for mobile, normally you'd use a hamburger */ }
}
