/* Custom styles for MASOP website */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

.hero-gradient {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

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

.donation-option:hover {
    border-color: #14b8a6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Gallery specific styles */
.gallery-item {
    transition: transform 250ms ease, opacity 250ms ease;
}
.gallery-item.hide {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}
#lightbox {
    display: none;
}
#lightbox.show {
    display: flex;
}
#lightboxClose {
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Lightbox navigation arrows */
#lightboxPrev,
#lightboxNext {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms ease;
}

#lightboxPrev:hover,
#lightboxNext:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Scroll to Top Button */
#scrollToTopBtn {
    animation: slideInRight 300ms ease-out;
}

#scrollToTopBtn.hidden {
    animation: slideOutRight 300ms ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Scroll animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 800ms ease-out, transform 800ms ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for multiple elements */
.fade-in-section:nth-child(1) { transition-delay: 0ms; }
.fade-in-section:nth-child(2) { transition-delay: 100ms; }
.fade-in-section:nth-child(3) { transition-delay: 200ms; }
.fade-in-section:nth-child(4) { transition-delay: 300ms; }

#services,
#actions {
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
}

@media (max-width: 640px) {
    .gallery-item img { height: 10rem; }

    #lightboxPrev,
    #lightboxNext {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Projects section styles */
.rapport-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rapport-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 128, 128, 0.15);
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-tab.active {
    background-color: rgb(13, 148, 136);
    color: white;
}

.project-tab {
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-section.hidden {
    display: none;
}

@media (max-width: 768px) {
    .rapport-card > div:first-child {
        flex-direction: column;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card div:first-child {
        font-size: 1.75rem;
    }
}