/* Custom styles for Nix Salon Services */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2EB386;
}

/* Scroll line animation */
@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(150%);
    }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* Navigation styles */
nav.scrolled {
    background: rgba(242, 252, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

nav.scrolled .nav-logo {
    color: #0A1628;
}

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

/* Mobile menu transitions */
.mobile-link {
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #2EB386;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2EB386 !important;
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .animate-scroll-line {
        display: none;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .font-serif {
        font-weight: 500;
    }
}

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .reveal-item {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure all text is readable */
.text-midnight-800 {
    color: #0A1628;
}

.text-midnight-700 {
    color: #0F2240;
}

.text-midnight-600 {
    color: #142D52;
}

.text-mint-600 {
    color: #1A8A66;
}

.text-mint-500 {
    color: #2EB386;
}

.bg-midnight-800 {
    background-color: #0A1628;
}

.bg-mint-50 {
    background-color: #F2FCF9;
}

.bg-mint-100 {
    background-color: #E0F7EE;
}

.bg-white {
    background-color: #ffffff;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #E0F7EE 0%, #F2FCF9 50%, #E0F7EE 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}
