:root {
    --primary: #2e0152; /* Royal Purple */
    --accent: #d4af37;  /* Gold */
    --text: #333;
    --light: #f4f4f4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

.container { max-width: 1100px; margin: auto; padding: 0 20px; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #fff;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-logo { height: 50px; }
.nav-links { display: flex; list-style: none; }
.nav-links li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    margin-left: 25px;
    transition: 0.3s;
}
.nav-links li a:hover { color: var(--accent); }

/* Hero */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1438232992991-995b7058bbb3?q=80&w=2073') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(46, 1, 82, 0.7);
}

.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 4rem; margin-bottom: 10px; }
.hero p { font-size: 1.5rem; margin-bottom: 30px; }

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.btn.primary { background: var(--accent); color: var(--primary); }
.btn.secondary { border: 2px solid #fff; color: #fff; margin-left: 10px; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* Mission/Vision */
.mission-vision { padding: 80px 0; background: var(--light); text-align: center; }
.mission-vision .container { display: flex; gap: 30px; }
.card {
    background: #fff; padding: 40px; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); flex: 1;
}

/* Founder */
.founder-section { padding: 80px 0; }
.founder-flex { display: flex; align-items: center; gap: 50px; }
.founder-img img { width: 100%; max-width: 450px; border-radius: 15px; border-bottom: 8px solid var(--accent); }

/* Giving Section */
.giving-section { padding: 80px 0; background: #fafafa; }
.giving-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.bank-card { background: var(--primary); color: #fff; padding: 30px; border-radius: 10px; }
.amount-selector { margin-bottom: 20px; }
.amount-selector button {
    padding: 10px; margin-right: 5px; cursor: pointer;
    border: 1px solid var(--accent); background: none;
}

/* Forms */
form input, form textarea, form select {
    width: 100%; padding: 12px; margin-bottom: 15px;
    border: 1px solid #ddd; border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .founder-flex, .giving-grid, .mission-vision .container { flex-direction: column; }
}

/* Modal */
.modal {
    display: none; position: fixed; z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
}
.modal-content {
    background: #fff; margin: 10% auto; padding: 30px;
    width: 90%; max-width: 500px; text-align: center; border-radius: 10px;
}
.close-btn { float: right; font-size: 28px; cursor: pointer; }

/* --- Founder / Leadership Section --- */
.founder-section {
    padding: 100px 0;
    background-color: #fff;
}

.founder-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap; /* Ensures responsiveness on smaller screens */
}

.founder-img {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.founder-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--accent); /* Divine Gold offset shadow */
    transition: transform 0.4s ease;
}

.founder-img:hover img {
    transform: scale(1.02);
}

.founder-info {
    flex: 1.5;
    min-width: 300px;
}

.founder-info h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.founder-info h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 600;
}

.founder-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
    text-align: justify;
}

/* --- Annual Programmes Section --- */
.annual-programs {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #4a0282 100%);
    color: #fff;
}

.timeline {
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    border-left: 5px solid var(--accent);
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.timeline-item span {
    font-weight: bold;
    color: var(--accent);
    margin-right: 20px;
    min-width: 80px;
    text-transform: uppercase;
}

/* --- Photo Gallery --- */
.gallery {
    padding: 80px 0;
    background-color: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(80%);
}

/* --- Optimized Contact Section --- */
.contact-section {
    padding: 60px 0;
    background: #fff;
    overflow: hidden; /* Prevents horizontal scroll */
}

.contact-flex {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

#contactForm {
    flex: 1.5;
    background: var(--light);
    padding: 30px;
    border-radius: 15px;
    width: 100%; /* Ensures form takes full width available */
}

/* --- Mobile Specific Fixes --- */
@media (max-width: 768px) {
    .contact-flex {
        flex-direction: column; /* Stacks Info on top of Form */
        gap: 30px;
    }

    #contactForm {
        padding: 20px; /* Reduces padding to save space on small screens */
        flex: none; 
        width: 100%;
    }

    .contact-info {
        text-align: center;
        width: 100%;
    }

    .social-icons {
        justify-content: center; /* Centers icons on mobile */
    }

    /* Ensuring inputs don't zoom in or overflow */
    form input, form textarea {
        font-size: 16px; /* Prevents iOS auto-zoom on focus */
        width: 100%;
        margin-bottom: 15px;
    }

    .contact-info p {
        justify-content: center;
        font-size: 1rem;
    }
}

/* Extra small devices (Phones under 400px) */
@media (max-width: 400px) {
    .contact-section {
        padding: 40px 10px;
    }
    
    #contactForm {
        padding: 15px;
    }

    .btn.primary {
        width: 100%; /* Makes button full width for easier tapping */
    }
}

/* --- Footer --- */
footer {
    background: var(--primary);
    color: #fff;
    padding: 60px 0 20px;
    text-align: center;
    border-top: 4px solid var(--accent);
}

footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

footer strong {
    color: var(--accent);
}

/* --- Weekly Activities Section --- */
.weekly-activities {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.activity-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(46, 1, 82, 0.1);
    border-color: var(--accent);
}

.activity-card h4 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.activity-card p strong {
    color: var(--accent);
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Highlighted Card (Wednesday Fire Mega Service) */
.activity-card.highlighted {
    background: var(--primary);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.activity-card.highlighted h4 {
    color: var(--accent);
}

.special-services {
    margin-top: 60px;
    padding: 30px;
    background: var(--light);
    border-radius: 10px;
    display: inline-block;
}

.special-services p {
    margin: 10px 0;
    font-size: 1.1rem;
    color: var(--primary);
}

/* --- Lightbox / Image Enlarge Styling --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    border: 5px solid #fff;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* --- Real Colorful Social Icons --- */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Official Brand Colors */
.whatsapp { background-color: #25D366; }
.facebook { background-color: #1877F2; }
.youtube  { background-color: #FF0000; }

/* Instagram Gradient - The "Real" Look */
.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Hover Effects */
.icon-box:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #fff; /* Keeps icon white */
}

/* Floating WhatsApp Button for Mobile visibility */
.wa-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
    z-index: 2500;
    transition: 0.3s;
}

.wa-float-btn:hover {
    transform: scale(1.1);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .social-icons {
        justify-content: center;
    }
    .icon-box {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}