/* =========================================
   MINIMAL LIGHT HEALTHCARE DESIGN SYSTEM
   ========================================= */
   :root {
    --color-bg-light: #fbfdff;
    --color-bg-glass: rgba(255, 255, 255, 0.85);
    --color-border-glass: rgba(0, 119, 182, 0.1);
    
    --color-primary: #0077b6;
    --color-cyan: #00b4d8;
    --color-cyan-light: #caf0f8;
    
    --color-text-main: #1a2b3c;
    --color-text-muted: #6c8299;
    
    --shadow-soft: 0 15px 45px rgba(0, 119, 182, 0.08);
    --shadow-hover: 0 20px 50px rgba(0, 180, 216, 0.15);
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-title, .title-gradient, .timer-num {
    font-family: 'Poppins', sans-serif;
}

.subtitle {
    font-family: 'Nunito', sans-serif;
}

/* =========================================
   BACKGROUND & LIGHTING
   ========================================= */
.light-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7fa 100%);
    z-index: -3;
    overflow: hidden;
}

.bg-blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: drift 25s infinite alternate ease-in-out;
    z-index: -2;
}

.circle-1 {
    top: -15%; left: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--color-cyan-light) 0%, transparent 70%);
}

.circle-2 {
    bottom: -20%; right: -15%;
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, rgba(0,119,182,0.1) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

#particles-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle-icon {
    position: absolute;
    color: rgba(0, 180, 216, 0.15);
    animation: floatUp 25s linear infinite;
    bottom: -50px;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* =========================================
   PRELOADER
   ========================================= */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg-light);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo-wrapper {
    position: relative;
    padding: 15px 25px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.pulse-ring {
    position: absolute;
    inset: -15px;
    border-radius: 20px;
    border: 2px solid var(--color-cyan);
    animation: ringPulse 1.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes ringPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.loader-logo { height: 90px; }
.sanjivani-logo.loader-logo { height: 80px; }

/* =========================================
   COMMON TYPOGRAPHY & UTILS
   ========================================= */
.hospital-logo {
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.text-cyan { color: var(--color-primary); }
.text-muted-premium { color: var(--color-text-muted); font-size: 1.1rem; }

.title-gradient {
    color: var(--color-text-main);
    letter-spacing: -0.5px;
}

/* =========================================
   FLOATING RIBBON
   ========================================= */
.floating-ribbon {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    animation: floatRibbon 4s ease-in-out infinite;
}

.ribbon-content {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-primary) 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.4);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

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

/* =========================================
   MAIN WRAPPER & GLASS CARD
   ========================================= */
.main-wrapper {
    position: relative;
    z-index: 1;
}

.hero-glass-card {
    position: relative;
    width: 100%;
    padding: 2rem 0;
    /* Removed box styling so the content gracefully covers the full background area */
}

.hero-logo-wrapper {
    display: inline-block;
    position: relative;
    z-index: 2;
    margin-top: 10px;
}

.logo-glow-behind {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 140%; height: 140%;
    background: radial-gradient(circle, var(--color-cyan-light) 0%, transparent 60%);
    filter: blur(15px);
    z-index: -1;
    border-radius: 50%;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero-main-logo {
    height: 120px;
    max-width: 100%;
}

.hero-sanjivani-logo {
    height: 95px; /* Slightly smaller than main logo */
    max-width: 100%;
}

.brand-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
}

.brand-logo.sanjivani-logo {
    height: 120px;
}

.floating-animation {
    animation: floatLogo 6s ease-in-out infinite;
}

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

.typing-container {
    font-size: 1.15rem;
    min-height: 2rem;
    letter-spacing: 0.3px;
}

.cursor {
    animation: blink 1s step-end infinite;
    font-weight: bold;
}
@keyframes blink { 50% { opacity: 0; } }

/* =========================================
   COUNTDOWN
   ========================================= */
.timer-card {
    padding: 30px 15px;
    text-align: center;
    border-radius: 20px;
    background: white;
    border: 1px solid rgba(0, 119, 182, 0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.timer-card:hover {
    border-color: rgba(0, 180, 216, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.timer-num {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
    line-height: 1.1;
}

.timer-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* =========================================
   ABOUT & MAP SECTION
   ========================================= */
.about-section {
    max-width: 1100px;
}

.about-card {
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0, 119, 182, 0.08);
    border-left: 6px solid var(--color-cyan);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 180, 216, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px; height: 70px;
    background: var(--color-cyan-light);
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(255,255,255,0.5);
}

.heartbeat-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: white;
    color: #ff4757;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.2);
    animation: heartBeatPulse 1.5s infinite;
}

@keyframes heartBeatPulse {
    0% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

.map-card {
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0, 119, 182, 0.08);
    border-right: 6px solid var(--color-cyan);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.map-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.map-container.glass-border {
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 20px rgba(0, 180, 216, 0.15);
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.map-container.glass-border:hover {
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.25);
    border-color: rgba(0, 180, 216, 0.2);
}

/* =========================================
   SUBSCRIPTION
   ========================================= */
.input-group-custom {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0, 119, 182, 0.1);
    transition: var(--transition-smooth);
}

.input-group-custom:focus-within {
    border-color: var(--color-cyan);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.15);
}

.form-control-light {
    width: 100%;
    padding: 12px 140px 12px 20px;
    border: none;
    background: transparent;
    color: var(--color-text-main);
    font-size: 1rem;
}

.form-control-light:focus { outline: none; }
.form-control-light::placeholder { color: #a0aec0; }

.btn-primary-gradient {
    padding: 0 25px;
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-primary) 100%);
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.subscribe-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
    color: white;
}

/* =========================================
   FOOTER
   ========================================= */
.border-top-light {
    border-top: 1px solid rgba(0, 119, 182, 0.1);
}

.social-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    text-decoration: none;
    border: 1px solid rgba(0, 119, 182, 0.1);
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: var(--color-cyan-light);
    color: var(--color-primary);
    transform: translateY(-3px);
    border-color: var(--color-cyan);
}

/* =========================================
   NEW UTILITIES & CONTACT PANEL
   ========================================= */
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }

