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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fef7f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #FFE4B5;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-bg: #fef7f0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --border-color: #e0e0e0;
}

/* Navigation Bar */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--accent-color);
}

.nav-logo i {
    margin-right: 10px;
    color: var(--accent-color);
}

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}


.storage-notice {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.storage-notice p {
    margin: 0;
    font-weight: 500;
}


.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.page {
    display: none;
    min-height: 100vh;
    padding: 0;
}

#home-page {
    padding: 0;
}

.page.active {
    display: block;
}

/* Hero Section for All Pages */
.page-hero {
    position: relative;
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

.page-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.activities-hero {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(210, 105, 30, 0.7)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><linearGradient id="activitiesSky" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23f0f8ff;stop-opacity:1" /><stop offset="100%" style="stop-color:%23add8e6;stop-opacity:1" /></linearGradient></defs><rect width="1200" height="400" fill="url(%23activitiesSky)"/><ellipse cx="150" cy="300" rx="80" ry="40" fill="%234169e1" opacity="0.6"/><ellipse cx="400" cy="320" rx="100" ry="50" fill="%234169e1" opacity="0.5"/><ellipse cx="700" cy="310" rx="90" ry="45" fill="%234169e1" opacity="0.6"/><ellipse cx="1000" cy="305" rx="85" ry="42" fill="%234169e1" opacity="0.5"/><rect x="50" y="280" width="20" height="60" fill="%238b4513"/><polygon points="50,280 60,260 70,280" fill="%23228b22"/><rect x="300" y="270" width="25" height="70" fill="%238b4513"/><polygon points="300,270 312,250 325,270" fill="%23228b22"/><rect x="600" y="275" width="22" height="65" fill="%238b4513"/><polygon points="600,275 611,255 622,275" fill="%23228b22"/><rect x="900" y="285" width="18" height="55" fill="%238b4513"/><polygon points="900,285 909,265 918,285" fill="%23228b22"/><circle cx="200" cy="100" r="25" fill="%23ffeb3b" opacity="0.9"/></svg>');
}

.gallery-hero {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(210, 105, 30, 0.7)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><linearGradient id="gallerySky" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23fff8dc;stop-opacity:1" /><stop offset="100%" style="stop-color:%23ffd700;stop-opacity:1" /></linearGradient></defs><rect width="1200" height="400" fill="url(%23gallerySky)"/><rect x="100" y="200" width="80" height="120" fill="%23d2691e" stroke="%23333" stroke-width="3"/><rect x="110" y="210" width="60" height="80" fill="%23fff" stroke="%23333" stroke-width="2"/><polygon points="125,240 140,225 155,240 140,255" fill="%23ffb6c1"/><circle cx="140" cy="235" r="8" fill="%23ffd700"/><rect x="400" y="180" width="90" height="140" fill="%23d2691e" stroke="%23333" stroke-width="3"/><rect x="410" y="190" width="70" height="90" fill="%23fff" stroke="%23333" stroke-width="2"/><polygon points="425,220 445,200 465,220 445,240" fill="%2398fb98"/><circle cx="445" cy="215" r="6" fill="%23ff6347"/><rect x="700" y="190" width="85" height="130" fill="%23d2691e" stroke="%23333" stroke-width="3"/><rect x="710" y="200" width="65" height="85" fill="%23fff" stroke="%23333" stroke-width="2"/><polygon points="725,230 742,210 760,230 742,250" fill="%2387ceeb"/><circle cx="742" cy="225" r="7" fill="%23ff69b4"/><circle cx="1050" cy="80" r="30" fill="%23ffeb3b" opacity="0.9"/></svg>');
}

.map-hero {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(210, 105, 30, 0.7)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><linearGradient id="mapSky" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23e0f6ff;stop-opacity:1" /><stop offset="100%" style="stop-color:%23b0e0e6;stop-opacity:1" /></linearGradient></defs><rect width="1200" height="400" fill="url(%23mapSky)"/><polygon points="0,300 300,200 600,180 900,160 1200,140 1200,400 0,400" fill="%23228b22" opacity="0.8"/><polygon points="0,350 400,280 800,260 1200,240 1200,400 0,400" fill="%232e7d32" opacity="0.7"/><circle cx="600" cy="200" r="8" fill="%23ff0000"/><polygon points="600,192 600,208 608,200" fill="%23ff0000"/><path d="M 580 220 Q 600 200 620 220" stroke="%234169e1" stroke-width="3" fill="none"/><circle cx="580" cy="220" r="4" fill="%234169e1"/><circle cx="620" cy="220" r="4" fill="%234169e1"/><rect x="550" y="240" width="100" height="60" fill="%23fff" stroke="%23333" stroke-width="2" rx="10"/><text x="600" y="275" text-anchor="middle" fill="%23333" font-size="14" font-family="Arial">Camp Here!</text><circle cx="200" cy="60" r="25" fill="%23ffeb3b" opacity="0.9"/></svg>');
}

.meals-hero {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(210, 105, 30, 0.7)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><linearGradient id="mealsSky" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23ffefd5;stop-opacity:1" /><stop offset="100%" style="stop-color:%23ffe4b5;stop-opacity:1" /></linearGradient></defs><rect width="1200" height="400" fill="url(%23mealsSky)"/><rect x="100" y="250" width="150" height="100" fill="%23d2691e" stroke="%238b4513" stroke-width="4" rx="10"/><rect x="120" y="270" width="110" height="60" fill="%23fff" stroke="%23333" stroke-width="2"/><ellipse cx="175" cy="300" rx="40" ry="20" fill="%23ffd700"/><ellipse cx="175" cy="300" rx="30" ry="15" fill="%23ff6347"/><rect x="400" y="200" width="80" height="120" fill="%23cd853f"/><ellipse cx="440" cy="210" rx="30" ry="10" fill="%23333"/><rect x="435" y="220" width="10" height="100" fill="%23654321"/><rect x="600" y="230" width="120" height="80" fill="%23daa520" stroke="%23b8860b" stroke-width="3" rx="15"/><circle cx="660" cy="270" r="25" fill="%23ff4500"/><circle cx="660" cy="270" r="15" fill="%23ffa500"/><rect x="900" y="210" width="100" height="110" fill="%23f4a460" stroke="%23d2691e" stroke-width="3" rx="8"/><rect x="910" y="230" width="80" height="70" fill="%23fff8dc"/><circle cx="950" cy="265" r="20" fill="%23ff69b4"/><circle cx="180" cy="80" r="25" fill="%23ffeb3b" opacity="0.9"/></svg>');
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-style: italic;
}

/* Page Content Styling */
.page .container {
    padding: 2rem 20px;
}

/* Specific page content styling for pages with heroes */
#activities-page .container,
#gallery-page .container,
#map-page .container,
#meals-page .container {
    padding-top: 0;
    padding-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

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

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

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

.btn-secondary:hover {
    background-color: #b8581a;
    transform: translateY(-2px);
}

/* Home Page Styles */
.hero-section {
    position: relative;
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(210, 105, 30, 0.7)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="sky" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23e8f4f9;stop-opacity:1" /><stop offset="100%" style="stop-color:%23b8e6ff;stop-opacity:1" /></linearGradient></defs><rect width="1200" height="600" fill="url(%23sky)"/><polygon points="0,400 200,200 400,250 600,150 800,180 1000,120 1200,100 1200,600 0,600" fill="%23228b22" opacity="0.8"/><polygon points="0,450 300,300 500,350 700,250 900,280 1200,200 1200,600 0,600" fill="%232e7d32" opacity="0.7"/><polygon points="0,500 400,400 600,450 800,350 1000,380 1200,300 1200,600 0,600" fill="%23388e3c" opacity="0.6"/><circle cx="100" cy="50" r="30" fill="%23ffeb3b" opacity="0.9"/><polygon points="200,350 230,300 260,350" fill="%231b5e20"/><polygon points="400,400 430,350 460,400" fill="%232e7d32"/><polygon points="600,300 630,250 660,300" fill="%231b5e20"/><polygon points="800,330 830,280 860,330" fill="%232e7d32"/><polygon points="1000,250 1030,200 1060,250" fill="%231b5e20"/></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-motto {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.firebase-notice {
    background-color: rgba(255, 193, 7, 0.9);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1rem;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.firebase-notice p {
    margin: 0;
    color: #333;
}

.features-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background-color: var(--light-bg);
    border: 2px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Tribute Section Styles */
.tribute-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
    border-top: 3px solid var(--accent-color);
}

.tribute-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 600;
}

