/* === Custom Styles for Nick's MinnKota Repair === */

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

/* === Scroll Reveal Animations === */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Default state for reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:nth-child(1) { transition-delay: 0ms; }
    .scroll-reveal:nth-child(2) { transition-delay: 100ms; }
    .scroll-reveal:nth-child(3) { transition-delay: 200ms; }
    .scroll-reveal:nth-child(4) { transition-delay: 300ms; }
    .scroll-reveal:nth-child(5) { transition-delay: 400ms; }
    .scroll-reveal:nth-child(6) { transition-delay: 500ms; }
}

/* === Navbar Transitions === */
#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(30, 87, 48, 0.08);
}

#navbar.scrolled .nav-text {
    color: #0d2818;
}

#navbar.scrolled .nav-subtext {
    color: rgba(30, 87, 48, 0.6);
}

#navbar.scrolled .menu-line {
    background-color: #1e5730;
}

/* === Mobile Menu === */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

/* === Selection Color === */
::selection {
    background-color: rgba(30, 87, 48, 0.2);
    color: #0d2818;
}

/* === Focus Styles === */
*:focus-visible {
    outline: 2px solid #1e5730;
    outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94d3a0;
}

/* === 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='%231e5730' 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 12px center;
    padding-right: 40px;
}

/* === Subtle hover glow on cards === */
.group:hover .group-hover\:bg-emerald-100 {
    transition: background-color 0.5s ease;
}

/* === Button hover lift effect === */
button, a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === Image loading placeholder === */
img {
    background: linear-gradient(135deg, #e1f5e8 0%, #f2fcf5 100%);
}