.glassmorphism-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
}

.bg-cyan-light {
    background-color: var(--color-cyan-light) !important;
}

.hover-lift { transition: var(--transition-smooth); }
.hover-lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover) !important; }

.hover-lift-sm { transition: var(--transition-smooth); cursor: pointer; }
.hover-lift-sm:hover { transform: translateX(5px); }

.map-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(0, 180, 216, 0.1);
    border-radius: 1rem;
}

/* =========================================
   REVEAL ANIMATIONS
   ========================================= */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .floating-ribbon {
        top: 20px;
        right: 20px;
        transform: scale(0.9);
    }
    .brand-logo { height: 90px; }
    .brand-logo.sanjivani-logo { height: 80px; }
    .display-4 { font-size: 2.2rem; }
    .timer-num { font-size: 2.2rem; }
    .timer-card { padding: 15px 5px; }
    .form-control-light { padding-right: 20px; padding-bottom: 70px; }
    .subscribe-btn { position: relative; width: 100%; height: 50px; right: 0; margin-top: 10px; border-radius: 50px; }
    .input-group-custom { flex-direction: column; padding: 15px; border-radius: 20px; }
    .about-card p { text-align-last: left; }
    .contact-panel { margin-top: 2rem; }
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.hospital-footer {
    background: #f0f8ff; /* Faint blue color (AliceBlue) */
    border-top: 1px solid rgba(0, 119, 182, 0.1);
    position: relative;
    z-index: 10;
}

.footer-divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-primary) 100%);
    border-radius: 5px;
    transition: width 0.4s ease;
}

.hospital-footer:hover .footer-divider {
    width: 100px;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition-smooth);
}

.hospital-footer:hover .footer-logo {
    filter: grayscale(0%) opacity(1);
}
