    /* Custom styles for Matsu Valley */

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px;
    }

    /* Selection color */
    ::selection {
        background: #d4800f;
        color: #fff;
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #112235;
    }
    ::-webkit-scrollbar-thumb {
        background: #35638e;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #4a7fb0;
    }

    /* Scroll reveal animations */
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal[data-reveal="left"] {
        transform: translateX(-30px);
    }

    .reveal[data-reveal="right"] {
        transform: translateX(30px);
    }

    .reveal[data-reveal="scale"] {
        transform: scale(0.95);
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        .reveal {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }
        html {
            scroll-behavior: auto;
        }
    }

    /* Navbar transition states */
    #navbar.scrolled {
        background: rgba(10, 21, 32, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }

    #navbar.scrolled a:not([class*="bg-"]) {
        color: rgba(255, 255, 255, 0.85) !important;
    }

    #navbar.scrolled a:not([class*="bg-"]):hover {
        color: #f2b53d !important;
    }

    /* Stagger children */
    .stagger-children > * {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
    .stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
    .stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
    .stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
    .stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
    .stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

    .stagger-children.visible > * {
        opacity: 1;
        transform: translateY(0);
    }

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

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

    /* Hero image float animation */
    @media (prefers-reduced-motion: no-preference) {
        .hero-float {
            animation: float 6s ease-in-out infinite;
        }

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

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

    /* Print styles */
    @media print {
        nav, #contact-form, #form-success { display: none; }
        body { color: #000; background: #fff; }
        .bg-navy-950, .bg-navy-900 { background: #fff !important; }
        .text-white, .text-navy-900 { color: #000 !important; }
    }
