:root {
    /* Color Palette */
    --maroon: #800020;
    --dark-maroon: #5a0017;
    --light-maroon: #a83232;
    --gold: #d4af37;
    --dark-gold: #b8941f;
    --light-gold: #e6c158;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #2c3e50;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--maroon), var(--dark-maroon));
    --gradient-gold: linear-gradient(135deg, var(--gold), var(--dark-gold));
    --gradient-hero: linear-gradient(135deg, #800020 0%, #5a0017 50%, #33000d 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --gradient-section: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --font-accent: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
    font-size: 16px;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.2rem; }

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.5s ease;
}

.loading-spinner.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner-content {
    text-align: center;
    color: var(--white);
}

.spinner-content i {
    margin-bottom: 1.5rem;
    display: block;
    color: var(--gold);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header Top Bar */
.header-top {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.top-bar-info span {
    margin-right: 2rem;
    display: inline-flex;
    align-items: center;
}

.top-bar-info i {
    margin-right: 8px;
    color: var(--gold);
    font-size: 1rem;
}

.social-icon {
    color: var(--white);
    margin-left: 1.2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.social-icon:hover {
    color: var(--gold);
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background: var(--gradient-primary);
    padding: 1.2rem 0;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: var(--maroon) !important;
}

.brand-logo {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-2px);
}

.brand-logo i {
    font-size: 2.5rem;
    margin-right: 12px;
    color: var(--gold);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-main {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-secondary);
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    margin: 0 0.3rem;
    padding: 0.8rem 1.5rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold) !important;
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.btn-giving {
    background: var(--gradient-gold) !important;
    color: var(--dark-maroon) !important;
    border-radius: 50px;
    padding: 0.8rem 2rem !important;
    font-weight: 700;
    margin-left: 1rem;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.btn-giving:hover {
    background: linear-gradient(135deg, var(--light-gold), var(--gold)) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero), url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?ixlib=rb-4.0.3&w=1200');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
    font-family: var(--font-accent);
}

.hero-verse {
    font-style: italic;
    margin-bottom: 3rem;
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-buttons .btn {
    margin: 0 12px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
}

.btn-hero-primary {
    background: var(--gradient-gold);
    color: var(--dark-maroon);
    border: none;
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, var(--light-gold), var(--gold));
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-hero-outline {
    border: 3px solid var(--gold);
    color: var(--gold);
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-hero-outline:hover {
    background: var(--gold);
    color: var(--dark-maroon);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    color: rgba(255,255,255,0.15);
    font-size: 4rem;
    animation: float 8s ease-in-out infinite;
}

.floating-element:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 65%; left: 85%; animation-delay: 1.5s; }
.floating-element:nth-child(3) { top: 35%; left: 90%; animation-delay: 3s; }
.floating-element:nth-child(4) { top: 75%; left: 12%; animation-delay: 4.5s; }
.floating-element:nth-child(5) { top: 25%; left: 75%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
    }
    33% { 
        transform: translateY(-30px) rotate(5deg) scale(1.1);
    }
    66% { 
        transform: translateY(15px) rotate(-5deg) scale(0.9);
    }
}

/* Section Styles */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 3.2rem;
    color: var(--dark-maroon);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-title .title-decoration {
    width: 120px;
    height: 4px;
    background: var(--gradient-gold);
    margin: 1rem auto 2rem;
    border-radius: 2px;
    position: relative;
}

.section-title .title-decoration::before,
.section-title .title-decoration::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
}

.section-title .title-decoration::before {
    left: -20px;
}

.section-title .title-decoration::after {
    right: -20px;
}

.section-title p {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 2rem auto 0;
    line-height: 1.8;
    font-weight: 400;
}

/* About Section */
.about-section {
    background: var(--gradient-section);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="rgba(128,0,32,0.03)" d="M0,0 L100,0 L100,100 Z"/></svg>');
}

.church-highlight {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.church-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.highlight-icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.about-content h3 {
    font-size: 2.5rem;
    color: var(--dark-maroon);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--gold);
    margin-right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-section);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Visual Elements */
.about-visual {
    position: relative;
}

.photo-frame-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
}

.photo-frame-main:hover {
    transform: rotate(0deg) scale(1.02);
}

.church-visual {
    height: 450px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.church-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* Pastor Cards */
.pastors-grid {
    margin-top: 3rem;
}

.pastor-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    position: relative;
}

.pastor-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.pastor-img {
    height: 320px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.pastor-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.pastor-info {
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.pastor-name {
    font-size: 1.8rem;
    color: var(--dark-maroon);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.pastor-role {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-section);
    border-radius: 25px;
    display: inline-block;
}

/* Schedule Section */
.schedule-section {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.schedule-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon fill="rgba(255,255,255,0.03)" points="50,0 100,50 50,100 0,50"/></svg>') repeat;
    background-size: 200px;
}

.schedule-grid {
    position: relative;
    z-index: 2;
}

.schedule-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.schedule-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
    box-shadow: var(--shadow-lg);
}

.schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-gold);
}

.schedule-icon {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.schedule-day {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.schedule-service {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    opacity: 0.95;
    font-weight: 600;
}

.schedule-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    padding: 0.8rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    display: inline-block;
}

/* Ministries Section */
.ministries-section {
    background: var(--white);
}

.ministry-card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border-left: 6px solid var(--maroon);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.ministry-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--gold);
}

.ministry-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(30px, -30px);
    opacity: 0.1;
    transition: all 0.4s ease;
}

.ministry-card:hover::before {
    transform: translate(10px, -10px) scale(1.2);
}

.ministry-icon {
    font-size: 3.5rem;
    color: var(--maroon);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.ministry-card:hover .ministry-icon {
    color: var(--gold);
    transform: scale(1.1) rotate(5deg);
}

.ministry-card h4 {
    font-size: 1.6rem;
    color: var(--dark-maroon);
    margin-bottom: 1rem;
    font-weight: 700;
}

.ministry-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.ministry-website {
    color: var(--maroon);
    font-weight: 600;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: twinkle 20s linear infinite;
}

@keyframes twinkle {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.cta-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cta-content .lead {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.cta-buttons .btn {
    margin: 0 15px;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 4rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-gold);
}

.footer h5 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer .social-links {
    margin-top: 1rem;
}

.footer .social-links a {
    margin-right: 1rem;
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.4rem; }
    .section-padding { padding: 70px 0; }
    .section-title h2 { font-size: 2.5rem; }
    .church-visual { height: 350px; }
    .pastor-img { height: 280px; }
    .schedule-card { padding: 2rem 1.5rem; }
    .ministry-card { padding: 2.5rem 2rem; }
}

/* Add to existing style.css */

/* Navigation Active States */
.navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.2) !important;
    color: var(--gold) !important;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    background: var(--white);
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--gradient-primary);
    color: var(--white);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--medium-gray);
}

/* Page Specific Utility Classes */
.min-vh-60 {
    min-height: 60vh;
}

.text-light-opacity {
    opacity: 0.8;
}

.border-gold {
    border-color: var(--gold) !important;
}

/* Button Enhancements */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-outline-primary {
    border-color: var(--maroon);
    color: var(--maroon);
}

.btn-outline-primary:hover {
    background: var(--maroon);
    color: var(--white);
}