/* 
   Dr. Pradeep Children's Clinic - Global Design System
   A premium, soft pediatric visual foundation.
*/

*, *::before, *::after {
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Brand Colors (Minimalist Professional Theme) */
    --primary-blue: #2563EB;
    --soft-blue-bg: #F8FAFC;
    --accent-pink: #F472B6;
    --soft-pink-bg: #FFF1F2;
    --neutral-white: #FFFFFF;
    --text-dark: #334155;
    
    /* Design Tokens (Tightened) */
    --radius-premium: 1.25rem; /* 20px */
    --radius-standard: 0.75rem; /* 12px */
    --shadow-soft: 0 4px 20px rgba(37, 99, 235, 0.03);
    --shadow-hospital: 0 15px 40px -10px rgba(37, 99, 235, 0.08);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 15px 40px rgba(0, 0, 0, 0.04);
    
    /* Typography Scaling (Reduced 10-15%) */
    --font-display: 'Plus Jakarta Sans', sans-serif; /* Simplified to Jakarta for body/titles */
    --font-body: 'Inter', sans-serif; /* Professional clean body */
}

/* Base Refinements */
html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    background-color: var(--neutral-white);
}

h1, h2, h3, h4, .font-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: #1e293b; /* More professional slate-navy */
    letter-spacing: -0.02em;
}

/* Base Body Refinement */
body {
    font-size: 15px; /* Scaled down 10% */
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Section Backgrounds Pattern */
.bg-soft-blue { background-color: var(--soft-blue-bg); }
.bg-soft-pink { background-color: var(--soft-pink-bg); }
.bg-white { background-color: var(--neutral-white); }
.bg-soft-pink-gradient {
    background: linear-gradient(135deg, var(--neutral-white) 0%, var(--soft-pink-bg) 100%);
}
.bg-hero-gradient {
    background: linear-gradient(135deg, var(--soft-blue-bg) 0%, var(--soft-pink-bg) 100%);
}

/* Minimal Clinical Navigation */
.premium-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

/* Professional Clinical Card System */
.premium-card {
    background: var(--neutral-white);
    border-radius: var(--radius-premium);
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.premium-card.tint-blue { background-color: rgba(227, 242, 253, 0.3); }
.premium-card.tint-pink { background-color: rgba(252, 228, 236, 0.3); }

/* Clean Professional CTAs */
.btn-premium-primary {
    background: var(--primary-blue);
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    font-size: 14px;
    border-radius: 99px;
    font-weight: 600;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
    box-shadow: 0 12px 25px -5px rgba(37, 99, 235, 0.3);
}

.btn-premium-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 1.5px solid var(--primary-blue);
    padding: 0.7rem 1.65rem;
    font-size: 14px;
    border-radius: 99px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-premium-secondary:hover {
    background: var(--primary-blue);
    color: #ffffff;
}

.btn-premium-secondary::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-pink) 100%);
    transition: all 0.5s ease;
    z-index: -1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.btn-premium-secondary:hover {
    color: #ffffff;
    border-color: transparent;
}

.btn-premium-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* Animations & Scroll Reveals */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Floating Blobs Background */
.blob-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

/* Clean Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08; /* Extremely faint */
    pointer-events: none;
}

/* Global Spacing Utilities */
.section-padding { padding: 3.5rem 1.5rem; }
@media (max-width: 768px) { .section-padding { padding: 2.5rem 1rem; } }

/* Scroll Indicators / Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%; height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--accent-pink));
    z-index: 1000;
    pointer-events: none;
}

/* Premium Typography Utilities */
.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    font-size: 32px;
}

@media (min-width: 768px) { .hero-title { font-size: 48px; } }
@media (min-width: 1024px) { .hero-title { font-size: 64px; } }

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    font-size: 28px;
    color: #0d47a1;
}

@media (min-width: 768px) { .section-title { font-size: 36px; } }
@media (min-width: 1024px) { .section-title { font-size: 44px; } }

.badge-pink { color: var(--accent-pink); }
.badge-blue { color: var(--primary-blue); }

/* Icons */
.icon-blue { color: var(--primary-blue); }
.icon-pink { color: var(--accent-pink); }

