/* Global Styles */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #ffa502;
    --accent-color: #e84393;
    --dark-color: #2f3542;
    --light-color: #f1f2f6;
    --success-color: #20bf6b;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Dancing Script', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2, #ffcc80),
                url('../assets/foodpattern.png');
    background-repeat: repeat;
    background-size: 150px; /* try 150-200px for better fit */
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
}

h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.tagline {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* Navigation */
nav {
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    background-color: var(--primary-color);
    color: white;
}

.nav-links li a.active {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Reward Counter */
.reward-counter {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reward-counter span {
    font-size: 1.1rem;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-color);
}

/* Buttons */
.cta-button, .submit-btn, .start-btn, .location-btn, .action-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.cta-button:hover, .submit-btn:hover, .start-btn:hover, .location-btn:hover, .action-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* --- HERO SECTION CENTERING --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.hero-content h2,
.hero-content p {
    text-align: center !important;
}

/* --- FEATURES SECTION CENTERING & BOXED BUTTONS --- */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 2rem 1.5rem 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
    min-width: 250px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.feature-link {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 0.9rem 2.2rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    text-align: center;
    letter-spacing: 0.5px;
}
.feature-link:hover {
    background: var(--accent-color);
    box-shadow: 0 6px 18px rgba(0,0,0,0.13);
    transform: translateY(-2px) scale(1.04);
}

.fancy-cursive {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #d2691e;
    text-shadow: 1px 1px 4px #fff3, 0 2px 8px #0002;
}

h2.fancy-cursive {
    font-weight: 900;
    text-shadow: 2px 2px 8px #fff6, 0 4px 16px #0003;
    letter-spacing: 2px;
}

@media (max-width: 900px) {
    .features {
        flex-direction: column;
        align-items: center;
    }
    .feature-card {
        width: 90%;
        max-width: 400px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        gap: 0.5rem;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .reward-counter {
        margin-top: 1rem;
    }
}