/* --- Hero Circle Section --- */
.muhibbah-hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    overflow: hidden;
    padding: 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

/* Shared circle styles */
.muhibbah-hero .circle-img {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    transform-origin: center center;
    opacity: 0;
}

/* Circle image animation */
.muhibbah-hero .circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomInOut 6s ease-in-out infinite;
    transform-origin: center center;
}

/* Smooth zoom for the image */
@keyframes zoomInOut {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Border “breathing” effect */
@keyframes circleBreathing {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(15, 102, 60, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px 5px rgba(15, 102, 60, 0.25);
    }
}

/* Slide animations */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(80px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Individual circle positioning and sizing */
.circle-1 {
    width: 330px;
    height: 330px;
    top: 21%;
    left: 8%;
    transform: translateY(-50%);
    border: 7px solid #8dc442;
    animation: slideInLeft 1.2s ease forwards 0s, circleBreathing 6s ease-in-out infinite 1.2s;
}

.circle-2 {
    width: 180px;
    height: 180px;
    top: 10%;
    right: 5%;
    border: 7px solid #0f663c;
    animation: slideInRight 1.2s ease forwards 0.3s, circleBreathing 6s ease-in-out infinite 1.5s;
}

.circle-3 {
    width: 220px;
    height: 220px;
    bottom: 10%;
    right: 8%;
    border: 7px solid #0f663c;
    animation: slideInRight 1.2s ease forwards 0.6s, circleBreathing 6s ease-in-out infinite 1.8s;
}

/* Center logo + tagline */
.hero-center-box {
    text-align: center;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards 1s;
}

/* Logo fade + pop-in */
.hero-logo {
    width: 350px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0;
    transform: scale(0.95);
    animation: fadePop 1s ease forwards 1.2s;
}

/* Tagline fade-in */
.hero-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #212121;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 1.5s;
}

/* Extra keyframes */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadePop {
    to { opacity: 1; transform: scale(1); }
}

/* When hero becomes visible */
.muhibbah-hero.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Only start animations once visible */
.muhibbah-hero:not(.visible) .circle-img,
.muhibbah-hero:not(.visible) .hero-center-box,
.muhibbah-hero:not(.visible) .hero-logo,
.muhibbah-hero:not(.visible) .hero-tagline {
    animation: none !important;
}

/* Remove these animations from initial CSS */
.circle-1,
.circle-2,
.circle-3,
.hero-center-box,
.hero-logo,
.hero-tagline {
    animation: none; /* Start with no animation */
}



/* --- Donation Impact Section --- */
.donation-impact {
    background-color: #fafafa;
    padding: 4rem 2rem;
    text-align: center;
}

.donation-impact h2 {
    font-size: 2rem;
    color: #0f663c;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.impact-intro {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #555;
    line-height: 1.6;
}

/* Box Layout */
.impact-boxes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.impact-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.impact-row:first-child .impact-box {
  flex: 1 1 280px;
  max-width: 300px;
}

.impact-row:last-child .impact-box {
  flex: 1 1 300px;
  max-width: 320px;
}

.impact-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.impact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.impact-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* Text styling */
.impact-box h3 {
    color: #8dc442;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Open Sans', sans-serif;
}

.impact-box p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    font-weight: 500;
}

/* Footer text */
.impact-footer {
    font-family: 'Montserrat', sans-serif;
    margin-top: 3rem;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

/* Scroll animation base state */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

/* Visible state */
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}



/* --- Donation Tracker Section --- */
.donation-tracker {
    padding: 3rem 2rem;
    text-align: center;
    background-color: #fff;

    /* Fade-in animation setup */
    opacity: 0;
    transition: opacity 1s ease-out;
}

.donation-tracker.visible {
    opacity: 1;
}

.donation-tracker h2 {
    color: #212121;
    font-size: 1.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: left;
}

.donation-tracker p {
    color: #212121;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    text-align: left;
}

/* Tracker Cards Container */
.tracker-stats {
    margin: 6rem 0;
    display: flex;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap;
}

