/* --- Landing Page Specific Sticky Header --- */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 99999;
    width: 100%;
    /* Dropped from 0.75 to 0.4 to make the glass blur more obvious */
    background: rgba(5, 6, 8, 0.4); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.landing-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Logo Styling --- */
.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.landing-logo-img {
    height: 36px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    transition: transform 0.3s ease;
}

.landing-logo:hover .landing-logo-img {
    transform: scale(1.05);
}

.landing-logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}

/* --- Navigation Links --- */
.landing-nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
}

.landing-nav-links li {
    height: 100%;
    display: flex;
    align-items: center;
}

.landing-nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted, #a1a1aa);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}

/* Automatically uses the game's theme color (e.g. Minecraft Green, Rust Red) */
.landing-nav-links a:hover {
    color: var(--theme-color, #fff);
    text-shadow: 0 0 10px var(--theme-glow, rgba(255,255,255,0.3));
}

/* --- Action Button (CTA) --- */
.landing-nav-actions {
    display: flex;
    align-items: center;
}

.landing-btn-primary {
    display: flex;
    align-items: center;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    background: var(--theme-color, #007bff);
    border: 1px solid var(--theme-color, #007bff);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    /* This triggers the pulse animation */
    animation: headerPulse 2s infinite; 
}

.landing-btn-primary:hover {
    transform: translateY(-2px);
    /* Removed transparent background, kept it solid */
    background: var(--theme-color, #007bff);
    color: #fff;
    /* Intensified the glow instead of making it hollow */
    box-shadow: 0 8px 25px var(--theme-glow, rgba(0, 123, 255, 0.8));
    /* Pauses the pulse while the user is actively hovering */
    animation: none; 
}

/* --- Global Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Responsive Layout --- */
@media (max-width: 992px) {
    /* Hide anchor links on tablet/mobile to force focus strictly on the CTA */
    .landing-nav-links {
        display: none; 
    }
    .landing-nav-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Hide brand text to save space, keeping just the logo icon and CTA */
    .landing-logo-text {
        display: none; 
    }
    .landing-nav-container {
        padding: 0 1rem;
    }
    .landing-btn-primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

@keyframes headerPulse {
    0% { box-shadow: 0 0 0 0 var(--theme-glow, rgba(0, 123, 255, 0.6)); }
    70% { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}