body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Improved focus states for accessibility */
*:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Better button hover effects */
.btn-primary {
    @apply bg-red-600 text-white py-3 px-6 rounded-full font-semibold hover:bg-red-700 transition-all duration-300 shadow-lg hover:shadow-xl transform hover:scale-105;
}

/* Improved card hover effects */
.card-hover {
    @apply transition-all duration-300 hover:shadow-xl hover:-translate-y-1;
}

/* Adjusted section titles for a cleaner look */
.clean-section-title {
    font-size: 2.75rem; /* larger than before */
    line-height: 1.2;
    font-weight: 800;
    color: #1f2937; /* gray-800 */
    text-transform: uppercase;
    letter-spacing: 0.05em; /* tracking-wider */
    position: relative;
    padding-bottom: 1rem; /* space for underline */
    margin-bottom: 1rem;
}
.clean-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 6rem; /* red line width */
    height: 0.25rem;
    background-color: #dc2626; /* red-600 */
    border-radius: 9999px;
}
.clean-section-subtitle {
    margin-top: 0.75rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #4b5563; /* gray-600 */
}

/* Styles for the scroll reveal effect */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slideshow styles */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}
.slide.active {
    opacity: 1;
    z-index: 2;
}
.slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 3;
    pointer-events: none;
}

/* Hero content styling */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Header scroll effects */
.header-transparent {
    background: transparent !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.header-transparent .nav-link {
    color: white !important;
}
.header-transparent .nav-link:hover {
    color: #fecaca !important; /* light red for hover */
}
.header-solid {
    background: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.header-solid .nav-link {
    color: #4b5563 !important; /* gray-600 */
}
.header-solid .nav-link:hover {
    color: #dc2626 !important; /* red-600 */
}

/* Mobile menu button colors */
.header-transparent #mobile-menu-button {
    color: white !important;
}
.header-solid #mobile-menu-button {
    color: #4b5563 !important; /* gray-600 */
}

/* Social media links in navbar */
.header-transparent .social-link {
    color: white !important;
}
.header-transparent .social-link:hover {
    color: #fecaca !important; /* light red for hover */
}
.header-solid .social-link {
    color: #1f2937 !important; /* gray-800 (black) */
}
.header-solid .social-link:hover {
    color: #dc2626 !important; /* red-600 */
}

/* Pastor image responsive sizing */
.pastor-image {
    width: 200px;
    height: 200px;
}
@media (max-width: 768px) {
    .pastor-image {
        width: 180px;
        height: 180px;
    }
}
@media (max-width: 480px) {
    .pastor-image {
        width: 120px;
        height: 120px;
    }
}

/* Improved section spacing */
.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* Better form styling */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-500 focus:border-red-500 transition duration-200 bg-white;
}

.form-input:focus {
    @apply shadow-lg;
}

/* Improved ministry card styling */
.ministry-card {
    @apply bg-white rounded-xl shadow-lg overflow-hidden group hover:shadow-xl transition-all duration-300 hover:-translate-y-1;
}

.ministry-card img {
    @apply transition-transform duration-300 group-hover:scale-105;
}

/* Better button styling */
.btn-secondary {
    @apply bg-gray-500 text-white py-3 px-8 rounded-full text-lg font-semibold hover:bg-gray-600 transition duration-300;
}

/* Improved text selection */
::selection {
    background-color: #dc2626;
    color: white;
}

/* Better scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}