/* Custom styles for Radiant Laser Therapy */

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

/* Navbar transition states */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(17, 30, 46, 0.08);
}

.nav-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, background 0.4s ease;
}

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

/* FAQ animations */
.faq-icon {
    transition: transform 0.3s ease !important;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s ease;
}

.faq-item.active .faq-content {
    max-height: 200px;
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu open state */
#mobileMenu.open {
    display: block;
}

#mobileMenu.hidden {
    display: none;
}

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal base styles (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }
    
    .reveal.revealed {
        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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Selection color */
::selection {
    background: rgba(64, 168, 126, 0.2);
    color: #1a2b40;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #63c09a;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #40a87e;
    outline-offset: 2px;
}

/* Subtle gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #1a2b40 0%, #40a87e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
