/* Custom styles for DreaLocs Divine */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(254, 253, 248, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(19, 84, 44, 0.1);
}

.navbar-scrolled .nav-link {
    color: #13542c !important;
}

.navbar-scrolled .nav-link:hover {
    color: #1f8744 !important;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    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.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Hamburger animation */
.hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-active span:nth-child(2) {
    opacity: 0;
}

.hamburger-active span:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1f8744;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Image loading placeholder */
img {
    background-color: #e1f8e8;
}

/* Button hover effects */
button, a {
    cursor: pointer;
}

/* Selection color */
::selection {
    background-color: #d4a853;
    color: #13542c;
}
