/* =====================
   CSS RESET & BASE STYLES
   ===================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================
   TYPOGRAPHY
   ===================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* =====================
   BUTTONS
   ===================== */

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* =====================
   NAVIGATION BAR
   ===================== */

.navbar {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 100%;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand-icon {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -8px);
}

/* =====================
   SECTIONS
   ===================== */

section {
    padding: 80px 0;
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.about {
    background-color: white;
    text-align: center;
}

.about h2 {
    color: #333;
    margin-bottom: 2rem;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    color: #007bff;
    margin-bottom: 1rem;
}

.cofounders {
    margin-top: 3rem;
}

.cofounders h3 {
    color: #333;
    margin-bottom: 1.5rem;
}

.team-members {
    margin-top: 2.5rem;
}

.team-members h3 {
    color: #333;
    margin-bottom: 1.5rem;
}

.program-coordinator {
    margin-top: 2.5rem;
}

.program-coordinator h3 {
    color: #333;
    margin-bottom: 1.5rem;
}

.coordinator-grid {
    display: grid;
    grid-template-columns: minmax(180px, 240px);
    justify-content: center;
}

.center-coordinators {
    margin-top: 2.5rem;
}

.center-coordinators h3 {
    color: #333;
    margin-bottom: 1.5rem;
}

.center-block {
    max-width: 900px;
    margin: 0 auto;
}

.center-block h4 {
    color: #007bff;
    margin-bottom: 1rem;
}

.cofounder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.cofounder-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cofounder-card img {
    width: min(100%, 170px);
    aspect-ratio: 4 / 5;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    margin-bottom: 0.9rem;
    border: 3px solid #007bff;
}

.photo-placeholder {
    width: min(100%, 170px);
    aspect-ratio: 4 / 5;
    margin: 0 auto 0.9rem;
    border-radius: 14px;
    border: 3px dashed #9cbce4;
    background-color: #eef4fb;
}

.cofounder-card p {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.services {
    background-color: #f8f9fa;
    text-align: center;
}

.services h2 {
    margin-bottom: 2rem;
    color: #333;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    color: #007bff;
}

.service-item h3 {
    color: #007bff;
    margin-bottom: 1rem;
}

.contact {
    background-color: white;
    text-align: center;
}

.contact h2 {
    margin-bottom: 2rem;
    color: #333;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

/* =====================
   GALLERY
   ===================== */

.gallery {
    background-color: #f8f9fa;
    text-align: center;
    padding: 60px 0;
}

.gallery h2 {
    margin-bottom: 1rem;
    color: #333;
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(0);
    transition: transform 0.4s ease;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(100%);
}

.gallery-overlay h3 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
}

/* =====================
   DONATIONS
   ===================== */

.donations {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.donations h2 {
    color: white;
    margin-bottom: 1rem;
}

.donations-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.donation-cta {
    max-width: 600px;
    margin: 0 auto;
}

.donation-highlight {
    background-color: rgba(255, 255, 255, 0.12);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.donation-amounts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.amount-tag {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.donation-highlight p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn-donate {
    display: inline-block;
    background-color: white;
    color: #667eea;
    padding: 16px 48px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-donate:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #667eea;
}

/* Donate Modal Overlay */
.donate-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.donate-modal-overlay.active {
    display: flex;
}

.donate-modal {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.donate-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.donate-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 1.8rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
}

.donate-modal-close:hover {
    background: rgba(0, 0, 0, 0.85);
}

/* =====================
   FOOTER
   ===================== */

.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0;
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: 0;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 50px 0;
    }

    .features,
    .service-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .zeffy-embed-wrapper iframe {
        height: 700px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    section {
        padding: 30px 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
