:root {
    --primary-purple: #4A0249;
    --dark-purple: #6B0D6A;
    --light-purple: #8C3F8C;
    --accent-purple: #A855A8;
    --text-dark: #1A1A1A;
    --text-light: #5A5F6B;
    --white: #ffffff;
    --off-white: #F5F0F5;
    --light-gray: #EDE8ED;
    --deep-bg: #1A0A1A;
    --card-glass: rgba(255, 255, 255, 0.85);
    --card-glass-border: rgba(74, 2, 73, 0.12);
    --shadow-sm: 0 4px 15px rgba(74, 2, 73, 0.06);
    --shadow-md: 0 10px 40px rgba(74, 2, 73, 0.10);
    --shadow-lg: 0 20px 60px rgba(74, 2, 73, 0.15);
    --shadow-glow: 0 0 40px rgba(74, 2, 73, 0.20);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 12px;
}

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

/* Smooth scrolling globally */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--off-white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Selection color */
::selection {
    background: var(--primary-purple);
    color: white;
}

::-moz-selection {
    background: var(--primary-purple);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-purple), var(--dark-purple));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-purple);
}

/* ========================================
   Scroll Progress Bar
   ======================================== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple), var(--primary-purple));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    z-index: 99999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(74, 2, 73, 0.5);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========================================
   Back to Top Button
   ======================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 50px rgba(74, 2, 73, 0.4);
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    padding: 12px 0;
    transition: var(--transition-smooth);
    background: transparent;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(74, 2, 73, 0.92);
    padding: 8px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(74, 2, 73, 0.3);
}

.navbar-brand {
    padding: 0;
}

/* --- Logo Styling --- */
.nav-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.navbar.scrolled .nav-logo {
    height: 60px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-circle {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    left: -5px;
}

.logo-triangle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid white;
    position: absolute;
    right: 8px;
}

.logo-text {
    line-height: 1.2;
}

.logo-main {
    display: block;
    color: white;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-tagline {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    font-style: italic;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 10px 18px !important;
    transition: var(--transition-smooth);
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.navbar-nav .nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: white;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero-bg-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1535498730771-e735b998cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    z-index: 0;
    animation: heroZoom 20s infinite alternate ease-in-out;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 10, 26, 0.85) 0%,
        rgba(74, 2, 73, 0.5) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(74, 2, 73, 0.4) 100%
    );
    z-index: 1;
}

/* Animated particles overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(168, 85, 168, 0.4), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(168, 85, 168, 0.3), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(2px 2px at 80% 50%, rgba(168, 85, 168, 0.3), transparent),
        radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(1px 1px at 90% 10%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(168, 85, 168, 0.2), transparent),
        radial-gradient(1px 1px at 30% 90%, rgba(255, 255, 255, 0.1), transparent);
    background-size: 300px 300px;
    animation: particleDrift 25s linear infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes particleDrift {
    from { transform: translateY(0) translateX(0); }
    to { transform: translateY(-300px) translateX(50px); }
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-text {
    padding-top: 80px;
}

.hero-title {
    font-size: 100px;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 4px 30px rgba(74, 2, 73, 0.6);
    background: linear-gradient(135deg, #ffffff 0%, #d4a0d4 50%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 6s ease infinite;
}

@keyframes titleShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.hero-tagline {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    letter-spacing: 2px;
}

.hero-buttons .btn {
    padding: 16px 42px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border: 2px solid var(--primary-purple);
    box-shadow: 0 4px 20px rgba(74, 2, 73, 0.4);
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-purple), var(--accent-purple));
    border-color: var(--dark-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(74, 2, 73, 0.5);
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(5px);
}

.hero-buttons .btn-outline-light:hover {
    background: white;
    color: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

/* Info Card */
.info-card {
    position: absolute;
    bottom: 50px;
    right: 50px;
    background: rgba(26, 10, 26, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 28px 32px;
    border-radius: var(--border-radius-md);
    max-width: 380px;
    z-index: 3;
    border: 1px solid rgba(168, 85, 168, 0.2);
    transition: var(--transition-smooth);
}

.info-card:hover {
    border-color: rgba(168, 85, 168, 0.4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.info-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(74, 2, 73, 0.4);
}

.info-card h5 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.info-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.info-card a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: white;
    text-decoration: underline;
}

/* ========================================
   Shared Section Styles
   ======================================== */

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

/* ========================================
   Mission Section
   ======================================== */

.mission-section {
    padding: 100px 0;
    background: white;
    position: relative;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple), var(--primary-purple));
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-purple);
    margin-bottom: 25px;
    padding: 8px 20px;
    background: rgba(74, 2, 73, 0.08);
    border-radius: 30px;
}

