    *, *::before, *::after {
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px;
    }

    body {
        min-height: 100vh;
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #070d1a;
    }
    ::-webkit-scrollbar-thumb {
        background: #1e293b;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #334155;
    }

    /* Selection color */
    ::selection {
        background: rgba(20, 184, 166, 0.3);
        color: #f0fdfa;
    }

    /* Reveal animation - 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: 0ms; }
        .reveal:nth-child(2) { transition-delay: 80ms; }
        .reveal:nth-child(3) { transition-delay: 160ms; }
        .reveal:nth-child(4) { transition-delay: 240ms; }
        .reveal:nth-child(5) { transition-delay: 320ms; }
        .reveal:nth-child(6) { transition-delay: 400ms; }
    }

    /* Reduced motion - ensure content is always visible */
    @media (prefers-reduced-motion: reduce) {
        .reveal {
            opacity: 1;
            transform: none;
            transition: none;
        }
        html {
            scroll-behavior: auto;
        }
    }

    /* Hero text rendering */
    h1, h2, h3 {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Focus styles */
    a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
        outline: 2px solid #14b8a6;
        outline-offset: 2px;
        border-radius: 4px;
    }

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

    /* Navbar glass effect */
    #navbar.scrolled {
        background: rgba(7, 13, 26, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(30, 41, 59, 0.5);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }

    /* Service card shimmer on hover */
    .group:hover .group-hover\:bg-brand-500\/20 {
        transition: background-color 0.3s ease;
    }

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

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

    #mobile-menu.hidden {
        animation: none;
        display: none;
    }

    /* Pulse animation for hero dot */
    @keyframes softPulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.6; transform: scale(1.2); }
    }

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

    /* Gradient text fallback */
    .text-transparent.bg-clip-text.bg-gradient-to-r {
        background-image: linear-gradient(to right, #5eead4, #2dd4bf, #14b8a6);
        -webkit-background-clip: text;
        background-clip: text;
    }
