/* Modern Church Website Styles */
:root {
    /* Light theme */
    --primary: #4F6D7A;
    --primary-light: #6D8A97;
    --secondary: #C0D6DF;
    --accent: #E8DAB2;
    --light: #F5F5F5;
    --dark: #333333;
    --text: #333333;
    --text-light: #666666;
    --background: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.85);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Spacing */
    --section-padding: 5rem 1.5rem;
    --container-width: 1200px;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

.dark {
    /* Dark theme */
    --primary: #3A5568;
    --primary-light: #4F6D7A;
    --secondary: #2C3E50;
    --accent: #E8DAB2;
    --light: #1A202C;
    --dark: #F5F5F5;
    --text: #EDF2F7;
    --text-light: #A0AEC0;
    --background: #121826;
    --card-bg: rgba(26, 32, 44, 0.85);
    
    /* Glassmorphism - Dark */
    --glass-bg: rgba(26, 32, 44, 0.25);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 109, 122, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 109, 122, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.logo i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding-bottom: 0.3rem;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

.theme-toggle {
    background: var(--glass-bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 1rem;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1524368535928-5b5e00ddc76b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    z-index: -1;
}

.hero:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(26, 32, 44, 0.8) 0%, rgba(58, 85, 104, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    padding: 2rem;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.1;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Section Styling */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.about-card {
    padding: 2.5rem;
    border-radius: 16px;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Ministries Section */
.ministries-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.ministry-card {
    overflow: hidden;
    border-radius: 16px;
    transition: var(--transition);
}

.ministry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ministry-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.ministry-content {
    padding: 1.5rem;
}

.ministry-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.ministry-meta {
    display: flex;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ministry-meta span {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.ministry-meta i {
    margin-right: 0.3rem;
}

/* Sermons Section */
.sermon-player {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.player-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--primary);
    color: white;
    transition: var(--transition);
    border: none;
}

.control-btn:hover {
    transform: scale(1.05);
    background: var(--primary-light);
}

.sermon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.sermon-item {
    display: flex;
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.sermon-item:hover {
    background: var(--glass-bg);
}

.sermon-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    margin-right: 1rem;
    flex-shrink: 0;
}

.sermon-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.sermon-meta {
    display: flex;
    color: var(--text-light);
    font-size: 0.85rem;
}

.sermon-meta span {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

/* Give Section */
.give-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.give-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.give-option {
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.give-option.active {
    background: var(--primary);
    color: white;
}

.give-option i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.give-form {
    padding: 2.5rem;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 109, 122, 0.2);
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.amount-option {
    padding: 0.8rem;
    text-align: center;
    border-radius: 8px;
    background: var(--glass-bg);
    cursor: pointer;
    transition: var(--transition);
}

.amount-option.active {
    background: var(--primary);
    color: white;
}

/* Contact Section */
/* .contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(79, 109, 122, 0.1);
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
} */

/* Email Button */
/* Add this to your existing CSS */
.contact-alternative {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border-radius: 16px;
    height: 100%;
}

.email-cta {
    text-align: center;
    max-width: 400px;
}

.email-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.email-cta p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.email-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4F6D7A 0%, #3A5568 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(79, 109, 122, 0.25);
}

.email-icon i {
    font-size: 2.5rem;
    color: white;
}

.btn-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #4285F4 0%, #0F9D58 100%);
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-email:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn-email:hover:before {
    transform: translateX(0);
}

.btn-email:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
}

.btn-email:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.btn-email i {
    font-size: 1.3rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .contact-alternative {
        padding: 2rem;
    }
    
    .email-cta {
        max-width: 100%;
    }
}

.map-container {
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: #e9ecef;
}

/* Footer */
footer {
    background: var(--light);
    padding: 5rem 0 2rem;
}

.dark footer {
    background: #0d1117;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    color: var(--text);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 2rem;
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 1rem;
}

.mobile-nav-links a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .give-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .about-grid,
    .ministries-container {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Utility Classes */
.text-primary {
    color: var(--primary);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-light {
    background-color: var(--light);
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.py-1 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-2 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-3 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Admin Link */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.admin-link:hover {
    transform: scale(1.1);
    background: var(--primary-light);
}