/* Base styles & custom properties */
:root {
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: #d94064;
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #c02146;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9f163a;
}

/* Navbar transitions */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(127, 21, 52, 0.08);
}

#navbar.scrolled .menu-line {
    background: #70162e;
}

#navbar.scrolled a:not(.bg-plum-800):not(.bg-white\/10) {
    color: #70162e !important;
}

#navbar.scrolled a:not(.bg-plum-800):not(.bg-white\/10):hover {
    color: #c02146 !important;
}

/* Mobile menu */
.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}
.mobile-link:hover {
    color: #d94064;
    transform: scale(1.05);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 64, 100, 0.15);
}

/* Button hover effects */
a {
    transition: all 0.3s ease;
}

/* Card hover lifts */
.rounded-2xl {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* Smooth image loading */
img {
    transition: opacity 0.4s ease;
}

/* Print styles */
@media print {
    #navbar, #contactForm, .reveal {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
