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

/* CSS Variables */
:root {
    --neon-blue: #00BFFF;
    --neon-pink: #FF1493;
    --neon-green: #32CD32;
    --neon-purple: #8A2BE2;
    --neon-cyan: #00FFFF;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --space-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a0033 50%, #000 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --font-primary: 'Orbitron', monospace;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--space-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="100" cy="100" r="1" fill="%23ffffff" opacity="0.8"/><circle cx="200" cy="150" r="0.5" fill="%2300BFFF" opacity="0.6"/><circle cx="300" cy="200" r="1.5" fill="%23FF1493" opacity="0.7"/><circle cx="450" cy="80" r="0.8" fill="%2332CD32" opacity="0.5"/><circle cx="600" cy="300" r="1" fill="%23ffffff" opacity="0.9"/><circle cx="750" cy="180" r="0.6" fill="%2300FFFF" opacity="0.6"/><circle cx="850" cy="350" r="1.2" fill="%238A2BE2" opacity="0.7"/><circle cx="50" cy="400" r="0.7" fill="%23ffffff" opacity="0.8"/><circle cx="150" cy="500" r="1" fill="%2300BFFF" opacity="0.6"/><circle cx="350" cy="450" r="0.8" fill="%23FF1493" opacity="0.7"/><circle cx="500" cy="600" r="1.5" fill="%2332CD32" opacity="0.5"/><circle cx="700" cy="550" r="0.9" fill="%23ffffff" opacity="0.9"/><circle cx="900" cy="650" r="0.6" fill="%2300FFFF" opacity="0.6"/><circle cx="100" cy="750" r="1.2" fill="%238A2BE2" opacity="0.7"/><circle cx="400" cy="800" r="0.8" fill="%23ffffff" opacity="0.8"/><circle cx="650" cy="750" r="1" fill="%2300BFFF" opacity="0.6"/></svg>') repeat;
    animation: twinkle 10s infinite ease-in-out;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 20, 147, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(50, 205, 50, 0.05) 0%, transparent 50%);
    animation: float 15s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { text-shadow: 0 0 20px var(--neon-blue); }
    50% { text-shadow: 0 0 30px var(--neon-blue), 0 0 40px var(--neon-blue); }
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan);
    background: var(--glass-bg);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--neon-blue);
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
.main {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 191, 255, 0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink), var(--neon-green));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    0% { filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.7)); }
    100% { filter: drop-shadow(0 0 40px rgba(255, 20, 147, 0.7)); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.spinning-logo {
    font-size: 6rem;
    animation: spin 10s linear infinite;
    text-align: center;
    color: var(--neon-green);
    text-shadow: 0 0 30px var(--neon-green);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Games Section */
.games {
    padding: 5rem 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink), var(--neon-green), var(--neon-purple));
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.2);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.game-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--neon-cyan);
}

.game-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.play-button {
    background: linear-gradient(45deg, var(--neon-green), var(--neon-cyan));
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.play-button:hover {
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-green));
    box-shadow: 0 5px 15px rgba(50, 205, 50, 0.4);
}

/* Game Modal */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--neon-pink);
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--neon-cyan);
}

.modal-header h3 {
    color: var(--neon-cyan);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

#gameFrame {
    border-radius: 10px;
    background: var(--darker-bg);
}

/* Disclaimer Section */
.disclaimer {
    padding: 3rem 0;
    background: rgba(255, 20, 147, 0.05);
}

.disclaimer-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.disclaimer-icon {
    font-size: 3rem;
    color: var(--neon-cyan);
}

.disclaimer-text h3 {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.disclaimer-text p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Page Hero */
.page-hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(255, 20, 147, 0.1) 0%, transparent 70%);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    color: var(--neon-green);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.contact-icon {
    font-size: 2rem;
}

.contact-details h3 {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form-container {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.contact-form h2 {
    color: var(--neon-pink);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.form-group label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: var(--dark-bg);
    padding: 0 5px;
    color: var(--neon-cyan);
    font-size: 0.9rem;
    font-weight: 600;
}

.submit-button {
    width: 100%;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.4);
}

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.policy-section {
    margin-bottom: 3rem;
}

.policy-section h2 {
    color: var(--neon-green);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--neon-green);
    padding-bottom: 0.5rem;
}

.policy-section h3 {
    color: var(--neon-cyan);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
}

.policy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-section ul {
    color: var(--text-secondary);
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.policy-section a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-section a:hover {
    color: var(--neon-pink);
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 15px var(--neon-blue);
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    color: var(--neon-cyan);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .disclaimer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        width: 95%;
        padding: 1rem;
    }

    #gameFrame {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .policy-content {
        padding: 1.5rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan));
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}