/* Custom styles for Fabrizio Chiropractic & Physical Rehabilitation */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f0a;
}
::-webkit-scrollbar-thumb {
    background: #2f432f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a843;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #f2f7f2;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(5, 8, 5, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(47, 67, 47, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card hover effects */
.service-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 168, 67, 0.05);
}

/* Gold gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #e6c460 0%, #d4a843 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fade in animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for CTA */
@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.2);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(212, 168, 67, 0.15);
    }
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu toggle animation */
.menu-line {
    transition: all 0.3s ease;
}
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
    margin-left: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card {
        transition: none;
    }
    .service-card:hover {
        transform: none;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    nav, .scroll-indicator, #contact-form, #form-success {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
