/* Reset and Variables */
:root {
    --primary: #0d9488;        /* Teal */
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --primary-ultra-light: #f0fdfa;
    --secondary: #0f172a;      /* Navy/Slate */
    --secondary-light: #1e293b;
    --accent: #d97706;         /* Gold for Medalist */
    --accent-light: #fef3c7;
    --text: #334155;           /* Muted text */
    --text-dark: #0f172a;      /* Dark text */
    --text-muted: #64748b;     /* Slate grey */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    
    /* Glassmorphism Styles */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 10px 30px 0 rgba(13, 148, 136, 0.05);
    
    /* System font families */
    --font-en: 'Inter', sans-serif;
    --font-headings: Georgia, Cambria, "Times New Roman", Times, serif;
    --font-hi: 'Noto Sans Devanagari', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-bezier: border-box;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    background-color: var(--bg-light);
    color: #64748B;
    line-height: 1.8;
    letter-spacing: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem; /* 18px */
    font-weight: 400;
    line-height: 1.8;
    color: #64748B;
    max-width: 620px;
}

/* Language Toggling rules */
body.lang-en .hi { display: none !important; }
body.lang-hi .en { display: none !important; }

/* Smooth fade transition for language toggling */
body.lang-hi .hi,
body.lang-en .en {
    animation: langFadeIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes langFadeIn {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
body.lang-hi {
    font-family: var(--font-hi), var(--font-en);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: #0F172A; /* Dark Navy */
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Helper Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.text-center { text-align: center; }
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-red { color: #ef4444; }
.color-teal { color: var(--primary) !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    font-size: 1rem; /* 16px */
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Glassmorphic card styling */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Navigation bar styling */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translate3d(-50%, -30px, 0); /* Slide down from -30px */
    width: calc(100% - 32px);
    max-width: 1360px; /* Increased from 1200px for a more spacious layout */
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(13, 148, 136, 0.15);
    border-radius: 20px;
    padding: 10px 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    animation: navFloatEnter 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 400ms; /* Animate after the background */
}

@keyframes navFloatEnter {
    to {
        opacity: 1;
        transform: translate3d(-50%, 0, 0);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.06);
    border: 1.5px solid rgba(13, 148, 136, 0.25);
    transform: translate3d(-50%, 0, 0) scale(0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Enforce strictly one line for all header contents */
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    
    /* Entrance Animation */
    opacity: 0;
    transform: scale(0.9);
    animation: logoEnter 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 500ms; /* starts right after navbar starts entering */
}

@keyframes logoEnter {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-icon {
    font-size: 1.4rem;
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: 0.2px;
    word-spacing: 2px;
    line-height: 1.15;
}

.logo-sub {
    font-family: var(--font-en);
    font-size: 0.68rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-menu {
    display: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
    letter-spacing: 0.2px;
    white-space: nowrap; /* Prevent multi-line wrapping */
    transition: color 250ms ease;
    
    /* Entrance base state */
    opacity: 0;
    transform: translateY(12px);
    animation: linkEnter 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.nav-menu a:nth-child(1) { animation-delay: 500ms; }
.nav-menu a:nth-child(2) { animation-delay: 580ms; }
.nav-menu a:nth-child(3) { animation-delay: 660ms; }
.nav-menu a:nth-child(4) { animation-delay: 740ms; }
.nav-menu a:nth-child(5) { animation-delay: 820ms; }
.nav-menu a:nth-child(6) { animation-delay: 900ms; }

@keyframes linkEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 250ms ease, left 250ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 32px);
    left: 16px;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle-btn {
    background: rgba(13, 148, 136, 0.05);
    border: 1.5px solid rgba(13, 148, 136, 0.18);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
    
    /* Entrance Animation */
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 500ms;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.lang-toggle-btn i {
    font-size: 0.9rem;
}

.lang-toggle-btn:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.15);
}

.navbar .cta-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 10px 22px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
    white-space: nowrap; /* Prevent text wrapping inside CTA button */
    
    /* Entrance Animation */
    opacity: 0;
    transform: scale(0.95);
    animation: ctaEnter 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 850ms;
    transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 250ms;
}

@keyframes ctaEnter {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.navbar .cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.3);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

@media (min-width: 992px) {
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .nav-link {
        font-size: 0.88rem;
        padding: 6px 8px;
    }
    .nav-actions {
        gap: 8px;
    }
    .navbar .cta-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    .logo-name {
        font-size: 1.1rem;
    }
    .mobile-menu-btn {
        display: none;
    }
}

@media (min-width: 1200px) {
    .nav-menu {
        gap: 12px;
    }
    .nav-link {
        font-size: 1rem;
        padding: 8px 12px;
    }
    .nav-actions {
        gap: 16px;
    }
    .navbar .cta-btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }
    .logo-name {
        font-size: 1.25rem;
    }
}

/* Mobile Nav Menu Drawer */
@media (max-width: 991px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(13, 148, 136, 0.1);
        border-radius: 20px;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
        animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    @keyframes slideDown {
        from { transform: translateY(-10px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}

.hero {
    position: relative;
    padding: 160px 0 100px 0;
    background: radial-gradient(circle at 30% 50%, #e0f2fe 0%, #f0fdfa 50%, #f8fafc 100%);
    background-size: 160% 160%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    
    /* Entrance Animation & Glow movement */
    opacity: 0;
    animation: heroFadeIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               heroGlowMove 30s ease-in-out infinite alternate;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        background-size: 130% 130%;
    }
    to {
        opacity: 1;
        background-size: 160% 160%;
    }
}

@keyframes heroGlowMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 50% 100%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to left, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.2) 30%, rgba(248, 250, 252, 0.95) 75%, var(--bg-light) 100%),
        url("hero_bg.png");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right center;
    background-size: cover, contain;
    z-index: 0;
    pointer-events: none;
    
    /* Entrance Animation */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: stethoscopeEnter 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               stethoscopeFloat 8s ease-in-out infinite alternate 1.2s;
}

@keyframes stethoscopeEnter {
    to {
        opacity: 0.6;
        transform: translateY(0) scale(1);
    }
}

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

/* Animated Background blobs */
.hero-bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12; /* subtle 12% opacity */
    animation: blobMove 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: 10%;
    right: 10%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.blob-2 {
    bottom: 10%;
    left: 5%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    animation-delay: -8s;
}

@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(60px, -50px) scale(1.12);
    }
    100% {
        transform: translate(-40px, 80px) scale(0.9);
    }
}

/* Floating Medical Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.medical-particle {
    position: absolute;
    color: var(--primary);
    font-family: monospace;
    font-weight: bold;
    pointer-events: none;
    animation: floatUp infinite linear;
}

@keyframes floatUp {
    0% {
        transform: translateY(100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: var(--particle-opacity, 0.08);
    }
    90% {
        opacity: var(--particle-opacity, 0.08);
    }
    100% {
        transform: translateY(-90vh) rotate(360deg);
        opacity: 0;
    }
}

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    z-index: 2;
}

@media (min-width: 992px) {
    .hero {
        height: 100vh;
        height: 100dvh;
        padding: 80px 0 0 0; /* Clear fixed navbar */
    }

    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
        height: calc(100vh - 80px);
        align-content: center;
    }

    .badge-container {
        margin-bottom: 8px;
    }

    .hero-title {
        font-family: var(--font-headings);
        font-size: clamp(2rem, 3.5vw, 2.8rem);
        font-weight: 800;
        margin-bottom: 10px;
        line-height: 1.1;
        letter-spacing: -1.5px;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 14px;
        line-height: 1.6;
    }

    .hero-stats {
        margin-bottom: 16px;
        gap: 10px;
    }

    .stat-card {
        padding: 8px 12px;
        border-radius: var(--radius-sm);
    }

    .stat-card h3 {
        font-size: 1.65rem;
    }

    .stat-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .hero-actions {
        gap: 12px;
    }

    .hero-actions .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .image-wrapper {
        max-width: 290px; /* Scale down slightly on desktop so it fits one frame */
    }
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms, background-color 300ms;
    
    /* Entrance Animation */
    opacity: 0;
    transform: translateX(-30px);
    animation: badgeEnter 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-badge-left {
    animation-delay: 500ms;
}

