@font-face {
    font-family: 'magazine';
    src: url('../fonts/magazine.otf') format('opentype');
}

@font-face {
    font-family: 'handwritten';
    src: url('../fonts/handwritten.otf') format('opentype');
}

:root {
    --header-color: #6F8FAF;
    --primary-color: #00BF63;
    --secondary-color: #A7C7E7;
    --accent-color: #00BF63;
    --background-color: #cfd9df;
    --background2-color: #ebeff1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'magazine', sans-serif;
    background: var(--background2-color);
}

main {
    margin-top: calc(4rem + 1.5rem); /* header-top height + header-nav height */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Section Styles */
.section-title {
    text-align: center;
    color: white;
    
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-family: 'magazine', sans-serif;
}

/* Why Section */
.why-section {
    padding: 4rem 0;
    position: relative;
    background: none;
    isolation: isolate;
}

.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/they-need-you.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(2px) brightness(0.7);
    z-index: -1;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 300px;
}

.why-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.why-image:hover {
    transform: scale(1.5);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stat-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    width: 100%;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.stat-box h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.stat-box .stat {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--header-color);
    margin: 0.5rem 0;
    font-family: 'magazine', sans-serif;
}

.stat-box p:not(.stat) {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-modal.active .modal-content {
    transform: scale(1);
}

.donation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000;
    backdrop-filter: blur(0px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.donation-modal.show {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.donation-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    width: 500px;
    border: 3px solid var(--primary-color, #007bff);
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.donation-modal.show .donation-modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.modal-close-btn:hover {
    transform: scale(1.1);
}

.modal-close-btn svg {
    width: 24px;
    height: 24px;
    color: #666;
}

.donation-message {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
    line-height: 1.4;
}

.donation-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2rem;
    background-color: var(--primary-color, #007bff);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.donation-cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.heart-icon {
    width: 24px;
    height: 24px;
    color: #ff4d4d;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.heart-icon:hover {
    transform: scale(1.5);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .why-image {
        width: 150px;
        height: 150px;
    }

    .stat-box {
        padding: 1rem;
    }

    .stat-box .stat {
        font-size: 2rem;
    }
}