/* Custom Styles for Ashley's Hair */

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

/* Base font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.5s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(15, 26, 12, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

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

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

#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 toggle animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

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

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

#menu-toggle.active .menu-line:nth-child(3) {
    width: 6px;
    transform: translateY(-4px) rotate(-45deg);
    margin-left: 0;
}

/* Reveal animations - progressive enhancement */
.reveal {
    /* Default state: visible, no animation */
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero decorative pulse */
@keyframes subtle-pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.18; }
}

/* Custom selection color */
::selection {
    background-color: #3d6232;
    color: #fdfcf8;
}

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

/* Image hover container */
.aspect-square {
    position: relative;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Subtle gradient overlay on gallery images */
.aspect-square::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(31, 51, 27, 0.08));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.aspect-square:hover::after {
    opacity: 1;
}
