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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #0a0a1e 0%, #1a0d2e 25%, #2d1b3d 50%, #1a0d2e 75%, #0a0a1e 100%);
    color: #e0e6ff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Cosmic Colors */
:root {
    --primary-purple: #6a3fb8;
    --secondary-blue: #2563eb;
    --accent-pink: #ec4899;
    --dark-purple: #1a0d2e;
    --cosmic-blue: #1e3a8a;
    --nebula-pink: #f472b6;
    --star-white: #f8fafc;
    --space-black: #0a0a1e;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(26, 13, 46, 0.95), rgba(10, 10, 30, 0.95));
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(106, 63, 184, 0.3);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.sidebar.active {
    left: 0;
}

.sidebar-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.logo h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-pink), var(--primary-purple), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    text-align: center;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 1rem;
}

.constellation-link {
    display: block;
    color: #b3c5ff;
    text-decoration: none;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.constellation-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(106, 63, 184, 0.3), transparent);
    transition: left 0.5s ease;
}

.constellation-link:hover::before {
    left: 100%;
}

.constellation-link:hover {
    background: rgba(106, 63, 184, 0.2);
    color: var(--star-white);
    box-shadow: 0 0 20px rgba(106, 63, 184, 0.4);
    transform: translateX(5px);
}

/* Starfield Background */
.starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

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

/* Sidebar Toggle */
.sidebar-toggle {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(106, 63, 184, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(106, 63, 184, 1);
    box-shadow: 0 0 20px rgba(106, 63, 184, 0.6);
}

.sidebar-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    margin-left: 0;
    transition: margin-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Banner Section */
.banner {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 0;
}

.banner-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.2);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 63, 184, 0.6), rgba(37, 99, 235, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.banner-overlay h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.banner-overlay p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero {
    background-image: url(/public/assets/banner.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
}

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

.star-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, white, transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 160px 30px, white, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
}

.star-layer-1 {
    animation: moveStars 20s linear infinite;
}

.star-layer-2 {
    animation: moveStars 30s linear infinite reverse;
    opacity: 0.7;
}

.star-layer-3 {
    animation: moveStars 40s linear infinite;
    opacity: 0.5;
}

@keyframes moveStars {
    from { transform: translateX(0); }
    to { transform: translateX(-200px); }
}

.glowing-planet {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.6) 0%, rgba(106, 63, 184, 0.4) 40%, transparent 70%);
    border-radius: 50%;
    animation: planetGlow 6s ease-in-out infinite alternate;
}

@keyframes planetGlow {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.cosmic-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent-pink), var(--primary-purple), var(--secondary-blue), var(--nebula-pink));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
    margin-bottom: 1rem;
    text-shadow: 0 0 50px rgba(106, 63, 184, 0.5);
}

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

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-blue));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(106, 63, 184, 0.4);
    background: linear-gradient(45deg, var(--secondary-blue), var(--accent-pink));
}

/* Cosmic Dust */
.cosmic-dust {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.dust-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: floatDust 8s infinite linear;
}

@keyframes floatDust {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Section Styles */
section {
    padding: 4rem 0;
    position: relative;
    margin-bottom: 0;
}

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

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--accent-pink), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Section */
.about {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 13, 46, 0.8), rgba(10, 10, 30, 0.9));
}

.wave-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(106, 63, 184, 0.1) 50%, transparent 70%);
    clip-path: polygon(0 20%, 100% 0%, 100% 80%, 0% 100%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(236, 72, 153, 0.7);
    border-radius: 50%;
    animation: floatParticle 12s infinite ease-in-out;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-50px) translateX(30px);
        opacity: 1;
    }
}

/* Games Section */
.games {
    padding: 4rem 0;
    /* width: 100%; */
}

.games-scroll-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-behavior: smooth;
}

.games-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.games-scroll-container::-webkit-scrollbar-track {
    background: rgba(26, 13, 46, 0.3);
    border-radius: 4px;
}

