/* Custom styles for Do or Dye Hair & Nail Salon */

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

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf4f8;
}

::-webkit-scrollbar-thumb {
    background: #c46e91;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8496e;
}

/* Selection color */
::selection {
    background: #e4a3c0;
    color: #35111c;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 244, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(140, 56, 84, 0.1);
}

.nav-scrolled #nav-logo-text,
.nav-scrolled .text-plum-800 {
    color: #35111c !important;
}

.nav-scrolled #nav-sub-text {
    color: #a8496e !important;
}

/* Mobile menu link styles */
.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #a8496e, #d4850f);
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::after {
    width: 100%;
}

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

/* Button hover glow */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Gallery hover effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #a8496e, #d4850f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service card image overlay */
.relative .absolute.inset-0 {
    background-image: linear-gradient(to top, rgba(53, 17, 28, 0.6) 0%, transparent 60%);
}

/* Ensure images have proper aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Card shadows on hover */
.shadow-sm:hover {
    box-shadow: 0 20px 40px rgba(140, 56, 84, 0.12);
}

/* Smooth image transitions */
img {
    transition: transform 0.7s ease;
}

/* Accessibility: focus visible */
*:focus-visible {
    outline: 2px solid #f5a623;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #contact-form, .floating-card {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
