/* Custom styles for Newburgh Beauty Supply */

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

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

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

::-webkit-scrollbar-thumb {
    background: #f0a8a8;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #ffd0d8;
    color: #8B1A1A;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(139, 26, 26, 0.08);
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

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

.pulse-soft {
    animation: pulse-soft 4s ease-in-out infinite;
}

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

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f9d4d4 0%, #f0a8a8 100%);
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 3px solid #ffd0d8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #8B1A1A 0%, #C41E3A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(139, 26, 26, 0.12);
}

/* Decorative underline animation */
.underline-hover {
    position: relative;
}

.underline-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8B1A1A;
    transition: width 0.3s ease;
}

.underline-hover:hover::after {
    width: 100%;
}

/* Mobile menu button animation */
#menu-icon line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-icon.active line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

#menu-icon.active line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
