/* Custom Styles for Mindi's Hair and Lashes */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #c4244a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a11737;
}

/* Selection color */
::selection {
    background: #c4244a;
    color: #fff;
}

/* Navbar transition */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero text glow */
@keyframes softGlow {
    0%, 100% { text-shadow: 0 0 40px rgba(252, 231, 235, 0.15); }
    50% { text-shadow: 0 0 60px rgba(252, 231, 235, 0.25); }
}

#hero h1 {
    animation: softGlow 4s ease-in-out infinite;
}

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

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Image loading placeholder */
img {
    background-color: #fce7eb;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #c4244a;
    outline-offset: 2px;
}