.anim-badge-right {
    animation-delay: 600ms; /* 100ms delay between badges */
}

@keyframes badgeEnter {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge:hover {
    transform: translateY(-3px) scale(1.03); /* Lift 3px, scale 1.03 */
    box-shadow: 0 6px 15px rgba(13, 148, 136, 0.1);
}

.gold-badge {
    background-color: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.practice-badge {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid rgba(13, 148, 136, 0.2);
}

/* Reveal-up Headings */
.hero-title {
    font-family: var(--font-headings);
    font-size: clamp(2.25rem, 6vw, 4rem); /* 36px to 64px */
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-title-line {
    display: block;
    overflow: hidden;
    padding: 0.05em 0;
}

.hero-title-line.hi {
    padding: 0.18em 0; /* extra padding to prevent Devanagari vowel markers (matras) from cropping */
    line-height: 1.35; /* comfortable line height for Hindi characters */
}

.reveal-text {
    display: inline-block;
    transform: translateY(40px);
    opacity: 0;
    filter: blur(8px);
}

.hero-title .line-1 .reveal-text { 
    animation: revealUp 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards; 
    animation-delay: 550ms; 
}
.hero-title .line-2 .reveal-text { 
    animation: revealUp 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards; 
    animation-delay: 670ms; /* 120ms delay between lines */
}

@keyframes revealUp {
    to {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 600px;
    
    /* Entrance Animation */
    opacity: 0;
    transform: translateY(25px);
    animation: descFadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 920ms; /* delays 250ms after heading line 2 starts */
}

@keyframes descFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 35px;
}

.stat-card {
    background: var(--bg-white);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms, border-color 300ms;
    
    /* Entrance Animation */
    opacity: 0;
    transform: translateY(35px) scale(0.96);
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
    animation: statCardEnter 650ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-stats .stat-card:nth-child(1) { animation-delay: 1000ms; }
.hero-stats .stat-card:nth-child(2) { animation-delay: 1120ms; }

@keyframes statCardEnter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: var(--glass-shadow);
    }
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.08);
}

.stat-card h3 {
    font-size: clamp(2.5rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-card p {
    font-size: 1rem; /* 16px */
    color: #64748B;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    
    /* Entrance Animation */
    opacity: 0;
    transform: translateY(25px) scale(0.95);
    animation: heroActionsEnter 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1220ms; /* animates after stats cards start */
}

@keyframes heroActionsEnter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn {
    transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1), background-color 250ms, box-shadow 250ms, border-color 250ms;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
}

.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.35);
    background-color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: rgba(13, 148, 136, 0.06);
    border-color: var(--primary);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* enables 3D mouse tilt */
    
    /* Entrance Animation */
    opacity: 0;
    transform: translateX(50px) scale(0.92) rotate(1deg);
    animation: doctorCardEnter 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 720ms;
}

