@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    /* Core Color System */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1e1e1e;
    
    /* Accents */
    --electric-yellow: #f5d200;
    --electric-yellow-glow: rgba(245, 210, 0, 0.45);
    --caribbean-turquoise: #18d2c3;
    --turquoise-glow: rgba(24, 210, 195, 0.35);
    --sunset-orange: #ff8a1c;
    --orange-glow: rgba(255, 138, 28, 0.35);
    --neon-blue: #1ea7ff;
    --blue-glow: rgba(30, 167, 255, 0.35);
    
    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    
    /* Gradients */
    --grad-brand: linear-gradient(135deg, var(--electric-yellow), var(--caribbean-turquoise));
    --grad-night: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary), var(--bg-tertiary));
    --grad-sunset: linear-gradient(135deg, var(--sunset-orange), var(--electric-yellow));
    
    /* Typography */
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    /* Structure */
    --max-width: 1380px;
    --space-desktop: 120px;
    --space-tablet: 90px;
    --space-mobile: 60px;
    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 28px;
    --radius-xl: 32px;
    
    /* Effects */
    --glass-bg: rgba(30, 30, 30, 0.4);
    --glass-border: rgba(245, 210, 0, 0.15);
    --glass-blur: blur(16px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(24, 210, 195, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(245, 210, 0, 0.05) 0%, transparent 50%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 1px;
}

h1 { font-size: clamp(3rem, 6vw, 6rem); font-weight: 900; }
h2 { font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 800; }
h3 { font-size: clamp(2rem, 3vw, 3rem); font-weight: 700; }

.text-gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-electric { color: var(--electric-yellow); text-shadow: 0 0 10px var(--electric-yellow-glow); }
.text-mono { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.5px; }
.text-muted { color: var(--text-muted); }

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

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

/* Background & Atmosphere */
.cinematic-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    background: url('images/caribbean-night-ocean-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.fog-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('images/tropical-fog.png') repeat-x;
    animation: drift 60s linear infinite;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

/* Header & Nav */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: var(--max-width);
    z-index: 1000;
}

.glass-dock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    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);
    padding: 15px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(245, 210, 0, 0.05);
    transition: all 0.3s ease;
}

.glass-dock:hover {
    border-color: rgba(245, 210, 0, 0.4);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), inset 0 0 30px rgba(245, 210, 0, 0.1);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo img { height: 40px; }
.brand-name { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: #fff; letter-spacing: 2px; }

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--electric-yellow);
    text-shadow: 0 0 8px var(--electric-yellow-glow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--electric-yellow);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--electric-yellow);
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 20px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-brand);
    color: #000;
    border: none;
    box-shadow: 0 5px 20px var(--electric-yellow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--electric-yellow-glow);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: var(--electric-yellow);
    border: 2px solid var(--electric-yellow);
    box-shadow: 0 0 15px inset rgba(245, 210, 0, 0.1);
}

.btn-outline:hover {
    background: rgba(245, 210, 0, 0.1);
    box-shadow: 0 0 20px inset rgba(245, 210, 0, 0.3), 0 0 20px rgba(245, 210, 0, 0.2);
    transform: translateY(-3px);
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 { margin-bottom: 20px; }
.hero-desc { font-size: 1.2rem; margin-bottom: 40px; color: var(--text-muted); max-width: 90%; }
.hero-actions { display: flex; gap: 20px; align-items: center; margin-bottom: 30px; }

.hero-disclaimer {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--caribbean-turquoise);
}

.hero-visual {
    position: relative;
    height: 600px;
    perspective: 1000px;
}

.floating-slot {
    width: 100%;
    height: 100%;
    background: url('images/hero-caribbean-slot-machine.png') center/contain no-repeat;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px var(--electric-yellow-glow));
}

/* Game Section */
.game-section {
    padding: var(--space-desktop) 0;
    position: relative;
}

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

.game-container {
    max-width: 1250px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(245, 210, 0, 0.2), 0 0 40px var(--electric-yellow-glow);
    position: relative;
    transition: all 0.4s ease;
}

.game-container:hover {
    box-shadow: 0 30px 80px rgba(0,0,0,0.9), 0 0 0 2px var(--electric-yellow), 0 0 60px var(--electric-yellow-glow);
    transform: scale(1.01);
}

.game-frame-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.game-frame-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-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 20px;
}

.control-btn {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-mono);
    transition: all 0.2s;
}

.control-btn:hover {
    background: rgba(245, 210, 0, 0.1);
    border-color: var(--electric-yellow);
    color: var(--electric-yellow);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    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);
    padding: 40px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--grad-brand);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(245, 210, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px var(--electric-yellow-glow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--turquoise-glow));
}

.feature-card h3 { margin-bottom: 15px; font-size: 1.8rem; }
.feature-card p { color: var(--text-muted); }

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: url('images/tropical-marina-bg.jpg') center/cover fixed;
    position: relative;
}

.stats-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.85);
}

.stats-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h2 {
    font-size: 4rem;
    color: var(--electric-yellow);
    text-shadow: 0 0 20px var(--electric-yellow-glow);
    margin-bottom: 10px;
}

.stat-item p {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--caribbean-turquoise);
}

/* Legal & Content Pages */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    background: var(--grad-night);
    border-bottom: 1px solid var(--glass-border);
}

.content-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 60px;
    margin: 60px auto;
    max-width: 1000px;
}

.content-wrapper h2 { margin: 40px 0 20px; color: var(--electric-yellow); }
.content-wrapper p { margin-bottom: 20px; color: var(--text-muted); }
.content-wrapper ul { margin-bottom: 20px; padding-left: 20px; color: var(--text-muted); }
.content-wrapper li { margin-bottom: 10px; }

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--electric-yellow);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100px;
    background: linear-gradient(to bottom, var(--electric-yellow-glow), transparent);
    pointer-events: none;
}

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

.footer-brand p { color: var(--text-muted); margin-top: 20px; }
.footer-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; color: var(--caribbean-turquoise); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--electric-yellow); }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-disclaimer {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes drift {
    from { background-position: 0 0; }
    to { background-position: 1000px 0; }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--electric-yellow);
    border-radius: var(--radius-lg);
    padding: 50px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 50px var(--electric-yellow-glow);
}

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    :root { --space-desktop: var(--space-tablet); }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-disclaimer { margin: 0 auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --space-desktop: var(--space-mobile); }
    .glass-dock { padding: 15px; flex-wrap: wrap; }
    .nav-links { display: none; /* Add mobile menu logic via JS */ }
    .header-actions { display: none; }
    
    /* Mobile App Feel Bottom Nav */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        background: var(--bg-secondary);
        border-top: 1px solid var(--electric-yellow);
        padding: 15px 20px;
        justify-content: space-around;
        z-index: 1000;
        box-shadow: 0 -10px 20px rgba(0,0,0,0.5);
    }
    .mobile-nav a { color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 1.2rem; display: flex; flex-direction: column; align-items: center; }
    .mobile-nav a.active { color: var(--electric-yellow); }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .stats-grid { grid-template-columns: 1fr; }
    body { padding-bottom: 70px; }
}