html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

:root {
    --primary-navy: #0A1A3F;
    --darker-navy: #061230; /* Added darker shade for depth */
    --primary-gold: #FFD700;
    --accent-yellow: #FFF4B8;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --hero-overlay: rgba(6, 18, 48, 0.95); /* Adjusted to match logo background */
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    padding: 3rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Navigation */
.navbar {
    background-color: rgba(10, 26, 63, 0.95);
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1.1rem;
}

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

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

/* Hero Section */
.hero {
    background-color: var(--darker-navy);
    color: var(--white);
    min-height: 100vh;
    padding: 20px 0 50px;
    text-align: center;
    background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.church-name-wrapper {
    width: 100%;
    background: linear-gradient(to bottom,
        transparent,
        var(--darker-navy) 15%,
        var(--darker-navy) 85%,
        transparent
    );
    padding: 3rem 0;
    margin-top: -5rem;
    position: relative;
}

.church-name-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right,
        transparent,
        var(--darker-navy) 15%,
        var(--darker-navy) 85%,
        transparent
    );
    z-index: 1;
}

.church-name {
    width: 100%;
    max-width: 1400px;
    height: auto;
    min-height: calc(3rem * 2.4);
    margin: 0 auto;
    display: block;
    object-fit: contain;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    filter: brightness(1.05) contrast(1.05) drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
    -webkit-filter: brightness(1.05) contrast(1.05) drop-shadow(2px 2px 4px rgba(0,0,0,0.1)) 
                   sepia(0.2) saturate(1.2) hue-rotate(2deg);
}

.church-name:hover {
    filter: brightness(1.2) contrast(1.1) drop-shadow(2px 2px 6px rgba(255, 215, 0, 0.3));
    -webkit-filter: brightness(1.2) contrast(1.1) drop-shadow(2px 2px 6px rgba(255, 215, 0, 0.3))
                   sepia(0.2) saturate(1.2) hue-rotate(2deg);
    transition: filter 0.3s ease;
}

@media (max-width: 768px) {
    .church-name-wrapper {
        margin-top: -4rem;
        padding: 2rem 0;
    }
    
    .church-name {
        max-width: 1000px;
        min-height: calc(2.5rem * 2.4);
        padding: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .church-name-wrapper {
        margin-top: -3rem;
        padding: 1.5rem 0;
    }
    
    .church-name {
        max-width: 700px;
        min-height: calc(2rem * 2.4);
        padding: 0 0.5rem;
    }
}

.hero-flex-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    margin-top: 2rem;
}

.service-container {
    background-color: var(--darker-navy);
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 20px rgba(10, 26, 63, 0.3);
    margin-top: -2.75rem;
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    .service-container {
        margin-top: -2.25rem;
    }
}

@media (max-width: 480px) {
    .service-container {
        margin-top: -1.75rem;
    }
}

.service-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    min-width: 220px;
    background-color: #FFD700;
    color: #0A1A3F;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button i {
    font-size: 1.2rem;
}

.watch-btn {
    background-color: #FFD700;
    color: #0A1A3F;
}

.join-btn {
    background-color: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.service-times-compact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    background-color: var(--darker-navy);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.time-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 180px;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--white);
    margin: 1rem 0;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.time-slot:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.time-slot i {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.time-text {
    color: #FFD700;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.service-name {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    line-height: 1.2;
    font-weight: 500;
}

.service-buttons .cta-button {
    background-color: var(--darker-navy);
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    transition: all 0.3s ease;
}

.service-buttons .cta-button:hover {
    background-color: var(--primary-gold);
    color: var(--darker-navy);
}

/* Welcome Message */
.welcome-message {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.scripture-quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    border-left: 4px solid #FFD700;
    border-right: 4px solid #0A1A3F;
    background: linear-gradient(to right, rgba(255, 215, 0, 0.05), rgba(10, 26, 63, 0.05));
    border-radius: 8px;
}

.scripture-quote::before,
.scripture-quote::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #FFD700, #0A1A3F);
}

.scripture-quote::before {
    top: 0;
}

.scripture-quote::after {
    bottom: 0;
}

.scripture-quote h2 {
    font-size: 2rem;
    color: var(--primary-navy);
    line-height: 1.4;
    margin-bottom: 1rem;
    font-style: italic;
}