/* Individual Tracker Cards */
.tracker-card {
    padding: 2rem 1.5rem;
    border-radius: 15px;
    height: 180px;
    width: 220px;
    text-align: center;
    color: white;
    font-family: 'Open Sans', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* Center content vertically */
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Fade-in animation */
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.tracker-card.visible {
    opacity: 1;
}

.tracker-card h3 {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 500;
}

.tracker-card span {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.2rem;
}

/* Individual color overrides */
.raised-amount {
    color: #c7f368; 
}

.families-helped {
    color: #014f23;
}

.meals-provided {
    color: #c7f368; 
}

/* Color themes */
.dark-green {
    background-color: #066c3c;
}

.light-green {
    background-color: #a8d65c;
}

/* Last Updated Text */
.last-updated {
    margin-top: 2rem;
    font-size: 1rem;
    color: #212121;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
}



/* --- Donate Methods Section --- */
.donation-methods-section {
    background-color: #a8d65c;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    font-family: 'Open Sans', sans-serif;
}

.donation-methods-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 650;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

/* Container for all donation logos */
.donation-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Make all logos uniform in size and aligned */
.donation-methods a {
    display: inline-block;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* smoother transition */
    transform-origin: center center;
}

.donation-methods img {
    width: 180px; 
    height: 100px;     
    object-fit: contain;  
    display: block;
}

/* Hover effects */
.donation-methods a:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); 
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .donation-methods {
        gap: 2rem;
    }
    .donation-methods img {
        width: 140px;
        height: 80px;
    }
}

/* Bank Details Part*/
.bank-details {
    color: #212121;
    text-align: left;
    max-width: 700px;
    margin: 3rem auto;
    font-family: 'Open Sans', sans-serif;
}

.bank-details h3 {
    font-size: 1.8rem;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.bank-card {
    background: #ffffff;
    border-left: 6px solid #8dc442;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 2rem 2.5rem;
    transition: transform 0.3s ease;
}

.bank-card:hover {
    transform: translateY(-5px);
}

.bank-card p {
    font-size: 1.05rem;
    margin: 0.8rem 0;
    color: #333;
    font-weight: 500;
}

.bank-card p strong {
    color: #0f663c;
    font-weight: 600;
}

.bank-card .note {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    line-height: 1.6;
}

.tax-exemption-info {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 800px;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
}

.tax-exemption-info h3 {
    color: #0f663c;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.tax-exemption-info p {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tax-exemption-info ul {
    margin: 1rem 0 1.5rem 2rem;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.6;
}

.tax-exemption-info ul li {
    margin-bottom: 0.5rem;
}

.download-notice {
    text-align: center;
    margin-top: 2rem;
}

.download-btn {
    display: inline-block;
    background-color: #0f663c;
    color: white;
    font-weight: 600;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.download-btn:hover {
    background-color: #0c5231;
    transform: scale(1.05);
}  

/* QR code section */
.bank-extra {
    margin-top: 2rem;
    text-align: center;
}

.bank-extra img {
    width: 180px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.bank-extra p {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}  

/* Other Donation Methods Section */
.other-donations {
    background-color: #ffffff;
    padding: 3rem 2rem;
    text-align: center;
}

.other-donations h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 4rem;
}

.donation-options {
    display: flex;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap;
}

.donation-box {
    background-color: #065c35;
    color: white;
    border-radius: 12px;
    padding: 3rem 2rem;
    width: 360px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem; 
}

.donation-box h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.donation-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-family: 'Open Sans', sans-serif;
}

.donate-button {
    background-color: #e6dcb5;
    color: #000;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.donate-button:hover {
    background-color: #d4c9a0;
}

/* Fade-in effect for scroll sections */
[data-animate] {
    opacity: 0;
    transition: opacity 1s ease-out;
}

[data-animate].visible {
    opacity: 1;
}



/* --- Fullscreen Image Modal --- */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Centered, larger image */
.image-modal-content {
    max-width: 75%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    transition: transform 0.3s ease;
    transform: scale(0.95);
    position: relative;
}

/* Show modal */
.image-modal.show {
    display: flex;
    animation: fadeIn 0.4s ease-out;
}

/* Zoom effect */
.image-modal.show .image-modal-content {
    transform: scale(1);
}

/* Close button — top-right corner of image */
.image-modal-close {
    position: absolute;
    top: calc(50% - 40vh); /* closer vertically */
    right: calc(50% - 20%); /* closer horizontally */
    transform: translate(50%, -50%);
    color: white;
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%; /* perfect circle */
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}
  
.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #8dc442;
    transform: translate(50%, -50%) scale(1.1);
}  
  
/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* Modal Background */
.disclaimer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}


