/* === Custom Styles for Thomas Jay Salon === */

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

/* === Navbar === */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(249, 245, 250, 0.85);
    border-bottom: 1px solid rgba(155, 106, 158, 0.08);
}

#navbar.scrolled {
    background: rgba(249, 245, 250, 0.95);
    box-shadow: 0 1px 20px rgba(74, 35, 90, 0.06);
}

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

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

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

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg);
}

/* Mobile links animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

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

/* === Floating Cards === */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

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

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

/* === Service Cards === */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* === Gallery Items === */
.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(74, 35, 90, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* === Scroll Animations === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.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; }

/* === Thin line decorations === */
.line-decoration {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, #F5C518, transparent);
}

/* === Selection === */
::selection {
    background: rgba(155, 106, 158, 0.2);
    color: #4A235A;
}

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

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

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

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

/* === Input autofill === */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #F9F5FA inset !important;
    box-shadow: 0 0 0 30px #F9F5FA inset !important;
}

/* === Form select customization === */
select option {
    background: #F9F5FA;
    color: #4A235A;
    padding: 0.5rem;
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
    .floating-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 1rem;
    }
}

/* === Animation keyframes === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-image {
    animation: scaleIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
}

/* === Print styles === */
@media print {
    #navbar,
    .floating-card,
    #mobile-menu {
        display: none !important;
    }
}
