:root {
    --primary-color: #8cc63f; /* Button Green */
    --primary-hover: #7ab332;
    --secondary-color: #ffcc00; /* CTA Yellow */
    --text-color: #333333;
    --light-bg: #fdfbf7;
    --dark-bg: #2d1e16; /* Footer Brown */
    --levels-bg: #223520; /* Dark Green Levels */
    --font-main: 'Fredoka', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 0 #5a9e1b;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--secondary-color);
}

.download-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 0 #5a9e1b;
}

.download-btn:hover {
    transform: translateY(-2px);
    background-color: var(--primary-hover);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    background: #4a752c; /* Fallback */
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-tree {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 5.5rem;
    line-height: 1.05;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.title-spin {
    color: #ffcc00;
    -webkit-text-stroke: 3px #c47d00;
    text-shadow: 4px 4px 0 #7a4d00, 0 0 30px rgba(255,204,0,0.4);
    font-size: 5.8rem;
}

.title-swipe {
    color: #ffffff;
    -webkit-text-stroke: 3px #333;
    text-shadow: 4px 4px 0 #222, 0 0 20px rgba(255,255,255,0.2);
    font-size: 5.8rem;
}

.title-sort {
    color: #8cc63f;
    -webkit-text-stroke: 3px #3d6e0f;
    text-shadow: 4px 4px 0 #2a4d08, 0 0 30px rgba(140,198,63,0.4);
    font-size: 5.8rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
    color: #fff;
}

.hero-subtitle span {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Google Play Button */
.gplay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    background-color: #111;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 0.75rem 1.6rem;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.gplay-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.gplay-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.gplay-small {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

.gplay-big {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

/* Google Play SVG Image Button */
.gplay-img-btn {
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.gplay-img-btn img {
    height: 160px;
    width: auto;
    display: block;
}

/* CTA section button — slightly smaller to fit the banner */
.cta-buttons .gplay-img-btn img {
    height: 160px;
}

.gplay-img-btn:hover {
    transform: scale(1.06) translateY(-2px);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
}
.features-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 5%;
    background-color: var(--light-bg);
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 250px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #333;
}

.bg-green { background-color: #dcedc8; }
.bg-yellow { background-color: #fff9c4; }
.bg-pink { background-color: #f8bbd0; }
.bg-blue { background-color: #b3e5fc; }

.feature-text h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.feature-text p {
    font-size: 0.85rem;
    color: #666;
}

/* How to Play */
.how-to-play-section {
    padding: 4rem 5%;
    text-align: center;
    background-color: #f5f2ea;
}

.section-title {
    font-size: 2rem;
    color: #4a2c11;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-leaf {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.step {
    max-width: 280px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.step-content {
    margin-bottom: 0;
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.step p {
    font-size: 0.9rem;
    color: #555;
}

.step-image img {
    width: 100%;
    max-width: 220px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    object-fit: contain;
}


/* CTA Section */
.cta-section {
    padding: 3rem 5%;
    background-color: var(--light-bg);
}

.cta-container {
    background-color: var(--secondary-color);
    border-radius: 30px;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.3);
}

.cta-text {
    flex: 1;
    margin-left: 0;
}

.cta-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.cta-text p {
    color: #555;
    font-size: 1.1rem;
    max-width: 400px;
}

.cta-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-text {
    font-size: 2rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 250px;
    color: #aaa;
    font-size: 0.9rem;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #aaa;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}
.instagram-color:hover { color: #E1306C; }
.facebook-color:hover { color: #1877F2; }
.youtube-color:hover { color: #FF0000; }
.tiktok-color:hover { color: #000000; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    color: #777;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {

    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .cta-text {
        margin-left: 0;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
}
