/* Base styles and custom animations */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Scroll reveal base - content is always visible by default */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Only apply hidden state when JS is enabled and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll.is-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(130, 32, 32, 0.08);
}

.nav-scrolled #navbar a:not(.px-8) {
    color: #6b1c1c;
}

/* Mobile menu active state */
.mobile-menu-active #mobile-menu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-active #bar1 {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-active #bar2 {
    opacity: 0;
}

.mobile-menu-active #bar3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* Subtle hover line animation for menu items */
.group:hover .group-hover\:bg-burgundy-300 {
    width: 2rem;
    transition: width 0.3s ease;
}

/* Custom selection color */
::selection {
    background: rgba(130, 32, 32, 0.15);
    color: #6b1c1c;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}