/* Cloud Shape Ornament */
.cloud-ornament {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: var(--neutral-white);
    box-shadow: var(--shadow-soft);
}

/* Premium Inner Page Hero System */
.inner-page-hero {
    position: relative;
    overflow: hidden;
    padding-top: 10rem;
    padding-bottom: 6rem;
    background: linear-gradient(135deg, var(--soft-blue-bg) 0%, var(--soft-pink-bg) 100%);
}

.inner-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.4), transparent);
}

.inner-hero-content {
    position: relative;
    z-index: 10;
}

/* Pediatric Theme Extensions */
.pediatric-theme-container {
    position: relative;
    overflow: hidden;
}

.pediatric-cloud {
    position: absolute;
    background: white;
    filter: blur(20px);
    opacity: 0.6;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.rainbow-accent {
    position: absolute;
    height: 150px;
    width: 150px;
    border: 12px solid transparent;
    border-top: 12px solid rgba(30, 136, 229, 0.15);
    border-radius: 50%;
    transform: rotate(-15deg);
    pointer-events: none;
}

.rainbow-accent::after {
    content: '';
    position: absolute;
    inset: -12px;
    border: 12px solid transparent;
    border-top: 12px solid rgba(236, 64, 122, 0.15);
    border-radius: 50%;
    transform: scale(0.9);
}

/* Animations */
@keyframes drift {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, 10px); }
    100% { transform: translate(0, 0); }
}

.animate-drift {
    animation: drift 15s ease-in-out infinite;
}

.animate-drift-slow {
    animation: drift 25s ease-in-out infinite;
}

@keyframes sway {
    0% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-12deg) translateY(-15px); }
    100% { transform: rotate(-15deg) translateY(0); }
}

.animate-sway {
    animation: sway 8s ease-in-out infinite;
}

@keyframes slide-across {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120vw); }
}

.animate-slide-slow {
    animation: slide-across 60s linear infinite;
}

.animate-slide-fast {
    animation: slide-across 40s linear infinite;
}

.soft-rounded-card {
    border-radius: 3.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.soft-rounded-card:hover {
    transform: translateY(-8px) scale(1.01);
}

.pastel-blue-bg { background-color: rgba(227, 242, 253, 0.4); }
.pastel-pink-bg { background-color: rgba(252, 228, 236, 0.4); }
.pastel-yellow-bg { background-color: rgba(255, 249, 196, 0.3); }
.pastel-green-bg { background-color: rgba(232, 245, 233, 0.4); }
.pastel-orange-bg { background-color: rgba(255, 243, 224, 0.4); }

/* Sky Theme Design System Extensions */
.sky-theme-section {
    position: relative;
    background: linear-gradient(to bottom, #f0f9ff, #ffffff);
    overflow: hidden;
}

.sky-card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3rem;
    box-shadow: 0 25px 50px -12px rgba(30, 136, 229, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sky-card-glass:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-8px);
    box-shadow: 0 32px 64px -12px rgba(30, 136, 229, 0.15);
}

.rainbow-halo {
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #60a5fa, #f472b6, #fbbf24, #34d399, #60a5fa);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: inherit;
    opacity: 0.15;
    filter: blur(10px);
    animation: rainbow-glow 8s ease infinite;
}

.sparkle-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 1;
    animation: sparkle-twinkle 3s ease-in-out infinite;
}

/* Animations */
@keyframes sky-drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -15px) scale(1.05); }
    66% { transform: translate(-20px, 10px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes rainbow-glow {
    0% { background-position: 0% 50%; opacity: 0.15; transform: scale(1); }
    50% { background-position: 100% 50%; opacity: 0.25; transform: scale(1.02); }
    100% { background-position: 0% 50%; opacity: 0.15; transform: scale(1); }
}

@keyframes sparkle-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

.animate-sky-drift {
    animation: sky-drift 20s ease-in-out infinite;
}

.animate-sky-drift-slow {
    animation: sky-drift 35s ease-in-out infinite;
}

.animate-sky-drift-reverse {
    animation: sky-drift 25s ease-in-out infinite reverse;
}

/* Base Cloud Utility */
.floating-cloud {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, white, rgba(255, 255, 255, 0.8));
    filter: blur(30px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

