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

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

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar transitions */
.nav-scrolled .nav-link,
.nav-scrolled #nav-logo-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-scrolled #navbar {
    background: rgba(45, 7, 14, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* Menu hover effects */
#menu .bg-cream-50:hover {
    box-shadow: 0 8px 40px rgba(155, 29, 58, 0.08);
    transition: box-shadow 0.3s ease;
}

#menu .bg-burgundy-950:hover {
    box-shadow: 0 8px 40px rgba(45, 7, 14, 0.2);
    transition: box-shadow 0.3s ease;
}

/* Image hover zoom */
section img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

section img:hover {
    transform: scale(1.02);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-hidden {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    section img {
        transition: none;
    }

    .animate-bounce {
        animation: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff7eb3;
    outline-offset: 2px;
    border-radius: 4px;
}

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

::-webkit-scrollbar-track {
    background: #fefdfb;
}

::-webkit-scrollbar-thumb {
    background: #f9c0c0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffafcc;
}
