/* Custom Styles for Hay Lady */

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

/* Hero Animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up {
    animation: revealUp 0.8s ease-out forwards;
}

.reveal-up:nth-child(1) { animation-delay: 0.1s; }
.reveal-up:nth-child(2) { animation-delay: 0.3s; }
.reveal-up:nth-child(3) { animation-delay: 0.5s; }
.reveal-up:nth-child(4) { animation-delay: 0.7s; }

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Navbar Transition */
#navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #FF6B6B;
    border-radius: 5px;
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up {
        animation: none;
    }
    
    .scroll-reveal {
        transition: none;
    }
    
    img {
        transition: none;
    }
    
    button, a {
        transition: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    #navbar,
    .animate-bounce,
    button,
    form {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-charcoal-900,
    .bg-stone-50 {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem !important;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}
