/* Custom styles for Legends Bar */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

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

/* Selection color */
::selection {
    background: #C4653A;
    color: white;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

nav.scrolled .font-serif {
    color: #1C1917 !important;
}

/* Hero parallax effect */
#hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* Button hover glow */
button:hover, a:hover {
    filter: brightness(1.05);
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Card hover lift */
.bg-white.rounded-3xl:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-3xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Testimonial card shimmer */
.bg-terracotta-500 {
    position: relative;
    overflow: hidden;
}

.bg-terracotta-500::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.bg-terracotta-500:hover::before {
    left: 100%;
}

/* Pulse animation for badge */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.animate-pulse {
    animation: soft-pulse 2s ease-in-out infinite;
}

/* Navbar background transition */
nav {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

nav .bg-white\/80 {
    transition: background 0.3s ease;
}

nav.scrolled .bg-white\/80 {
    background: rgba(255, 255, 255, 0.95);
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.absolute.-bottom-6.-right-6 {
    animation: float 4s ease-in-out infinite;
}

/* Decorative blob animation */
@keyframes blob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.absolute.-top-4.-left-4,
.absolute.-bottom-4.-right-4 {
    animation: blob 8s ease-in-out infinite;
}

.absolute.-bottom-4.-right-4 {
    animation-delay: -4s;
}
