/* Variables & Design System */
:root {
    /* Colors */
    --bg-primary: #07090d;
    --bg-secondary: #121922;
    --text-primary: #f8fafc;
    --text-secondary: #dbeafe;
    --text-muted: #94a3b8;
    
    /* Glass & Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --backdrop-blur: 18px;
    
    /* Gradients */
    --grad-royal-blue: linear-gradient(135deg, #1e3a8a, #3b82f6);
    --grad-royal-gold: linear-gradient(135deg, #ca8a04, #fde68a);
    --grad-ancient-stone: linear-gradient(135deg, #57534e, #a8a29e);
    
    /* Glows */
    --glow-blue: rgba(59, 130, 246, 0.35);
    --glow-gold: rgba(250, 204, 21, 0.4);
    --glow-stone: rgba(168, 162, 158, 0.25);
    
    /* Spacing */
    --space-desktop: 120px;
    --space-tablet: 80px;
    --space-mobile: 60px;
    
    /* Layout */
    --max-width: 1280px;
    --radius-btn: 18px;
    --radius-card: 24px;
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: 2px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--space-mobile) 0;
}

@media (min-width: 768px) {
    .section-padding { padding: var(--space-tablet) 0; }
}

@media (min-width: 1024px) {
    .section-padding { padding: var(--space-desktop) 0; }
}

.text-center { text-align: center; }
.text-gold { background: var(--grad-royal-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gold {
    background: var(--grad-royal-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px var(--glow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-gold);
}

.btn-blue {
    background: var(--grad-royal-blue);
    color: #fff;
    box-shadow: 0 4px 20px var(--glow-blue);
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-blue);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(253, 230, 138, 0.5);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(250, 204, 21, 0.1);
    border-color: #fde68a;
    box-shadow: 0 0 15px var(--glow-gold);
}

.btn:active {
    transform: scale(0.98);
}

/* Header - Royal Command Bar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: linear-gradient(to bottom, rgba(7,9,13,0.9) 0%, rgba(7,9,13,0) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: url(#gold-grad);
    filter: drop-shadow(0 0 5px var(--glow-gold));
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .header-cta { display: block; padding: 0.75rem 1.5rem; font-size: 0.9rem; }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
}

@media (min-width: 1024px) {
    .menu-toggle { display: none; }
}

/* Floating Side Navigation (Desktop) & Fullscreen Mobile Nav */
.side-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(7, 9, 13, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-nav.active {
    right: 0;
}

.side-nav ul {
    list-style: none;
    text-align: center;
}

.side-nav li {
    margin: 1.5rem 0;
}

.side-nav a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    position: relative;
}

.side-nav a:hover, .side-nav a.active-link {
    color: #fde68a;
    text-shadow: 0 0 10px var(--glow-gold);
}

@media (min-width: 1024px) {
    .side-nav {
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        height: auto;
        background: var(--glass-bg);
        border: 1px solid rgba(59, 130, 246, 0.3);
        border-radius: 40px;
        padding: 2rem 1rem;
        box-shadow: 0 0 20px var(--glow-blue), inset 0 0 20px var(--glow-gold);
    }
    
    .side-nav ul {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .side-nav li { margin: 0; }

    .side-nav a {
        font-size: 0; /* Hide text, show icon/dot */
        display: block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--text-muted);
        transition: all 0.3s ease;
    }

    .side-nav a::after {
        content: attr(data-tooltip);
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%) translateX(10px);
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-size: 0.875rem;
        font-family: var(--font-body);
        color: var(--text-primary);
        opacity: 0;
        visibility: hidden;
        white-space: nowrap;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .side-nav a:hover {
        background: var(--grad-royal-gold);
        transform: scale(1.5);
        box-shadow: 0 0 10px var(--glow-gold);
    }

    .side-nav a.active-link {
        background: var(--grad-royal-blue);
        transform: scale(1.5);
        box-shadow: 0 0 15px var(--glow-blue);
    }

    .side-nav a:hover::after {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/photo-1599427027581-2292f3984e9b.png'); /* Castle/Mountains */
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(7,9,13,0.3) 0%, rgba(7,9,13,0.9) 100%);
    z-index: -1;
}

.magical-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--glow-gold) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: -1;
    animation: moveParticles 30s linear infinite;
}

.fog-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(7,9,13,1) 0%, rgba(7,9,13,0) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;
    animation: fadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content h1 {
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.hero-legal {
    position: absolute;
    bottom: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Game Section */
#game {
    background: var(--bg-secondary);
    position: relative;
}

.game-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-showcase::before {
    content: '';
    position: absolute;
    top: -2px; bottom: -2px;
    left: -2px; right: -2px;
    background: var(--grad-royal-gold);
    z-index: -1;
    border-radius: calc(var(--radius-card) + 2px);
    opacity: 0.5;
    animation: borderGlow 4s linear infinite;
}

.game-showcase:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px var(--glow-gold);
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,1);
}

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

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Features Section */
#features {
    position: relative;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Asymmetrical layout */
    .feature-card:nth-child(1) { grid-column: span 2; }
    .feature-card:nth-child(4) { grid-column: span 2; }
}

.feature-card {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--grad-ancient-stone);
    opacity: 0.05;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px var(--glow-stone);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    fill: url(#gold-grad);
    filter: drop-shadow(0 0 8px var(--glow-gold));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Interior Pages Specifics */
.page-hero {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('images/photo-1533038590840-1cbea6e666a1.png'); /* Alternative dark fantasy bg */
    background-size: cover;
    background-position: center;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(7,9,13,0.8);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

/* About Layout */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-card);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 15px var(--glow-blue);
    background: rgba(0,0,0,0.4);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-message {
    display: none;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #34d399;
}

/* Legal Pages */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--glass-border);
}

.legal-container h2 {
    margin-top: 2rem;
    color: #fde68a;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: #fde68a;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: #3b82f6;
    padding-left: 5px;
}

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

.disclaimer-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

@keyframes moveParticles {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

@keyframes borderGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* SVG Gradients definitions container (hidden) */
.svg-defs { width: 0; height: 0; position: absolute; }