@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bg-void: #050508;
    --bg-mystic: #0f0f17;
    --bg-card: rgba(255, 255, 255, 0.035);
    --lava-gold: #facc15;
    --ember-orange: #f97316;
    --dragon-red: #ef4444;
    --mystic-purple: #8b5cf6;
    --emerald-energy: #22c55e;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --sidebar-width: 90px;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    padding-left: var(--sidebar-width);
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.05), transparent 70%),
                radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.05), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

a {
    color: var(--text-primary);
    text-decoration: none;
}

/* =========================================
   SIDEBAR - DRAGON SPINE (3D & CURVED)
   ========================================= */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-mystic);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    perspective: 1200px; /* 3D Environment */
    border-right: 1px solid rgba(250, 204, 21, 0.1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
}

/* The Curved Energy Arc Background (Doesn't cut layout) */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center left, rgba(239, 68, 68, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.brand-logo {
    margin-bottom: 50px;
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lava-gold), var(--dragon-red));
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    animation: pulseGlow 3s infinite alternate;
}

.brand-logo::after {
    content: '';
    width: 40px;
    height: 40px;
    background: var(--bg-void);
    border-radius: 50%;
    position: absolute;
}

.brand-logo svg {
    width: 24px;
    height: 24px;
    fill: var(--lava-gold);
    z-index: 2;
    position: relative;
}

.nav-menu {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* 3D Floating Interactive Icons */
.nav-item {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    animation: floatSlow 6s ease-in-out infinite;
}

/* Stagger animations slightly */
.nav-menu li:nth-child(2) .nav-item { animation-delay: 0.5s; }
.nav-menu li:nth-child(3) .nav-item { animation-delay: 1s; }
.nav-menu li:nth-child(4) .nav-item { animation-delay: 1.5s; }
.nav-menu li:nth-child(5) .nav-item { animation-delay: 2s; }

.nav-item svg {
    width: 26px;
    height: 26px;
    fill: var(--text-secondary);
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 0 transparent);
}

.nav-item:hover {
    transform: translateZ(35px) translateX(10px) rotateY(-15deg) rotateX(10deg);
    background: rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.5), 
                inset 0 0 15px rgba(239, 68, 68, 0.3);
}

.nav-item:hover svg {
    fill: var(--lava-gold);
    filter: drop-shadow(0 0 10px var(--ember-orange));
    transform: scale(1.1);
}

/* Smooth Tooltip Slide Out */
.tooltip {
    position: absolute;
    left: 80px;
    background: linear-gradient(90deg, var(--bg-mystic), var(--bg-void));
    border: 1px solid var(--mystic-purple);
    color: var(--lava-gold);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px) translateZ(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    pointer-events: none;
}

.nav-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateZ(0);
}

/* =========================================
   HERO SECTION & GLASS BOX
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: brightness(0.7) contrast(1.2) saturate(1.2);
}

/* Overlay gradient for cinematic depth */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-void) 100%);
    z-index: -1;
}

.glass-box {
    position: relative;
    max-width: 850px;
    width: 100%;
    padding: 4rem 3rem;
    background: rgba(15, 15, 23, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(250, 204, 21, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: glassFloat 6s ease-in-out infinite;
    z-index: 10;
}

/* Glowing Aura around glass box */
.glass-box::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(45deg, var(--dragon-red), transparent, var(--lava-gold), transparent, var(--mystic-purple));
    background-size: 200% 200%;
    z-index: -1;
    animation: gradientMove 5s linear infinite;
    opacity: 0.5;
    filter: blur(8px);
}

.glass-box h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--lava-gold), var(--ember-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.glass-box p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, var(--lava-gold), var(--dragon-red), var(--mystic-purple));
    background-size: 200% 100%;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
}

.btn-primary:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.5);
}

.btn-primary:hover::before {
    left: 150%;
}

.legal-notice {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    border-left: 4px solid var(--dragon-red);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.legal-notice .icon {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: bold;
    background: var(--dragon-red);
    color: #fff;
    width: 50px; 
    height: 50px;
    display: flex; 
    justify-content: center; 
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.legal-notice p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-secondary);
}

.legal-notice p strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
}

/* =========================================
   GAME SECTION
   ========================================= */
.game-section {
    padding: 6rem 2rem;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--lava-gold);
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 24px;
    padding: 4px; /* Space for glowing border */
    background: linear-gradient(135deg, var(--dragon-red), var(--mystic-purple), var(--ember-orange));
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8),
                0 0 50px rgba(239, 68, 68, 0.2);
}

.game-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 20px;
    background: #000;
    display: block;
    position: relative;
    z-index: 2;
}

/* =========================================
   FEATURES / EXTRA CONTENT
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(250, 204, 21, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(250,204,21,0.1), rgba(239,68,68,0.1));
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    border: 1px solid rgba(250,204,21,0.2);
}

.feature-icon svg { width: 30px; height: 30px; fill: var(--lava-gold); }
.feature-card h3 { color: var(--text-primary); margin-bottom: 0.5rem; font-size: 1.2rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* =========================================
   PAGE CONTENT STRUCTURE (About, Legal)
   ========================================= */
.page-header {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-mystic), var(--bg-void));
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--lava-gold);
    margin-bottom: 1rem;
}

.content-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.content-card h2 {
    color: var(--ember-orange);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.content-card h2:first-child { margin-top: 0; }

.content-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.content-card ul {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-card li { margin-bottom: 0.5rem; }

/* About Page Specifics */
.lore-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.lore-image img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(250, 204, 21, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--lava-gold);
    font-family: var(--font-heading);
}

.form-control {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--ember-orange);
    background: rgba(0,0,0,0.8);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--bg-mystic);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: left;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--lava-gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a {
    color: var(--text-secondary);
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--dragon-red); }

.company-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.responsible-logos {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.age-badge {
    background: var(--dragon-red);
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: bold; font-family: var(--font-heading);
}

/* =========================================
   ANIMATIONS & EFFECTS
   ========================================= */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes glassFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
    100% { box-shadow: 0 0 25px rgba(250, 204, 21, 0.6); }
}

/* Canvas Particles */
#particle-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* =========================================
   RESPONSIVE DESIGN (Mobile First Concepts)
   ========================================= */
.mobile-nav-toggle { display: none; }

@media (max-width: 992px) {
    .glass-box h1 { font-size: 3rem; }
    .game-container { width: 85%; }
    .lore-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { padding-left: 0; }
    
    /* Mobile Slide-in Sidebar */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        box-shadow: none;
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
    }
    
    .mobile-nav-toggle {
        display: flex;
        position: fixed;
        top: 20px; left: 20px;
        width: 45px; height: 45px;
        background: var(--bg-mystic);
        border: 1px solid rgba(250,204,21,0.3);
        border-radius: 8px;
        z-index: 1001;
        justify-content: center; align-items: center;
        cursor: pointer;
        color: var(--lava-gold);
    }
    
    .mobile-nav-toggle svg { width: 24px; height: 24px; fill: currentColor; }
    
    .hero { padding: 5rem 1rem 2rem; }
    .glass-box { padding: 2rem 1.5rem; }
    .glass-box h1 { font-size: 2.2rem; }
    .game-container { width: 100%; border-radius: 12px; padding: 2px; }
    .game-frame { border-radius: 10px; }
    .legal-notice { flex-direction: column; text-align: center; }
}