@keyframes doctorCardEnter {
    to {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
    }
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden; /* Restored to ensure clean image corner clipping */
    border: 6px solid var(--bg-white);
    background: var(--border-color);
    z-index: 2;
    aspect-ratio: 3/4;
    width: 100%;
    max-width: 380px;
    
    /* Floating Loop & Glowing Shadow */
    box-shadow: 0 20px 50px rgba(13, 148, 136, 0.08);
    animation: floatDoctorCard 6s ease-in-out infinite alternate;
    animation-delay: 1.82s; /* starts after entrance completes */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px; /* matches card inner boundary to prevent overflow */
}

.img-badge {
    position: absolute;
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    letter-spacing: 0.2px;
}

.registration-badge {
    top: 16px;
    left: 16px; /* Moved inside the frame */
    background: rgba(13, 148, 136, 0.9);
    
    /* Entrance Animation */
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
    animation: badgeDrop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 900ms;
}

@keyframes badgeDrop {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.clinic-badge {
    bottom: 16px;
    right: 16px; /* Moved inside the frame */
    background: rgba(15, 23, 42, 0.9);
    
    /* Entrance Animation */
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    animation: clinicBadgeEnter 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1000ms; /* Delay 1s */
}

@keyframes clinicBadgeEnter {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}


.image-decoration-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0.4;
    filter: blur(40px);
    z-index: 0;
}

