/* Custom styles for First M-pressions Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #c8a24e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4af5e;
}

/* Selection color */
::selection {
    background: #c8a24e;
    color: #0a1628;
}

/* Scroll reveal base - always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal animation - only applies when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.animated.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

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

/* Hero text animation - only on load, not scroll-dependent */
#hero h1 {
    animation: heroFadeIn 0.8s ease forwards;
}
#hero p {
    animation: heroFadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}
#hero a {
    animation: heroFadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}
#hero .flex-wrap {
    animation: heroFadeIn 0.8s ease 0.5s forwards;
    opacity: 0;
}
#hero .flex.items-center.gap-3.mb-6 {
    animation: heroFadeIn 0.6s ease forwards;
}

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

/* Gold gradient text effect */
.text-gold-gradient {
    background: linear-gradient(135deg, #c8a24e 0%, #e0c070 50%, #c8a24e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button hover effects */
.bg-gold-500 {
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.bg-gold-500:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(200, 162, 78, 0.3);
}

/* Service card hover */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Image hover zoom */
.hover\:scale-105 {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .hover\:scale-105 {
        transform: none !important;
    }
    #hero h1, #hero p, #hero a, #hero .flex-wrap, #hero .flex.items-center.gap-3.mb-6 {
        animation: none;
        opacity: 1;
    }
    .transition-all, .transition-colors, .transition-transform {
        transition: none;
    }
}
