/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bubblegum+Sans&family=Nunito:wght@400;600;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #FFC107;
    --accent-color: #FF5722;
    --background-color: #8BC34A;
    --card-background: #FFF;
    --text-color: #333;
    --heading-font: 'Bubblegum Sans', cursive;
    --body-font: 'Nunito', sans-serif;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #f0f0f0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Card Styles */
.card {
    background-color: var(--card-background);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hero Section */
.hero-section {
    background-image: url('./bg.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 2rem);
    margin-bottom: 2rem;
}

/* Feature Icon */
.feature-icon {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Screenshot */
.screenshot {
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 100%;
    height: auto;
}

/* FAQ Styles */
.faq-question {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-answer {
    transition: all 0.3s ease;
}

/* How to Play Animation */
.animation-container {
    position: relative;
    min-height: 200px;
}

.step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.step.active {
    opacity: 1;
    pointer-events: all;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 200px;
    margin: 0 auto;
}

.card-back, .card-front {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
}

.card-back {
    background-color: var(--primary-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5z"></path><path d="M2 17l10 5 10-5"></path><path d="M2 12l10 5 10-5"></path></svg>');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.card-front {
    background-color: white;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.kiwi {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%232e7d32" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M12 6v12M6 12h12"></path></svg>');
}

.apple {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23c62828" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a5 5 0 0 0-5 5c0 1.8 1.5 3 3 3 1 0 2-.5 3-1.5 1 .3 2 .5 3 1.5 1.5 0 3-1.2 3-3a5 5 0 0 0-5-5z"></path><path d="M12 12c-3 0-6 3-6 6v3h12v-3c0-3-3-6-6-6z"></path></svg>');
}

.matched {
    animation: pulse 1s;
    opacity: 0.5;
}

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

/* Navbar Scroll Effect */
.scrolled {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Game Modal */
#game-modal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 10rem 0;
    }

    .card-grid {
        max-width: 150px;
    }

    .grid md:grid-cols-2,
    .grid md:grid-cols-3,
    .grid md:grid-cols-4 {
        grid-template-columns: 1fr;
    }
}