/* Custom styles for LeAnna's Yellow Rose Salon */

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

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

/* Navigation transitions */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4ade80;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu link transitions */
.mobile-link {
    position: relative;
    padding-left: 0;
}
.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #4ade80;
    transition: width 0.3s ease;
}
.mobile-link:hover::before {
    width: 16px;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Hero floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: no-preference) {
    .floating-card {
        animation: float 4s ease-in-out infinite;
    }
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img,
.rounded-3xl.overflow-hidden img {
    transition: transform 0.7s ease;
}
.rounded-2xl.overflow-hidden:hover img,
.rounded-3xl.overflow-hidden:hover img {
    transform: scale(1.05);
}

/* Service card hover glow */
.group:hover .rounded-2xl:first-child {
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

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

/* Navbar glass effect when scrolled */
nav.scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gallery grid item hover */
.grid-cols-2 lg\\:grid-cols-4 .rounded-2xl {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.grid-cols-2 lg\\:grid-cols-4 .rounded-2xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Testimonial card hover */
.rounded-3xl.p-8.shadow-sm:hover {
    transform: translateY(-4px);
}

/* Form input focus animations */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.1);
}

/* Pulse animation for decorative dots */
@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

/* Print styles */
@media print {
    nav, #hero, .reveal, button, form {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: 2rem;
    }
    .font-display:nth-of-type(2) {
        font-size: 2.5rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
