/* Custom styles for Upper Allegheny Medical Center */

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

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out forwards;
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #2A5C5C, #1E4646);
    transition: height 0.3s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #2A5C5C !important;
    box-shadow: 0 0 0 3px rgba(42, 92, 92, 0.1) !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2A5C5C;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1E4646;
}

/* Image hover zoom */
.rounded-xl img,
.rounded-2xl img {
    transition: transform 0.5s ease;
}

.rounded-xl:hover img,
.rounded-2xl:hover img {
    transform: scale(1.05);
}

/* Fade in on scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive typography */
@media (max-width: 640px) {
    .font-serif {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    nav,
    #back-to-top,
    .service-card::before {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
