html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Navbar scroll effect */
#navbar {
    transition: padding 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Nav Link Click Effect */
nav a {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s, background-color 0.2s;
}

nav a:active {
    transform: scale(0.92);
}

.menu-clicked {
    transform: scale(0.92);
}

/* Hero gradient */
.hero-bg {
    background: linear-gradient(135deg, #eef8f0 0%, #ffffff 50%, #eef8f0 100%);
}

/* Video container */
.video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.13);
    background: #0f172a; /* Slate 900 background to avoid white/blank before load */
}

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.35);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.video-wrap iframe.loaded {
    opacity: 1;
}

/* Card hover */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Gallery overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 90, 44, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Stat counter animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeUp {
    animation: fadeUp 0.6s ease both;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* Donation gradient */
.donation-gradient {
    background: linear-gradient(135deg, #143b20 0%, #1f7035 60%, #2d8c45 100%);
}

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 120s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}