/* Custom styles for Pain and Recovery Clinic */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1e052f;
}
::-webkit-scrollbar-thumb {
    background: #701a75;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Hero geometric animations */
.hero-geo {
    animation: float 6s ease-in-out infinite;
}
.hero-geo:nth-child(2) { animation-delay: -1s; animation-duration: 8s; }
.hero-geo:nth-child(3) { animation-delay: -2s; animation-duration: 7s; }
.hero-geo:nth-child(4) { animation-delay: -3s; animation-duration: 9s; }
.hero-geo:nth-child(5) { animation-delay: -1.5s; animation-duration: 10s; }
.hero-geo:nth-child(6) { animation-delay: -4s; animation-duration: 11s; }

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

/* About section animations */
.about-geo {
    animation: pulse-slow 8s ease-in-out infinite;
}
.about-geo:nth-child(2) { animation-delay: -3s; }
.about-geo:nth-child(3) { animation-delay: -5s; }

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* CTA animations */
.cta-geo {
    animation: drift 10s ease-in-out infinite;
}
.cta-geo:nth-child(2) { animation-delay: -2s; animation-duration: 12s; }
.cta-geo:nth-child(3) { animation-delay: -4s; animation-duration: 8s; }
.cta-geo:nth-child(4) { animation-delay: -1s; animation-duration: 9s; }
.cta-geo:nth-child(5) { animation-delay: -3s; animation-duration: 11s; }

@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(5deg); }
    50% { transform: translate(-5px, -25px) rotate(-3deg); }
    75% { transform: translate(-15px, -10px) rotate(2deg); }
}

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

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

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(112, 26, 117, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Selection color */
::selection {
    background: #a855f7;
    color: white;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-geo,
    .about-geo,
    .cta-geo {
        animation: none !important;
    }
    html {
        scroll-behavior: auto;
    }
    .service-card:hover,
    .approach-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .hero-geo {
        display: none;
    }
}
