/* ===== Custom Styles for AB Eyebrow Threading ===== */

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

/* ===== Scroll Reveal Animation ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

/* ===== Navbar Transition ===== */
#navbar.scrolled {
    background: rgba(10, 26, 43, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.15);
}

#navbar.scrolled .nav-logo-text {
    color: white !important;
}

/* ===== Mobile Menu ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.open .mobile-link {
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu button active state */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* ===== Button Hover Effects ===== */
a[href="#contact"].bg-gold-400:hover {
    box-shadow: 0 10px 40px rgba(212, 154, 42, 0.3);
    transform: translateY(-2px);
}

/* ===== Service Card Hover ===== */
.group:hover .aspect-\[4\/5\] img {
    transform: scale(1.05);
}

/* ===== Testimonial Card Hover ===== */
.bg-white\/5:hover {
    border-color: rgba(212, 154, 42, 0.3);
    transform: translateY(-4px);
}

/* ===== Input Focus States ===== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 154, 42, 0.1);
}

/* ===== Gallery Image Hover ===== */
.rounded-xl.overflow-hidden:hover img {
    transform: scale(1.08);
}

/* ===== Divider Line ===== */
.gold-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #d49a2a, #f5e0a8);
    border: none;
    margin: 1.5rem 0;
}

/* ===== Subtle Background Gradient ===== */
body {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(212, 154, 42, 0.2);
    color: #102a43;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group:hover img,
    .rounded-xl.overflow-hidden:hover img {
        transform: none;
        transition: none;
    }
    
    #mobileMenu .mobile-link {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.15;
    }
    
    .font-serif.text-4xl {
        font-size: 2.25rem;
    }
    
    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
    
    .font-serif.text-6xl {
        font-size: 2.75rem;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
}
