/* Custom styles for Colorado The Better CLEANING LLC */

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

#navbar.scrolled .nav-subtext {
    color: #5eead4;
}

#navbar.scrolled .nav-link {
    color: rgba(248, 250, 252, 0.85);
}

/* Mobile menu */
.mobile-link {
    display: block;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@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(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Hero orb animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-orb {
        animation: float 8s ease-in-out infinite;
    }
    
    .orb-1 {
        animation-delay: 0s;
    }
    
    .orb-2 {
        animation-delay: -3s;
    }
    
    .orb-3 {
        animation-delay: -5s;
        animation-duration: 12s;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.05);
    }
    50% {
        transform: translate(-10px, 15px) scale(0.95);
    }
    75% {
        transform: translate(15px, 10px) scale(1.02);
    }
}

/* Hero badge animation */
@media (prefers-reduced-motion: no-preference) {
    .hero-badge {
        animation: fadeInDown 0.8s ease forwards;
    }
    
    .hero-badge ~ h1,
    h1 {
        animation: fadeInUp 0.8s ease forwards;
        animation-delay: 0.2s;
        opacity: 0;
    }
    
    h1 ~ p {
        animation: fadeInUp 0.8s ease forwards;
        animation-delay: 0.4s;
        opacity: 0;
    }
    
    h1 ~ p ~ div {
        animation: fadeInUp 0.8s ease forwards;
        animation-delay: 0.6s;
        opacity: 0;
    }
    
    h1 ~ p ~ div ~ div {
        animation: fadeInUp 0.8s ease forwards;
        animation-delay: 0.8s;
        opacity: 0;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: white;
}
