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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Space Background Animation */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        25px 5px #fff, 50px 25px #fff, 75px 50px #fff, 100px 75px #fff,
        125px 100px #fff, 150px 125px #fff, 175px 150px #fff, 200px 175px #fff,
        225px 200px #fff, 250px 225px #fff, 275px 250px #fff, 300px 275px #fff,
        325px 300px #fff, 350px 325px #fff, 375px 350px #fff, 400px 375px #fff,
        425px 400px #fff, 450px 425px #fff, 475px 450px #fff, 500px 475px #fff,
        525px 500px #fff, 550px 525px #fff, 575px 550px #fff, 600px 575px #fff,
        625px 600px #fff, 650px 625px #fff, 675px 650px #fff, 700px 675px #fff,
        725px 700px #fff, 750px 725px #fff, 775px 750px #fff, 800px 775px #fff;
    animation: twinkle 3s infinite;
}

.stars::after {
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.meteors {
    position: absolute;
    width: 100%;
    height: 100%;
}

.meteors::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: meteor 8s linear infinite;
}

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

.nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: nebulaPulse 20s ease-in-out infinite;
}

@keyframes nebulaPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Glassmorphic Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.2);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    animation: glowTrail 4s ease-in-out infinite;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.nav-logo h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00d4ff, #ff0099);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo span {
    font-size: 0.8rem;
    color: #888;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 50px;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('/public/assets/banner.jpg') center/cover;
}

.hero-content {
    background-color: #23273e54;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 80px;
    border-radius: 20px;
    /* display: grid; */
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.cosmic-explosion {
    position: relative;
    margin-bottom: 30px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00d4ff, #ff0099, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.explosion-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #00d4ff;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #ccc;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotating-orb {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, #00d4ff, #ff0099);
    position: relative;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

.rotating-orb::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(transparent, #00d4ff, transparent, #ff0099);
    z-index: -1;
}

/* Plasma Button */
.plasma-btn {
    background: linear-gradient(45deg, #00d4ff, #ff0099);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.plasma-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

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

.plasma-btn:hover::before {
    left: 100%;
}

.btn-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50px;
    background: linear-gradient(45deg, #00d4ff, #ff0099);
    z-index: -1;
    opacity: 0;
    transition: 0.3s;
}

.plasma-btn:hover .btn-glow {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Section Titles */
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00d4ff, #ff0099);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: #ccc;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 100px 0;
}

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

.feature-card {
    background: rgba(10, 10, 15, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #00d4ff;
}

.feature-card p {
    color: #ccc;
    line-height: 1.6;
}

/* Games Section */
.games-section {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.2);
}

.games-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.game-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    padding: 20px;
}

.game-card {
    min-width: 320px;
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 20px;
    background: linear-gradient(45deg, #00d4ff, #ff0099, #ffff00);
    z-index: -1;
    opacity: 0;
    transition: 0.3s;
}

.game-card:hover::before {
    opacity: 1;
    animation: nebulaPulse 2s infinite;
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-orb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(#00d4ff, #ff0099, #ffff00, #00d4ff);
    margin: 0 auto 20px;
    animation: rotate 3s linear infinite;
}

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

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.game-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #00d4ff;
}

.game-info p {
    color: #ccc;
    margin-bottom: 20px;
}

.slider-controls {
    text-align: center;
    margin-top: 30px;
}

.slider-btn {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: white;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* About Section */
.about-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('/public/assets/about.jpg') center/cover;
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.star-wars-crawl {
    height: 400px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.947));
    border-radius: 20px;
    padding: 40px;
}

.crawl-text {
    animation: crawl 20s linear infinite;
    transform-origin: 50% 100%;
    transform: perspective(300px) rotateX(25deg);
}

@keyframes crawl {
    0% {
        transform: perspective(300px) rotateX(25deg) translateY(100%);
    }
    100% {
        transform: perspective(300px) rotateX(25deg) translateY(-100%);
    }
}

.crawl-text h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: #ffff00;
}

.crawl-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.rotating-planet {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    animation: rotate 15s linear infinite;
}

.planet-surface {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4a90e2, #2c5aa0, #1e3d72);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.planet-surface::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: conic-gradient(transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 10s linear infinite reverse;
    top: -10%;
    left: -10%;
}

.planet-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 70%, rgba(0, 212, 255, 0.3));
    animation: nebulaPulse 4s infinite;
}

/* Disclaimer */
.disclaimer {
    padding: 50px 0;
    background: rgba(255, 0, 153, 0.1);
    border-top: 1px solid rgba(255, 0, 153, 0.3);
    border-bottom: 1px solid rgba(255, 0, 153, 0.3);
}

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

.disclaimer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ff0099;
}

.disclaimer-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
}

/* Footer */
.footer {
    position: relative;
    padding: 80px 0 20px;
    background: linear-gradient(to bottom, #0a0a0f, #1a4d3a);
}

.forest-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0 100L10 90L20 95L30 85L40 92L50 88L60 94L70 87L80 93L90 89L100 96V100Z" fill="%23154d2a"/></svg>') repeat-x bottom;
    background-size: 200px 50px;
}

.falling-leaves {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.falling-leaves::before,
.falling-leaves::after {
    content: '🍃';
    position: absolute;
    font-size: 20px;
    animation: leafFall 10s linear infinite;
    opacity: 0.7;
}

.falling-leaves::before {
    left: 20%;
    animation-delay: 0s;
}

.falling-leaves::after {
    left: 80%;
    animation-delay: 5s;
}

@keyframes leafFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer-logo h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #00d4ff, #ff0099);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: #ccc;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #00d4ff;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #00d4ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: #ccc;
    margin-bottom: 10px;
}

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

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

.game-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00d4ff, #ff0099);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nebula-box {
    position: relative;
    border-radius: 20px;
    padding: 20px;
    background: rgba(10, 10, 15, 0.182);
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    background-clip: padding-box;
    animation: nebulaPulse 3s infinite;
}

.nebula-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 20px;
    background: linear-gradient(45deg, #00d4ff, #ff0099, #ffff00, #00d4ff);
    z-index: -1;
    animation: rotate 4s linear infinite;
}

.game-frame {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 15px;
    background: #000;
}

.back-btn {
    margin-bottom: 30px;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .game-track {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .game-track::-webkit-scrollbar {
        display: none;
    }
}

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

/* Additional Page Styles */
.page-content {
    padding: 120px 20px 50px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00d4ff, #ff0099);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-card {
    background: rgba(10, 10, 15, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.content-card h3 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.content-card p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ccc;
}

.content-card ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-card ul li {
    margin-bottom: 10px;
    color: #ccc;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #00d4ff;
    font-weight: 500;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

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