/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --purple: #A8E6CF;
    --orange: #FFB347;
    --pink: #FF9ECD;
    --blue: #87CEEB;
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --bg-light: #FFF9F0;
    --bg-white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header & Navigation ===== */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: white;
    padding: 5px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--accent-color), var(--orange));
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    background: white;
    padding: 10px;
}

/* ===== App Store Buttons ===== */
.app-store-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.app-store-badge {
    display: inline-block;
    transition: all 0.3s ease;
}

.app-store-badge img {
    height: 60px;
    width: auto;
}

.app-store-badge:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* ===== Section Styles ===== */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-dark);
}

/* ===== Features Section ===== */
.features {
    background-color: var(--bg-white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-dark);
}

/* ===== Themes Section ===== */
.themes {
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.theme-card {
    background-color: var(--bg-white);
    padding: 1.25rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.theme-card:hover {
    transform: scale(1.05);
}

.theme-card.coming-soon {
    opacity: 0.7;
}

.theme-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.theme-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.theme-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.theme-badge.free {
    background-color: #4CAF50;
    color: white;
}

.theme-badge.iap {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

/* ===== Screenshots Section ===== */
.screenshots {
    background-color: var(--bg-white);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.screenshot-gallery img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    background: white;
    padding: 10px;
}

/* ===== Benefits Section ===== */
.benefits {
    background: linear-gradient(135deg, var(--secondary-color), var(--blue));
}

.benefits-grid {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    align-items: flex-start;
}

.checkmark {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* ===== Age Info Section ===== */
.age-info {
    background-color: var(--bg-white);
    text-align: center;
}

.age-info p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
}

.age-info h3 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ===== CTA Section ===== */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--orange));
    text-align: center;
    padding: 5rem 0;
}

.cta h2 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta .app-store-buttons {
    justify-content: center;
}

/* ===== Footer ===== */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== Content Pages (Privacy & Contact) ===== */
.content-page {
    background-color: var(--bg-white);
    padding: 4rem 0;
}

.content-page h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.last-updated {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
}

.content-section {
    margin-bottom: 2.5rem;
}

.content-section h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: left;
}

.content-section h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.content-section a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.content-section a:hover {
    text-decoration: underline;
}

/* ===== Contact Page ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-method {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.contact-method h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-method p {
    font-size: 1.1rem;
}

.contact-method ul {
    margin-left: 1.5rem;
}

.contact-method li {
    margin-bottom: 0.5rem;
}

/* ===== Contact Form ===== */
.contact-form-wrapper {
    background: linear-gradient(135deg, var(--accent-color), var(--orange));
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--text-dark);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.form-note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

/* ===== 404 Error Page ===== */
.error-page {
    background: linear-gradient(135deg, var(--accent-color), var(--orange));
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.error-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.error-icon {
    font-size: 6rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.error-title {
    font-size: 8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.error-content h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.error-suggestion {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.error-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.error-btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.error-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.error-btn.secondary {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.error-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.app-store-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 3px dashed var(--text-dark);
}

.download-prompt {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.app-store-section .app-store-buttons {
    justify-content: center;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 6px 12px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .app-store-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    section h2 {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }
}
