/* Custom styles for Senegal African Hair Braiding */

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

/* Navbar scroll state */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

#navbar.scrolled .menu-line,
#navbar.scrolled .font-display {
    color: #0f1a2e;
}

#navbar.scrolled .font-display {
    color: #0f1a2e;
}

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile links */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* Ensure all text is readable */
.text-navy-900 { color: #0f1a2e; }
.text-navy-800 { color: #1a2744; }
.text-terracotta-600 { color: #c74520; }
.text-terracotta-700 { color: #a3341c; }
.text-terracotta-400 { color: #ee754a; }

/* Image aspect ratios */
img {
    display: block;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c74520;
}

/* Selection color */
::selection {
    background: #fce4d9;
    color: #6c271a;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .group img {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Touch device adjustments */
@media (hover: none) {
    .group:hover img {
        transform: none;
    }
}
