* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
html{
    scroll-behavior: auto;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing : grayscale;
    transition: transform 0.3s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}
::-webkit-scrollbar{
    width: 10px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #156e93;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover{
    background: #d27d32;
}

/* Header  */
header {
    background: linear-gradient(135deg, #156e93, #19849f);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 0;
    flex-wrap: wrap;
}

.logo {
    cursor: pointer;
    animation: fadeIn 1s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 80px;
}
.logo-name{
    display: flex;
    align-items: start;
    flex-direction: column;
}
.logo-text{
    font-size: 20px;
    letter-spacing: 1px;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.menupages ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.menupages ul a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.menupages ul a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e7a133;
    transition: width 0.3s ease;
}

.menupages ul a:hover::after {
    width: 100%;
}

.menupages ul a:hover {
    color: #e7a133;
}

.donate-btn {
    padding: 12px 35px;
    border: none;
    border-radius: 25px;
    background-color: #d27d32;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(210, 125, 50, 0.3);
}

.donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(210, 125, 50, 0.5);
    background-color: #e7a133;
}

/* Hero Section */
.herosection {
    position: relative;
    overflow: hidden;
}

#heroCarousel {
    position: relative;
    min-height: 90vh;
}

.carousel-inner {
    height: 90vh;
}

.carousel-item {
    height: 90vh;
    position: relative;
}

.carousel-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.carousel-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 56px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    font-weight: 700;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease 0.2s backwards;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.btn-custom {
    display: inline-block;
    padding: 18px 45px;
    background: #d27d32;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease 0.4s backwards;
    box-shadow: 0 6px 20px rgba(210, 125, 50, 0.4);
    border: none;
}

.btn-custom:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(210, 125, 50, 0.6);
    background: #e7a133;
    color: white;
}

#heroCarousel .carousel-control-prev, 
#heroCarousel .carousel-control-next {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: rgba(225, 225, 225, 0.2) !important;
    border: 2px solid white !important;
    top: auto !important;
    bottom: 50px !important;
    transform: none !important;
    opacity: 1 !important;
    backdrop-filter: blur(5px);
    transition : all 0.3s ease !important;
}
#heroCarousel .carousel-control-prev{
    left: 120px !important;
}
#heroCarousel .carousel-control-next{
    right: 120px !important;
}
#heroCarousel .carousel-control-prev:hover, 
#heroCarousel .carousel-control-next:hover{
    background: rgba(210, 125, 50, 0.8);
    transform: scale(1.15) !important;
}
#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon{
    width: 24px !important;
    height: 24px !important;
}

.carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    opacity: 1;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #d27d32;
    width: 40px;
    border-radius: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mission Statement */
.mission-banner {
    background: linear-gradient(135deg, #19849f, #156e93);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.mission-banner h3 {
    font-size: 36px;
    margin-bottom: 20px;
    animation: fadeIn 1s ease;
}

.mission-banner p {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto;
    line-height: 32px;
}

/* Quick Stats */
.quick-stats {
    padding: 80px 20px;
    background: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-box {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease backwards;
    cursor: pointer;
}

.stat-box:nth-child(1) { animation-delay: 0.1s; }
.stat-box:nth-child(2) { animation-delay: 0.2s; }
.stat-box:nth-child(3) { animation-delay: 0.3s; }
.stat-box:nth-child(4) { animation-delay: 0.4s; }

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.stat-box h3 {
    font-size: 48px;
    color: #156e93;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* Featured Programs */
.featured-programs {
    padding: 80px 20px;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: #156e93;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: #666;
    margin-bottom: 60px;
}

.programs-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.program-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    text-align: center;
    animation: fadeInUp 0.8s ease backwards;
}

.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }

.program-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #156e93, #19849f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon {
    transform: rotate(360deg);
}

.program-card h3 {
    font-size: 24px;
    color: #156e93;
    margin-bottom: 15px;
}

.program-card p {
    color: #666;
    line-height: 28px;
    font-size: 16px;
}

/* Donation Cards Section */
.donation-cards-section {
    padding: 80px 20px;
    background: white;
}

.donation-cards-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.donation-card {
    /* background: white; */
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    animation: fadeInUp 0.8s ease backwards;
}

