/* Mobile Navigation (iOS Style) */
.mobile-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    background: #FCE4EC;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: none;
    box-shadow:
        0 -4px 10px rgba(255, 255, 255, 0.9),
        0 -2px 10px rgba(200, 160, 170, 0.15);
    padding: 0.5rem 1rem 1.5rem;
    /* Extra padding for safe area */
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

/* Hide Mobile Menu on Desktop (Laptops > 1150px) */
@media (min-width: 1151px) {
    .mobile-tab-bar {
        display: none !important;
    }
}

/* ... existing styles ... */

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    background: none;
    border: none;
    font-size: 0.7rem;
    gap: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem;
}

/* ... */

/* Mobile Overrides */
@media (max-width: 1150px) {

    /* Hide Standard Nav Elements */
    .hamburger {
        display: none !important;
    }

    .nav-links {
        display: none !important;
    }

    /* Adjust Footer/Content to not be hidden by tab bar */
    body {
        padding-bottom: 80px;
    }

    .scroll-to-top {
        bottom: 90px;
        /* Move up above tab bar */
    }
}

.tab-icon {
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tab-item.active {
    color: #2c3e50;
}

.tab-item.active .tab-icon {
    transform: translateY(-2px);
}

/* Mobile Bottom Sheet */
.mobile-bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    /* Above tab bar (9999) */
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-bottom-sheet.active {
    visibility: visible;
    opacity: 1;
}

.sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #FCE4EC;
    backdrop-filter: blur(20px);
    border-radius: 30px 30px 0 0;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-sheet.active .sheet-content {
    transform: translateY(0);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sheet-header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
}

.close-sheet-btn {
    background: #f0f0f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
}

.sheet-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sheet-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 15px;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

.sheet-link:active {
    transform: scale(0.98);
}

.sheet-link.active {
    background: #FCE4EC;
    /* Light pink background */
    color: #2c3e50;
    /* Darker text */
    border: 1px solid #eec0c8;
    /* Subtle border */
    font-weight: bold;
}

.sheet-link.active .link-icon {
    color: #d81b60;
    /* Accent color for icon */
}

.link-icon {
    font-size: 1.5rem;
}

.link-text {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Mobile Overrides */
@media (max-width: 1150px) {

    /* Hide Standard Nav Elements */
    .hamburger {
        display: none !important;
    }

    .nav-links {
        display: none !important;
    }

    /* Adjust Footer/Content to not be hidden by tab bar */
    body {
        padding-bottom: 80px;
    }

    .scroll-to-top {
        bottom: 90px;
        /* Move up above tab bar */
    }

    /* App Mode: Hide all sections by default */
    header#banner,
    section {
        display: none;
    }

    /* Show active section */
    header#banner.section-active {
        display: flex;
        /* Banner needs flex */
    }

    section.section-active {
        display: block;
        /* Sections need block */
        animation: fadeIn 0.3s ease-out;
    }

    /* Hide scroll indicator in app mode */
    .scroll-indicator {
        display: none;
    }

    /* App-like Sticky Headers */
    /* Unified Mobile Section Titles (Pill Style) */
    .about-section h2,
    .activities h2,
    .gallery-section h2,
    .testimonials-section h2,
    .faq-section h2,
    .contact-section h2,
    section h2 {
        position: relative;
        top: auto;
        z-index: 1;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 0.8rem 2rem;
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        color: #2c3e50;
        font-family: 'Playfair Display', serif;
        font-size: 1.8rem !important;
        margin: 0 auto 2.5rem auto !important;
        display: inline-block;
        width: auto;
        max-width: 90%;
        text-align: center;
        text-shadow: none !important;
    }

    /* Hide underline */
    .about-section h2::after,
    .activities h2::after,
    .gallery-section h2::after,
    .testimonials-section h2::after,
    .faq-section h2::after,
    .contact-section h2::after,
    section h2::after {
        display: none !important;
    }

    /* Adjust section padding for app feel */
    section.section-active {
        padding: 4rem 1.5rem 8rem 1.5rem;
        /* Increased top padding */
        /* Extra bottom padding for tab bar */
        /*min-height: 100vh;*/
        box-sizing: border-box;
        /* Center content vertically */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;

        /* Override min-height for testimonials */
        #testimonials.section-active {
            min-height: auto;
        }

        /* Align to top to respect padding */
    }

    /* Ensure content doesn't get cut off if it's too tall */
    section.section-active>* {
        flex-shrink: 0;
    }

    /* Specific adjustments for sections that shouldn't be centered if they are long */
    section#gallery.section-active,
    section#testimonials.section-active,
    section#faq.section-active,
    section#about.section-active {
        justify-content: flex-start;
        padding-top: 4rem;
        /* Consistent top padding */
    }

    /* Hide Footer in App Mode */
    .lofi-footer {
        display: none !important;
    }

    /* Full Height Banner - Reverted to allow natural height or previous css */
    header#banner.section-active {
        /* height: 100vh;  Removed per user request */
        padding-bottom: 80px;
        /* Space for tab bar */
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* Ensure flex is kept for centering */
    }

    /* Banner CTA Removed */

    /* Prevent text selection for app-like feel */
    .tab-item,
    .sheet-link,
    h2 {
        user-select: none;
        -webkit-user-select: none;
    }
}

/* Global Decorations (Mobile + Desktop) */
.mobile-deco {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

.star-1 {
    top: 15%;
    left: 10%;
    font-size: 2rem;
    color: #f48fb1;
    animation: twinkle 4s ease-in-out infinite;
}

.star-2 {
    bottom: 25%;
    right: 10%;
    font-size: 1.5rem;
    color: #ce93d8;
    animation: twinkle 5s ease-in-out infinite reverse;
}