/* ========================================
   PMI PREMIUM MOTION SYSTEM 2026
   Modern Medical UI Framework
   ======================================== */

/* TASK 1: Preloader */
.pmi-motion-preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0a2e5c;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.pmi-motion-preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.pmi-motion-preloader-content {
    text-align: center;
}

.pmi-motion-pulse-circle {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: pmiPulse 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes pmiPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.pmi-motion-gradient-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #00b4a6, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pmiShimmer 3s linear infinite;
}

@keyframes pmiShimmer {
    to { background-position: 200% center; }
}

/* TASK 2: Hero Background Motion */
.pmi-motion-mesh-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 180, 166, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(30, 77, 140, 0.2) 0%, transparent 50%);
    filter: blur(80px);
    z-index: -1;
    animation: pmiMeshFloat 15s ease-in-out infinite alternate;
}

@keyframes pmiMeshFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(5%, 5%) rotate(5deg); }
}

.pmi-motion-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}

.pmi-motion-particle {
    position: absolute;
    width: 4px; height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: pmiParticleFloat 10s infinite ease-in-out;
}

@keyframes pmiParticleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    50% { transform: translateY(-100px) translateX(20px); opacity: 0.5; }
}

/* TASK 3: Layout & Separators */
.pmi-motion-separator {
    position: absolute;
    left: 0; width: 100%; height: 100px;
    z-index: 2;
    pointer-events: none;
}

.pmi-motion-sep-top { top: -1px; transform: rotate(180deg); }
.pmi-motion-sep-bottom { bottom: -1px; }

.pmi-motion-curve-svg {
    width: 100%;
    height: 100%;
    fill: #f4f8fb;
}

/* TASK 4: Scroll Reveal */
.pmi-motion-reveal-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.pmi-motion-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* TASK 5: Premium Button Hover */
.pmi-motion-premium-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.pmi-motion-premium-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: none;
}

.pmi-motion-premium-btn:hover::before {
    left: 150%;
    transition: all 0.7s ease;
}

.pmi-motion-premium-btn:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 180, 166, 0.3) !important;
}

/* TASK 6: Micro Animations */
.pmi-motion-float-soft {
    animation: pmiFloatSoft 6s ease-in-out infinite;
}

@keyframes pmiFloatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* TASK 7: Page Transitions */
.pmi-motion-page-fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Redesigned Sections Styling */
.pmi-modern-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--soft-shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(10, 46, 92, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pmi-modern-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.pmi-modern-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.pmi-modern-card:hover h3, 
.pmi-modern-card:hover h4, 
.pmi-modern-card:hover p,
.pmi-modern-card:hover li {
    color: var(--white) !important;
}

.pmi-modern-card:hover .dept-icon {
    background: var(--white);
    color: var(--accent-teal);
}

.pmi-modern-card:hover::before {
    opacity: 1;
}

.pmi-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pmi-glass-section {
    background: linear-gradient(135deg, rgba(244, 248, 251, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 4rem;
    margin: 2rem 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.pmi-pediatric-soft {
    background: linear-gradient(135deg, #fff5f8 0%, #f0f7ff 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    border: 2px dashed rgba(0, 180, 166, 0.2);
}

.pmi-floating-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: var(--accent-teal);
}