.mission-quote {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 25px;
}

.mission-tagline {
    font-size: 16px;
    color: var(--text-light);
    letter-spacing: 2px;
}

/* ========================================
   Events Section (Home Page)
   ======================================== */

.events-section {
    background: var(--off-white) !important;
}

.event-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    background: white;
    border: 1px solid var(--card-glass-border);
}

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

/* Base style for the image container on Home Page */
.event-image {
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--deep-bg);
}

.event-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    z-index: 1;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.event-card:hover .event-image::before {
    transform: scale(1.08);
    opacity: 0.55;
}

/* Specific Event Images */
.sunday-bg::before,
.sunday-bg.event-detail-header {
    background-image: url('https://images.unsplash.com/photo-1529070538774-1843cb3265df?w=1200&auto=format&fit=crop&q=85') !important;
}

.outreach-bg::before,
.outreach-bg.event-detail-header {
    background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1200&auto=format&fit=crop&q=85') !important;
}

.youth-bg::before,
.youth-bg.event-detail-header {
    background-image: url('https://images.unsplash.com/photo-1523580494863-6f3031224c94?w=1200&auto=format&fit=crop&q=85') !important;
}

.event-date {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.event-date .day {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.event-date .coming-text {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.event-body {
    padding: 30px;
}

.event-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.event-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.event-time {
    font-size: 13px;
    color: var(--primary-purple);
    font-weight: 500;
}

/* ========================================
   Culture Section
   ======================================== */

.culture-section {
    padding: 100px 0;
    background: white;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.culture-card {
    padding: 50px 35px;
    border-radius: var(--border-radius-lg);
    background: var(--off-white);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.culture-card:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(168, 85, 168, 0.3);
}

.culture-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: white;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(74, 2, 73, 0.3);
}

.culture-card:hover .culture-icon {
    background: white;
    color: var(--primary-purple);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(5deg);
}

.culture-card h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    transition: color 0.4s ease;
}

.culture-card:hover h4 {
    color: white;
}

.culture-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
    transition: color 0.4s ease;
}

.culture-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Welcome CTA Section
   ======================================== */

.welcome-cta {
    padding: 120px 0;
    background: linear-gradient(rgba(26, 10, 26, 0.8), rgba(74, 2, 73, 0.7)),
                url('https://images.unsplash.com/photo-1519491050282-cf00c82424ae?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    position: relative;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 2, 73, 0.4), rgba(0, 0, 0, 0.5));
}

.welcome-cta .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 52px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cta-text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.cta-subtext {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.cta-buttons .btn {
    padding: 16px 42px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

.cta-buttons .btn:hover::before {
    left: 100%;
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border: 2px solid var(--primary-purple);
    box-shadow: 0 4px 20px rgba(74, 2, 73, 0.4);
}

.cta-buttons .btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-purple), var(--accent-purple));
    border-color: var(--dark-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(74, 2, 73, 0.5);
}

.cta-buttons .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.7);
}

.cta-buttons .btn-outline-light:hover {
    background: white;
    color: var(--primary-purple);
    transform: translateY(-3px);
}

/* ========================================
   Global .btn-primary (inner pages)
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border: 2px solid var(--primary-purple);
    color: white;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-purple), var(--accent-purple));
    border-color: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 2, 73, 0.35);
    color: white;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--deep-bg);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple), var(--primary-purple));
}

.footer-top {
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h5 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer h6 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--accent-purple);
}

.footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.text-purple {
    color: var(--accent-purple);
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-purple);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-purple);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

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

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-color: var(--primary-purple);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(74, 2, 73, 0.4);
}

/* ========================================
   Page Header (for inner pages)
   ======================================== */
.page-header {
    padding: 180px 0 80px;
    background: linear-gradient(rgba(26, 10, 26, 0.8), rgba(74, 2, 73, 0.7)),
                url('https://images.unsplash.com/photo-1519491050282-cf00c82424b4?w=1920&auto=format&fit=crop&q=85') center/cover;
    text-align: center;
    position: relative;
    image-rendering: -webkit-optimize-contrast;
    animation: headerFadeIn 1.2s ease-out;
}

@keyframes headerFadeIn {
    from { opacity: 0.8; background-position: center 40%; }
    to { opacity: 1; background-position: center 50%; }
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--off-white), transparent);
}

