    /* Custom styles for Mills Kenneth R DDS */
    
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Selection color */
    ::selection {
        background-color: rgba(4, 120, 87, 0.2);
        color: #064e3b;
    }
    
    /* Scrollbar styling */
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: #fefdf8;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #a7f3d0;
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #6ee7b7;
    }
    
    /* Navbar transitions */
    #navbar {
        transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    }
    
    #navbar.scrolled {
        background-color: rgba(254, 253, 248, 0.95);
        backdrop-filter: blur(12px);
        box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
    }
    
    #navbar.scrolled .nav-link {
        color: #064e3b;
    }
    
    #navbar.scrolled .nav-link:hover {
        color: #047857;
    }
    
    /* Reveal animations - progressive enhancement */
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        }
        
        .reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Staggered delays for grid items */
        .reveal:nth-child(1) { transition-delay: 0.05s; }
        .reveal:nth-child(2) { transition-delay: 0.1s; }
        .reveal:nth-child(3) { transition-delay: 0.15s; }
        .reveal:nth-child(4) { transition-delay: 0.2s; }
        .reveal:nth-child(5) { transition-delay: 0.25s; }
        .reveal:nth-child(6) { transition-delay: 0.3s; }
    }
    
    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        .reveal {
            opacity: 1;
            transform: none;
            transition: none;
        }
        
        html {
            scroll-behavior: auto;
        }
    }
    
    /* Form focus styles */
    input:focus,
    textarea:focus {
        outline: none;
    }
    
    /* Mobile menu animation */
    #mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        opacity: 0;
    }
    
    #mobile-menu.open {
        max-height: 400px;
        opacity: 1;
    }
    
    /* Button ripple effect */
    .nav-link {
        position: relative;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        width: 0;
        height: 2px;
        background: currentColor;
        transition: width 0.3s ease, left 0.3s ease;
    }
    
    .nav-link:hover::after {
        width: 80%;
        left: 10%;
    }
    
    /* Card hover glow */
    .group:hover .rounded-xl {
        transition: background-color 0.3s ease;
    }
    
    /* Image lazy loading fade */
    img[loading="lazy"] {
        transition: opacity 0.5s ease;
    }
    
    /* Print styles */
    @media print {
        #navbar,
        #mobile-menu,
        .reveal {
            display: none !important;
        }
        
        body {
            color: #000;
            background: #fff;
        }
        
        .bg-emerald-900,
        footer {
            background: #fff !important;
            color: #000 !important;
            border-top: 2px solid #000;
        }
    }
