/* ========================================
   EUROVOID — Post-Apocalyptic Game Website
   Inspired by hytale.com, ivorygames & nullvoidproject
   ======================================== */

/* CSS Variables */
:root {
    /* Dark cinematic palette */
    --bg-deep: #0a0c10;
    --bg-dark: #0e1117;
    --bg-card: #141820;
    --bg-card-hover: #1a1f2a;
    --bg-surface: #1c2230;

    /* Accent — toxic green/teal for post-apocalyptic vibe */
    --accent: #00e8a2;
    --accent-dim: #00c98a;
    --accent-glow: rgba(0, 232, 162, 0.15);
    --accent-glow-strong: rgba(0, 232, 162, 0.3);

    /* Text */
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a9;
    --text-muted: #5f6571;
    --text-dim: #3d4250;

    /* Borders */
    --border: #1e2530;
    --border-hover: #2a3140;
    --border-accent: rgba(0, 232, 162, 0.2);

    /* Typography */
    --font-display: 'Rajdhani', 'Arial', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-gap: clamp(80px, 12vh, 140px);
    --container-width: min(90%, 1100px);

    /* Transitions */
    --ease: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-dim); }

img { max-width: 100%; display: block; }

.container {
    width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

/* ========================================
   LANGUAGE SELECTOR
   ======================================== */

.lang-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 4px;
    background: rgba(10, 12, 16, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px;
}

.lang-btn {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--ease);
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.lang-btn:hover { color: var(--text-primary); }
.lang-btn.active {
    background: var(--accent);
    color: var(--bg-deep);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(0, 232, 162, 0.05) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(0, 100, 200, 0.03) 0%, transparent 50%),
                var(--bg-deep);
    z-index: 0;
}

/* Subtle grid pattern */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 12, 16, 0.4) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    max-width: min(80%, 500px);
    height: auto;
    margin: 0 auto 30px;
    filter: drop-shadow(0 0 40px rgba(0, 232, 162, 0.15));
    animation: fadeInUp 0.8s ease-out;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 35px;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent); }
    50% { opacity: 0.4; box-shadow: none; }
}

.scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2.5s ease-in-out infinite;
    text-decoration: none;
}

.scroll-indicator span {
    font-size: 1.6rem;
    color: var(--text-dim);
    transition: color var(--ease);
}

.scroll-indicator:hover span { color: var(--accent); }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

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

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--ease);
    border: 2px solid transparent;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn-icon { font-size: 1.1em; }

.btn-primary {
    background: var(--accent);
    color: var(--bg-deep);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: var(--section-gap) 20px;
    position: relative;
}

.section-eyebrow {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 20px;
}

/* ========================================
   INTRO SECTION
   ======================================== */

.intro {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.intro-content {
    max-width: 750px;
}

.intro-headline {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.intro-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 35px 30px;
    transition: all var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--ease);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    font-size: 2rem;
    margin-bottom: 18px;
    filter: grayscale(0.3);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   CTA / COMING SOON SECTION
   ======================================== */

.cta-section {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    padding: clamp(40px, 6vw, 70px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
    position: relative;
}

.cta-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 35px;
    position: relative;
    line-height: 1.8;
}

.cta-buttons {
    position: relative;
    margin-bottom: 20px;
}

.cta-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    font-style: italic;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
}

.about-content {
    max-width: 600px;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: 50px 20px 40px;
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    text-align: center;
}

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

.footer-logo {
    max-width: 140px;
    height: auto;
    opacity: 0.4;
    filter: grayscale(1);
    transition: all var(--ease);
}

.footer-logo:hover {
    opacity: 0.7;
    filter: grayscale(0);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-copyright a {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color var(--ease);
}

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

.footer-sep {
    color: var(--text-dim);
    font-size: 0.7rem;
}

/* ========================================
   LEGAL MODAL
   ======================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color var(--ease);
}

.modal-close:hover { color: var(--text-primary); }

.modal-body {
    padding: 25px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-body h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 20px 0 8px;
}

.modal-body h3:first-child { margin-top: 0; }

.modal-body p { margin-bottom: 12px; }

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .hero-logo {
        max-width: 85%;
    }
    .cta-card {
        padding: 35px 25px;
    }
}

@media (max-width: 480px) {
    .lang-selector {
        top: 12px;
        right: 12px;
    }
    .lang-btn {
        padding: 5px 9px;
        font-size: 0.7rem;
    }
    .hero {
        padding: 40px 15px;
    }
}
