/* Custom styles for Hair by Joahny */

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

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

::-webkit-scrollbar-track {
    background: #0a1c0d;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4a843, #b88a2e);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e6c04b, #d4a843);
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #faf8f4;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(10, 28, 13, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

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

/* Mobile menu button animation */
.menu-active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-active #bar2 {
    opacity: 0;
}

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

/* Gold gradient shimmer effect for hero */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Pulse animation for CTA */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(212, 168, 67, 0); }
}

.cta-pulse:hover {
    animation: pulse-gold 1.5s ease-in-out infinite;
}

/* Link hover effects */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #d4a843, #e6c04b);
    transition: width 0.3s ease;
}

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

/* Mobile link styles */
.mobile-link {
    position: relative;
}

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

/* Select dropdown styling */
select option {
    background: #0a1c0d;
    color: #faf8f4;
}

/* Image hover zoom */
.group:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* 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;
    }
}
