:root {
    /* Color System */
    --bg-primary: #070509;
    --bg-secondary: #160d18;
    
    /* Typography Colors */
    --text-primary: #faf5ff;
    --text-secondary: #e9d5ff;
    --text-muted: #a78bfa;
    
    /* Glass & UI */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(18px);
    
    /* Gradients */
    --grad-crimson: linear-gradient(135deg, #7f1d1d, #dc2626);
    --grad-purple: linear-gradient(135deg, #4c1d95, #a855f7);
    --grad-gold: linear-gradient(135deg, #ca8a04, #fde68a);
    
    /* Glows */
    --glow-crimson: rgba(220, 38, 38, 0.35);
    --glow-purple: rgba(168, 85, 247, 0.35);
    --glow-gold: rgba(250, 204, 21, 0.4);
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1280px;
    --radius-panel: 24px;
    --radius-btn: 18px;
    --space-desktop: 120px;
    --space-tablet: 80px;
    --space-mobile: 60px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

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

.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; }
}

/* Glass Panels */
.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-panel);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn:hover::after { opacity: 1; }

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

.btn-primary {
    background: var(--grad-crimson);
    color: #fff;
    box-shadow: 0 0 20px var(--glow-crimson);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--glow-crimson), inset 0 0 10px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

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

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

.btn-glass {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
}

.btn-glass:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

/* Header - Gothic Command Bar */
.header-main {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: var(--max-width);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(7, 5, 9, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.brand-logo img {
    height: 32px;
    filter: drop-shadow(0 0 5px var(--glow-crimson));
}

/* Floating Side Navigation */
.side-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    display: flex;
    gap: 15px;
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(0,0,0,0.5), inset 0 0 20px rgba(168, 85, 247, 0.1);
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link svg {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
    stroke: currentColor;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.nav-link:hover svg, .nav-link.active svg {
    stroke: #dc2626; /* Crimson highlight */
    filter: drop-shadow(0 0 5px var(--glow-crimson));
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 2px;
    background: var(--grad-crimson);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--glow-crimson);
}

@media (min-width: 1024px) {
    .side-nav {
        top: 50%;
        left: 30px;
        bottom: auto;
        transform: translateY(-50%);
        flex-direction: column;
        padding: 24px 12px;
        border-radius: 30px;
    }
    
    .nav-link {
        flex-direction: row;
        gap: 12px;
        padding: 12px;
        justify-content: flex-start;
    }
    
    .nav-link span {
        display: none; /* Hide text, show on hover via pseudo or leave hidden for sleekness */
        position: absolute;
        left: 60px;
        background: var(--bg-secondary);
        padding: 8px 16px;
        border-radius: 8px;
        border: 1px solid var(--glass-border);
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-link:hover span {
        display: block;
        opacity: 1;
        animation: slideRight 0.3s forwards;
    }

    .nav-link.active::after {
        bottom: auto;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 2px;
        height: 20px;
    }
}

/* Layout Adjustment for Desktop Nav */
@media (min-width: 1024px) {
    .page-wrapper {
        padding-left: 80px; /* Make room for floating nav */
    }
}

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

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/dracula-moonlit-vampire-castle.jpg'); /* Gothic architecture/night */
    background-size: cover;
    background-position: center;
    z-index: -3;
    animation: zoomSlow 30s infinite alternate;
}

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

.fog-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.6;
}

.fog-layer {
    position: absolute;
    bottom: -10%;
    width: 200%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(168,85,247,0.15) 0%, transparent 60%);
    filter: blur(40px);
    animation: drift 40s linear infinite;
}

.fog-layer:nth-child(2) {
    background: radial-gradient(ellipse at center, rgba(220,38,38,0.1) 0%, transparent 70%);
    animation: drift 60s linear infinite reverse;
    bottom: 10%;
    height: 80%;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(220,38,38,0.1);
    border: 1px solid rgba(220,38,38,0.3);
    border-radius: 20px;
    color: #fca5a5;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    box-shadow: 0 0 15px var(--glow-crimson);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero p.lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.legal-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Game Section - Dracula Slot */
.game-section {
    position: relative;
}

.game-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60%; height: 60%;
    background: var(--glow-crimson);
    filter: blur(150px);
    z-index: -1;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 20px;
}

.game-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.game-window {
    position: relative;
    width: 100%;
    border-radius: var(--radius-panel);
    overflow: hidden;
    background: #000;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(220, 38, 38, 0.2);
    transition: var(--transition-smooth);
}

.game-window::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--grad-crimson);
    z-index: -1;
    border-radius: calc(var(--radius-panel) + 2px);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.game-window:hover {
    transform: scale(1.01);
    box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 50px var(--glow-crimson);
}

.game-window:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, #dc2626, #ca8a04);
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.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;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.game-stats {
    display: flex;
    gap: 20px;
    font-family: var(--font-heading);
    color: var(--text-muted);
}

.stat-item span {
    color: var(--text-primary);
    margin-left: 8px;
}

/* Feature Grid - Dark Castle */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@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(2) { transform: translateY(40px); }
    .feature-card:nth-child(5) { transform: translateY(40px); }
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/dracula-slot-blood-red-gemstones.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(220,38,38,0.1);
    border-color: rgba(220,38,38,0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(220,38,38,0.1);
    color: #fca5a5;
    box-shadow: 0 0 20px var(--glow-crimson);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 1.5;
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Interior Pages Header */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(to bottom, rgba(16, 13, 24, 0.8), var(--bg-primary));
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/dracula-castle-interior-gothic.jpg'); /* Subtle gothic texture/wall */
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

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

.content-block h2 {
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.content-block p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.content-block ul {
    margin-bottom: 24px;
    padding-left: 20px;
    color: var(--text-muted);
}

.content-block li {
    margin-bottom: 10px;
}

/* Forms */
.contact-form {
    display: grid;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

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

.form-control:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 15px rgba(220,38,38,0.2);
    background: rgba(0,0,0,0.5);
}

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

.form-message {
    display: none;
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
}

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

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
}

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

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
    position: relative;
    margin-bottom: 80px; /* Space for mobile nav */
}

@media (min-width: 1024px) {
    .footer { margin-bottom: 0; }
}

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

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

.footer-brand p {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.eighteen-plus {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    font-weight: bold;
    color: var(--text-muted);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Animations */
@keyframes zoomSlow {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes drift {
    0% { transform: translateX(-10%); }
    100% { transform: translateX(10%); }
}

@keyframes slideRight {
    0% { transform: translateX(-10px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}