/* Base Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.2);
    --text-color: white;
    --accent-color: #fdbb2d;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--primary-gradient);
    min-height: 100vh;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Language Buttons */
.lang-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Section Styles */
.section {
    padding: 5rem 5%;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Cards Grid */
.games-grid,
.objectives-grid,
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.game-card,
.objective-card,
.age-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s, background 0.3s;
}

.game-card:hover,
.objective-card:hover,
.age-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
}

.game-card h3,
.objective-card h3,
.age-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.character {
    margin-top: 1rem;
    font-style: italic;
}

/* Location Section */
.location-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.location-details {
    margin: 1.5rem 0;
}

/* Map Styles */
.map {
    height: 300px;
    width: 100%;
    border-radius: 10px;
    margin: 1.5rem 0;
    border: 2px solid var(--accent-color);
    z-index: 1;
}

/* Leaflet Map Customization */
.leaflet-popup-content-wrapper {
    background: rgba(26, 42, 108, 0.9);
    color: var(--text-color);
    border-radius: 10px;
}

.leaflet-popup-tip {
    background: rgba(26, 42, 108, 0.9);
}

.leaflet-container a {
    color: var(--accent-color);
}

.contact-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s;
}

.contact-button:hover {
    transform: scale(1.05);
}

/* Tutorial Video Section */
.video-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
}

.video-container video {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--accent-color);
}

.video-description {
    padding: 1rem;
}

.video-description h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.video-description ul {
    margin-top: 1rem;
    list-style-position: inside;
}

.video-description li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-bg);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.4s;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    nav {
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.5s ease;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .section {
        padding: 3rem 5%;
    }

    .video-container {
        padding: 1rem;
    }

    .map {
        height: 250px;
    }
}

/* Book Section */
.book-container {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
}

.book-image {
    flex: 0 0 300px;
}

.book-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.book-image img:hover {
    transform: scale(1.05);
}

.book-details {
    flex: 1;
}

.book-details h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.book-details p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.book-cta {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.coming-soon {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .book-container {
        flex-direction: column;
        padding: 1.5rem;
    }

    .book-image {
        flex: 0 0 auto;
        max-width: 250px;
        margin: 0 auto;
    }

    .book-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Sample Games Popup */
.sample-games-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.sample-games-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
}

.sample-games-content h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.sample-games-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sample-games-list a {
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background 0.3s, transform 0.3s;
}

.sample-games-list a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.new-label {
    background-color: var(--accent-color);
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 8px;
    display: inline-block;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.close-popup:hover {
    color: var(--accent-color);
}

.show-sample-games {
    display: block;
    margin: 2rem auto 0;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s;
    border: none;
    cursor: pointer;
}

.show-sample-games:hover {
    transform: scale(1.05);
}

/* List Styles */
ul {
    list-style-position: inside;
}

li {
    margin-bottom: 0.5rem;
}