@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    --primary: #0D5257;
    --primary-dark: #073538;
    --teal-light: #1a7a7f;
    --gold: #FFD700;
    --gold-dark: #C9A800;
    --lime: #BFFF40;
    --light: #FAF9F6;
    --dark: #1a1a1a;
    --text-light: #333;
    --text-gray: #666;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(13, 82, 87, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--light);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Balanced padding for mobile */
}

.section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 2rem; /* Increased for mobile comfort */
    }
    .section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

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

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.9) translateX(30px); }
    70% { transform: scale(1.02) translateX(-5px); }
    100% { opacity: 1; transform: scale(1) translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.6); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.animate-up {
    animation: slideUp 0.8s ease-out forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--primary);
    box-shadow: 0 6px 0 var(--gold-dark), var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--gold-dark), var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--gold-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-lime {
    background-color: var(--lime);
    color: var(--primary);
    box-shadow: 0 6px 0 #9ED930, var(--shadow-md);
}

.btn-lime:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #9ED930, var(--shadow-lg);
}

/* Navigation */
/* ANNOUNCEMENT BANNER */
.announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 38px;
    background: var(--primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(13, 82, 87, 0.3);
}
.banner-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: bannerScroll 28s linear infinite;
}
@keyframes bannerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.banner-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 36px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
    font-family: inherit;
}
.banner-sep {
    color: var(--lime);
    opacity: 0.7;
    font-size: 1rem;
    font-weight: 900;
    padding: 0 4px;
}
.banner-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.announcement-banner-inline {
    width: 100%;
    height: 38px;
    background: var(--primary);
    overflow: hidden;
    display: flex;
    align-items: center;
}

nav {
    position: fixed;
    top: 38px;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(13, 82, 87, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

.logo-text {
    display: none; /* Logo already contains text */
}

.logo-icon {
    display: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--teal-light);
}

.nav-links a.active {
    color: var(--primary-dark);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: white;
    border: 1px solid var(--primary);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--light);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light) 0%, #E8F4F5 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.hero-logo-img {
    max-width: 100%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    animation: pulse 4s infinite ease-in-out;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--lime);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
}

.hero-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    max-width: 400px;
    transform: rotate(3deg);
    transition: transform 0.4s ease;
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(13, 82, 87, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Parent Section */
.parents-section {
    background: var(--primary);
    color: white;
}

.parents-section h2, .parents-section h3 {
    color: white;
}

.parents-section p {
    color: rgba(255, 255, 255, 0.8);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--lime);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Earning Section (Teens) */
.earning-section {
    background: white;
}

.quest-cards-container {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    margin-top: 1rem;
    overflow-x: hidden; /* Hide scrollbar on desktop to prioritize marquee */
    -webkit-overflow-scrolling: touch;
    position: relative;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.quest-cards-container::-webkit-scrollbar {
    display: none;
}

/* Infinite Scroll Animation */
.quest-track {
    display: flex;
    gap: 1.5rem;
    animation: marquee 80s linear infinite; /* Slightly slower for desktop readability */
    width: max-content;
    will-change: transform;
}

.quest-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.75rem)); } /* Accurate half-track shift */
}

.quest-card {
    background: var(--light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    width: 320px;
    flex-shrink: 0;
    scroll-snap-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

@media (max-width: 768px) {
    .quest-card {
        width: 280px; /* Peek effect: makes next card visible */
    }
}

.quest-card:nth-child(1) { animation-delay: 0.1s; }
.quest-card:nth-child(2) { animation-delay: 0.2s; }
.quest-card:nth-child(3) { animation-delay: 0.3s; }

/* Carousel Indicators */
.carousel-indicator {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-bottom: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(13, 82, 87, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gold);
    width: 25px;
    border-radius: 5px;
}

.quest-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.quest-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(255, 215, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
}

.quest-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.quest-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #ddd;
}

.quest-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Call To Action */
.cta-section {
    background: linear-gradient(135deg, var(--gold) 0%, var(--lime) 100%);
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(13,82,87,0.1)"/></svg>') repeat;
    pointer-events: none;
}

.cta-section h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

footer p {
    color: #888;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto;
    }
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo .logo-text {
    color: white;
}

.footer-tagline {
    margin-top: 1rem;
    max-width: 300px;
    line-height: 1.4;
    color: #888;
}

@media (max-width: 768px) {
    .footer-tagline {
        margin: 1rem auto 0;
        text-align: center;
    }
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

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

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(0,0,0,0.05);
        z-index: 1000;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links a.btn-primary {
        margin-top: 1rem;
        display: block;
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .cta-group .btn {
        width: 100%;
    }
    
    .quest-card {
        scroll-snap-align: center;
    }
    
    .cta-section h2 {
        font-size: 2.5rem;
    }
}
