/* Custom CSS for ASINMedic Website */

/* Performance optimizations */
* {
    box-sizing: border-box;
}

/* Font Family */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Background grid pattern */
.bg-grid-pattern {
    background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #1f4bd8, #ff7a00);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #1f4bd8, #3b82f6);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(31, 75, 216, 0.1), 0 10px 10px -5px rgba(31, 75, 216, 0.04);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff7a00, #f97316);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(255, 122, 0, 0.1), 0 10px 10px -5px rgba(255, 122, 0, 0.04);
}

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

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Feature card gradients */
.feature-card-blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.feature-card-green {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.feature-card-purple {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
}

.feature-card-orange {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

/* Modern utility classes */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive video */
.aspect-video {
    aspect-ratio: 16 / 9;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

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

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #1f4bd8;
    outline-offset: 2px;
}

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

.mobile-menu.open {
    max-height: 500px;
}

/* Hero section enhancements */
.hero-bg {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #fff7ed 100%);
}

/* Product card enhancements */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
}

/* Testimonial styles */
.testimonial-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
}

/* CTA section background */
.cta-bg {
    background: linear-gradient(135deg, #1f4bd8 0%, #7c3aed 100%);
}

/* Footer enhancements */
.footer-gradient {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

/* Interactive elements */
.interactive-element {
    transition: all 0.2s ease;
}

.interactive-element:hover {
    transform: scale(1.05);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(31, 75, 216, 0.1);
    color: #1f4bd8;
}

.badge-orange {
    background: rgba(255, 122, 0, 0.1);
    color: #ff7a00;
}

/* Stats animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number {
    animation: countUp 0.8s ease-out;
}

/* Form styles */
.form-input {
    transition: all 0.2s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: #1f4bd8;
    box-shadow: 0 0 0 3px rgba(31, 75, 216, 0.1);
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gradient-to-r,
    .bg-gradient-to-br,
    .bg-gradient-to-l {
        background: #1f4bd8 !important;
    }
    
    .text-gray-600 {
        color: #000000 !important;
    }
    
    .text-gray-400 {
        color: #666666 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here in the future */
}

/* Custom selection */
::selection {
    background: rgba(31, 75, 216, 0.2);
    color: #1f4bd8;
}

::-moz-selection {
    background: rgba(31, 75, 216, 0.2);
    color: #1f4bd8;
}
