    /* Custom styles for Anywhere Analysis Professional Drug Screening */

    html {
        scroll-behavior: smooth;
    }

    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Reveal animations - progressive enhancement, only when JS is available */
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        }

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

        /* Staggered delays */
        .reveal-delay-1 { transition-delay: 0.1s; }
        .reveal-delay-2 { transition-delay: 0.2s; }
        .reveal-delay-3 { transition-delay: 0.3s; }
        .reveal-delay-4 { transition-delay: 0.4s; }
    }

    /* Navbar scroll state */
    #navbar.scrolled {
        background: rgba(253, 252, 245, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08);
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #F9F7F0;
    }
    ::-webkit-scrollbar-thumb {
        background: #047857;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #065F46;
    }

    /* Selection color */
    ::selection {
        background: #047857;
        color: #FDFCF8;
    }

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

    /* Smooth image rendering */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    /* Hero card floating animation */
    @media (prefers-reduced-motion: no-preference) {
        .float-slow {
            animation: float-slow 6s ease-in-out infinite;
        }
        .float-medium {
            animation: float-medium 4.5s ease-in-out infinite;
        }
        .float-fast {
            animation: float-fast 3.5s ease-in-out infinite;
        }
    }

    @keyframes float-slow {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-8px); }
    }

    @keyframes float-medium {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-12px); }
    }

    @keyframes float-fast {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-6px); }
    }

    /* Pulse dot animation */
    @keyframes pulse-dot {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.5; transform: scale(1.3); }
    }

    .animate-pulse {
        animation: pulse-dot 2s ease-in-out infinite;
    }

    /* Print styles */
    @media print {
        nav, #contact-form, #form-success, .reveal {
            display: none !important;
        }
        body {
            color: #000;
            background: #fff;
        }
        section {
            page-break-inside: avoid;
        }
    }
