/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* Page Loader */
#page-loader {
    pointer-events: none;
}

#page-loader.fade-out {
    opacity: 0;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile Menu */
#mobile-menu {
    pointer-events: none;
}

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

/* Navbar */
#navbar.scrolled {
    background: rgba(254, 247, 248, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(122, 26, 59, 0.08);
}

/* Form */
input:focus,
textarea:focus {
    outline: none;
}

/* Selection */
::selection {
    background: rgba(149, 26, 64, 0.15);
    color: #3b0a1c;
}

/* Reduced Motion */
@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;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fdf0f2;
}
::-webkit-scrollbar-thumb {
    background: #e96e8a;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b82550;
}
