/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a1f;
    color: #f5f5f5;
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Animated Background */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #f1c40f, transparent),
        radial-gradient(2px 2px at 40px 70px, #3498db, transparent),
        radial-gradient(1px 1px at 90px 40px, #e74c3c, transparent),
        radial-gradient(1px 1px at 130px 80px, #f1c40f, transparent),
        radial-gradient(2px 2px at 160px 30px, #3498db, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    z-index: -2;
    opacity: 0.6;
}

.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(241, 196, 15, 0.1) 0%,
        rgba(52, 152, 219, 0.1) 25%,
        rgba(231, 76, 60, 0.1) 50%,
        rgba(241, 196, 15, 0.1) 75%,
        rgba(52, 152, 219, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: aurora 15s ease infinite;
    z-index: -1;
    opacity: 0.3;
}

@keyframes sparkle {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

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

/* Header */
.header {
    position: relative;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 31, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1c40f;
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px #f1c40f);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px #f1c40f); }
    to { filter: drop-shadow(0 0 20px #f1c40f); }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #f1c40f;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #f1c40f, #e74c3c);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #f1c40f;
    transition: 0.3s;
}

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

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #f1c40f, #e74c3c, #3498db);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    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;
    font-weight: 300;
}

.cta-button {
    position: relative;
    background: linear-gradient(45deg, #e74c3c, #f1c40f);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.4);
}

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

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

/* Section Titles */
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #f1c40f, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Games Section */
.games-section {
    padding: 5rem 0;
    position: relative;
}

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

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.2);
    border-color: rgba(241, 196, 15, 0.3);
}

.game-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-icon {
    font-size: 3rem;
    color: #f1c40f;
    text-shadow: 0 0 20px #f1c40f;
}

.game-title {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: #f5f5f5;
}

.play-button {
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    padding: 0.8rem;
    background: linear-gradient(45deg, #e74c3c, #f1c40f);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.05) 0%,
        rgba(231, 76, 60, 0.05) 50%,
        rgba(241, 196, 15, 0.05) 100%);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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(241, 196, 15, 0.1), transparent);
    transition: left 0.5s;
}

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

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px #f1c40f);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1c40f;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    color: #f5f5f5;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.about-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px #f1c40f);
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.05) 0%,
        rgba(241, 196, 15, 0.05) 50%,
        rgba(52, 152, 219, 0.05) 100%);
}

.disclaimer-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.disclaimer-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px #e74c3c);
}

.disclaimer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    text-align: left;
}

.disclaimer-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.disclaimer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.disclaimer-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f1c40f;
}

.disclaimer-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    color: #f5f5f5;
}

.disclaimer-footer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.disclaimer-footer p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #f5f5f5;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.1) 0%,
        rgba(231, 76, 60, 0.1) 50%,
        rgba(241, 196, 15, 0.1) 100%);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #f5f5f5;
    font-family: inherit;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f1c40f;
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.2);
}

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

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #e74c3c, #f1c40f);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

/* Footer */
.footer {
    padding: 3rem 0 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(1px 1px at 20px 20px, #f5f5f5, transparent),
        radial-gradient(1px 1px at 60px 60px, #f5f5f5, transparent),
        radial-gradient(1px 1px at 100px 100px, #f5f5f5, transparent);
    background-size: 120px 120px;
    opacity: 0.1;
    z-index: -1;
}

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

.footer-text {
    opacity: 0.8;
}

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

.social-link {
    display: inline-block;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

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

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

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

.game-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #f1c40f, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.back-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-button:hover {
    background: rgba(241, 196, 15, 0.2);
    transform: translateY(-2px);
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .disclaimer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .about-card,
    .disclaimer-card {
        padding: 2rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .game-frame {
        height: 400px;
    }
    
    .game-page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .game-frame {
        height: 300px;
    }
    
    .feature-card,
    .disclaimer-item {
        padding: 1rem;
    }
}

/* Static Page Styles */
.static-page {
    min-height: 100vh;
    padding: 2rem 0;
}

.static-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.static-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #f1c40f, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    text-align: center;
}

.static-content h2 {
    font-size: 1.8rem;
    color: #f1c40f;
    margin: 2rem 0 1rem;
}

.static-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.static-content ul {
    margin: 1rem 0 1rem 2rem;
}

.static-content li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}