:root {
    --bg-dark: #0a0b10;
    --bg-secondary: #14161f;
    --bg-card: #1c1f2b;
    --primary: #00d4ff;
    --secondary: #9d00ff;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --glow-primary: 0 0 10px rgba(0, 212, 255, 0.7);
    --glow-secondary: 0 0 10px rgba(157, 0, 255, 0.7);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary);
    text-shadow: var(--glow-primary);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--glow-primary);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    box-shadow: var(--glow-secondary);
    transform: translateY(-2px);
}

/* Header */
.main-header {
    background-color: rgba(10, 11, 16, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
    box-shadow: var(--glow-primary);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-nav-content {
    text-align: center;
}

.mobile-nav-content ul li {
    margin: 30px 0;
}

.mobile-nav-content a {
    font-size: 28px;
    font-family: var(--font-heading);
    color: #fff;
}

.mobile-nav-content a:hover {
    color: var(--primary);
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    cursor: pointer;
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(10, 11, 16, 0.7), rgba(10, 11, 16, 0.7)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    margin-top: 0;
    padding-top: 80px;
    padding-bottom: 40px;
}

.hero-content {
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text-main);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Games Section */
.games-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #fff;
    display: inline-block;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 10px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.game-thumbnail {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #333;
    position: relative;
    overflow: hidden;
}

.game-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.1);
}

.game-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(45deg, var(--bg-secondary), var(--bg-card));
    text-align: center;
}

.newsletter-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    gap: 10px;
    padding: 0 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 5px rgba(157, 0, 255, 0.5);
}

/* Footer */
.main-footer {
    background-color: #050608;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-card);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: var(--glow-primary);
}

.footer-links h3,
.footer-legal h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-legal a {
    color: var(--text-muted);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-card);
    width: 90%;
    max-width: 1000px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--primary);
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-modal:hover {
    color: #fff;
}

.game-frame-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.game-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Messages */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.message.success {
    background-color: rgba(0, 255, 100, 0.1);
    border: 1px solid #00ff64;
    color: #00ff64;
}

.message.error {
    background-color: rgba(255, 50, 50, 0.1);
    border: 1px solid #ff3232;
    color: #ff3232;
}

/* Page Content (for Legal pages) */
.page-content {
    padding: 120px 0 60px;
    min-height: 80vh;
}

.page-content h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.page-content h2 {
    margin-top: 30px;
    color: #fff;
    font-size: 1.8rem;
}

.page-content p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }

    .games-section, .about-section, .contact-section {
        padding: 60px 0;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
    }

    .page-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 20px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
        display: flex;
    }
    
    .footer-links a:hover,
    .footer-legal a:hover {
        padding-left: 0;
        color: var(--primary);
    }
}
