/* Custom styles for Salon Bucci */

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(185, 28, 50, 0.08);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu .mobile-link {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

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

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

/* Menu button animation */
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

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

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

/* Hero shapes animation */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -10px) scale(1.02); }
    66% { transform: translate(-10px, 5px) scale(0.98); }
}

.hero-shapes .shape-circle-1 { animation: float-slow 8s ease-in-out infinite; }
.hero-shapes .shape-circle-2 { animation: drift 12s ease-in-out infinite; }
.hero-shapes .shape-circle-3 { animation: float-medium 6s ease-in-out infinite; }
.hero-shapes .shape-diamond { animation: float-fast 7s ease-in-out infinite; }
.hero-shapes .shape-diamond-2 { animation: float-medium 9s ease-in-out infinite reverse; }
.hero-shapes .shape-triangle { animation: float-slow 10s ease-in-out infinite; }
.hero-shapes .shape-rect { animation: drift 8s ease-in-out infinite; }
.hero-shapes .shape-rect-2 { animation: float-medium 11s ease-in-out infinite reverse; }

/* Selection color */
::selection {
    background: rgba(185, 28, 50, 0.2);
    color: #7d1121;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F5;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #b91c32, #ff7070);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9a1528;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-shapes div { animation: none !important; }
    .reveal { transition: none !important; }
    button, a { transition: none !important; }
}