.games-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-blue));
    border-radius: 4px;
}

.game-card {
    min-width: 380px;
    height: 200px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(106, 63, 184, 0.3);
}

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

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

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 63, 184, 0.8), rgba(37, 99, 235, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.game-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.play-button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--accent-pink), var(--nebula-pink));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
}

.disclaimer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    background: rgba(106, 63, 184, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(106, 63, 184, 0.3);
}

.disclaimer p {
    font-size: 1.1rem;
    color: var(--accent-pink);
    font-weight: 500;
}

/* Why Choose Section */
.why-choose {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.9), rgba(26, 13, 46, 0.8));
}

.cube-container {
    display: flex;
    justify-content: center;
    perspective: 1000px;
    margin-top: 4rem;
}

.rotating-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 12s infinite linear;
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(106, 63, 184, 0.8), rgba(37, 99, 235, 0.8));
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.cube-face h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--star-white);
}

.cube-face p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.cube-face.front { transform: rotateY(0deg) translateZ(100px); }
.cube-face.back { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* Contact Section */
.contact {
    padding: 4rem 0;
    position: relative;
    background: linear-gradient(135deg, rgba(26, 13, 46, 0.6), rgba(10, 10, 30, 0.8));
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(106, 63, 184, 0.3);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(106, 63, 184, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

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

.submit-button:hover {
    background: linear-gradient(45deg, var(--secondary-blue), var(--accent-pink));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(106, 63, 184, 0.4);
}

.shooting-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: shootingStar 3s linear infinite;
}

@keyframes shootingStar {
    0% {
        transform: translateX(-100px) translateY(100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(-100px);
        opacity: 0;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.95), rgba(26, 13, 46, 0.95));
    padding: 1.5rem 0 0.5rem;
    position: relative;
    border-top: 1px solid rgba(106, 63, 184, 0.3);
    margin-top: 0;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-pink);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #b3c5ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(106, 63, 184, 0.2);
    opacity: 0.8;
    margin-bottom: 0;
}

/* .comet-trails {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
} */

/* .comet-trail {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-pink), transparent);
    border-radius: 50%;
    animation: cometTrail 6s infinite linear;
} */

@keyframes cometTrail {
    0% {
        transform: translateX(100vw) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100px) translateY(50px);
        opacity: 0;
    }
}

.pulsating-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.pulsating-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: pulsate 2s infinite ease-in-out;
}

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

/* Game Page Styles */
.game-page {
    padding: 2rem 0 0;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.95), rgba(26, 13, 46, 0.95));
}

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

.game-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--accent-pink), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.back-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-blue));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(106, 63, 184, 0.4);
}

.game-container {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin: 0 auto 2rem;
    max-width: 1200px;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner {
        height: 200px;
    }
    
    .banner-overlay h2 {
        font-size: 1.8rem;
    }
    
    .banner-overlay p {
        font-size: 1rem;
    }
    
    .cosmic-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .sidebar {
        width: 280px;
    }
    
    .games-scroll-container {
        gap: 1rem;
    }
    
    .game-card {
        min-width: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cube-container {
        margin-top: 2rem;
    }
    
    .rotating-cube {
        width: 150px;
        height: 150px;
    }
    
    .cube-face {
        width: 150px;
        height: 150px;
    }
    
    .cube-face.front { transform: rotateY(0deg) translateZ(75px); }
    .cube-face.back { transform: rotateY(180deg) translateZ(75px); }
    .cube-face.right { transform: rotateY(90deg) translateZ(75px); }
    .cube-face.left { transform: rotateY(-90deg) translateZ(75px); }
    .cube-face.top { transform: rotateX(90deg) translateZ(75px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(75px); }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .cosmic-title {
        font-size: 2rem;
    }
    
    .game-container {
        height: 400px;
    }
    
    section {
        padding: 2rem 0;
    }
}