/* ============================================
   Top Knot Beauty Bar — Custom Styles
   ============================================ */

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

/* Custom selection color */
::selection {
    background: #800020;
    color: #FDF8F5;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(253, 248, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

#navbar.scrolled {
    background: rgba(253, 248, 245, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Staggered animation for mobile links */
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Hamburger animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* ============================================
   Hero Geometric Animations
   ============================================ */
.hero-geo {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-circle-1 {
    animation: float-slow 8s ease-in-out infinite;
}

.hero-circle-2 {
    animation: float-slow 10s ease-in-out infinite reverse;
}

.hero-rect {
    animation: float-slow 6s ease-in-out infinite;
}

.hero-diamond {
    animation: rotate-slow 12s linear infinite;
}

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

@keyframes rotate-slow {
    from { transform: rotate(45deg) translate(0, 0); }
    to { transform: rotate(405deg) translate(10px, -10px); }
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    border: 1px solid rgba(26, 26, 26, 0.06);
}

.service-card:hover {
    border-color: rgba(128, 0, 32, 0.15);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(128, 0, 32, 0.1);
}

/* ============================================
   Utility: Focus visible for accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid #800020;
    outline-offset: 2px;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.15;
    }
}