.donation-card:nth-child(1) { animation-delay: 0.1s; }
.donation-card:nth-child(2) { animation-delay: 0.15s; }
.donation-card:nth-child(3) { animation-delay: 0.2s; }
.donation-card:nth-child(4) { animation-delay: 0.25s; }
.donation-card:nth-child(5) { animation-delay: 0.3s; }
.donation-card:nth-child(6) { animation-delay: 0.35s; }
.donation-card:nth-child(7) { animation-delay: 0.4s; }
.donation-card:nth-child(8) { animation-delay: 0.45s; }
.donation-card:nth-child(9) { animation-delay: 0.5s; }
.donation-card:nth-child(10) { animation-delay: 0.55s; }
.donation-card:nth-child(11) { animation-delay: 0.6s; }
.donation-card:nth-child(12) { animation-delay: 0.65s; }
.donation-card:nth-child(13) { animation-delay: 0.7s; }
.donation-card:nth-child(14) { animation-delay: 0.75s; }

.donation-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(21, 110, 147, 0.25);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.donation-card:hover .card-image img {
    transform: scale(1.15);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 110, 147, 0.95), rgba(210, 125, 50, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.donation-card:hover .card-overlay {
    opacity: 1;
    visibility: visible;
}

.card-donate-btn {
    padding: 15px 40px;
    background: white;
    color: #156e93;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transform: translateY(20px);
    opacity: 0;
}

.donation-card:hover .card-donate-btn {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.card-donate-btn:hover {
    background: #d27d32;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.card-content {
    padding: 25px;
    text-align: center;
}

.card-content h3 {
    font-size: 22px;
    color: #156e93;
    margin-bottom: 12px;
    font-weight: 700;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donation-amount {
    font-size: 28px;
    color: #d27d32;
    font-weight: 800;
    margin-bottom: 10px;
}

.donation-desc {
    color: #666;
    font-size: 15px;
    line-height: 24px;
    min-height: 48px;
}

.donation-card.special-project {
    border: 3px solid #156e93;
}

.donation-card.special-project .card-content h3 {
    color: #d27d32;
}

.donation-card.crowdfund {
    border: 3px solid #d27d32;
}

.donation-card.crowdfund .card-content h3 {
    color: #156e93;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #d27d32, #e7a133);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 22px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.cta-btn-primary {
    background: white;
    color: #d27d32;
}

.cta-btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cta-btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.cta-btn-secondary:hover {
    background: white;
    color: #d27d32;
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #156e93, #19849f);
    color: white;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #e7a133;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.9);
    line-height: 28px;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #e7a133;
    padding-left: 5px;
    transition: all 0.3s ease;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #e7a133;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.whatsapp-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.whatsapp-popup.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.popup-header {
    background: linear-gradient(135deg, #25D366, #128C7E);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.popup-avatar {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #25D366;
}

.popup-info h4 {
    color: white;
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.popup-info p {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    margin: 3px 0 0 0;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-popup:hover {
    background: rgba(255,255,255,0.2);
}

.popup-body {
    padding: 20px;
    background: #e5ddd5;
    min-height: 120px;
}

.message-bubble {
    background: white;
    padding: 12px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    max-width: 90%;
}

.message-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

.message-bubble p {
    color: #333;
    font-size: 14px;
    line-height: 20px;
    margin: 5px 0;
}

.message-time {
    font-size: 11px;
    color: #999;
    display: block;
    text-align: right;
    margin-top: 5px;
}

.popup-footer {
    padding: 15px;
    background: white;
}

.start-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.start-chat-btn:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    color: white;
}

.start-chat-btn i {
    font-size: 20px;
}

.whatsapp-button::after {
    content: '1';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .donation-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        order: 3;
    }
    nav{
        position: relative;
    }
    .menupages {
        display: none;
        width: 100%;
        background: linear-gradient(135deg, #156e93, #19849f);
        margin-top: 15px;
        border-radius: 10px;
        position: absolute;
        top: 100%;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .menupages.active {
        display: block;
    }   

    .menupages ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 20px;
    }
    .donate-btn {
        margin-top: 15px;
        display: none;
    }

    .carousel-inner,
    .carousel-item,
    #heroCarousel {
        min-height: 70vh;
        height: 70vh;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .btn-custom {
        padding: 14px 35px;
        font-size: 16px;
    }
    
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 45px !important;
        height: 45px !important;
    }
    
    #heroCarousel .carousel-control-prev {
        left: 15px !important;
    }
    
    #heroCarousel .carousel-control-next {
        right: 15px !important;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .donation-cards-section {
        padding: 60px 15px;
    }
    
    .donation-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .card-image {
        height: 220px;
    }
    
    .card-content h3 {
        font-size: 20px;
        min-height: 50px;
    }
    
    .donation-amount {
        font-size: 24px;
    }
    
    .donation-desc {
        font-size: 14px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    
    .whatsapp-popup {
        width: 280px;
        bottom: 75px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }

    .donation-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-content {
        padding: 20px;
    }
}