.page-title {
    font-size: 56px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ========================================
   About Page Styles
   ======================================== */

.about-content {
    padding: 80px 0;
}

.story-section {
    margin-bottom: 80px;
}

.story-text h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.story-text p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 20px;
}

.highlight-city {
    color: var(--primary-purple);
    font-weight: 600;
}

.quote-box {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid var(--card-glass-border);
    transition: var(--transition-smooth);
}

.quote-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.quote-box h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-purple);
    margin-bottom: 20px;
}

.quote-box blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

.values-section {
    padding: 80px 0;
    background: var(--off-white);
}

.values-section .section-title {
    text-align: center;
    margin-bottom: 15px;
}

.values-section .section-subtitle {
    text-align: center;
    margin-bottom: 50px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
    border: 1px solid var(--card-glass-border);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(74, 2, 73, 0.15);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 28px;
    color: white;
    box-shadow: 0 6px 20px rgba(74, 2, 73, 0.3);
    transition: var(--transition-smooth);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-card h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.team-section {
    padding: 80px 0;
    background: white;
}

.team-card {
    text-align: center;
    margin-bottom: 40px;
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-image {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(74, 2, 73, 0.3);
    transition: var(--transition-smooth);
}

.team-card:hover .team-image {
    box-shadow: 0 12px 35px rgba(74, 2, 73, 0.4);
    transform: scale(1.05);
}

.team-card h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.location-section {
    padding: 80px 0;
    background: var(--off-white);
}

.location-info {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-glass-border);
}

.location-info h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.location-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.location-item:last-child {
    margin-bottom: 0;
}

.location-item i {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(74, 2, 73, 0.25);
}

.location-item h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.location-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.map-placeholder {
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #e8e0e8, #f0eaf0);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid var(--card-glass-border);
}

.map-placeholder i {
    font-size: 60px;
    color: var(--light-purple);
    margin-bottom: 15px;
}

.map-placeholder p {
    font-size: 16px;
    color: var(--text-light);
}

/* ========================================
   Events Page Styles
   ======================================== */

.events-list {
    padding: 80px 0;
}

.event-detail-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    border: 1px solid var(--card-glass-border);
    transition: var(--transition-smooth);
}

.event-detail-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.event-detail-header {
    padding: 60px 40px;
    position: relative;
    color: var(--white);
    background-color: var(--primary-purple);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    overflow: hidden;
    image-rendering: -webkit-optimize-contrast;
    z-index: 1;
}

.event-detail-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 10, 26, 0.7), rgba(74, 2, 73, 0.5));
    z-index: -1;
}

.event-detail-header > * {
    position: relative;
    z-index: 2;
}

.sunday-bg {
    background-image: url('https://images.unsplash.com/photo-1529070538774-1843cb3265df?w=1200&auto=format&fit=crop&q=85') !important;
}

.outreach-bg {
    background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1200&q=85&auto=format&fit=crop') !important;
}

.youth-bg {
    background-image: url('https://images.unsplash.com/photo-1523580494863-6f3031224c94?w=1200&q=85&auto=format&fit=crop') !important;
}

.prayer-bg {
    background-image: url('https://images.unsplash.com/photo-1544427920-c49ccfb85579?w=1200&q=85&auto=format&fit=crop') !important;
}

.family-bg {
    background-image: url('https://images.unsplash.com/photo-1511895426328-dc8714191300?w=1200&q=85&auto=format&fit=crop') !important;
}

.event-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
}

.event-detail-header h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-meta-item i {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(5px);
}

.event-meta-item span {
    font-size: 14px;
    opacity: 0.9;
}

.event-detail-body {
    padding: 40px;
}

.event-detail-body p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ========================================
   Get Involved Page Styles
   ======================================== */

.involved-content {
    padding: 80px 0;
}

.why-serve {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 80px;
    border: 1px solid var(--card-glass-border);
    position: relative;
    overflow: hidden;
}

.why-serve::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-purple), var(--accent-purple));
}

.why-serve h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.why-serve p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.9;
    margin: 0;
}

.opportunities-section {
    margin-bottom: 80px;
}

.opportunity-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
    border-left: 4px solid var(--primary-purple);
    border-top: 1px solid var(--card-glass-border);
    border-right: 1px solid var(--card-glass-border);
    border-bottom: 1px solid var(--card-glass-border);
}

.opportunity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-purple);
}

.opportunity-card h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.opportunity-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.opportunity-time {
    display: inline-flex;
    align-items: center;
    background: var(--off-white);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    color: var(--primary-purple);
    font-weight: 500;
}

.opportunity-time i {
    margin-right: 8px;
}