.scripture-quote p {
    font-size: 1.1rem;
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .welcome-message {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .scripture-quote h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .welcome-message {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .scripture-quote h2 {
        font-size: 1.5rem;
    }
}

/* Leadership Section */
.leadership {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
    border-left: 3px solid rgba(10, 26, 63, 0.1);
    border-right: 3px solid rgba(10, 26, 63, 0.1);
}

.leadership::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

.leadership .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.leadership h2 {
    text-align: center;
    color: #0A1A3F;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
}

.leadership-tier {
    margin-bottom: 3rem;
    display: grid;
    gap: 1.5rem;
}

/* Senior Leadership - 2 columns */
.senior-leadership {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* Executive Leadership - 3 columns */
.executive-leadership {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 3rem;
}

/* Ministry Leadership - 3 columns */
.ministry-leadership {
    grid-template-columns: repeat(3, 1fr);
}

/* Ministers - 4 columns */
.ministers {
    grid-template-columns: repeat(4, 1fr);
}

.leader-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(10, 26, 63, 0.1);
    border-bottom: 3px solid #FFD700;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.leader-content {
    padding: 1.5rem;
    text-align: center;
}

/* Senior Leadership Style */
.leader-card.senior {
    background: linear-gradient(135deg, #0A1A3F 0%, #152a5c 100%);
    border: 2px solid #FFD700;
}

.leader-card.senior h3 {
    color: #FFD700;
    font-size: 1.5rem;
}

.leader-card.senior .leader-title {
    color: rgba(255, 255, 255, 0.9);
}

/* Executive Leadership Style */
.leader-card.executive {
    background: #f8f9fa;
    border: 1px solid rgba(10, 26, 63, 0.1);
}

.leader-card.executive h3 {
    color: #0A1A3F;
}

/* Ministry Leadership Style */
.leader-card.ministry {
    background: #fff;
    border: 1px solid rgba(10, 26, 63, 0.1);
}

/* Ministers Style */
.leader-card.minister {
    background: #f8f9fa;
    border: 1px solid rgba(10, 26, 63, 0.1);
}

.leader-card h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: #0A1A3F;
}

.leader-title {
    color: rgba(10, 26, 63, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
    border-left: 3px solid rgba(10, 26, 63, 0.1);
    border-right: 3px solid rgba(10, 26, 63, 0.1);
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

.gallery .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery h2 {
    text-align: center;
    color: #0A1A3F;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: #0A1A3F;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.large {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

/* Special handling for portrait images */
.gallery-item[data-image="worship"],
.gallery-item[data-image="youth"],
.gallery-item[data-image="fellowship"] {
    aspect-ratio: 3/4;
    height: 400px;
}

.gallery-item[data-image="worship"] img,
.gallery-item[data-image="youth"] img,
.gallery-item[data-image="fellowship"] img {
    object-fit: cover;
    object-position: top center;
    height: 100%;
    width: 100%;
}

/* Media query adjustments for portrait images */
@media (max-width: 768px) {
    .gallery-item[data-image="worship"],
    .gallery-item[data-image="youth"],
    .gallery-item[data-image="fellowship"] {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .gallery-item[data-image="worship"],
    .gallery-item[data-image="youth"],
    .gallery-item[data-image="fellowship"] {
        height: 300px;
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-item.large {
        grid-column: auto;
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .gallery {
        padding: 60px 0;
    }

    .gallery h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .gallery-grid {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light-gray);
    position: relative;
    border-left: 3px solid rgba(10, 26, 63, 0.1);
    border-right: 3px solid rgba(10, 26, 63, 0.1);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-info i {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-right: 1rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    padding: 1rem;
    background-color: var(--primary-navy);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--primary-gold);
    color: var(--primary-navy);
}

/* Footer */
footer {
    background-color: var(--darker-navy);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 4rem;
    padding: 2rem 0;
}

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

.footer-section h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.links-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.links-column a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0.25rem 0;
}

.links-column a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.social-link {
    color: var(--white);
    font-size: 1.75rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding: 1.5rem 0;
    }

    .footer-links {
        gap: 2rem;
    }

    .social-links {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .links-column {
        gap: 0.5rem;
        align-items: center;
    }

    .links-column a:hover {
        transform: translateX(0) scale(1.1);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .ministers {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .leadership {
        padding: 60px 0;
    }

    .senior-leadership,
    .executive-leadership,
    .ministry-leadership {
        grid-template-columns: repeat(2, 1fr);
    }

    .leadership h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 2rem;
    }
    
    section {
        border-left: 2px solid rgba(10, 26, 63, 0.1);
        border-right: 2px solid rgba(10, 26, 63, 0.1);
    }
}

@media (max-width: 480px) {
    .senior-leadership,
    .executive-leadership,
    .ministry-leadership,
    .ministers {
        grid-template-columns: 1fr;
    }

    .leader-card.senior h3 {
        font-size: 1.3rem;
    }

    .leader-card h3 {
        font-size: 1.1rem;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    margin-left: auto;
}

@media (max-width: 1024px) {
    .hero-flex-container {
        flex-direction: column;
        align-items: center;
    }

    .service-container {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 50px;
    }

    .service-container {
        padding: 1.5rem;
    }

    .service-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
    }

    .nav-container {
        justify-content: flex-end;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--primary-navy);
        padding: 1rem 0;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .service-times-compact {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .time-slot {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .time-slot i {
        margin-bottom: 0;
        min-width: 24px;
    }

    .time-text {
        margin-bottom: 0;
        min-width: 80px;
        text-align: right;
    }

    .service-name {
        text-align: left;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .service-container {
        margin-top: -3rem;
    }
}

@media (max-width: 480px) {
    .service-container {
        margin-top: -2.5rem;
    }
}
