/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #1a1a2e;
    --accent-primary: #9c27b0;
    --accent-secondary: #00e5ff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --gradient-cosmic: linear-gradient(135deg, #9c27b0, #00e5ff);
    --gradient-dark: linear-gradient(135deg, #1a1a2e, #0d0d1a);
    --shadow-glow: 0 0 20px rgba(156, 39, 176, 0.3);
    --shadow-cyan: 0 0 20px rgba(0, 229, 255, 0.3);
}

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

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

/* Starfield background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: -1;
    overflow: hidden;
}

.starfield::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #00e5ff, transparent),
        radial-gradient(2px 2px at 40px 70px, #9c27b0, transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, #00e5ff, transparent),
        radial-gradient(2px 2px at 160px 30px, #9c27b0, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: cosmic-drift 20s linear infinite;
}

@keyframes cosmic-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-200px, -100px); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 0;
    background: rgba(13, 13, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(156, 39, 176, 0.2);
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    font-size: 2rem;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        text-shadow: 0 0 10px #9c27b0, 0 0 20px #9c27b0, 0 0 30px #9c27b0;
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 15px #00e5ff, 0 0 25px #00e5ff, 0 0 35px #00e5ff;
        transform: scale(1.1);
    }
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

.cta-btn {
    background: var(--gradient-cosmic);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(156, 39, 176, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 8rem 2rem 4rem;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neon-text {
    color: var(--accent-secondary);
    text-shadow: 0 0 20px var(--accent-secondary);
    animation: neon-flicker 3s infinite alternate;
}

@keyframes neon-flicker {
    0%, 100% { 
        text-shadow: 0 0 20px var(--accent-secondary), 0 0 30px var(--accent-secondary);
    }
    50% { 
        text-shadow: 0 0 10px var(--accent-secondary), 0 0 20px var(--accent-secondary), 0 0 40px var(--accent-secondary);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-cosmic);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(156, 39, 176, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow-cyan);
}

.btn-secondary:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* Hero Visual Elements */
.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cosmic-pyramid {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, transparent 40%, rgba(156, 39, 176, 0.3) 50%, transparent 60%);
    transform: rotate(45deg);
    border: 2px solid rgba(0, 229, 255, 0.5);
    animation: pyramid-rotate 8s linear infinite;
}

@keyframes pyramid-rotate {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(405deg); }
}

.floating-gems {
    position: absolute;
    width: 100%;
    height: 100%;
}

.gem {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-cosmic);
    border-radius: 50%;
    animation: float-gem 6s ease-in-out infinite;
}

.gem-1 {
    top: 30%;
    left: 15%;
    animation-delay: 0s;
}

.gem-2 {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.gem-3 {
    bottom: 25%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float-gem {
    0%, 100% { 
        transform: translateY(0) scale(1);
        box-shadow: 0 0 20px rgba(156, 39, 176, 0.5);
    }
    50% { 
        transform: translateY(-20px) scale(1.2);
        box-shadow: 0 0 30px rgba(0, 229, 255, 0.8);
    }
}

/* Games Section */
.games-section {
    padding: 6rem 0;
    background: var(--gradient-dark);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.game-card {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(156, 39, 176, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(156, 39, 176, 0.3);
    border-color: var(--accent-secondary);
}

.game-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1rem;
    position: relative;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-info {
    text-align: center;
}

.game-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.game-btn {
    background: var(--gradient-cosmic);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: var(--shadow-glow);
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.5);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(156, 39, 176, 0.2);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse-glow 3s infinite;
}

.feature-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
}

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

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--gradient-dark);
    text-align: center;
}

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

.about-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 4rem 0;
    background: rgba(156, 39, 176, 0.1);
    border-top: 1px solid rgba(156, 39, 176, 0.3);
    border-bottom: 1px solid rgba(156, 39, 176, 0.3);
}

.disclaimer {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.disclaimer h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
}

.disclaimer p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(156, 39, 176, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

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

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

.footer-links a:hover {
    color: var(--accent-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-glow 4s infinite;
}

.social-link:hover {
    transform: scale(1.2);
}

/* Game Page Styles */
.game-page {
    min-height: 100vh;
    padding: 8rem 0 2rem;
}

.game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.back-btn {
    background: transparent;
    color: var(--accent-secondary);
    border: 2px solid var(--accent-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 2rem;
}

.back-btn:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.game-iframe-container {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid rgba(156, 39, 176, 0.3);
    box-shadow: var(--shadow-glow);
}

.game-iframe {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 15px;
}

/* Contact Form Styles */
.contact-section {
    padding: 8rem 0 4rem;
    min-height: 100vh;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.6);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(156, 39, 176, 0.3);
    box-shadow: var(--shadow-glow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--accent-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(156, 39, 176, 0.3);
    border-radius: 10px;
    background: rgba(13, 13, 26, 0.8);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--gradient-cosmic);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        padding: 6rem 1rem 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cosmic-pyramid {
        display: none;
    }
    
    .floating-gems {
        display: none;
    }
    
    .game-iframe {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.game-card,
.feature-card {
    animation: fadeInUp 0.6s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }