/* Custom styles for Touba African Hair Braiding */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 3px;
}

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

/* Floating Card Animation */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Service Card Hover */
.service-card {
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Navbar Transition */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-scrolled .navbar-logo .logo-text {
    color: #0a1628;
}

.nav-scrolled .nav-link {
    color: #0a1628;
}

.nav-scrolled .nav-link:hover {
    color: #c9a84c;
}

/* Mobile Menu */
.mobile-menu-open #mobile-menu {
    transform: translateX(0);
}

.mobile-menu-open #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open #bar2 {
    opacity: 0;
}

.mobile-menu-open #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Selection Color */
::selection {
    background: #c9a84c;
    color: #0a1628;
}

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #c9a84c !important;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    
    .gallery-item img,
    .service-card img {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-card {
        position: relative;
        margin-bottom: 1rem;
        animation: none;
    }
}
