:root {
    --primary-color: #ffffff;
    --secondary-color: #a3b8cc;
    --accent-color: #3b82f6;
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-glow: 0 0 20px rgba(255, 255, 255, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    background-color: #0f172a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* Background setup */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
    transform: scale(1.05); /* Slight zoom for potential parallax or just to cover */
    transition: transform 0.1s ease-out;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.7) 0%,
        rgba(15, 23, 42, 0.95) 100%
    );
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 900px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.logo.subtitle {
    margin-top: 1rem;
    margin-bottom: 0;
}

.logo.subtitle span {
    font-size: 1rem;
    letter-spacing: 4px;
}

h1.glow-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: var(--text-glow);
    position: relative;
    display: inline-block;
}

h1.glow-text::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Info Pills */
.info-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    width: 100%;
    margin-top: 1rem;
}

.pill {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, background 0.3s ease;
}

.pill:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(25, 33, 52, 0.6);
}

.pill i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.pill-pastor-single {
    flex-direction: row;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    gap: 1.25rem;
}

.pill-pastor-single.expanded {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
}

.pill-pastor-single .avatar-large {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--glass-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.pill-pastor-single:hover .avatar-large {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.pill-pastor-single.expanded .avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transform: scale(1);
}

.pill-text {
    display: flex;
    flex-direction: column;
}

.pill-text .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 1px;
    font-weight: 600;
}

.pill-text .value {
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 2px;
}

/* Content Section */
.content {
    width: 100%;
    margin-bottom: 5rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        800px circle at var(--x, 50%) var(--y, 50%),
        rgba(255, 255, 255, 0.04),
        transparent 40%
    );
    z-index: -1;
    transition: opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    color: var(--primary-color);
    opacity: 0.85;
}

.glass-card p.highlight {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.conclusion {
    margin-top: 3.5rem;
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid var(--glass-border);
}

.quote {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem !important;
    font-weight: 800;
    color: var(--primary-color) !important;
    font-style: italic;
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
}

/* Footer */
footer {
    text-align: center;
    width: 100%;
    padding-bottom: 2rem;
}

footer p, .section-title {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    text-align: center;
}

.social-section {
    width: 100%;
    margin-bottom: 4rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.social-btn:hover::before {
    transform: translateX(100%);
}

.social-btn:hover {
    background: var(--primary-color);
    color: #0f172a;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.2);
}

.social-btn i {
    font-size: 1.25rem;
}

.address-container {
    margin-bottom: 2rem;
}

.address-text {
    font-size: 1.05rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.address-text:hover {
    color: var(--accent-color) !important;
}

.address-text i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.copyright-container {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.copyright-text {
    font-size: 0.85rem !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    color: var(--secondary-color) !important;
    margin-bottom: 0 !important;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }
    
    .glass-card {
        padding: 2.5rem 1.5rem;
    }
    
    .info-pills {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pill {
        justify-content: flex-start;
    }
    
    .social-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Light Theme Styles */
body.light-theme {
    --primary-color: #0f172a;
    --secondary-color: #334155;
    --accent-color: #1d4ed8;
    --glass-bg: rgba(203, 213, 225, 0.65); /* Soft slate-300 glass */
    --glass-border: rgba(0, 0, 0, 0.15);
    --text-glow: none;
}

body.light-theme .background-overlay {
    background: linear-gradient(to bottom, rgba(148, 163, 184, 0.95) 0%, rgba(148, 163, 184, 0.98) 100%); /* Soft slate-400 (grayish blue), very soothing, not bright */
}

.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.theme-toggle .fa-sun {
    color: #fbbf24;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
}

.theme-toggle .fa-moon {
    color: #1e3a8a;
}

@media (hover: hover) {
    .theme-toggle:hover {
        transform: scale(1.1);
        background: var(--accent-color);
    }

    .theme-toggle:hover .fa-sun,
    .theme-toggle:hover .fa-moon {
        color: #ffffff;
        filter: none;
    }
}

/* Theme Transition properties for smooth color change */
body, .background-overlay, .pill, .glass-card, .social-btn, p, span, h1, i {
    transition-property: background-color, color, border-color, background, transform, box-shadow;
    transition-duration: 0.4s;
}

/* Ministries Section */
.ministries-card {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.ministry-img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.zoom-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-overlay i {
    color: white;
    font-size: 2.5rem;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.ministries-card:hover .ministry-img {
    transform: scale(1.05);
}

.ministries-card:hover .zoom-overlay {
    opacity: 1;
}

.ministries-card:hover .zoom-overlay i {
    transform: scale(1);
}

.zoom-hint {
    margin-top: 1.2rem !important;
    margin-bottom: 0 !important;
    font-size: 0.95rem !important;
    color: var(--secondary-color) !important;
    text-align: center;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.lightbox-content {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    object-fit: contain;
    transform: scale(0.9);
    animation: zoomIn 0.3s ease forwards;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close-btn:hover {
    color: var(--accent-color);
}

@keyframes zoomIn {
    to { transform: scale(1); }
}
