/* Eye-Catching Green Color Palette */
:root {
    --primary: #2ecc71; /* Vibrant green for main elements */
    --secondary: #27ae60; /* Darker green for depth */
    --accent: #e74c3c; /* Bold red for contrast and warmth */
    --light: #f5f6f5; /* Softer light for backgrounds */
    --dark: #2c3e50; /* Deep navy for text and contrast */
    --success: #1abc9c; /* Teal-green for success states */
    --warning: #f1c40f; /* Bright yellow for warnings */
    --info: #3498db; /* Blue for informational elements */
}

/* General Styles */
body {
     font-family: 'Hind', 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}


/* Fixed Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    background-color: var(--primary) !important;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.navbar>.container {
    padding: 0;
    margin-left: 15px;
    margin-right: 15px;
}

.navbar.scrolled {
    padding: 8px 0;
    background-color: rgba(46, 204, 113, 0.95) !important; /* Adjusted for green */
    backdrop-filter: blur(8px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-left: 0;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 35px;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 4px;
    padding: 5px 12px !important;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.navbar-nav {
    gap: 0;
}

.nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    bottom: 5px;
    left: 12px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: calc(100% - 24px);
}

/* Banner Section */
#banners,
#about-banner,
#gallery-banner,
#events-banner,
#causes-banner,
#donate-banner,
#contact-banner {
    margin-top: 70px;
    position: relative;
    height: 600px;
    overflow: hidden;
}

.banner {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: absolute;
    width: 100%;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(46, 204, 113, 0.5), rgba(39, 174, 96, 0.5)); /* Green overlay */
}

.banner-visible {
    opacity: 1;
    z-index: 2;
}

.banner-hidden {
    opacity: 0;
    z-index: 1;
}

.banner-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    line-height: 1.2;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.banner .btn {
    padding: 14px 38px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid white;
    background-color: var(--accent);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.banner .btn i {
    margin-left: 8px;
    transition: all 0.3s ease;
}

.banner .btn:hover {
    background-color: #c0392b; /* Darker red for hover */
    border-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.banner .btn:hover i {
    transform: translateX(3px);
}

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section h2 i {
    color: var(--accent);
    margin-right: 15px;
}

.section-subtitle {
    color: #555;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.card-text {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.7;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .banner h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 992px) {
    .banner h1 {
        font-size: 2.8rem;
    }

    .section {
        padding: 80px 0;
    }

    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .navbar>.container {
        margin-left: 15px;
        margin-right: 15px;
    }

    .banner h1 {
        font-size: 2.4rem;
    }

    .banner p {
        font-size: 1.1rem;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-brand img {
        height: 35px;
    }

    .card-img-top {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .banner h1 {
        font-size: 2rem;
    }

    .banner .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.9rem;
    }

    .section {
        padding: 60px 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand img {
        height: 30px;
        margin-right: 8px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

/* Utility Classes */
.text-accent {
    color: var(--accent) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px !important;
}

.btn-accent:hover {
    background-color: #c0392b; /* Darker red for hover */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(231, 76, 60, 0.3);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 50px 0 15px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--success));
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo-text {
    font-size: 1.1rem;
    font-weight: 600;
}

footer h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    text-align: left;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-social-section {
    text-align: center;
}

.footer-social-section h5 {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social-links li {
    margin: 0;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.85rem;
}

.footer-shape {
    position: absolute;
    opacity: 0.15;
    z-index: 1;
}

.footer-shape-1 {
    top: 15%;
    left: 5%;
    width: 120px;
    height: 120px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background-color: var(--accent);
    animation: float 7s ease-in-out infinite;
}

.footer-shape-2 {
    bottom: 15%;
    right: 5%;
    width: 150px;
    height: 150px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background-color: var(--success);
    animation: float 9s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* For mobile view */
@media (max-width: 768px) {
    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 6px;
    }

    .footer-social-section {
        margin-top: 15px;
    }

    .footer-social-section h5 {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-social-links {
        justify-content: center;
    }
}