/* Base & Typography */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(123, 45, 59, 0.2);
    color: #7B2D3B;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

.scroll-reveal[data-reveal-delay="100ms"] { transition-delay: 100ms; }
.scroll-reveal[data-reveal-delay="200ms"] { transition-delay: 200ms; }
.scroll-reveal[data-reveal-delay="300ms"] { transition-delay: 300ms; }

/* Hero reveal — above the fold, always visible */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(1) { transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal:nth-child(2) { transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s; }
.reveal:nth-child(3) { transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s; }
.reveal:nth-child(4) { transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s; }

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

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(253, 242, 244, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

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

/* Subtle image hover */
img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #f49aad;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ec617a;
}

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

/* Button ripple-like effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}
