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

:root {
    /* Base Colors */
    --bg-primary: #050507;
    --bg-secondary: #0d0d12;
    
    /* Accent Colors */
    --neon-purple: #8b5cf6;
    --neon-pink: #ec4899;
    --electric-violet: #7c3aed;
    --cyber-blue: #22d3ee;
    
    /* Text Colors */
    --text-primary: #f9fafb;
    --text-secondary: #c7c9d1;
    --text-muted: #6b7280;
    
    /* Gradients */
    --grad-city-glow: linear-gradient(135deg, #8b5cf6, #ec4899);
    --grad-cyber-pulse: linear-gradient(135deg, #7c3aed, #22d3ee);
    --grad-night-energy: linear-gradient(135deg, #ec4899, #7c3aed);
    
    /* Glow Effects */
    --glow-purple: rgba(139, 92, 246, 0.45);
    --glow-pink: rgba(236, 72, 153, 0.45);
    --glow-cyan: rgba(34, 211, 238, 0.35);
    
    /* Surfaces */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 14px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--grad-city-glow);
    color: #fff;
    box-shadow: 0 4px 15px var(--glow-purple);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow-pink);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--neon-purple);
    box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.1);
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    box-shadow: inset 0 0 15px var(--glow-purple), 0 0 15px var(--glow-purple);
    transform: translateY(-2px);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 7, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

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

.logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--glow-purple);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-city-glow);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--glow-pink);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-primary);
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/futuristic-neon-city-night.jpg') center/cover no-repeat;
    z-index: -2;
    animation: slow-zoom 20s linear infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5,5,7,0.95) 0%, rgba(5,5,7,0.8) 40%, rgba(5,5,7,0.3) 100%);
    z-index: -1;
}

.hero-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzIiBoZWlnaHQ9IjUwIj48cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSI1MCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvc3ZnPg==') repeat;
    z-index: -1;
    animation: rain-fall 0.8s linear infinite;
    opacity: 0.6;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: var(--neon-purple);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 10px var(--glow-purple);
}

.hero h1 {
    font-size: clamp(3.5rem, 5vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.hero-flicker {
    animation: neon-flicker 4s infinite;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-legal {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
    display: inline-block;
}

/* Game Section */
.game-section {
    padding: 100px 0;
    position: relative;
    background: var(--bg-secondary);
    background-image: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.game-wrapper {
    position: relative;
    padding: 4px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--neon-purple), var(--cyber-blue), var(--neon-pink));
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
    box-shadow: 0 0 40px var(--glow-purple);
    max-width: 1000px;
    margin: 0 auto;
}

.game-inner {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.game-iframe-container {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    background: url('images/futuristic-slot-machine-cyberpunk.jpg') center/cover;
    position: relative;
}

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

.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 32px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}

.stat-box {
    text-align: center;
}

.stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-shadow: 0 0 10px var(--glow-cyan);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-city-glow);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px var(--glow-purple);
    border-color: rgba(139, 92, 246, 0.5);
}

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

.feature-img-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

.feature-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-img-wrapper img {
    transform: scale(1.1);
}

.feature-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.feature-icon {
    font-size: 2rem;
    color: var(--neon-pink);
    margin-bottom: 16px;
    text-shadow: 0 0 15px var(--glow-pink);
}

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

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

/* SEO & Content Sections */
.seo-section {
    padding: 80px 0;
}

.seo-section.alt-bg {
    background: var(--bg-secondary);
}

.seo-content h2 {
    margin-bottom: 24px;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.seo-content h3 {
    margin: 32px 0 16px;
    font-size: 1.8rem;
    color: var(--neon-purple);
}

.seo-content p {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.seo-content ul {
    padding-left: 24px;
    margin-bottom: 24px;
    list-style: disc;
    color: var(--text-secondary);
}

.seo-content li {
    margin-bottom: 8px;
}

/* FAQ Styles */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

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

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--glow-purple);
    border-color: rgba(139, 92, 246, 0.3);
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.faq-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 1rem;
}

/* Content Pages (About, Contact, Legal) */
.page-header {
    padding: 160px 0 80px;
    background: var(--bg-secondary);
    background-image: linear-gradient(to bottom, rgba(139, 92, 246, 0.1), transparent);
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.page-content {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

.content-text p {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.content-image {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px var(--glow-purple);
    border: 1px solid var(--glass-border);
}

.content-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.content-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--glow-purple), transparent);
    mix-blend-mode: overlay;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-box {
    padding: 40px;
}

.legal-box h2 {
    margin: 32px 0 16px;
    color: var(--neon-purple);
}

.legal-box p, .legal-box ul {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.legal-box ul {
    padding-left: 24px;
    list-style: disc;
}

.contact-panel {
    padding: 40px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

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

.form-control:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px var(--glow-purple);
    background: rgba(139, 92, 246, 0.05);
}

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

/* Footer */
.site-footer {
    background: #030305;
    padding: 80px 0 24px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--grad-city-glow);
    box-shadow: 0 0 20px var(--glow-pink);
}

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

.footer-about p {
    color: var(--text-secondary);
    margin: 24px 0;
    max-width: 400px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px var(--glow-purple);
    transform: translateY(-3px);
}

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--glow-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal-warning {
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Animations */
@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { 
        text-shadow: 0 0 10px var(--glow-purple), 0 0 20px var(--glow-purple), 0 0 40px var(--neon-purple); 
        opacity: 1; 
    }
    20%, 24%, 55% { 
        text-shadow: none; 
        opacity: 0.8; 
    }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slow-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes rain-fall {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

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

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

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px; /* Ensure 24px side spacing to prevent elements from touching screen edges */
    }
    
    .legal-box, .contact-panel {
        padding: 24px; /* Stop rigid 40px box from bleeding on mobile */
    }
    
    .seo-content h2 {
        font-size: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(5, 5, 7, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        font-size: 1.5rem;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .header-right .btn {
        display: none;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .game-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-about p {
        margin: 24px auto;
    }
}