/* Custom styles for Siwy Chiropractic and Wellness */

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

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

::-webkit-scrollbar-track {
    background: #0a0f0d;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Selection color */
::selection {
    background: rgba(22, 101, 52, 0.4);
    color: #fefdf8;
}

/* Scroll reveal base state - always visible */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

/* Scroll reveal with animation - only applied via JS */
.scroll-reveal.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

.scroll-reveal.animated.delay-1 {
    animation-delay: 0.1s;
}

.scroll-reveal.animated.delay-2 {
    animation-delay: 0.2s;
}

.scroll-reveal.animated.delay-3 {
    animation-delay: 0.3s;
}

.scroll-reveal.animated.delay-4 {
    animation-delay: 0.4s;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal.animated {
        animation: none;
    }
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(10, 15, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(22, 101, 52, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse animation for status dot */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
    }
}

/* Gradient text utility */
.text-gradient-emerald {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Image aspect ratio utilities */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Prevent layout shift on images */
img {
    height: auto;
}
