:root {
    --primary-blue: #003366;
    --secondary-blue: #005b96;
    --alert-red: #d9534f;
    --light-bg: #f8fbfc;
    --text-dark: #333333;
    --text-muted: #666666;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--light-bg); color: var(--text-dark); line-height: 1.6; padding-top: 40px; overflow-x: hidden; }

/* --- Smart Loader --- */
.smart-loader { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #ffffff; z-index: 99999; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s ease-out; }
.medical-spinner { width: 60px; height: 60px; border: 6px solid #e0e6ed; border-top: 6px solid var(--alert-red); border-right: 6px solid var(--primary-blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Medical Animations --- */
@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.05); }
    30% { transform: scale(1); }
    45% { transform: scale(1.05); }
    60% { transform: scale(1); }
}
.animate-heartbeat:hover { animation: heartbeat 1.5s infinite; color: var(--alert-red); cursor: pointer; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up-element { animation: fadeUp 1s ease-out forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.pulse-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pulse-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 51, 102, 0.15); border-bottom: 4px solid var(--alert-red); }

/* --- Image Handling --- */
.img-fluid { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.img-cover { width: 100%; height: 250px; object-fit: cover; border-radius: 8px 8px 0 0; margin-bottom: 15px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.gallery-img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; transition: transform 0.4s ease; }
.gallery-img:hover { transform: scale(1.05); z-index: 10; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* --- Header & Nav --- */
.emergency-top-bar { position: fixed; top: 0; width: 100%; background: var(--alert-red); color: #fff; text-align: center; padding: 8px 15px; font-weight: bold; z-index: 999; }
.emergency-top-bar a { color: #fff; text-decoration: none; }
.main-header { background: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.05); padding: 10px 5%; display: flex; justify-content: space-between; align-items: center; }
.logo-area img { max-height: 60px; width: auto; vertical-align: middle; transition: transform 0.3s; }
.logo-area img:hover { transform: scale(1.05); }
.nav-links { list-style: none; display: flex; gap: 20px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--secondary-blue); }

/* --- Buttons & Grids --- */
.btn-primary { background: var(--primary-blue); color: #fff; padding: 12px 25px; border: none; border-radius: 5px; text-decoration: none; font-weight: bold; cursor: pointer; display: inline-block; transition: background 0.3s, transform 0.2s; }
.btn-primary:hover { background: var(--secondary-blue); transform: scale(1.02); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.corporate-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* --- Footer --- */
.main-footer { background: var(--primary-blue); color: #fff; padding: 60px 5% 20px; margin-top: 60px; }
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white; padding: 12px 20px; border-radius: 50px; text-decoration: none; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 1000; animation: fadeUp 1s ease-out; }
.whatsapp-float:hover { background: #1ebe57; }