/* Custom styles for AshleyJ Hair */

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

/* Custom selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #0a1628;
}

/* Hero animations */
#hero h1,
#hero p,
#hero .flex {
    animation: fadeUp 1s ease-out forwards;
    opacity: 0;
}

#hero h1 { animation-delay: 0.2s; }
#hero p { animation-delay: 0.4s; }
#hero .flex { animation-delay: 0.6s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
}

/* Gallery hover effects */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

/* Mobile menu animation */
.mobile-menu-open {
    transform: translateX(0) !important;
}

/* Subtle line animations */
.divider-line {
    position: relative;
    overflow: hidden;
}

.divider-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #c9a84c, transparent);
    transition: width 1s ease;
}

.divider-line:hover::after {
    width: 100%;
}

/* Input focus animations */
input:focus,
textarea:focus {
    animation: inputGlow 0.3s ease forwards;
}

@keyframes inputGlow {
    from {
        border-color: rgba(255, 255, 255, 0.2);
    }
    to {
        border-color: rgba(201, 168, 76, 0.6);
    }
}

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

/* Image aspect ratios */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
