    /* Custom Styles for Pearland Bookkeeping & Tax Services */

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

    /* Custom Scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #f0fdf4;
    }
    ::-webkit-scrollbar-thumb {
        background: #166534;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #15803d;
    }

    /* Selection Color */
    ::selection {
        background: #d4a574;
        color: #064e3b;
    }

    /* Scroll Reveal Animations */
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

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

        /* Staggered delays for grid items */
        .grid > .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
        .grid > .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
        .grid > .scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
        .grid > .scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
        .grid > .scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
        .grid > .scroll-reveal:nth-child(6) { transition-delay: 0.3s; }
    }

    /* Navbar Glass Effect */
    #navbar.scrolled {
        background: rgba(254, 253, 248, 0.95);
        backdrop-filter: blur(12px);
        box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08);
    }

    #navbar.scrolled .font-serif,
    #navbar.scrolled .text-emerald-900 {
        color: #064e3b;
    }

    #navbar.scrolled .text-emerald-600 {
        color: #166534;
    }

    /* Mobile Menu Transitions */
    #mobile-menu.open {
        opacity: 1;
        pointer-events: all;
    }

    /* Hero Gradient Animation */
    @keyframes gradientShift {
        0%, 100% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
    }

    /* Floating Animation */
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }

    .float-animation {
        animation: float 6s ease-in-out infinite;
    }

    /* Pulse Ring */
    @keyframes pulseRing {
        0% { transform: scale(0.8); opacity: 0.5; }
        50% { transform: scale(1.2); opacity: 0; }
        100% { transform: scale(0.8); opacity: 0.5; }
    }

    /* Focus Visible for Accessibility */
    *:focus-visible {
        outline: 2px solid #d4a574;
        outline-offset: 2px;
    }

    /* Print Styles */
    @media print {
        #navbar, #back-to-top, .scroll-reveal {
            display: none !important;
        }
        body {
            background: white !important;
            color: black !important;
        }
        section {
            page-break-inside: avoid;
        }
    }
