:root {
    --primary-color: #1a5f7a;
    --secondary-color: #57cc99;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.navbar-brand span:first-child {
    font-size: 1.2em;
    letter-spacing: 1.5px;
}

.navbar-brand span:last-child {
    font-size: 0.8em;
    letter-spacing: 3px;
    color: var(--secondary-color);
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 15%;
    border-radius: 2px;
}

.donate-btn {
    background-color: var(--accent-color);
    color: white !important;
    border-radius: 30px;
    padding: 8px 25px !important;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--accent-color);
}

.donate-btn:hover {
    background-color: transparent;
    color: var(--accent-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Social Media Icons */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.social-icon:hover {
    background-color: #333;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: height 0.3s;
}

/* X Icon Custom Styling */
.x-icon {
    font-size: 18px;
    font-weight: 700;
    font-family: Arial, sans-serif;
}

.social-icon-x .x-icon {
    display: inline-block;
    transform: scale(1.1);
}


/* Hero Section Styles with Carousel */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 700px;
    overflow: hidden;
}

.carousel {
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    position: relative;
}

.carousel-bg {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background-color: #074b54;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 3;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.6);
}

/* Carousel Indicators */
.carousel-indicators {
    z-index: 3;
    margin-bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 1);
}

/* Fade Transition */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}


.cta-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Stats Section */
.stats-section {
    background-color: var(--light-color);
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 500;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.section-title {
    color: #000;
    font-weight: 700;
    font-size: 4rem;
    /* Base size for desktop */
    font-style: italic;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}



/* Footer */
.footer-section {
    background-color: #031249;
    /* Dark Navy Blue */
    color: white;
    padding: 80px 0 20px;
    font-size: 15px;
}

.footer-text {
    max-width: 400px;
    line-height: 1.6;
}

.view-map-btn {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.view-map-btn:hover {
    color: var(--secondary-color);
}

.footer-heading {
    color: #4dd0e1;
    /* Cyan/Teal color for heading */
    font-size: 1.5rem;
    font-weight: 500;
}

.contact-list li {
    display: flex;
    align-items: center;
}

.contact-list i {
    width: 20px;
    color: #4dd0e1;
}

.footer-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-btn {
    background-color: #00bcd4;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    display: inline-block;
}

.footer-btn:hover {
    background-color: #00acc1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3);
}

.copyright-area {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-section {
        text-align: center;
        padding-top: 50px;
    }

    .footer-text {
        margin: 0 auto 30px;
    }

    .view-map-btn {
        margin-bottom: 40px;
        display: inline-block;
    }

    .contact-list li {
        justify-content: center;
    }

    .footer-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-heading {
        font-size: 1.3rem;
    }

    .contact-list li {
        font-size: 0.9rem;
    }

    .copyright-area {
        font-size: 12px;
        padding: 0 10px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .navbar-nav {
        text-align: center;
        padding-top: 15px;
        /* Make icons horizontal */
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .nav-link {
        margin: 5px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .hero-section {
        min-height: 600px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 375px) {
    .navbar-brand span:first-child {
        font-size: 1em;
        letter-spacing: 1px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin: 0 3px;
    }
}

/* Projects Section Styles with 3D Cards */
.projects-section {
    padding: 120px 15px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f8f2f2;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1600px;
    width: 100%;
    padding: 20px 10px;
}

/* User's New Card Design Implementation */
.card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

.card-link {
    text-decoration: none;
    display: block;
}

.card-label {
    margin-top: 15px;
    color: #333;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
}

.box {
    position: relative;
    /* Changed from absolute to relative for grid flow */
    width: 300px;
    /* Adjusted from 400px to fit better on standard screens */
    height: 300px;
    /* Adjusted from 400px to keep square aspect */
    background: #00bcd4;
    overflow: hidden;
    margin: 0;
    /* Remove individual margin as wrapper handles it */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    /* Added shadow for depth */
}

.figure {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.figure img {
    width: 100%;
    height: 100%;
    /* Ensure image covers the box */
    object-fit: cover;
    /* Maintain aspect ratio */
    transition: .5s;
}

.box:hover .figure img {
    transform: scale(0);
}

.caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #074b54;
    transform: scale(2);
    opacity: 0;
    transition: .5s;
    display: flex;
    /* Centering content */
    justify-content: center;
    align-items: center;
}

.box:hover .caption {
    transform: scale(1);
    opacity: 1;
}

.about {
    /* Position is relative to the flex container (.caption) now */
    position: relative;
    top: auto;
    transform: none;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
}

.about h2 {
    color: #fff;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    font-size: 24px;
    /* Slightly adjusted font size */
}

.about p {
    color: #fff;
    margin: 15px 0 0;
    padding: 0;
    font-size: 14px;
}

.about small {
    color: #fff;
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    font-weight: bold;
}

a {
    font-size: 16px;
    color: #fff;
}

/* Responsive Adjustments for Cards */
@media (max-width: 768px) {
    .box {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }
}

@media (max-width: 576px) {
    .projects-section {
        padding: 80px 10px 40px;
    }

    .cards-container {
        gap: 20px;
    }

    .card-wrapper {
        margin: 10px;
        width: 100%;
        max-width: 350px;
    }

    .box {
        width: 100%;
        height: 300px;
        /* Keep it square-ish or slightly rectangular */
    }

    .section-title {
        font-size: 2rem;
        /* Reduced for mobile */
        margin-bottom: 30px;
    }
}