/* Custom styles for Decolas Towing and Recovery */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar transition states */
.nav-scrolled .nav-text {
    color: #1f3415;
}

.nav-scrolled .nav-subtext {
    color: #305021;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Subtle pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(52, 211, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f2f7f2;
}
::-webkit-scrollbar-thumb {
    background: #9bbf7d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #528036;
}

/* Selection color */
::selection {
    background: #c5d9ad;
    color: #1f3415;
}
