/* Custom styles for Mimi Hair & Wigs */

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

/* Navigation transitions */
.nav-text {
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4880a, #f0c75d);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

nav.scrolled .nav-text {
    color: #102a43 !important;
}

nav.scrolled .menu-line {
    background: #102a43 !important;
}

/* Scroll indicator animation */
@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

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

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero decorations animation */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.05);
    }
    50% {
        transform: translate(-10px, -40px) scale(1);
    }
    75% {
        transform: translate(-20px, -20px) scale(0.95);
    }
}

.hero-decoration {
    animation: float 8s ease-in-out infinite;
}

.hero-decoration:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 10s;
}

.hero-decoration:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 12s;
}

.hero-decoration:nth-child(4) {
    animation-delay: -1s;
    animation-duration: 9s;
}

.hero-decoration:nth-child(5) {
    animation-delay: -3s;
    animation-duration: 11s;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobileMenu.active {
    opacity: 1;
    pointer-events: all;
}

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

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

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

/* Hamburger menu animation */
#menuBtn.active .menu-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 1.5rem;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Gallery hover effects */
.gallery-item {
    overflow: hidden;
    border-radius: 0.75rem;
}

.gallery-item img {
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #f0c75d, #d4880a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4880a, #8f4609);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f0c75d, #d4880a);
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #d4880a;
    outline-offset: 2px;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Selection color */
::selection {
    background: #d4880a;
    color: #102a43;
}
