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

body {
    overflow-x: hidden;
}

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

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

.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(139, 49, 77, 0.08);
}

nav.scrolled .nav-link {
    color: #712840;
}

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

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease;
}

.mobile-link:hover {
    padding-left: 8px;
}

/* Hero decorative animation */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

#hero .absolute.rounded-full {
    animation: float 8s ease-in-out infinite;
}

#hero .absolute.rounded-full:nth-child(3) {
    animation-delay: -3s;
    animation-duration: 10s;
}

#hero .absolute.rounded-full:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 12s;
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img,
.rounded-3xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom selection color */
::selection {
    background: #ebbbc8;
    color: #4d1d2d;
}

/* Smooth focus */
*:focus-visible {
    outline: 2px solid #c4617e;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Tablet */
@media (max-width: 768px) {
    .font-serif {
        letter-spacing: -0.01em;
    }
}

/* Small mobile */
@media (max-width: 360px) {
    #hero h1 {
        font-size: 2.5rem;
    }
}
