/* === Custom Styles for NUROX Salon === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* === Navbar === */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #0D9488;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 60%;
}

/* Scrolled navbar state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
}

.navbar-scrolled .nav-logo-text {
    color: #0f172a;
}

.navbar-scrolled .nav-link {
    color: #475569;
}

.navbar-scrolled .nav-link:hover {
    color: #0D9488;
}

/* === Mobile Menu === */
.mobile-nav-link {
    transition: all 0.3s ease;
}

#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobile-menu.hidden {
    display: none;
}

/* === Floating animations === */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatDelayed 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* === Reveal Animations === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(24px);
}

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

.js-enabled .reveal:nth-child(2) { transition-delay: 100ms; }
.js-enabled .reveal:nth-child(3) { transition-delay: 200ms; }
.js-enabled .reveal:nth-child(4) { transition-delay: 300ms; }

/* === Selection color === */
::selection {
    background: #99f6e4;
    color: #134e4a;
}

/* === Reduce 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;
    }
    .js-enabled .reveal {
        opacity: 1;
        transform: none;
    }
}

/* === Focus visible === */
:focus-visible {
    outline: 2px solid #0D9488;
    outline-offset: 2px;
    border-radius: 8px;
}

/* === 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 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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