/* Custom styles beyond Tailwind */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* Reveal animations — progressive enhancement, only when JS runs */
@media (prefers-reduced-motion: no-preference) {
    .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);
    }

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

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

/* Reduced motion: ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Nav transition */
nav.scrolled {
    background: rgba(253, 248, 244, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(126, 78, 108, 0.08);
}

nav.scrolled .font-serif {
    color: rgb(114, 62, 87) !important;
}

nav.scrolled a:not([class*="bg-"]) {
    color: rgb(138, 78, 108) !important;
}

/* Mobile menu transitions */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu:not(.open) {
    opacity: 0;
    pointer-events: none;
}

/* Subtle gradient text for special headings */
.gradient-text {
    background: linear-gradient(135deg, #a06082, #f5a623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image hover container */
.rounded-3xl {
    overflow: hidden;
}

/* Selection color */
::selection {
    background: rgba(180, 133, 163, 0.25);
    color: #4f2c3e;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f4;
}
::-webkit-scrollbar-thumb {
    background: #e8d5e0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4b0c4;
}
