@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* General Body */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #ededed; /* Light gray */
    color: #0d1282; /* Dark blue */
}

/* Navbar */
.navbar {
    background-color: #0d1282; /* Dark blue */
    transition: background-color 0.3s ease;
}

.navbar.sticky {
    background-color: rgba(13, 18, 130, 0.8); /* Transparent dark blue */
    backdrop-filter: blur(10px);
}

.navbar-brand, .navbar-nav .nav-link {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, #0d1282, #ededed);
    color: #ffffff;
    padding: 50px 0;
    text-align: center;
    font-family: 'Lora', serif;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.hero .carousel-item {
    height: 100vh;
    width: 100%;
}

.hero .carousel-item img {
    object-fit: cover;
    height: 100vh;
    width: 100%;
}

.hero .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5); /* Overlay shadow */
    padding: 20px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
}

/* Section Headings */
.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-in-out;
}

/* Mission Section */
.mission-section {
    background-color: #9e9eca; /* Yellow */
    color: #0d1282;
    padding: 30px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mission-section .section-heading {
    font-size: 2rem;
    margin-bottom: 20px;
}

.mission-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.mission-section blockquote {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-left: 5px solid #0d1282;
    border-radius: 5px;
}

.mission-section blockquote p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.mission-section blockquote footer {
    font-size: 1rem;
    color: #555;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary {
    background-color: #d71313; /* Red */
    border-color: #d71313;
}

.btn-primary:hover {
    background-color: #b31111;
    border-color: #b31111;
}

/* Footer */
footer {
    background-color: #0d1282; /* Dark blue */
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .social-icons a {
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer .social-icons a:hover {
    color: #f0de36;
}

/* Icons */
.icon {
    font-size: 24px;
    margin-right: 8px;
}

/* Donations Section */
#donations .icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #0d1282;
}

#donations .card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#donations .card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#donations .card-text {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Work Section */
#works .icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #0d1282;
}

#works .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#works .gallery a {
    flex: 1 1 calc(25% - 10px);
    box-sizing: border-box;
}

#works .gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

#works .gallery img:hover {
    transform: scale(1.05);
}

/* Contact Section */
#contact a {
    color: #0d1282;
    text-decoration: none;
    font-weight: 600;
}

#contact a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .navbar-nav .nav-link {
        font-size: 1rem;
    }

    #works .gallery a {
        flex: 1 1 calc(50% - 10px);
    }
}

/* Modal */
.donation-modal {
    display: none;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Center Section */
.center-section {
    background: url('img/5.jpg') no-repeat center center;
    background-size: cover;
    padding: 60px 0;
    position: relative;
    color: white;
}

.center-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.center-section center {
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#contact .text-center p,
#contact .text-center a {
    animation: slideInUp 1s ease-in-out;
}

#donations .card {
    animation: slideInLeft 1s ease-in-out;
}

#works .gallery a {
    animation: slideInRight 1s ease-in-out;
}

.navbar-brand .logo {
    height: 60px; /* Adjust the height as needed */
    margin-right: 30px;
    vertical-align: middle;
}

#logo {
    background-color: #f8f9fa; /* Light background color */
    padding: 60px 0;
}

#logo .logo {
    max-width: 200px; /* Adjust the size as needed */
    width: 100%;
    height: auto;
}
/* General Navbar Styles */
.navbar {
    background-color: #ffffff; /* White background */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.navbar .nav-link {
    position: relative;
    padding: 10px 15px;
    color: #333333; /* Default text color */
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    display: inline-block;
    text-align: center;
}

/* Hover Effect: Change text color and show circle */
.navbar .nav-link:hover {
    color: #007bff; /* Text color on hover */
}

.navbar .nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 40px;
    height: 40px;
    border: 2px solid #007bff; /* Circle color */
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar .nav-link:hover::before {
    transform: translate(-50%, -50%) scale(1); /* Expand the circle */
    opacity: 1; /* Make the circle visible */
}

/* Hamburger Menu Styles */
.navbar .navbar-toggler {
    border: none;
    background: transparent;
}

.navbar .navbar-toggler .material-icons {
    font-size: 24px;
    color: #ffffff; /* White hamburger menu icon */
    transition: color 0.3s ease;
}

.navbar .navbar-toggler:hover .material-icons {
    color: #007bff; /* Change color of icon on hover */
}

/* Mobile Menu Adjustments */
@media (max-width: 991.98px) {
    .navbar .nav-link {
        padding: 10px 20px;
        text-align: left; /* Align text to the left */
        display: block; /* Full-width items for mobile */
    }

    .navbar .nav-link::before {
        width: 20px;
        height: 20px;
        top: 50%;
        transform: translateY(-50%) translateX(-30px); /* Adjust to align circle with text */
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.close,
.prev,
.next {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
}

.close {
    top: 20px;
    right: 30px;
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

.close:hover,
.prev:hover,
.next:hover {
    color: #ccc;
}


/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
    justify-content: center;
    align-items: center;
}

/* Modal Image (keep aspect ratio intact) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain; /* Ensure the image scales proportionally */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

/* Close, Prev, and Next Buttons */
.close,
.prev,
.next {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
}

.close {
    top: 20px;
    right: 30px;
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

.close:hover,
.prev:hover,
.next:hover {
    color: #ccc;
}
.icon {
    margin-right: 8px;
}