.tribute-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.tribute-image {
    text-align: center;
}

.portrait-placeholder {
    width: 250px;
    height: 300px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.portrait-placeholder i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.portrait-photo {
    width: 100%;
    height: calc(100% - 2rem);
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.portrait-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.tribute-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.tribute-text p {
    margin-bottom: 1.5rem;
}

.tribute-quote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--secondary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin-top: 2rem;
}

/* Activities Page Styles */
.calendar-section {
    margin-bottom: 3rem;
}

.calendar-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.calendar-day {
    background-color: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid var(--accent-color);
}

.calendar-day h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.day-activities {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.activity-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.activity-slot:hover {
    background-color: var(--accent-color);
}

.time {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.activity {
    color: var(--text-dark);
    font-weight: 500;
}

.activity-description {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.3rem;
    display: block;
}

.no-activities {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 2rem 1rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background-color: var(--light-bg);
}

/* Activity Popup Styles */
.activity-popup {
    position: fixed;
    z-index: 1000;
    max-width: 300px;
    animation: popupFadeIn 0.2s ease;
}

.popup-content {
    background-color: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.popup-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.popup-time {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.popup-description {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background-color: var(--border-color);
    color: var(--text-dark);
}

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

.signup-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.signup-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Form Styles */
.signup-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Row Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Upload Form Styles */
.gallery-upload-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.gallery-upload-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.upload-form {
    max-width: 600px;
    margin: 0 auto;
}

.upload-form input[type="file"] {
    padding: 8px;
    border: 2px dashed var(--secondary-color);
    border-radius: 8px;
    background-color: var(--light-bg);
    cursor: pointer;
}

.upload-form input[type="file"]:hover {
    border-color: var(--primary-color);
    background-color: var(--accent-color);
}

/* Gallery Page Styles */
.years-navigation {
    margin-bottom: 3rem;
}

.years-navigation h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.year-btn {
    padding: 1rem;
    background-color: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-btn:hover,
.year-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.gallery-content {
    min-height: 400px;
}

.gallery-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.gallery-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

.gallery-item {
    aspect-ratio: 1;
    background-color: var(--accent-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
}

.no-photos {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 2rem;
}

/* Photo Modal Styles */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.modal-info {
    padding: 1.5rem;
    text-align: center;
}

.modal-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-info p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Map Page Styles */
.map-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.location-info h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid var(--accent-color);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.info-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Meals Page Styles */
.meals-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.meal-signup-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.meal-signup-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.meal-schedule {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.meal-schedule h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.meal-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.meal-day {
    background-color: var(--light-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid var(--accent-color);
}

.meal-day h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.day-meals {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meal-slot {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.meal-slot.scheduled {
    border-color: var(--secondary-color);
    cursor: pointer;
}

.meal-slot.scheduled:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.meal-slot.available {
    border-style: dashed;
    border-color: var(--border-color);
}

.meal-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.meal-type i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.meal-type span {
    font-weight: 600;
    color: var(--primary-color);
}

.meal-time {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.meal-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.meal-info strong {
    color: var(--text-dark);
    font-size: 1rem;
}

.meal-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.meal-available {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}

/* Meal Popup Styles */
.meal-popup {
    position: fixed;
    z-index: 1000;
    max-width: 300px;
    animation: popupFadeIn 0.2s ease;
}

.popup-cook {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.popup-day-meal {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.popup-notes {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

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

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-motto {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .years-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }

    .tribute-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .meal-calendar-grid {
        grid-template-columns: 1fr;
    }
}

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

    .years-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 0 15px;
    }

    .signup-form {
        padding: 0 1rem;
    }
}

/* Animation for page transitions */
.page {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page.active {
    opacity: 1;
    transform: translateY(0);
}

/* Success message styling */
.success-message {
    background-color: var(--success-color);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Upload status styling */
.upload-status {
    background: #e3f2fd;
    color: #1565c0;
    padding: 15px;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.upload-status p {
    margin: 0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

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