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

:root {
    /* Colors */
    --bg-primary: #050807;
    --bg-secondary: #102018;
    
    /* Text */
    --text-primary: #ecfdf5;
    --text-secondary: #d1fae5;
    --text-muted: #a7f3d0;
    
    /* Glass & Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(18px);
    
    /* Gradients */
    --grad-emerald: linear-gradient(135deg, #065f46, #10b981);
    --grad-purple: linear-gradient(135deg, #581c87, #c084fc);
    --grad-gold: linear-gradient(135deg, #ca8a04, #fde68a);
    
    /* Glows */
    --glow-emerald: rgba(16, 185, 129, 0.4);
    --glow-purple: rgba(192, 132, 252, 0.35);
    --glow-gold: rgba(250, 204, 21, 0.4);
    
    /* Layout */
    --max-width: 1280px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    
    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1rem; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1.1rem; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }
a { color: var(--text-primary); text-decoration: none; transition: all 0.3s ease; }

/* Layout & Containers */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) { section { padding: 80px 0; } }
@media (min-width: 1024px) { section { padding: 120px 0; } }

/* Glass Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

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

.btn:hover::before { left: 200%; }
.btn:active { transform: scale(0.95); }

.btn-gold {
    background: var(--grad-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--glow-gold);
}
.btn-gold:hover {
    box-shadow: 0 6px 20px var(--glow-gold), 0 0 10px var(--glow-emerald);
    transform: translateY(-2px);
}

.btn-emerald {
    background: var(--grad-emerald);
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--glow-emerald);
}
.btn-emerald:hover {
    box-shadow: 0 6px 20px var(--glow-emerald);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: #fde68a;
    box-shadow: 0 0 15px var(--glow-gold);
}

/* Header */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: rgba(5, 8, 7, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(253, 230, 138, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fde68a;
    text-shadow: 0 0 10px var(--glow-gold);
}

.logo svg {
    width: 24px;
    height: 24px;
    fill: #10b981;
    filter: drop-shadow(0 0 5px var(--glow-emerald));
}

/* Floating Side Navigation (Desktop) & Bottom App Nav (Mobile) */
.floating-nav {
    position: fixed;
    z-index: 999;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .floating-nav {
        top: 50%;
        right: 30px;
        transform: translateY(-50%);
        border-radius: 40px;
        padding: 20px 10px;
        box-shadow: 0 0 20px rgba(0,0,0,0.5), inset 0 0 15px rgba(250, 204, 21, 0.1);
        border: 1px solid rgba(16, 185, 129, 0.3);
    }
    .floating-nav ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        list-style: none;
    }
    .floating-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        color: var(--text-muted);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 10px;
        border-radius: 50%;
        transition: all 0.3s;
    }
    .floating-nav a svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
        stroke-width: 1.5;
        fill: none;
    }
    .floating-nav a:hover, .floating-nav a.active {
        color: #fde68a;
        transform: scale(1.08);
        text-shadow: 0 0 8px var(--glow-gold);
    }
    .floating-nav a:hover svg, .floating-nav a.active svg {
        stroke: #10b981;
        filter: drop-shadow(0 0 5px var(--glow-emerald));
    }
}

@media (max-width: 767px) {
    .floating-nav {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        padding: 15px 10px;
        background: rgba(5, 8, 7, 0.95);
        border-top: 1px solid rgba(16, 185, 129, 0.3);
    }
    .floating-nav ul {
        display: flex;
        justify-content: space-around;
        list-style: none;
    }
    .floating-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-muted);
        font-size: 0.65rem;
        text-transform: uppercase;
    }
    .floating-nav a svg {
        width: 22px; height: 22px;
        stroke: currentColor; stroke-width: 1.5; fill: none;
    }
    .floating-nav a:hover, .floating-nav a.active { color: #fde68a; }
    .floating-nav a:hover svg, .floating-nav a.active svg { stroke: #10b981; }
    
    body { padding-bottom: 80px; } /* Prevent footer overlap */
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Offset for header */
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/elf-kingdom-slot-massive-enchanted-forest-kingdom-glowing-trees.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5,8,7,0.3) 0%, var(--bg-primary) 100%),
                radial-gradient(circle at center, transparent 0%, rgba(5,8,7,0.8) 100%);
    z-index: 1;
}

