/* Custom styles for Tea Be Honest */

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

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

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

/* Floating card animations */
@media (prefers-reduced-motion: no-preference) {
    .floating-card-1 {
        animation: float1 6s ease-in-out infinite;
    }
    .floating-card-2 {
        animation: float2 7s ease-in-out infinite;
    }
    .floating-card-3 {
        animation: float3 5s ease-in-out infinite;
    }
    .floating-card-4 {
        animation: float4 8s ease-in-out infinite;
    }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}

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

@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(2deg); }
}

/* Navbar transitions */
#navbar.scrolled {
    background-color: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(60, 20, 20, 0.08);
}

#navbar.scrolled .font-serif {
    color: #2a1e1e !important;
}

#navbar.scrolled a:not(.bg-burgundy-700):not(.bg-blush-500) {
    color: #3d2e2e !important;
}

#navbar.scrolled a:not(.bg-burgundy-700):not(.bg-blush-500):hover {
    color: #a33535 !important;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

/* Selection color */
::selection {
    background-color: #fce7e7;
    color: #5c1c1c;
}

/* Image hover effect */
img {
    display: block;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c44d4d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile link animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-open .mobile-link {
    animation: linkFadeIn 0.4s ease forwards;
}

.mobile-menu-open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { animation-delay: 0.3s; }

@keyframes linkFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle parallax on hero background */
@media (prefers-reduced-motion: no-preference) {
    #hero {
        will-change: background-position;
    }
}
