/* Custom Styles for Studio J Unisex Salon */

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

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

::-webkit-scrollbar-track {
    background: #1a0a14;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #a2659a, #fbbf24);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #b075aa, #fcd34d);
}

/* Hero Animations */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-orb {
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    top: 50%;
    right: 5%;
    animation-delay: -7s;
}

.orb-3 {
    bottom: 10%;
    left: 30%;
    animation-delay: -14s;
}

.hero-badge {
    animation: slideInUp 0.8s ease-out forwards;
}

.hero-title {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-ctas {
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
    animation: slideInUp 0.8s ease-out 0.8s both;
}

/* Decorative Lines Animation */
@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.deco-line {
    animation: shimmer 4s ease-in-out infinite;
}

.line-1 { animation-delay: 0s; }
.line-2 { animation-delay: -1.3s; }
.line-3 { animation-delay: -2.6s; }

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Mobile Menu */
#mobileMenu {
    transition: opacity 0.5s ease, pointer-events 0.5s ease;
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

#mobileMenu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobileMenu.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobileMenu.active .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Navbar States */
.nav-scrolled {
    background: rgba(26, 10, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Menu Line Animation */
.menu-line {
    transition: all 0.3s ease;
}

#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: 1.5rem;
}

/* Selection Color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #f5f0f7;
}

/* Reduced 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;
    }
}

/* Service Card Glow Effect */
.group:hover::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(162, 101, 154, 0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.group:hover::before {
    opacity: 1;
}
