/* Global Styles */
:root {
    --primary-color: #FF6B6B;
    /* Pastel Red/Pink */
    --secondary-color: #4ECDC4;
    /* Teal/Turquoise */
    --accent-yellow: #FFE66D;
    /* Soft Yellow */
    --accent-purple: #a685e2;
    /* Soft Purple */
    --bg-light: #F7FFF7;
    /* Off-white */
    --text-dark: #2F2F2F;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.highlight {
    color: var(--accent-yellow);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 5px solid var(--accent-yellow);
}

.logo-img {
    height: 60px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 0 #d45050;
    /* Button 3D effect */
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-image: url('header-bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    color: white;
    /* Ensure contrast, maybe add text-shadow if needed */
    padding: 100px 20px 150px;
    text-align: center;
    position: relative;
    /* overflow: hidden; Removed to let image extend if needed, but cover handles it */
}

/* Optional: Overlay if text is hard to read on the image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Slight dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-lg {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 5px 0 #d4be44;
    transition: transform 0.2s;
}

.btn-lg:hover {
    transform: translateY(-2px);
}

.btn-lg:active {
    transform: translateY(5px);
    box-shadow: 0 0 0;
}

.btn-lg-secondary {
    background-color: white;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    border: 3px solid white;
    transition: all 0.3s;
}

.btn-lg-secondary:hover {
    background-color: transparent;
    color: white;
}

/* Floating Shapes */
.floating-shapes .shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.shape-3 {
    width: 50px;
    height: 50px;
    bottom: 30%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Waves */
.wave-bottom,
.wave-top,
.wave-bottom-alt {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-bottom {
    bottom: -1px;
}

.wave-top {
    top: -1px;
    transform: rotate(180deg);
}

.wave-bottom-alt {
    bottom: -1px;
}

.shape-fill {
    fill: var(--bg-light);
}

.section-alt .shape-fill {
    fill: var(--bg-light);
    /* Make sure it matches body bg if needed, or adjust */
}

/* Section Common */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: var(--accent-yellow);
    margin: 10px auto 0;
    border-radius: 10px;
}

/* Cards (Characters) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border-bottom: 6px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-10px);
}

.char-card h3 {
    margin: 20px 0 10px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.card-img-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto;
    background-color: #ddd;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.clr-1 {
    background-color: #FFD166;
}

.clr-2 {
    background-color: #06D6A0;
}

.clr-3 {
    background-color: #118AB2;
}

.clr-purple {
    background-color: #8338ec;
    /* Deep purple for Gys */
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.filter-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

/* Games Section */
.section-alt {
    background-color: var(--secondary-color);
    padding-top: 120px;
    padding-bottom: 120px;
    margin: 50px 0;
}

.section-alt .section-title {
    color: white;
}

.section-alt .section-title::after {
    background: white;
}

.games-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.game-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.game-item:hover {
    transform: scale(1.05);
}

.game-thumb {
    height: 200px;
    background-color: #eee;
}

.gm-1 {
    background: repeating-linear-gradient(45deg, #FF6B6B, #FF6B6B 10px, #FF8E8E 10px, #FF8E8E 20px);
}

.gm-2 {
    background: repeating-radial-gradient(circle, #FFE66D, #FFE66D 10px, #FFF0A3 10px, #FFF0A3 20px);
}

.game-info {
    padding: 20px;
    text-align: center;
}

.game-info h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.btn-sm {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    transition: background 0.3s;
}

.btn-sm:hover {
    background: #e64c4c;
}

/* Youtube Placeholder */
.video-placeholder {
    width: 100%;
    max-width: 800px;
    height: 450px;
    background: #333;
    margin: 0 auto;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* About Text */
.lead-text {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

/* Footer */
footer {
    background-image: url('footer-bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: var(--text-dark);
    /* Fallback */
    color: white;
    padding: 150px 0 20px;
    /* More top padding to clear the image "sky" or decoration */
    margin-top: 50px;
    position: relative;
}

/* Overlay for footer content readability if needed */
/* Overlay for footer content readability if needed */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(47, 47, 47, 0.6), rgba(47, 47, 47, 0.95));
    backdrop-filter: blur(4px);
    z-index: 0;
}

.footer-content,
.copyright {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col h3 {
    color: var(--accent-yellow);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.socials span {
    font-size: 1.5rem;
    margin-right: 15px;
    cursor: pointer;
    transition: transform 0.3s;
}

.socials span:hover {
    transform: scale(1.2);
    display: inline-block;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    color: #888;
}

/* Story Page Styles */
.story-hero {
    padding: 80px 20px 100px;
    background-position: center bottom;
}

.story-content {
    background: white;
    max-width: 800px;
    margin: -80px auto 0;
    /* Overlap hero */
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;
    font-size: 1.2rem;
    color: #444;
}

.story-content p {
    margin-bottom: 20px;
}

.story-content h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.warning-sign {
    background-color: #333;
    color: #ff4444;
    font-family: 'Courier New', Courier, monospace;
    padding: 20px;
    border: 3px solid #ff4444;
    text-align: center;
    font-weight: bold;
    margin: 40px 0;
    transform: rotate(-1deg);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

.ending {
    font-style: italic;
    color: #666;
    margin-top: 30px;
}

.story-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        /* Menu width */
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding-top: 50px;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}