/* Profilioo Healthcare - Custom Styles */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Custom Properties */
:root {
    --medical-blue: #1e40af;
    --medical-green: #059669;
    --medical-light: #f0f9ff;
    --medical-dark: #1e293b;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-hero: linear-gradient(135deg, var(--medical-light) 0%, #e0f2fe 50%, #ffffff 100%);
}

/* Typography */
.font-merriweather {
    font-family: 'Merriweather', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Header Enhancements */
header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    transform: translateY(-10px);
    z-index: 1000;
    border: 1px solid #e5e7eb;
}

/* Hero Section Enhancements */
.hero-gradient {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23f0f9ff" opacity="0.3"><polygon points="0,0 1000,0 1000,100 500,50 0,100"/></svg>');
    background-size: cover;
    pointer-events: none;
}

/* Service Cards */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--medical-blue);
    box-shadow: var(--shadow-xl);
}

/* Department Cards */
.department-card {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    backdrop-filter: blur(10px);
}

.department-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, var(--medical-blue) 0%, #3b82f6 100%);
    border: none;
    box-shadow: 0 4px 6px rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--medical-green) 0%, #10b981 100%);
    border: none;
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(5, 150, 105, 0.4);
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Icon Enhancements */
.icon-container {
    background: linear-gradient(135deg, var(--medical-blue) 0%, #3b82f6 100%);
    box-shadow: 0 4px 6px rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
}

.icon-container:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 12px rgba(30, 64, 175, 0.4);
}

/* Section Dividers */
.section-divider {
    background: linear-gradient(90deg, transparent 0%, var(--medical-blue) 50%, transparent 100%);
    height: 2px;
    width: 100px;
    margin: 0 auto 2rem;
}

/* Contact Section */
.contact-bg {
    background: linear-gradient(135deg, var(--medical-dark) 0%, #334155 100%);
    position: relative;
}

.contact-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

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

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

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--medical-blue) 0%, var(--medical-green) 100%);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--medical-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-gradient h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .department-card {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-gradient h1 {
        font-size: 2rem;
    }
    
    .text-4xl {
        font-size: 1.875rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-medical-blue,
    .bg-medical-green,
    .bg-medical-dark {
        background: white !important;
        color: black !important;
        border: 1px solid black !important;
    }
}

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

/* Focus Styles */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--medical-blue);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-gray-600,
    .text-gray-700 {
        color: black !important;
    }
    
    .bg-medical-light {
        background: white !important;
        border: 2px solid black !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bg-white {
        background-color: #1a1a1a !important;
    }
    
    .text-medical-dark {
        color: #ffffff !important;
    }
    
    .text-gray-600,
    .text-gray-700 {
        color: #d1d5db !important;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.no-select {
    user-select: none;
}

.cursor-pointer {
    cursor: pointer;
}

/* Medical Theme Gradients */
.gradient-medical-blue {
    background: linear-gradient(135deg, var(--medical-blue) 0%, #3b82f6 100%);
}

.gradient-medical-green {
    background: linear-gradient(135deg, var(--medical-green) 0%, #10b981 100%);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--medical-blue) 0%, var(--medical-green) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #047857 100%);
}