/* Custom styles for University Hospital Cardiology */

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

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(26, 32, 44, 0.08);
}

/* Nav links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #f59e0b;
    border-radius: 1px;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 60%;
}

/* Mobile menu */
.mobile-link {
    display: block;
}

/* Scroll animations */
.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate[data-scroll="hidden"] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-animate[data-scroll="hidden"] {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9fb3c8;
}

/* Selection color */
::selection {
    background: #fde68a;
    color: #1a202c;
}

/* Image loading placeholder */
img {
    background-color: #f0f4f8;
}

/* Print styles */
@media print {
    #navbar, #mobileMenu, .scroll-animate {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
