/* ===== Custom Styles for Tidy in No Time ===== */

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

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F5F7;
}
::-webkit-scrollbar-thumb {
    background: #D1D1D8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A1A1AA;
}

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

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

.animate-float {
    animation: float 3.5s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite 0.5s;
}

/* ===== Scroll Reveal Animations ===== */
/* Default state: visible (works without JS) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* With JS + reduced motion preference: animate on scroll */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal.revealed:nth-child(1) { transition-delay: 0ms; }
    .scroll-reveal.revealed:nth-child(2) { transition-delay: 100ms; }
    .scroll-reveal.revealed:nth-child(3) { transition-delay: 200ms; }
    .scroll-reveal.revealed:nth-child(4) { transition-delay: 300ms; }
}

/* ===== Navbar Transition ===== */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ===== Button Focus States ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF7A55;
    outline-offset: 2px;
}

/* ===== Selection Color ===== */
::selection {
    background: #FFC4B5;
    color: #1C1C1F;
}

/* ===== Mobile Menu Transition ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Form Select Arrow ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 640px) {
    .font-serif {
        font-size: 1.75rem;
    }
}
