    /* Custom styles for Stamford Hospital */

    html {
        scroll-behavior: smooth;
    }

    /* Scroll reveal animations */
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @media (prefers-reduced-motion: no-preference) {
        .scroll-reveal {
            opacity: 0;
            transform: translateY(24px);
        }

        .scroll-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Navbar scroll state */
    #navbar.scrolled {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        box-shadow: 0 1px 20px rgba(112, 26, 117, 0.08);
    }

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

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

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

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

    /* Selection color */
    ::selection {
        background: #f0abfc;
        color: #4a044e;
    }

    /* Input autofill styling */
    input:-webkit-autofill,
    textarea:-webkit-autofill,
    select:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 30px white inset !important;
    }

    /* Smooth image loading */
    img {
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    img[data-src] {
        opacity: 0;
    }

    /* Focus visible for accessibility */
    *:focus-visible {
        outline: 2px solid #d946ef;
        outline-offset: 2px;
        border-radius: 4px;
    }

    /* Mobile menu animation */
    #mobile-menu {
        animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    /* Floating card hover */
    .group:hover .group-hover\:scale-110 {
        transform: scale(1.1);
    }

    /* Gradient text utility */
    .text-gradient {
        background: linear-gradient(135deg, #701a75, #d946ef);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
