    /* Custom styles for Gelman Vadim Richard MD website */
    
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Selection color */
    ::selection {
        background-color: rgba(201, 168, 76, 0.3);
        color: #0a1628;
    }
    
    /* Service card gradient on hover */
    .service-card {
        position: relative;
        overflow: hidden;
    }
    
    .service-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #c9a84c, #d4b85e);
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }
    
    .service-card:hover::after {
        transform: scaleX(1);
    }
    
    /* Navbar scroll effect */
    .navbar-scrolled {
        background: rgba(10, 22, 40, 0.95) !important;
        backdrop-filter: blur(12px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    }
    
    /* Testimonial card hover */
    .testimonial-card {
        transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    }
    
    .testimonial-card:hover {
        transform: translateY(-4px);
    }
    
    /* Gold accent line animation */
    @keyframes goldShimmer {
        0% { background-position: -200% center; }
        100% { background-position: 200% center; }
    }
    
    /* Fade-in animation for below-fold sections */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Mobile menu animation */
    #mobile-menu {
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 500px;
        }
    }
    
    /* Reduced motion preference */
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }
        .service-card,
        .testimonial-card {
            transition: none;
        }
        .service-card::after,
        .service-card:hover::after {
            transition: none;
            transform: scaleX(0);
        }
    }
    
    /* Focus visible styles */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible {
        outline: 2px solid #c9a84c;
        outline-offset: 2px;
        border-radius: 4px;
    }
    
    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: #0a1628;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #1a3a70;
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #c9a84c;
    }
    
    /* Tablet adjustments */
    @media (max-width: 768px) {
        .font-serif {
            font-size: clamp(1.75rem, 5vw, 2.5rem);
        }
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Print styles */
    @media print {
        nav, #contact-form, .testimonial-card {
            display: none;
        }
        body {
            color: #000;
            background: #fff;
        }
        a {
            color: #000;
        }
    }
