/* Custom styles for Today's Cut and Style */

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

/* Prevent scroll-reveal flash — content is visible by default */
/* JS adds animation classes progressively */

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(251, 249, 244, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(10, 31, 68, 0.08);
}

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

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

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

#navbar.scrolled .menu-line {
    background-color: #0A1F44;
}

/* Nav links hover underline */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #C9A84C;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

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

/* Service cards */
.service-card {
    border: 1px solid rgba(10, 31, 68, 0.06);
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

/* Scroll reveal base — content is VISIBLE by default */
/* Animation is applied via JS for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    /* Default state for reveal elements is visible */
    .reveal:not(.revealed) {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

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

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

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

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

/* Selection color */
::selection {
    background-color: #C9A84C;
    color: #0A1F44;
}
