    /* Custom Styles for Captains Walk 3 */

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

    /* Selection color */
    ::selection {
        background-color: rgba(154, 37, 37, 0.15);
        color: #3a0d0d;
    }

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

    ::-webkit-scrollbar-track {
        background: #fff8f6;
    }

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

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

    /* Reveal animations - progressive enhancement */
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

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

        .reveal:nth-child(2) {
            transition-delay: 0.1s;
        }

        .reveal:nth-child(3) {
            transition-delay: 0.2s;
        }
    }

    /* Default state - always visible */
    .reveal {
        opacity: 1;
        transform: none;
    }

    /* Navbar styles */
    #navbar {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        background: rgba(255, 248, 246, 0.85);
        border-bottom: 1px solid rgba(154, 37, 37, 0.08);
    }

    #navbar.scrolled {
        background: rgba(255, 248, 246, 0.95);
        box-shadow: 0 1px 0 rgba(154, 37, 37, 0.06);
    }

    /* Mobile menu transitions */
    #mobile-menu {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    #mobile-menu.open {
        transform: translateX(0);
    }

    #mobile-menu.closed {
        transform: translateX(-100%);
    }

    /* Hamburger animation */
    #menu-btn.active #line1 {
        transform: rotate(45deg) translate(3px, 3px);
    }

    #menu-btn.active #line2 {
        opacity: 0;
    }

    #menu-btn.active #line3 {
        transform: rotate(-45deg) translate(3px, -3px);
        width: 20px;
        margin-left: 0;
    }

    /* Image hover effects */
    .group img {
        transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* Thin line accents */
    .h-px {
        background-image: linear-gradient(to right, transparent, rgba(154, 37, 37, 0.15), transparent);
    }

    /* Button focus states */
    a:focus-visible, button:focus-visible {
        outline: 2px solid #9a2525;
        outline-offset: 2px;
    }

    /* Reduce motion preference */
    @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;
        }
    }

    /* Print styles */
    @media print {
        #navbar, #contact, footer {
            display: none;
        }
        
        body {
            background: white;
            color: #1a1a1a;
        }
        
        .reveal {
            opacity: 1 !important;
            transform: none !important;
        }
    }
