@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
    /* Color Palette */
    --primary-bg: #0d0d0f;
    --secondary-bg: #1a1a1d;
    --midnight-navy: #0B1021;
    --stone-gray: #2A2A2A;
    --burgundy: #800020;
    --crimson: #590016;
    --gold: #CFB53B;
    --gold-dim: #998322;
    --amber: #FFBF00;
    --text-main: #FFFFFF;
    --text-silver: #C0C0C0;
    --glass-bg: rgba(26, 26, 29, 0.7);
    --glass-border: rgba(207, 181, 59, 0.2);
    
    /* Typography */
    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-desktop: 100px;
    --spacing-tablet: 70px;
    --spacing-mobile: 50px;
    --max-width: 1400px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: radial-gradient(circle at 50% 0%, var(--midnight-navy) 0%, var(--primary-bg) 70%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

a, button, input[type="submit"], .interactive {
    cursor: grab;
    text-decoration: none;
}

a:active, button:active, input[type="submit"]:active, .interactive:active {
    cursor: grabbing;
}

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

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

section {
    padding: var(--spacing-desktop) 0;
}

/* Typography Utilities */
.text-gold { color: var(--gold); }
.text-silver { color: var(--text-silver); }
.text-center { text-align: center; }
.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-silver);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--crimson);
    color: var(--text-main);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Sticky Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Optimized glassmorphism for better scroll performance */
    background: rgba(26, 26, 29, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--glass-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 0.9;
}

.brand-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-silver);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover Animations System */
/* 1. Soft underline reveal (Main Nav) */
.hover-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease; /* GPU accelerated */
}
.hover-underline:hover {
    color: var(--text-main);
}
.hover-underline:hover::after {
    transform: scaleX(1);
}

/* 2. Shimmer Sweep (Buttons) */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--crimson) 100%);
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg) translateX(-250%);
    transition: transform 0.6s ease; /* GPU accelerated to prevent layout reflows */
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(128, 0, 32, 0.4);
}
.btn:hover::before {
    transform: skewX(-25deg) translateX(400%);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}
.btn-outline:hover {
    background: rgba(207, 181, 59, 0.1);
    box-shadow: 0 0 20px rgba(207, 181, 59, 0.2);
}

/* 3. Color transition (Footer links) */
.hover-spacing {
    transition: color 0.3s ease;
}
.hover-spacing:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(13, 13, 15, 0.8), rgba(13, 13, 15, 0.9)), url('images/dracula-gothic-casino-grand-staircase.jpg');
    background-size: cover;
    background-position: center;
    /* Fixed background removed for smooth scroll performance */
}
.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-main), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1.25rem;
    color: var(--text-silver);
    margin-bottom: 2.5rem;
    max-width: 600px;
}
.hero-disclaimer {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Game Section - Critical Alignment */
.game-section {
    background: var(--secondary-bg);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.game-container {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border: 2px solid var(--gold-dim);
    box-shadow: 0 0 50px rgba(207, 181, 59, 0.15), inset 0 0 30px rgba(0, 0, 0, 0.8);
    position: relative;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}
.game-container:hover {
    box-shadow: 0 0 70px rgba(207, 181, 59, 0.3), inset 0 0 30px rgba(0, 0, 0, 0.8);
}
.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.feature-card {
    background: rgba(26, 26, 29, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    text-align: center;
    /* Optimized targeted transitions */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(26, 26, 29, 0.8);
    border-color: var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(207, 181, 59, 0.05);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}
.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Statistics Section */
.stats-section {
    background: url('images/dracula-dark-luxury-casino-hall.jpg') center/cover;
    position: relative;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 15, 0.9);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}
.stat-item {
    text-align: center;
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item:last-child { border: none; }
.stat-number {
    font-family: var(--font-head);
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.stat-label {
    color: var(--text-silver);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Visual Showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.showcase-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
    transition: transform 0.5s ease;
    will-change: transform;
}
.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.showcase-item:hover img {
    transform: scale(1.05);
}
.showcase-item:hover .showcase-overlay {
    opacity: 1;
}

/* Content Pages (Legal & Contact) */
.page-header {
    padding: calc(var(--spacing-desktop) * 1.5) 0 var(--spacing-desktop) 0;
    background: linear-gradient(rgba(13, 13, 15, 0.9), var(--primary-bg)), url('images/dracula-gothic-casino-grand-staircase.jpg') center/cover;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--secondary-bg);
    padding: 4rem;
    border: 1px solid rgba(255,255,255,0.05);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.content-wrapper h2 { margin: 2rem 0 1rem; color: var(--gold); }
.content-wrapper p, .content-wrapper ul { margin-bottom: 1.5rem; color: var(--text-silver); }
.content-wrapper ul { padding-left: 2rem; }

/* Contact Form */
.contact-form {
    display: grid;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-size: 0.875rem;
    color: var(--text-silver);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.form-control {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
}
textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, var(--secondary-bg), var(--primary-bg));
    padding: calc(var(--spacing-desktop) * 1.2) 0 2rem 0;
    border-top: 1px solid var(--glass-border);
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 100%);
    opacity: 0.5;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: space-between;
    margin-bottom: 4rem;
}
.footer-brand {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}
.footer-brand .brand-logo { 
    margin-bottom: 1.5rem; 
    display: inline-flex; 
}
.footer-brand .brand-logo img {
    height: 48px;
}
.brand-desc {
    color: var(--text-silver);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
}
.footer-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.badge {
    background: rgba(207, 181, 59, 0.1);
    border: 1px solid rgba(207, 181, 59, 0.3);
    color: var(--gold);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}
.footer-links-wrapper {
    display: flex;
    flex: 2;
    gap: 4rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.footer-col {
    min-width: 160px;
}
.footer-title {
    font-family: var(--font-head);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}
.footer-links {
    list-style: none;
}
.footer-links li { 
    margin-bottom: 0.8rem; 
}
.footer-links a {
    color: var(--text-silver);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--gold);
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 1rem;
}
.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}
.footer-copyright p {
    color: var(--gold-dim);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --spacing-desktop: var(--spacing-tablet);
    }
    .game-container { width: 95%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .hero-title { font-size: 3.5rem; }
    .footer-top { flex-direction: column; gap: 3rem; }
    .footer-links-wrapper { justify-content: flex-start; gap: 3rem; }
}

@media (max-width: 768px) {
    :root {
        --spacing-desktop: var(--spacing-mobile);
    }
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .game-container { width: 100%; border-left: none; border-right: none; }
    .showcase-grid { grid-template-columns: 1fr; }
    .content-wrapper { padding: 2rem; margin-top: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-brand { max-width: 100%; }
    .footer-links-wrapper { flex-direction: column; gap: 2rem; }
}