/* Custom styles for Johannes Bus Service */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #1a5f5f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #154d4d;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(26, 95, 95, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Service card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a5f5f, #d4a574);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}
.service-card:hover::after {
    transform: scaleX(1);
}

/* Fade-in animation for scroll reveals */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* Gold accent underline */
.gold-underline {
    position: relative;
    display: inline-block;
}
.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #d4a574;
}

/* Pulse animation for hero badge */
@keyframes softPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.animate-pulse-custom {
    animation: softPulse 2s ease-in-out infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in-section {
        opacity: 1;
        transform: none;
    }
    .service-card::after {
        display: none;
    }
    .animate-pulse,
    .animate-pulse-custom {
        animation: none;
    }
}
