/* Custom styles for Lina Kabar Dental */

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

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(253, 246, 238, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-stone-800 {
    color: #1c1917;
}

/* Hero shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

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

.hero-shape:nth-child(2) { animation-delay: -1s; animation-duration: 7s; }
.hero-shape:nth-child(3) { animation-delay: -2s; animation-duration: 8s; }
.hero-shape:nth-child(4) { animation-delay: -3s; animation-duration: 5.5s; }
.hero-shape:nth-child(5) { animation-delay: -0.5s; animation-duration: 4s; }
.hero-shape:nth-child(6) { animation-delay: -4s; animation-duration: 6s; }
.hero-shape:nth-child(7) { animation-delay: -1.5s; animation-duration: 7.5s; }
.hero-shape:nth-child(8) { animation-delay: -2.5s; animation-duration: 5s; }
.hero-shape:nth-child(9) { animation-delay: -3.5s; animation-duration: 6.5s; }

/* Scroll reveal (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card stagger */
.service-card:nth-child(1) { transition-delay: 0ms; }
.service-card:nth-child(2) { transition-delay: 80ms; }
.service-card:nth-child(3) { transition-delay: 160ms; }
.service-card:nth-child(4) { transition-delay: 240ms; }
.service-card:nth-child(5) { transition-delay: 320ms; }
.service-card:nth-child(6) { transition-delay: 400ms; }

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

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

#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.25rem;
}

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

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

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

/* Input focus animations */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 85, 46, 0.1);
}

/* Selection color */
::selection {
    background: rgba(212, 85, 46, 0.2);
    color: #96331d;
}
