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

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

/* Scroll Reveal - Progressive Enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 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; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Fallback: ensure content is visible if JS is disabled */
.no-js .scroll-reveal,
.js-enabled .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar transition */
.nav-scrolled #navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(157, 23, 77, 0.08);
}

.nav-scrolled .nav-link-text {
    color: rgb(127, 20, 77) !important;
}

.nav-scrolled .mobile-nav-link {
    color: rgb(127, 20, 77) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgb(253, 244, 245);
}

::-webkit-scrollbar-thumb {
    background: rgb(236, 72, 153);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(190, 24, 93);
}

/* Selection color */
::selection {
    background: rgb(251, 205, 212);
    color: rgb(80, 7, 36);
}

/* Image aspect ratio utilities */
.aspect-cover {
    object-fit: cover;
}

/* Subtle line decorations */
.section-line {
    position: relative;
}

.section-line::after {
    content: '';
    display: block;
    width: 64px;
    height: 1px;
    background: rgb(251, 191, 36);
    margin-top: 1.5rem;
}

/* Print styles */
@media print {
    nav, #contact-form, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