/* Accessibility: respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .navbar, .nav-logo, .nav-link, .lang-toggle-btn, .navbar .cta-btn,
    .badge-container, .hero-badge, .reveal-text, .hero-desc,
    .stat-card, .hero-actions, .hero-image-container,
    .image-wrapper, .registration-badge, .clinic-badge, .blob, .medical-particle,
    .hero::before {
        animation: none !important;
        transform: none !important;
        transition: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
    
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* About Section */
.about {
    padding: 140px 0;
    background: var(--bg-white);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--text-dark);
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    margin: 16px auto 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.about-card {
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.about-card h3 {
    font-size: 1.375rem; /* 22px */
    font-weight: 600;
    margin-bottom: 16px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.registration-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.registration-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.registration-list li i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 3px;
}

.registration-list li strong {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: block;
}

.registration-list li p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Education & Experience Section */
.education-experience {
    padding: 140px 0;
    background-color: var(--bg-light);
}

.timeline-block {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
}

.block-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.block-icon {
    font-size: 2rem;
    color: var(--primary);
}

.timeline {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.timeline-content h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.timeline-content .college {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--border-color);
    transition: var(--transition);
}

.timeline-item:hover::before {
    border-color: var(--primary);
    background: var(--primary);
}

.highlight-item::before {
    border-color: var(--accent);
    background: var(--bg-white);
}

.highlight-item:hover::before {
    background: var(--accent);
}

.gold-badge-mini {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background-color: var(--accent-light);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.timeline-details {
    padding-left: 16px;
    list-style-type: disc;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.timeline-details li {
    margin-bottom: 10px;
}

/* Services Grid Section */
.services {
    padding: 140px 0;
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    background: var(--bg-white);
    border-color: var(--primary-light);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.06);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-body h4 {
    font-size: 1.375rem; /* 22px */
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.expert-tags-block {
    background: var(--primary-ultra-light);
    border: 1px solid rgba(13, 148, 136, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.expert-tags-block h3 {
    margin-bottom: 32px;
    font-size: 1.3rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.tag {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: scale(1.03);
}

/* Certifications Section */
.certifications {
    padding: 140px 0;
    background-color: var(--bg-light);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.cert-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    border-color: var(--primary-light);
}

.cert-badge {
    font-size: 1.6rem;
    color: var(--primary);
}

.cert-info h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.cert-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Publications Section */
.publications {
    padding: 140px 0;
    background-color: var(--bg-white);
}

.orcid-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.search-filter-controls {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .search-filter-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 450px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

#pub-search {
    width: 100%;
    padding: 12px 16px 12px 46px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

#pub-search:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.pub-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

.pub-card:hover {
    border-color: var(--primary-light);
    background-color: var(--bg-white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.pub-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.pub-title {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.45;
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 6px;
}

.pub-journal {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pub-metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.pub-link {
    margin-left: auto;
    color: var(--primary);
    font-weight: 700;
}

.pub-link:hover {
    color: var(--primary-dark);
}

.pub-link.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.active-research-card {
    border-left: 4px solid var(--primary);
    background-color: var(--primary-ultra-light);
}

.research-badge {
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 4px;
}

.pub-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* References Section */
.references {
    padding: 140px 0;
    background-color: var(--bg-light);
}

.references-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 992px) {
    .references-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.reference-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.quote-icon {
    font-size: 2.2rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.ref-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.8;
}

.ref-author h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.ref-author .designation {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
}

.ref-author .org {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contact & Schedule Section */
.contact {
    padding: 140px 0;
    background-color: var(--bg-white);
}

.contact-details-block {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.info-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.info-card h3 i {
    color: var(--primary);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.schedule-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.opd-note {
    background-color: var(--primary-ultra-light);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.opd-note i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 2px;
}

.opd-note p {
    font-size: 0.85rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-list li i {
    font-size: 1.2rem;
    background: var(--bg-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.contact-list .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.contact-list .value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-list a.value:hover {
    color: var(--primary);
}

/* Appointment Form */
.form-container {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.form-container h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Footer Section */
footer {
    background-color: var(--secondary);
    color: #94a3b8;
    padding: 80px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--secondary-light);
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 1.8rem;
    color: var(--primary);
}

.footer-logo span {
    font-family: var(--font-headings);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--bg-white);
    letter-spacing: -0.5px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 400px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--secondary-light);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li {
    font-size: 0.85rem;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding: 24px 0;
    font-size: 0.8rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 480px;
    padding: 40px;
    border-radius: var(--radius-lg);
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.close-modal:hover {
    color: var(--text-dark);
}

.success-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.modal-body h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.modal-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* Animations on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0f172a;
    z-index: 9999;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.page-transition-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

