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

:root {
    --primary-color: #00ff6a;
    --secondary-color: #0e0e0e;
    --accent-color: #c600ff;
    --gradient: linear-gradient(135deg, #00ff6a, #c600ff);
    --text-light: #ffffff;
    --text-dark: #333333;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow-neon: 0 0 20px rgba(0, 255, 106, 0.5);
    --shadow-purple: 0 0 20px rgba(198, 0, 255, 0.5);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    line-height: 1.2;
}

.neon-text {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.pulse-text {
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { text-shadow: 0 0 10px var(--accent-color); }
    50% { text-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-neon);
}

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

.nav-logo h1 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

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

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    min-width: 200px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: var(--spacing-xs) 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-xs);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: rgba(0, 255, 106, 0.1);
    color: var(--primary-color);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.circuit-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 106, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(198, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 106, 0.05) 0%, transparent 50%);
    animation: circuitPulse 4s ease-in-out infinite;
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.light-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.light-nodes::before,
.light-nodes::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: float 6s ease-in-out infinite;
}

.light-nodes::before {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.light-nodes::after {
    top: 60%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    position: relative;
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-2xl);
    background: var(--gradient);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover .button-glow {
    left: 100%;
}

/* Section Titles */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

/* Games Section */
.games {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(45deg, rgba(0, 255, 106, 0.05) 0%, rgba(198, 0, 255, 0.05) 100%);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 106, 0.3);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

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

.game-image {
    width: 100%;
    height: 200px;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    border-radius: var(--border-radius);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.game-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
}

.play-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.play-button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: var(--shadow-neon);
}

/* Features Section */
.features {
    padding: var(--spacing-2xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(198, 0, 255, 0.3);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-purple);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 0 10px var(--accent-color));
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* About Section */
.about {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, rgba(198, 0, 255, 0.05) 0%, rgba(0, 255, 106, 0.05) 100%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.8);
}

/* Disclaimer Section */
.disclaimer {
    padding: var(--spacing-xl) 0;
}

.neon-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-neon);
}

.neon-panel h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.disclaimer-content p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    border-top: 2px solid var(--primary-color);
    padding: var(--spacing-lg) 0;
    box-shadow: 0 -5px 20px rgba(0, 255, 106, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--text-light);
    text-shadow: 0 0 10px var(--primary-color);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
}

/* Game Page Styles */
.game-page {
    padding-top: 100px;
    min-height: 100vh;
}

.game-header {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-header h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: var(--spacing-md);
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.game-image-container {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.game-image-container img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-neon);
}

.game-iframe {
    width: 100%;
    height: 600px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-neon);
}

.back-button {
    display: inline-block;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.back-button:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    box-shadow: var(--shadow-purple);
}

.game-info-section {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 106, 0.3);
    border-radius: var(--border-radius);
}

.game-info-section h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.game-info-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

/* Contact Page Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-2xl);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-neon);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 106, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

.submit-button {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--gradient);
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.contact-info {
    margin-top: var(--spacing-2xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.info-section {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(198, 0, 255, 0.3);
    border-radius: var(--border-radius);
}

.info-section h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

.info-section p,
.info-section ul {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.info-section ul {
    padding-left: var(--spacing-md);
}

.info-section li {
    margin-bottom: var(--spacing-xs);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-2xl);
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--primary-color);
    margin: var(--spacing-xl) 0 var(--spacing-md) 0;
}

.legal-content h3 {
    color: var(--accent-color);
    margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
}

.legal-content p {
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.8);
}

.legal-content ul {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.legal-content li {
    margin-bottom: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(14, 14, 14, 0.98);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding: var(--spacing-2xl) 0;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-iframe {
        height: 400px;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

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

    .hero-content {
        padding: 0 var(--spacing-sm);
    }

    .game-iframe {
        height: 300px;
    }

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

/* Animation Classes */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}