#particles-js {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: left;
}

.hero .btn-group {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-legal {
    position: absolute;
    bottom: 30px;
    left: 20px;
    z-index: 2;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    max-width: 600px;
}

@media (max-width: 768px) {
    .hero-content { text-align: center; margin: 0 auto; }
    .hero .btn-group { justify-content: center; }
    .hero-legal { text-align: center; left: 0; width: 100%; padding: 0 20px; bottom: 90px; }
}

/* Page Specific Hero */
.page-hero {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 80px;
}
.page-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/elf-kingdom-slot-elegant-elven-architecture-ruins-glowing-magic.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.4;
}
.page-hero::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }

/* Game Section */
.game-section {
    background: radial-gradient(circle at top, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

.game-showcase {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.4s ease;
}

.game-showcase:hover {
    transform: scale(1.01);
}

.game-showcase::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #10b981, transparent, #ca8a04, transparent);
    z-index: -1;
    border-radius: calc(var(--radius-lg) + 2px);
    animation: borderGlow 6s linear infinite;
    background-size: 400%;
}

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

.game-header {
    padding: 30px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.game-title h2 { margin-bottom: 5px; color: #fde68a; }
.game-title p { margin: 0; font-size: 0.9rem; }

.game-frame-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

.game-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0; left: 0;
}

/* Feature Grid */
.features-section {
    background: url('images/elf-kingdom-slot-emerald-nature-enchanted-environment-texture.jpg') center/cover fixed;
    position: relative;
}
.features-section::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(5,8,7,0.9);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s ease;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M50 0 L100 50 L50 100 L0 50 Z" fill="rgba(16,185,129,0.02)"/></svg>');
    background-size: 150px;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px var(--glow-emerald);
}

.feature-icon {
    width: 60px; height: 60px;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(250, 204, 21, 0.2);
}
.feature-icon svg { width: 30px; height: 30px; stroke: #10b981; fill: none; stroke-width: 1.5; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: #d1fae5; }
.feature-card p { font-size: 1rem; margin: 0; }

/* Asymmetrical Grid Placements */
@media (min-width: 1024px) {
    .feature-card:nth-child(1) { grid-column: span 8; }
    .feature-card:nth-child(2) { grid-column: span 4; }
    .feature-card:nth-child(3) { grid-column: span 4; transform: translateY(40px); }
    .feature-card:nth-child(4) { grid-column: span 4; }
    .feature-card:nth-child(5) { grid-column: span 4; transform: translateY(40px); }
    .feature-card:nth-child(6) { grid-column: span 12; margin-top: 40px; text-align: center; align-items: center;}
}
@media (min-width: 768px) and (max-width: 1023px) {
    .feature-card { grid-column: span 6; }
}
@media (max-width: 767px) {
    .feature-card { grid-column: span 12; }
}

/* Content Pages (About, Legal) */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-block {
    margin-bottom: 40px;
    padding: 40px;
}

.content-block h2 { color: #fde68a; }
.content-block ul { margin-left: 20px; margin-bottom: 20px; color: var(--text-secondary); }
.content-block li { margin-bottom: 10px; }

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { padding-right: 40px; }

.form-group { margin-bottom: 25px; }
.form-group label {
    display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;
}
.form-control {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 15px var(--glow-emerald);
    background: rgba(0,0,0,0.5);
}
textarea.form-control { min-height: 150px; resize: vertical; }

.form-message {
    display: none; padding: 15px; border-radius: var(--radius-sm); margin-top: 20px; text-align: center;
}
.form-message.success { display: block; background: rgba(16,185,129,0.1); border: 1px solid #10b981; color: #10b981; }
.form-message.error { display: block; background: rgba(220,38,38,0.1); border: 1px solid #dc2626; color: #fca5a5; }

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background-image: url('images/elf-kingdom-slot-glowing-magical-crystals-enchanted-forest.jpg');
    opacity: 0.05; background-size: cover; z-index: 0;
}
.footer-content { position: relative; z-index: 1; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}
.footer-col h4 { color: #fde68a; margin-bottom: 20px; font-size: 1.2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: #10b981; padding-left: 5px; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.responsible-notice {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    color: var(--text-muted);
}
.responsible-notice strong { color: #fde68a; }

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 40px; }
.mt-4 { margin-top: 40px; }