/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #dbadb7;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a85570;
}

/* Selection */
::selection {
    background: #dbadb7;
    color: #2b1019;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(180, 140, 160, 0.15);
}

#navbar.scrolled .nav-link {
    color: #743046;
}

/* Mobile menu */
.mobile-menu-link {
    position: relative;
}
.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #e8a010;
    transition: width 0.3s ease;
}
.mobile-menu-link:hover::after {
    width: 80%;
}

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

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

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

/* Print styles */
@media print {
    #navbar, .reveal {
        display: block !important;
        opacity: 1 !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
