/* Custom styles for Healthspan Wellness Program */

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

/* Custom button styles */
.cta-button {
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

/* Navigation styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FFD700;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FFD700;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Section padding adjustments */
section {
    scroll-margin-top: 80px;
}

/* Enhanced card hover effects */
.hover\:shadow-lg:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom progress bars */
.progress-bar {
    background: linear-gradient(90deg, #6B7280 0%, #FFD700 100%);
}

/* Form focus states */
input:focus, textarea:focus {
    outline: none;
    border-color: #6B7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease-in-out;
}

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

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
}

/* Loading animation for form submission */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Health-inspired gradients */
.health-gradient {
    background: linear-gradient(135deg, #6B7280 0%, #9CA3AF 50%, #FFD700 100%);
}

/* Enhanced hover effects */
.transform-hover:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}
