/* Custom styles for Hair Worx */

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

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

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

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

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

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate when JS adds the class AND user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

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

/* Navbar transition */
.nav-scrolled {
    background: rgba(250, 246, 243, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(127, 28, 56, 0.08);
}

.nav-scrolled .nav-link {
    color: #7f1c38 !important;
}

.nav-scrolled .logo-text {
    color: #7f1c38 !important;
}

.nav-transparent .logo-text {
    color: #FAF6F3;
}

.nav-transparent .nav-link {
    color: rgba(250, 246, 243, 0.85);
}

.nav-transparent .nav-link:hover {
    color: #f9d0d9;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Custom selection color */
::selection {
    background: #b8264d;
    color: #FAF6F3;
}

/* Image hover effects */
img {
    -webkit-hyphens: none;
    hyphens: none;
}

/* Subtle gradient for sections */
.gradient-burgundy {
    background: linear-gradient(135deg, #3a0c16 0%, #7f1c38 50%, #9a1e40 100%);
}

/* Button focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #b8264d;
    outline-offset: 2px;
}

/* Loading state for form */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

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

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