/* Custom styles that extend Tailwind */

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

/* Reveal Animation Setup */
/* Default state: visible (for accessibility and no-JS fallback) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When JS is enabled, we can add the 'reveal' class initially hidden via JS 
   BUT per instructions, we must NOT hide above-the-fold.
   For below-fold, we can use a media query to enable the animation 
   only if the user prefers reduced motion is NOT set, or we can use 
   a class that JS adds. 
   
   Here, we'll use a class '.is-hidden' that JS adds to elements,
   then removes to trigger animation.
*/
.reveal.is-hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

.float-anim {
    animation: float 6s ease-in-out infinite;
}

.float-anim-delayed {
    animation: float 6s ease-in-out 3s infinite;
}

/* Line Pattern Background */
.line-pattern {
    background-image: linear-gradient(to right, rgba(192, 38, 84, 0.05) 1px, transparent 1px);
    background-size: 40px 100%;
}

/* Thin decorative border utility */
.thin-border::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: #d97706;
}

/* Custom scrollbar for webkit */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf4f6;
}
::-webkit-scrollbar-thumb {
    background: #c02654;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9c1c45;
}

/* Focus styles for accessibility */
button:focus, a:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}
