/* Base & Utilities */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #ebd0d9;
    color: #5f282e;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #dbadae;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c47a82;
}

/* Navbar */
.nav-scrolled {
    background: rgba(254, 252, 248, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(168, 85, 96, 0.08);
}

.nav-scrolled .menu-line {
    background: #5f282e;
}

/* Mobile Menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-line-active-1 {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-line-active-2 {
    opacity: 0;
}
.menu-line-active-3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

/* Custom cursor for interactive elements */
@media (hover: hover) {
    a, button {
        cursor: pointer;
    }
}

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