:root {
    --primary: #4A90E2;
    --primary-light: #6AB3FF;
    --primary-dark: #2E5C8A;
    --accent: #FF6B9D;
    --secondary: #FFD700;
    --purple: #9B59B6;
    --teal: #1ABC9C;
    --text: #2C3E50;
    --text-light: #7F8C8D;
    --background: #F8F9FA;
    --card-bg: #FFFFFF;
    --border: #E1E8ED;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
    font-family: 'Quicksand', 'Comic Sans MS', cursive, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.15);
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
}

.nav-container {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.9rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(74, 144, 226, 0.2);
}

.logo:hover {
    color: var(--accent);
    transform: rotate(-3deg) scale(1.05);
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: var(--gradient-3);
    color: white;
    transform: translateY(-2px);
}

.nav-links a.active {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(74,144,226,0.12);
    border-radius: 25px;
    font-weight: 800;
    text-decoration: underline;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-links.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    padding-top: 90px;
    min-height: 70vh;
    /* Background image with dark overlay for legibility, fallback to gradient */
    background: var(--gradient-3);
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.15)), url('herobg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
}

.hero::before {
    content: '🎮🌟✨🎯💫🎪';
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    font-size: 3rem;
    text-align: center;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    animation: bounce 2s ease-in-out infinite;
}

.hero p {
    font-size: 1.4rem;
    color: white;
    font-weight: 600;
}

/* Game Container */
.game-container {
    max-width: 900px;
    margin: 3rem auto;
    aspect-ratio: 16/9;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(74, 144, 226, 0.3);
    border: 4px solid var(--primary);
    background: white;
}

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

.container h2{
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

/* Sections */
.section {
    padding: 4rem 2rem;
}

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

.center {
    text-align: center !important;
}

/* Content Cards */
.content-card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    margin: 2.5rem auto;
    max-width: 750px;
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.15);
    border: 3px solid var(--border);
    transition: all 0.4s ease;
}

.content-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 15px 60px rgba(74, 144, 226, 0.25);
    border-color: var(--primary);
}

.content-card h1, .content-card h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.content-card p, .content-card li {
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1.9;
}

.content-card ul {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
}

.content-card a:hover {
    color: var(--purple);
    border-bottom-color: var(--purple);
}

/* About two-column layout */
.about-card {
    max-width: 1050px;
    padding: 1.5rem;
    background: var(--gradient-3);
    color: white;
    border: none;
    box-shadow: 0 15px 60px rgba(46,92,138,0.18);
}

.about-row {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: center;
}

.about-text h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-image {
    justify-self: end;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 3px solid rgba(255,255,255,0.18);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    display: block;
}

.about-text p {
    color: rgba(255,255,255,0.95);
}

/* Disclaimer Box */
.disclaimer-box {
    background: var(--gradient-2);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2.5rem auto;
    max-width: 650px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(245, 87, 108, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.disclaimer-box h2 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.disclaimer-box p {
    font-size: 1.15rem;
    font-weight: 600;
}

/* Features Grid */
.features-container {
    margin-top: 3rem;
}

.features-container h2 {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 25px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.12);
    border: 3px solid var(--border);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-3);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 50px rgba(74, 144, 226, 0.25);
    border-color: var(--primary);
}

.feature-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Reviews Section */
.reviews {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 4.5rem 2rem;
    margin: 3rem 0;
    border-radius: 50px;
}

.reviews h2 {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

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

.review-card {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
    border: 3px solid var(--border);
}

.review-card:hover {
    transform: translateY(-8px) rotate(-2deg);
    box-shadow: 0 15px 50px rgba(74, 144, 226, 0.25);
    border-color: var(--accent);
}

.review-card p {
    color: var(--text);
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.review-card span {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--gradient-1);
    padding: 4rem 2rem 2rem 2rem;
    border-radius: 50px 50px 0 0;
    margin-top: 3rem;
    box-shadow: 0 -10px 40px rgba(74, 144, 226, 0.2);
}

.footer-content {
    max-width: 1050px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-section {
    flex: 1 1 220px;
    min-width: 200px;
}

.footer-section h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-weight: 500;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 25px;
    border: 3px solid var(--border);
    max-width: 650px;
    margin: 2.5rem auto;
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.15);
}

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

.form-group label {
    display: block;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid var(--border);
    border-radius: 15px;
    background: var(--background);
    color: var(--text);
    font-size: 1.05rem;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 33, 37, 0.3);
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Disclaimer Popup */
.disclaimer-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    padding: 3rem;
    border-radius: 30px;
    border: 4px solid var(--primary);
    box-shadow: 0 20px 80px rgba(74, 144, 226, 0.4);
    z-index: 1001;
    max-width: 550px;
    width: 90%;
    display: none;
    opacity: 0;
}

.disclaimer-popup.show {
    display: block;
    animation: popIn 0.5s ease-out forwards;
}

.disclaimer-popup h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 800;
    font-size: 1.8rem;
}

.disclaimer-popup p {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 1rem;
}

.disclaimer-popup ul {
    margin: 1.5rem 0;
    color: var(--text);
    font-weight: 600;
}

.disclaimer-popup button {
    background: var(--gradient-3);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 800;
    width: 100%;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.disclaimer-popup button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background: var(--gradient-2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.4s ease;
    font-size: 1.8rem;
    font-weight: bold;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(245, 87, 108, 0.5);
}

/* Animations */
@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(5deg); 
    }
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

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

.float-animate {
    animation: float 6s ease-in-out infinite;
}

.fade-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-element.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .game-container {
        height: auto;
        margin: 2rem 1rem;
    }
    
    .section {
        padding: 2.5rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Stack about section on small screens */
    .about-row {
        grid-template-columns: 1fr;
    }
    .about-image {
        justify-self: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.8rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .content-card {
        padding: 2rem 1.5rem;
        margin: 1.5rem;
    }
    
    .disclaimer-popup {
        padding: 2rem;
    }
}