/* ========================================
   Give Page Styles
   ======================================== */

.give-content {
    padding: 80px 0;
}

.verse-section {
    text-align: center;
    margin-bottom: 80px;
}

.verse-box {
    background: white;
    padding: 60px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--card-glass-border);
    position: relative;
    overflow: hidden;
}

.verse-box::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(74, 2, 73, 0.06);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.verse-box blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
}

.verse-box cite {
    font-size: 14px;
    color: var(--primary-purple);
    font-style: normal;
    font-weight: 600;
}

.giving-options {
    margin-bottom: 80px;
}

.giving-card {
    background: white;
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-smooth);
    height: 100%;
    border: 1px solid var(--card-glass-border);
}

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

.giving-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 36px;
    color: white;
    box-shadow: 0 8px 25px rgba(74, 2, 73, 0.3);
    transition: var(--transition-smooth);
}

.giving-card:hover .giving-icon {
    transform: scale(1.1) rotate(-5deg);
}

.giving-card h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.giving-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.giving-card .btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

/* ========================================
   Contact Page Styles
   ======================================== */

.contact-content {
    padding: 80px 0;
}

.contact-info-card {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
    border: 1px solid var(--card-glass-border);
}

.contact-info-card h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-info-card > p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(74, 2, 73, 0.25);
}

.contact-item h6 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-purple);
}

.contact-form-card {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
    border: 1px solid var(--card-glass-border);
}

.contact-form-card h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-control {
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    transition: var(--transition-smooth);
    background: var(--off-white);
}

.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(74, 2, 73, 0.08);
    background: white;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: white;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    transition: var(--transition-smooth);
    width: 100%;
    position: relative;
    overflow: hidden;
}

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

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--dark-purple), var(--accent-purple));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 2, 73, 0.35);
    color: white;
}

.map-section {
    padding: 80px 0;
    background: var(--off-white);
}

.map-section h3 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.map-container {
    height: 450px;
    background: linear-gradient(135deg, #e8e0e8, #f0eaf0);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid var(--card-glass-border);
}

.map-container i {
    font-size: 80px;
    color: var(--light-purple);
    margin-bottom: 20px;
}

.map-container p {
    font-size: 18px;
    color: var(--text-light);
}

/* ========================================
   Hero Text Animations
   ======================================== */

.animate-up, .animate-up-delay-1, .animate-up-delay-2, .animate-up-delay-3 {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.9s ease-out forwards;
}

.animate-up-delay-1 { animation-delay: 0.25s; }
.animate-up-delay-2 { animation-delay: 0.5s; }
.animate-up-delay-3 { animation-delay: 0.75s; }

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

/* ========================================
   Scroll Reveal
   ======================================== */

.event-card, .culture-card, .value-card, .opportunity-card, .giving-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ========================================
   Image Clarity Fixes
   ======================================== */
img {
    image-rendering: high-quality;
    backface-visibility: hidden;
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 1199px) {
    .hero-title {
        font-size: 70px;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 56px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .info-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 40px auto 0;
        max-width: 100%;
    }

    .mission-quote {
        font-size: 32px;
    }

    .page-title {
        font-size: 42px;
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    .quote-box {
        padding: 30px;
    }

    .quote-box blockquote {
        font-size: 22px;
    }

    .why-serve {
        padding: 30px;
    }

    .verse-box {
        padding: 40px 30px;
    }

    .verse-box blockquote {
        font-size: 22px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 30px;
    }

    .nav-logo {
        height: 60px;
    }

    .navbar.scrolled .nav-logo {
        height: 50px;
    }
}

@media (max-width: 767px) {
    .navbar-nav {
        background: rgba(26, 10, 26, 0.95);
        padding: 20px;
        border-radius: var(--border-radius-md);
        margin-top: 15px;
        backdrop-filter: blur(20px);
    }

    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }

    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }

    .section-title {
        font-size: 28px;
    }

    .mission-quote {
        font-size: 24px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }

    .page-title {
        font-size: 32px;
    }

    .page-header {
        padding: 140px 0 60px;
    }

    .event-detail-header {
        padding: 30px;
    }

    .event-detail-header h3 {
        font-size: 24px;
    }

    .event-meta {
        flex-direction: column;
        gap: 15px;
    }

    .event-detail-body {
        padding: 30px;
    }

    .giving-card {
        padding: 30px;
    }

    .opportunity-card {
        padding: 30px;
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .culture-card {
        padding: 30px 20px;
    }

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

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-links li {
        margin: 0;
    }

    .nav-logo {
        height: 55px;
    }
}