/* Custom CSS for Pro Gym Management */

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

/* Loading animation */
#loading {
    transition: opacity 0.5s ease-in-out;
}

/* Fade animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Header scroll effect */
.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Smooth hover effects */
.smooth-hover {
    transition: all 0.3s ease;
}

/* Custom button hover effects */
.btn-hover {
    position: relative;
    overflow: hidden;
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hover:hover::before {
    left: 100%;
}

/* Form styling enhancements */
.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
}

.form-input:hover {
    border-color: rgba(220, 38, 38, 0.3);
}

/* Parallax effect for hero section */
.parallax {
    transform: translateZ(0);
    backface-visibility: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 300px;
}

/* Service card hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Testimonial styling */
.testimonial {
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: #1e40af;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
    opacity: 0.3;
}

/* Contact form success message */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.error-message {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

/* Section dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 2rem 0;
}

/* Logo animation */
.logo-hover {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(220, 38, 38, 0.2));
}

.logo-hover:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.3));
}

/* Professional gradient text */
.gradient-text {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced shadows */
.shadow-elegant {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.shadow-elegant-lg {
    box-shadow: 0 16px 64px rgba(15, 23, 42, 0.16);
}

/* Premium button styles */
.btn-premium {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.btn-premium:hover {
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .fade-in-up {
        transform: translateY(20px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}
