/* Custom styles for Best Eyelash Studio */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050a14;
}
::-webkit-scrollbar-thumb {
    background: #142d54;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a037;
}

/* Selection color */
::selection {
    background: rgba(212, 160, 55, 0.3);
    color: #f0d078;
}

/* Reveal animations - progressive enhancement with prefers-reduced-motion gate */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* Hero animations */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    animation: heroFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-anim:nth-child(2) { animation-delay: 0.2s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.6s; }

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

@media (prefers-reduced-motion: no-preference) {
    .hero-anim {
        opacity: 0;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Mobile links */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Navbar glass effect on scroll */
nav.scrolled {
    background: rgba(5, 10, 20, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 55, 0.1);
}

/* Service card shimmer on hover */
.group:hover .group-hover\:bg-gold-500\/20 {
    background-color: rgba(212, 160, 55, 0.2);
}

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

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(ellipse at 20% 50%, rgba(212, 160, 55, 0.03) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 20%, rgba(85, 191, 138, 0.03) 0%, transparent 50%);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4a037' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d4a037;
    outline-offset: 2px;
}

/* Reduce motion for all animations */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hero-anim,
    .animate-bounce {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
