/* Custom styles for SilverLine Chiropractic */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #a11f38;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #841a31;
}

/* Navigation transitions */
.nav-link {
    position: relative;
    color: #6e172b;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ea7652;
    transition: width 0.3s ease;
}
.nav-link:hover {
    color: #ea7652;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scrolled state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(132, 26, 49, 0.08);
}
nav.scrolled .nav-logo-text {
    color: #6e172b !important;
}
nav.scrolled .nav-link {
    color: #6e172b !important;
}

/* Hero geometric animations */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.05); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-15px, 20px) rotate(5deg); }
}
@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -15px) scale(1.03); }
}
@keyframes float4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, 10px); }
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

.hero-geo-1 { animation: float1 8s ease-in-out infinite; }
.hero-geo-2 { animation: float2 10s ease-in-out infinite; }
.hero-geo-3 { animation: float3 7s ease-in-out infinite; }
.hero-geo-4 { animation: float4 6s ease-in-out infinite; }
.hero-geo-5 { animation: float1 12s ease-in-out infinite; }

.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
    transform-origin: top;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card {
    transform: translateY(0);
}
.testimonial-card:hover {
    transform: translateY(-6px);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .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; }
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-link {
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, padding-left 0.3s ease;
}
.mobile-menu-link:hover {
    border-bottom-color: #fce7eb;
    padding-left: 8px;
    color: #ea7652;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(220, 76, 106, 0.1);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #6e172b;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.15;
    }
}
