/* Theme: Mixture of candy, sport, and kites (colorful, playful, energetic) */
:root {
    --primary: #F43F5E;
    --secondary: #3B82F6;
    --accent: #FBBF24;
    --background: #FDF2F8;
    --text: #1E293B;
    --footer-bg: #3B82F6;
    --footer-accent: #F43F5E;
}

body {
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    margin: 0;
    padding: 0;
}

.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(244,63,94,0.08);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}
.nav-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
}
.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
}
.nav-links a:hover {
    background: var(--accent);
    color: var(--primary);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
}
.nav-toggle .bar {
    width: 28px;
    height: 3px;
    background: var(--primary);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}
@media (max-width: 900px) {
    .nav-links {
        gap: 1rem;
    }
}
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100vw;
        width: 200px;
        height: calc(100vh - 60px);
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        box-shadow: -2px 0 12px rgba(0,0,0,0.08);
        z-index: 150;
        transition: right 0.3s cubic-bezier(.4,2,.6,1);
        display: flex;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links:not(.active) {
        right: -100vw;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }
}
.hero-bg {
    min-height: 50vh;
    background: linear-gradient(120deg, rgba(244,63,94,0.7) 0%, rgba(59,130,246,0.7) 100%), url('../img/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: #fff;
    padding: 4rem 1rem 2rem 1rem;
    overflow: hidden;
}
.hero-bg .hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}
.hero-bg h1 {
    font-size: 2.7rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.hero-bg p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.95;
}
/* .hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: #fff;
    padding: 4rem 1rem 2rem 1rem;
    overflow: hidden;
} */
/* .hero-img {
    width: 320px;
    max-width: 90vw;
    margin: 0 auto 2rem auto;
    display: block;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(59,130,246,0.12);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 2.7rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.hero p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.95;
} */
.features {
    background: #fff;
    padding: 3rem 1rem 2rem 1rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.feature-card {
    background: var(--background);
    border-radius: 1.2rem;
    box-shadow: 0 2px 8px rgba(251,191,36,0.08);
    padding: 2rem 1.2rem;
    text-align: center;
    transition: transform 0.2s;
}
.feature-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 24px rgba(244,63,94,0.10);
}
.feature-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
}
.feature-card p {
    color: var(--text);
    font-size: 1rem;
    opacity: 0.9;
}
.about {
    background: var(--accent);
    padding: 3rem 1rem 3rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}
.about-img {
    width: 260px;
    max-width: 90vw;
    border-radius: 1.2rem;
    box-shadow: 0 4px 16px rgba(244,63,94,0.10);
}
.about-content {
    max-width: 500px;
    color: #fff;
}
.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}
.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
    opacity: 0.95;
}
.games-section {
    background: #fff;
    padding: 2.5rem 1rem 2rem 1rem;
}
.game-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 700px) {
    .game-container {
        grid-template-columns: 1fr;
    }
}
.game-frame {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(59,130,246,0.10);
    background: #FDF2F8;
}
.footer {
    background: linear-gradient(120deg, var(--footer-bg) 0%, var(--footer-accent) 100%);
    color: #fff;
    padding: 2.5rem 1rem 1.2rem 1rem;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    margin-top: 3rem;
    box-shadow: 0 -4px 24px rgba(59,130,246,0.08);
}
.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #FBBF24;
}
.footer-disclaimer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.18);
    font-size: 0.98rem;
    color: #f3f4f6;
    letter-spacing: 0.01em;
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.popup-content {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 1.2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 24px rgba(244,63,94,0.10);
}
.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.popup-button {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    font-size: 1rem;
}
.popup-button.confirm {
    background: var(--primary);
    color: #fff;
}
.popup-button.confirm:hover {
    background: var(--secondary);
}
.popup-button.exit {
    background: #e5e7eb;
    color: var(--primary);
}
.popup-button.exit:hover {
    background: #fbbf24;
    color: #fff;
}
.contact-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group textarea {
    height: 120px;
    resize: vertical;
}
.submit-button {
    background: var(--primary);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}
.submit-button:hover {
    background: var(--secondary);
}
.content-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem 1rem;
}
.content-section h1 {
    color: var(--primary);
    margin-bottom: 2rem;
}
.content-section h2 {
    color: var(--text);
    margin: 1.5rem 0 1rem;
}
.content-section p {
    margin-bottom: 1rem;
}
.content-section ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}
.content-section ul li {
    margin-bottom: 0.5rem;
}

/* Responsive Game Iframe Fix */
@media (max-width: 600px) {
  .game-frame {
    height: auto;
    aspect-ratio: 16/9;
    min-height: 220px;
    max-height: 60vw;
    width: 100%;
    display: block;
    margin: 0 auto;
    background: var(--dark);
  }
  .game-container {
    gap: 1.5rem;
  }
}

/* Desktop Game Iframe Sizing Fix */
@media (min-width: 601px) {
  .game-frame {
    max-width: 900px;
    aspect-ratio: 16/9;
    height: 520px;
    min-height: 320px;
    width: 100%;
    margin: 0 auto;
    display: block;
    background: var(--dark);
  }
  .game-container {
    align-items: center;
  }
}
@media (max-width: 600px) {
    .hero-bg h1 {
        font-size: 2rem;
    }
    .hero-bg p {
        font-size: 1rem;
    }
}
