    /* Custom base styles and overrides */
    html {
        scroll-behavior: smooth;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    body {
        overflow-x: hidden;
    }

    ::selection {
        background: color-mix(in srgb, #fbbf24 30%, transparent);
        color: #4e2233;
    }

    /* Hero animations */
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes expandWidth {
        from { width: 0; }
        to { width: 4rem; }
    }

    @keyframes scrollIndicator {
        0% { transform: translateY(-100%); }
        100% { transform: translateY(150%); }
    }

    .hero-subtitle {
        animation: fadeIn 0.8s ease forwards;
        animation-delay: 0.2s;
        opacity: 0;
    }

    .hero-title-line {
        animation: slideUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        opacity: 0;
    }

    .hero-title-line:nth-child(1) { animation-delay: 0.3s; }
    .hero-title-line:nth-child(2) { animation-delay: 0.45s; }
    .hero-title-line:nth-child(3) { animation-delay: 0.6s; }

    .hero-line {
        animation: expandWidth 0.8s ease forwards;
        animation-delay: 0.9s;
        width: 0;
    }

    .hero-buttons {
        animation: fadeIn 0.8s ease forwards;
        animation-delay: 1.1s;
        opacity: 0;
    }

    .animate-scroll-indicator {
        animation: scrollIndicator 1.5s ease-in-out infinite;
    }

    /* Navbar transitions */
    #nav.scrolled .nav-brand {
        color: #4e2233;
    }

    #nav.scrolled .nav-link {
        color: #5c273b;
    }

    #nav.scrolled .nav-link:hover {
        color: #2a1019;
    }

    #nav.scrolled .mobile-link {
        color: #4e2233;
    }

    /* Mobile menu */
    .menu-line {
        transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    }

    body.menu-open .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }

    body.menu-open .menu-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    body.menu-open .menu-line:nth-child(3) {
        width: 1.5rem;
        transform: rotate(-45deg) translate(3px, -3px);
    }

    #mobile-menu.open {
        opacity: 1;
        pointer-events: all;
    }

    /* Link hover underline animation */
    .nav-link,
    .mobile-link,
    a[href^="#"] {
        position: relative;
    }

    /* Focus styles */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible {
        outline: 2px solid #fbbf24;
        outline-offset: 2px;
    }

    /* Smooth image loading */
    img {
        image-rendering: auto;
        loading: lazy;
    }

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

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

    ::-webkit-scrollbar-thumb {
        background: #d9a9bc;
        border-radius: 3px;
    }

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

    /* Print styles */
    @media print {
        nav, #mobile-menu, .reveal, .animate-scroll-indicator {
            display: none !important;
        }
        body {
            color: #000;
            background: #fff;
        }
    }
