/* CSS Variables for Theme */
:root {
    --primary-green: #67C82B;
    --dark-green: #2C6B0F;
    --sky-blue: #5EBFFF;
    --dark-blue: #1C6E98;
    --btn-red: #F94144;
    --btn-red-dark: #cc2528;
    --gold: #F9C74F;
    --text-dark: #2A1B0E;
    --text-light: #F8F9FA;
    --card-bg: rgba(255, 255, 255, 0.9);
    --font-heading: 'Lilita One', cursive;
    --font-body: 'Nunito', sans-serif;
}

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

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

h1,
h2,
h3,
h4,
.btn-play {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: url('assets/hero.png') no-repeat center center/cover;
}

/* Fallback background if image fails to load */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, var(--sky-blue) 0%, #a3e0ff 100%);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    /* Darken background for text readability */
    z-index: 1;
}

/* Brand Top */
.brand-top {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.brand-text {
    color: white;
    font-size: 1rem;
    font-weight: 800;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.logo-container {
    background: var(--gold);
    padding: 2rem 4rem;
    border-radius: 50px;
    border: 8px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), inset 0 -10px 0px rgba(220, 160, 20, 0.8);
    transform: rotate(-3deg);
    margin-bottom: 2rem;
    display: inline-block;
    animation: floatLogo 4s ease-in-out infinite;
}

.game-title {
    color: var(--btn-red);
    font-size: 4.5rem;
    text-shadow:
        -2px -2px 0 white,
        2px -2px 0 white,
        -2px 2px 0 white,
        2px 2px 0 white,
        0 4px 0 rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.game-subtitle {
    color: var(--sky-blue);
    font-size: 2.5rem;
    background: white;
    padding: 0.5rem 2rem;
    border-radius: 20px;
    display: inline-block;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 0px rgba(0, 0, 0, 0.1);
    transform: rotate(2deg);
}

.hero-description {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Play Button */
.btn-play {
    display: inline-block;
    background-color: var(--btn-red);
    color: white;
    font-size: 2.5rem;
    text-decoration: none;
    padding: 1rem 4rem;
    border-radius: 40px;
    border: 5px solid white;
    box-shadow: 0 10px 0 var(--btn-red-dark), 0 15px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-transform: uppercase;
}

.btn-play:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 0 var(--btn-red-dark), 0 20px 25px rgba(0, 0, 0, 0.4);
}

.btn-play:active {
    transform: translateY(5px);
    box-shadow: 0 5px 0 var(--btn-red-dark), 0 10px 15px rgba(0, 0, 0, 0.3);
}

.btn-play .sparkle {
    position: absolute;
    right: 15px;
    top: -10px;
    font-size: 2rem;
    animation: sparkleSpin 3s linear infinite;
}

/* Floating Fruits Animation */
.floating-fruits {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.fruit {
    position: absolute;
    font-size: 4rem;
    top: -10%;
    left: var(--left);
    animation: fallFruit 8s linear infinite;
    animation-delay: var(--delay);
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3));
}

/* Privacy Policy Section */
.privacy-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    padding: 5rem 1rem;
    position: relative;
}

/* Wavy transition from hero to privacy */
.privacy-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%2367C82B" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%2367C82B" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%2367C82B"/></svg>') no-repeat center bottom / cover;
    z-index: 2;
}


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

.policy-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.section-title {
    color: var(--dark-green);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

.policy-content h3 {
    color: var(--btn-red);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.policy-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #444;
}

.policy-content strong {
    color: var(--dark-blue);
}

/* Footer */
footer {
    background: #1A4009;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem;
    font-size: 1rem;
    font-family: var(--font-body);
}

/* Keyframes */
@keyframes floatLogo {

    0%,
    100% {
        transform: rotate(-3deg) translateY(0);
    }

    50% {
        transform: rotate(-1deg) translateY(-15px);
    }
}

@keyframes sparkleSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes fallFruit {
    0% {
        top: -10%;
        transform: rotate(0deg) translateX(0);
        opacity: 1;
    }

    100% {
        top: 110%;
        transform: rotate(360deg) translateX(50px);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 3.5rem;
    }

    .game-subtitle {
        font-size: 2rem;
    }

    .logo-container {
        padding: 1.5rem 2rem;
        border-width: 5px;
    }

    .btn-play {
        font-size: 2rem;
        padding: 1rem 3rem;
    }

    .policy-card {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 2.5rem;
    }

    .game-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .btn-play {
        font-size: 1.5rem;
        padding: 0.8rem 2rem;
        border-width: 3px;
        box-shadow: 0 6px 0 var(--btn-red-dark);
    }
}