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

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

    body {
        overflow-x: hidden;
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #050a14;
    }

    ::-webkit-scrollbar-thumb {
        background: #152d4a;
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #c9a84c;
    }

    /* Selection */
    ::selection {
        background: rgba(201, 168, 76, 0.3);
        color: #fff;
    }

    /* Scroll animations - progressive enhancement */
    @media (prefers-reduced-motion: no-preference) {
        .service-card,
        .gallery-item,
        .text-reveal {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
        }
    }

    /* Scroll dot animation */
    @keyframes scrollDot {
        0% {
            top: 0;
            opacity: 1;
        }
        100% {
            top: 48px;
            opacity: 0;
        }
    }

    .animate-scroll-dot {
        animation: scrollDot 1.5s ease-in-out infinite;
    }

    /* Navbar scroll state */
    #navbar.scrolled {
        background: rgba(5, 10, 20, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    }

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

    /* Gallery hover overlay */
    .gallery-item::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(5, 10, 20, 0.4) 0%, transparent 50%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .gallery-item:hover::after {
        opacity: 1;
    }

    .gallery-item {
        position: relative;
    }

    /* Input autofill styling */
    input:-webkit-autofill,
    textarea:-webkit-autofill,
    select:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 30px #0a1628 inset !important;
        -webkit-text-fill-color: #fff !important;
    }

    /* Focus visible */
    :focus-visible {
        outline: 2px solid rgba(201, 168, 76, 0.5);
        outline-offset: 2px;
    }

    /* Reduce motion */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }

        html {
            scroll-behavior: auto;
        }
    }
