/* Custom Styles for Trinity Presbyterian Church */

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

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Navigation Styles */
.nav-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #1e293b;
}

#navbar.scrolled .nav-link:hover {
    color: #0d9488;
}

/* Hero Animations */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

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

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Section Animations */
.about-image {
    animation: fadeInLeft 1s ease-out 0.3s both;
}

.about-content {
    animation: fadeInRight 1s ease-out 0.5s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Services Section Animations */
.services-header {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.service-card {
    animation: fadeInUp 1s ease-out both;
}

.service-card:nth-child(1) {
    animation-delay: 0.3s;
}

.service-card:nth-child(2) {
    animation-delay: 0.5s;
}

.service-card:nth-child(3) {
    animation-delay: 0.7s;
}

/* Community Section Animations */
.community-content {
    animation: fadeInLeft 1s ease-out 0.3s both;
}

.community-images {
    animation: fadeInRight 1s ease-out 0.5s both;
}

/* Visit Section Animations */
.visit-content {
    animation: fadeInLeft 1s ease-out 0.3s both;
}

.visit-map {
    animation: fadeInRight 1s ease-out 0.5s both;
}

/* Contact Section Animations */
.contact-header {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.contact-form-container {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Image Hover Effects */
img {
    transition: transform 0.5s ease;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Focus Styles */
input:focus, textarea:focus {
    outline: none;
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
}

/* Print Styles */
@media print {
    #navbar, .scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
