/* Custom styles for NEKO Water Damage Restoration */

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

/* Custom selection color */
::selection {
    background: rgba(255, 107, 107, 0.2);
    color: #1A1D20;
}

/* Fade-in animation for scroll reveals */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for service cards */
.service-card:nth-child(1) { transition-delay: 0ms; }
.service-card:nth-child(2) { transition-delay: 80ms; }
/service-card:nth-child(3) { transition-delay: 160ms; }
.service-card:nth-child(4) { transition-delay: 240ms; }
.service-card:nth-child(5) { transition-delay: 320ms; }
.service-card:nth-child(6) { transition-delay: 400ms; }

/* Navbar scroll state */
nav.scrolled {
    background: rgba(26, 29, 32, 0.95) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

/* Active nav link */
.nav-link.active {
    color: #FF8787 !important;
}

/* Subtle parallax-like effect on hero */
#hero {
    background-attachment: fixed;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Process step connector lines */
@media (min-width: 1024px) {
    .step-connector {
        position: absolute;
        top: 40px;
        left: calc(50% + 40px);
        width: calc(100% - 80px);
        height: 2px;
        background: repeating-linear-gradient(
            to right,
            rgba(255, 107, 107, 0.3) 0px,
            rgba(255, 107, 107, 0.3) 6px,
            transparent 6px,
            transparent 12px
        );
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    #hero {
        background-attachment: scroll;
    }
}
