/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #1d4ed8;       /* Vibrant Blue */
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary: #f59e0b;     /* Warm Amber for accents */
    
    /* Neutral Colors */
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    
    /* Typography */
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    /* Layout & Spacing */
    --max-width: 1200px;
    --container-px: 2rem;
    --section-py: 5rem;
    
    /* Effects & Transitions */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08), 0 6px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.section {
    padding: var(--section-py) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Typography Utilities */
.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(29, 78, 216, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.23);
    color: white;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    padding: 1rem 0;
}

/* Glassmorphism class added via JS on scroll */
.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 84px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* Visible on light/dark bg */
}

.header.scrolled .logo img {
    filter: none;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 600;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    position: relative;
    padding: 0.5rem 0;
}

.header.scrolled .nav-link {
    color: var(--text-main);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header.scrolled .nav-link.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.header.scrolled .menu-toggle {
    color: var(--text-main);
    text-shadow: none;
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, transform 5s ease-in-out;
    transform: scale(1.05);
    display: flex;
    align-items: center;
    z-index: 1;
}

/* Dark overlay for better text readability */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 800px;
}

.slide-content .subtitle {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary);
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.slide-content .title {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 2rem;
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.slider-indicators {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.indicator {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.indicator.active {
    background: var(--primary);
    width: 40px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.about-img {
    height: 240px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.about-content {
    padding: 3rem 2rem 2rem;
    position: relative;
    text-align: center;
}

.about-icon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
    border: 4px solid white;
}

.about-content h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.about-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    --card-color: var(--primary);
    --card-color-dark: var(--primary-dark);
    
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card.color-blue {
    --card-color: #1d4ed8;
    --card-color-dark: #1e3a8a;
}

.service-card.color-red {
    --card-color: #e11d48;
    --card-color-dark: #881337;
}

.service-card.color-gold {
    --card-color: #f59e0b;
    --card-color-dark: #b45309;
}

.service-card.color-cyan {
    --card-color: #0284c7;
    --card-color-dark: #075985;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--card-color), var(--card-color-dark));
    transition: height 0.4s ease;
    z-index: -1;
    border-radius: var(--radius-lg);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover h3,
.service-card:hover i {
    color: white;
}

.service-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-icon {
    font-size: 5rem;
    color: var(--card-color);
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1);
}

.service-card:hover .service-icon {
    color: white;
}

.service-card h3 {
    font-size: 1.2rem;
    transition: var(--transition);
}

.service-hover {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    color: var(--card-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.service-card:hover .service-hover {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Ministries Section
   ========================================================================== */
.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.ministry-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/5;
    cursor: pointer;
}

.ministry-img {
    width: 100%;
    height: 100%;
}

.ministry-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ministry-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: white;
    transform: translateY(30%);
    transition: transform 0.4s ease;
}

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

.ministry-card:hover .ministry-info {
    transform: translateY(0);
}

.ministry-info h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.ministry-info p {
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
    line-height: 1.4;
    color: #e2e8f0;
}

.ministry-card:hover .ministry-info p {
    opacity: 1;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.info-box {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.info-box h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-muted);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list.times li {
    display: flex;
    justify-content: space-between;
}

.info-list strong {
    color: var(--text-main);
    font-weight: 600;
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--text-main);
    color: var(--text-light);
    padding: 2rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .slide-content .title {
        font-size: 3.5rem;
    }
    
    .about-grid, .services-grid {
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header Mobile Menu */
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        padding: 5rem 2rem;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        z-index: 999;
    }
    
    .nav.open {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-link {
        color: var(--text-main);
        text-shadow: none;
        font-size: 1.2rem;
        display: inline-block;
    }
    
    /* Dark overlay for mobile menu */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }
    
    .menu-overlay.open {
        opacity: 1;
        visibility: visible;
    }
    
    /* Typography Adjustments */
    .section-title {
        font-size: 2rem;
    }
    
    .slide-content .title {
        font-size: 2.8rem;
    }
    
    /* Layout Adjustments */
    .about-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .ministries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Slider Adjustments */
    .slider-controls {
        bottom: 30px;
        right: 20px;
    }
    
    .slider-indicators {
        bottom: 30px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .slide-content .title {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .ministries-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .info-list.times li {
        flex-direction: column;
        gap: 0.2rem;
    }
}
/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--primary);
}

.lightbox-content img {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
}

.lightbox-info {
    padding: 2rem;
    text-align: center;
}

.lightbox-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.lightbox-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2010;
    transition: var(--transition);
}
.lightbox-nav:hover {
    background: var(--primary);
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}
@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
}
/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
    animation: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 2rem;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}

/* Footer Dev Link */
.footer p {
    line-height: 1.8;
}
.footer-divider {
    margin: 0 0.5rem;
    color: var(--text-muted);
}
.dev-link {
    color: var(--secondary);
    font-weight: 600;
    transition: var(--transition);
}
.dev-link:hover {
    color: white;
}
