/* ==========================================================================
   Dr. Aarav Sharma — Medical Emerald Green Portfolio & Resume Theme
   Zero Yellow • Live ECG / Heartbeat / Stethoscope Motifs • Full Animations
   ========================================================================== */

:root,
html[data-theme="dark"] {
    --sc-bg: #060D0A;
    --sc-bg-alt: #0A1410;
    --sc-surface: #0E1B16;
    --sc-card-bg: linear-gradient(155deg, rgba(16, 32, 26, 0.94), rgba(7, 15, 12, 0.98));
    --sc-accent: #10B981;
    --sc-accent-bright: #34D399;
    --sc-accent-deep: #059669;
    --sc-teal: #14B8A6;
    --sc-accent-text: #FFFFFF;
    --sc-heading: #ECFDF5;
    --sc-text: #CBD5E1;
    --sc-muted: #94A3B8;
    --sc-border: rgba(16, 185, 129, 0.22);
    --sc-border-soft: rgba(16, 185, 129, 0.16);
    --sc-input-border: rgba(52, 211, 153, 0.35);
    --sc-progress-track: #13261F;
    --sc-watermark: rgba(16, 185, 129, 0.08);
    --sc-watermark-stroke: rgba(52, 211, 153, 0.18);
}

html[data-theme="light"] {
    --sc-bg: #F9FAFB;
    --sc-bg-alt: #F1F5F9;
    --sc-surface: #FFFFFF;
    --sc-card-bg: #FFFFFF;
    --sc-accent: #047857;
    --sc-accent-bright: #065F46;
    --sc-accent-deep: #064E3B;
    --sc-teal: #0D9488;
    --sc-accent-text: #FFFFFF;
    --sc-heading: #111827;
    --sc-text: #374151;
    --sc-muted: #6B7280;
    --sc-border: #E5E7EB;
    --sc-border-soft: #F3F4F6;
    --sc-input-border: #D1D5DB;
    --sc-progress-track: #E5E7EB;
    --sc-watermark: rgba(4, 120, 87, 0.06);
    --sc-watermark-stroke: rgba(4, 120, 87, 0.12);
}

/* Global Base */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    background: var(--sc-bg);
    color: var(--sc-text);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--sc-heading);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--sc-bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--sc-accent);
    border-radius: 99px;
}

.preloader {
    background-color: #060D0A;
}

/* Top Reading Progress Bar */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10B981, #34D399, #14B8A6);
    z-index: 1060;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
    transition: width 0.08s linear;
}

/* ==========================================================================
   Fixed Left Sidebar (Medical Emerald Green)
   ========================================================================== */
.sc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #091310;
    border-right: 1px solid rgba(16, 185, 129, 0.2);
    padding: 28px 18px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 22px;
    align-items: center;
    text-align: center;
    z-index: 1040;
    overflow-y: auto;
    transition: left 0.35s ease;
}

html[dir="rtl"] .sc-sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid rgba(16, 185, 129, 0.2);
}

.sc-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.28);
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sc-brand:hover {
    transform: translateY(-2px);
    border-color: #34D399;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.22);
}

.sc-brand-logo {
    width: 100%;
    max-width: 215px;
    height: auto;
    display: block;
}

.sc-nav {
    width: 100%;
    margin: 14px 0;
    list-style: none;
    padding: 0;
}

.sc-nav li {
    margin-bottom: 4px;
}

.sc-nav .sc-nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 9px 14px;
    font-size: 14.5px;
    font-weight: 500;
    color: #E2E8F0;
    border-radius: 9px;
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
    text-align: left;
}

.sc-nav .sc-nav-link i {
    width: 22px;
    color: #34D399;
    opacity: 0.9;
}

.sc-nav .sc-nav-link:hover,
.sc-nav .sc-nav-link.active {
    color: #34D399;
    background: rgba(16, 185, 129, 0.14);
    border-left-color: #10B981;
    transform: translateX(4px);
}

.sc-nav .sc-sub-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding: 10px 6px 4px;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
}

.sc-nav .sc-sub-pages a {
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid rgba(16, 185, 129, 0.24);
    color: #CBD5E1;
}

.sc-nav .sc-sub-pages a:hover,
.sc-nav .sc-sub-pages a.active {
    border-color: #34D399;
    color: #34D399;
}

.sc-sidebar-bottom {
    width: 100%;
    font-size: 13px;
    color: #E2E8F0;
}

.sc-sidebar-tools {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(16, 185, 129, 0.55);
    background: rgba(9, 19, 16, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #34D399;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(16, 185, 129, 0.08);
    transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

html[data-theme="light"] .floating-theme-toggle {
    background: rgba(255, 255, 255, 0.92);
    color: #059669;
    box-shadow: 0 8px 22px rgba(6, 78, 59, 0.14), 0 0 0 4px rgba(16, 185, 129, 0.08);
}

.theme-toggle-btn:hover {
    background: #10B981;
    color: #FFFFFF;
    transform: translateY(-2px) rotate(14deg);
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.38);
}

.sc-credit {
    font-size: 12px;
    line-height: 1.5;
    color: #94A3B8;
    margin: 0;
}

.sc-credit span {
    color: #34D399;
    font-weight: 600;
}

/* Mobile Toggle Button */
#sc-menu-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1050;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #091310;
    color: #34D399;
    border: 1.5px solid #10B981;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Main Wrapper */
.sc-main-wrap {
    margin-left: 280px;
    min-height: 100vh;
    background: var(--sc-bg);
}

html[dir="rtl"] .sc-main-wrap {
    margin-left: 0;
    margin-right: 280px;
}

.sc-section {
    padding: 50px 5%;
    position: relative;
    overflow: hidden;
}

.sc-section-alt {
    background: var(--sc-bg-alt);
}

/* ==========================================================================
   Dual-Layer Watermark Section Titles (Small Eyebrow + Subtle Back Text)
   ========================================================================== */
.med-title-wrap {
    position: relative;
    margin-bottom: 36px;
    padding: 6px 0 8px;
}

.med-eyebrow {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2.6px;
    color: var(--sc-accent-bright);
    margin-bottom: 6px;
    position: relative;
    z-index: 3;
}

.med-watermark-stage {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 52px;
}

.med-watermark {
    font-size: clamp(2.1rem, 4.8vw, 3.6rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1;
    color: rgba(16, 185, 129, 0.055);
    -webkit-text-stroke: 1px rgba(52, 211, 153, 0.12);
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

html[data-theme="light"] .med-watermark {
    color: rgba(5, 150, 105, 0.05);
    -webkit-text-stroke: 1px rgba(5, 150, 105, 0.10);
}

.med-fg-title {
    font-size: clamp(1.75rem, 2.8vw, 2.3rem);
    font-weight: 600;
    color: var(--sc-heading);
    margin: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    white-space: nowrap;
}

.med-fg-title span {
    color: var(--sc-accent-bright);
    font-weight: 600;
}

.med-title-ecg {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    position: relative;
    z-index: 2;
}

.med-title-ecg .line {
    width: 54px;
    height: 2.5px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--sc-accent), var(--sc-teal));
}

.med-title-ecg i {
    color: var(--sc-accent-bright);
    font-size: 14px;
    animation: heartbeatIcon 1.6s ease-in-out infinite;
}

/* ==========================================================================
   Emerald Buttons & Micro-Interactions
   ========================================================================== */
.btn-emerald {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: 1.5px solid var(--sc-accent);
    color: var(--sc-accent-bright);
    background: transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-emerald:hover {
    background: var(--sc-accent);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.28);
}

.btn-emerald-filled {
    background: linear-gradient(135deg, #059669, #10B981);
    color: #FFFFFF !important;
    border-color: transparent;
}

.btn-emerald-filled::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: btnShimmer 3.4s ease-in-out infinite;
    pointer-events: none;
}

/* ==========================================================================
   1. Hero / First Section (Refined Typography, Low-Opacity ECG & Sleek Cards)
   ========================================================================== */
.sc-hero {
    min-height: auto;
    padding: 50px 5%;
    background: radial-gradient(circle at 75% 25%, rgba(16, 185, 129, 0.14), transparent 50%),
                radial-gradient(circle at 15% 85%, rgba(20, 184, 166, 0.10), transparent 45%),
                var(--sc-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.sc-hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9) 25%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9) 25%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.sc-hero-ecg-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 56%;
    transform: translateY(-50%);
    height: 120px;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}

.sc-ecg-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: ecgFlow 5s linear infinite;
}

.sc-float-med-icon {
    position: absolute;
    color: rgba(16, 185, 129, 0.10);
    pointer-events: none;
    animation: floatIcon 6.5s ease-in-out infinite;
    z-index: 0;
}

.sc-float-med-icon.i1 { top: 14%; left: 5%; font-size: 42px; }
.sc-float-med-icon.i2 { bottom: 14%; right: 6%; font-size: 48px; animation-delay: -2.2s; }
.sc-float-med-icon.i3 { top: 18%; right: 10%; font-size: 34px; animation-delay: -4s; }

.sc-hero-main {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 8px 0;
}

.sc-hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 15px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: var(--sc-accent-bright);
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 16px;
    animation: heroFadeUp 0.6s ease 0.05s both;
}

.sc-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
    animation: pulseDot 1.7s infinite;
}

.sc-hero-name {
    font-size: clamp(2.1rem, 3.8vw, 3.05rem);
    font-weight: 600;
    line-height: 1.18;
    margin-bottom: 8px;
    animation: heroFadeUp 0.7s ease 0.15s both;
}

.sc-hero-name span {
    color: var(--sc-accent-bright);
    font-weight: 600;
}

.sc-hero-typing-line {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    margin-bottom: 14px;
    animation: heroFadeUp 0.7s ease 0.22s both;
}

.sc-hero-typing-line .typing {
    color: var(--sc-accent-bright);
    font-weight: 500;
}

.sc-hero-qual-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    animation: heroFadeUp 0.7s ease 0.28s both;
}

.sc-hero-qual-pills span {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 400;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: var(--sc-accent-bright);
}

p.sc-hero-bio {
    font-size: 13px;
    line-height: 1.65;
    color: var(--sc-text);
    max-width: 560px;
    margin-bottom: 26px !important;
    animation: heroFadeUp 0.7s ease 0.34s both;
}

.sc-hero-cta {
    animation: heroFadeUp 0.7s ease 0.4s both;
}

.btn-hero-sm {
    padding: 9px 19px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    gap: 7px !important;
}

.sc-hero-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
    animation: heroFadeUp 0.75s ease 0.46s both;
}

.sc-hero-stat {
    background: var(--sc-card-bg);
    border: 1px solid var(--sc-border);
    border-top: 2.5px solid var(--sc-accent);
    border-radius: 12px;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.sc-hero-stat:hover {
    transform: translateY(-4px);
    border-color: var(--sc-accent-bright);
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.16);
}

.sc-hero-stat .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.14);
    color: var(--sc-accent-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.sc-hero-stat h4 {
    font-size: 19px;
    font-weight: 600;
    color: var(--sc-accent-bright);
    line-height: 1.15;
    margin-bottom: 2px;
}

.sc-hero-stat p {
    font-size: 11.5px;
    color: var(--sc-muted);
    margin: 0;
    line-height: 1.2;
}

/* Right Hero Portrait Stage */
.sc-hero-stage {
    position: relative;
    width: min(360px, 86vw);
    height: min(360px, 86vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroZoomIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.sc-hero-halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed rgba(52, 211, 153, 0.65);
    animation: spinHalo 20s linear infinite;
}

.sc-hero-pulse-ring {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.45);
    animation: heartbeatAura 2.2s ease-in-out infinite;
}

.sc-hero-avatar {
    width: calc(100% - 44px);
    height: calc(100% - 44px);
    border-radius: 50%;
    border: 5px solid var(--sc-accent);
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 48px rgba(16, 185, 129, 0.28);
}

.sc-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.sc-hero-float-badge {
    position: absolute;
    z-index: 3;
    background: rgba(9, 19, 16, 0.94);
    border: 1px solid rgba(52, 211, 153, 0.55);
    border-radius: 14px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}

html[data-theme="light"] .sc-hero-float-badge {
    background: rgba(255, 255, 255, 0.96);
}

.sc-hero-float-badge.badge-left {
    top: 24px;
    left: -24px;
    animation: floatBadge 4s ease-in-out infinite;
}

.sc-hero-float-badge.badge-right {
    bottom: 24px;
    right: -24px;
    animation: floatBadge 4.4s ease-in-out -1.8s infinite;
}

.sc-hero-float-badge .badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #059669, #10B981);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.sc-hero-float-badge strong {
    display: block;
    font-size: 13px;
    color: var(--sc-heading);
    line-height: 1.2;
}

.sc-hero-float-badge span {
    display: block;
    font-size: 11px;
    color: var(--sc-accent-bright);
}

.sc-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.sc-social-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--sc-accent);
    color: var(--sc-accent-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    transition: all 0.28s ease;
}

.sc-social-circle:hover {
    background: var(--sc-accent);
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* ==========================================================================
   2. Distinct About Section (#about) — Clean Frame, Lighter Weights & Compact Cards
   ========================================================================== */
.about-editorial-frame {
    position: relative;
    padding: 0;
    max-width: 400px;
    margin: 0 auto;
}

.about-editorial-frame img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 390px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    border: 1.5px solid var(--sc-border);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.about-exp-pill {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    background: linear-gradient(135deg, #059669, #10B981);
    color: #FFFFFF;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(5, 150, 105, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: floatBadge 4.2s ease-in-out infinite;
}

.about-exp-pill i {
    font-size: 19px;
}

.about-exp-pill .exp-num {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
}

.about-exp-pill .exp-sub {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.92;
}

.about-cred-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(52, 211, 153, 0.32);
    color: var(--sc-accent-bright);
    font-size: 11.5px;
    font-weight: 400;
}

.about-subhead {
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--sc-heading);
}

.about-subhead span {
    color: var(--sc-accent-bright);
}

.about-desc {
    font-size: 13.8px;
    line-height: 1.68;
    color: var(--sc-text);
}

.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
}

.about-feature-chip {
    background: var(--sc-card-bg);
    border: 1px solid var(--sc-border);
    border-left: 3px solid var(--sc-accent);
    border-radius: 10px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.about-feature-chip:hover {
    border-color: var(--sc-accent-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.12);
}

.about-feature-chip .chip-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(16, 185, 129, 0.14);
    color: var(--sc-accent-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.about-feature-chip h6 {
    font-size: 13px;
    font-weight: 500;
    color: var(--sc-heading);
    margin-bottom: 2px;
    line-height: 1.25;
}

.about-feature-chip p {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--sc-muted);
    margin: 0;
    line-height: 1.3;
}

/* ==========================================================================
   3. Skills & Specialties (Compact Watermark, Modern Skill Cards, Refined Spec Cards)
   ========================================================================== */
.skills-title-compact {
    margin-bottom: 22px !important;
    padding: 0 !important;
}

.med-fg-title.skills-fg-light,
.med-fg-title.skills-fg-light span {
    font-weight: 500;
}

/* Animated Radial ECG Skill Gauge Cards */
.skill-radial-card {
    background: var(--sc-card-bg);
    border: 1px solid var(--sc-border);
    border-radius: 16px;
    padding: 18px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-radial-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sc-accent-bright), transparent);
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.skill-radial-card:hover {
    transform: translateY(-6px);
    border-color: var(--sc-accent-bright);
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.16);
}

.skill-radial-card:hover::before {
    opacity: 1;
}

.skill-radial-ring-wrap {
    position: relative;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-orbit-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px dashed rgba(52, 211, 153, 0.28);
    animation: spinHalo 16s linear infinite;
    transition: border-color 0.3s ease;
}

.skill-radial-card:hover .skill-orbit-ring {
    border-color: rgba(52, 211, 153, 0.75);
}

.skill-ring-svg {
    width: 92px;
    height: 92px;
    transform: rotate(-90deg);
}

.skill-ring-bg {
    fill: none;
    stroke: var(--sc-progress-track);
    stroke-width: 6;
}

.skill-ring-fg {
    fill: none;
    stroke: var(--sc-accent-bright);
    stroke-width: 6;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.45));
    transition: stroke-dashoffset 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.skill-ring-center i {
    font-size: 13px;
    color: var(--sc-accent-bright);
    animation: heartbeatIcon 2.2s ease-in-out infinite;
}

.skill-ring-pct {
    font-size: 14px;
    font-weight: 600;
    color: var(--sc-heading);
    line-height: 1;
}

.skill-radial-info {
    flex: 1;
    min-width: 0;
}

.skill-tag-pill {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--sc-accent-bright);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.28);
    padding: 2px 9px;
    border-radius: 99px;
    margin-bottom: 7px;
}

.skill-radial-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--sc-heading);
    line-height: 1.38;
    margin-bottom: 8px;
}

.skill-mini-ecg {
    width: 100%;
    height: 18px;
    color: rgba(52, 211, 153, 0.45);
    transition: color 0.3s ease;
}

.skill-radial-card:hover .skill-mini-ecg {
    color: var(--sc-accent-bright);
}

.skill-mini-ecg svg {
    width: 100%;
    height: 100%;
}

.skill-ecg-wave {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: skillEcgFlow 3.2s linear infinite;
}

@keyframes skillEcgFlow {
    0% { stroke-dashoffset: 220; }
    100% { stroke-dashoffset: 0; }
}

/* Modern 4 Specialty Cards */
.skill-spec-modern {
    background: var(--sc-card-bg);
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    padding: 20px 18px 22px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-spec-modern:hover {
    transform: translateY(-5px);
    border-color: var(--sc-accent-bright);
    box-shadow: 0 16px 32px rgba(16, 185, 129, 0.14);
}

.spec-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.spec-num {
    font-size: 18px;
    font-weight: 700;
    color: rgba(52, 211, 153, 0.25);
    transition: color 0.3s ease;
}

.skill-spec-modern:hover .spec-num {
    color: var(--sc-accent-bright);
}

.skill-spec-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.14);
    color: var(--sc-accent-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: transform 0.35s ease, background-color 0.3s ease, color 0.3s ease;
}

.skill-spec-modern:hover .skill-spec-icon {
    background: var(--sc-accent);
    color: #FFFFFF;
    transform: scale(1.1) rotate(-6deg);
}

.skill-spec-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--sc-heading);
    line-height: 1.35;
    margin-bottom: 6px;
}

.skill-spec-desc {
    font-size: 12px;
    font-weight: 400;
    color: var(--sc-muted);
    line-height: 1.55;
}

.spec-hover-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sc-accent), var(--sc-teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.skill-spec-modern:hover .spec-hover-bar {
    transform: scaleX(1);
}

.sc-skill-item {
    margin-bottom: 22px;
}

.sc-skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--sc-heading);
    margin-bottom: 8px;
}

.sc-skill-label span:last-child {
    color: var(--sc-accent-bright);
}

.sc-progress-track {
    width: 100%;
    height: 6px;
    background: var(--sc-progress-track);
    border-radius: 99px;
    overflow: hidden;
}

.sc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #059669, #10B981, #34D399);
    border-radius: 99px;
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-counting-bar {
    background: var(--sc-card-bg);
    border: 1px solid var(--sc-border);
    border-radius: 16px;
    padding: 32px 20px;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    text-align: center;
}

.sc-count-box h3 {
    font-size: 38px;
    font-weight: 800;
    color: var(--sc-accent-bright);
    margin-bottom: 4px;
}

.sc-count-box p {
    font-size: 14.5px;
    color: var(--sc-heading);
    margin: 0;
}

/* ==========================================================================
   4. Experience & Education Vertical Timelines (Refined Compact Proportions)
   ========================================================================== */
.sc-timeline-col-head {
    font-size: 16.5px;
    font-weight: 500;
    color: var(--sc-accent-bright);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-timeline-col-head i {
    font-size: 13.5px;
}

.sc-timeline-col {
    position: relative;
    padding-left: 28px;
    border-left: 2px solid var(--sc-accent);
}

.sc-timeline-card {
    position: relative;
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
    background: var(--sc-card-bg);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.sc-timeline-card:hover {
    border-color: var(--sc-accent-bright);
    transform: translateX(5px);
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.14);
}

.sc-timeline-icon {
    position: absolute;
    left: -47px;
    top: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #10B981);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 0 0 4px var(--sc-bg);
    transition: transform 0.3s ease;
}

.sc-timeline-card:hover .sc-timeline-icon {
    transform: scale(1.1);
}

.sc-year-pill {
    display: inline-block;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.36);
    color: var(--sc-accent-bright);
    font-size: 11px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 99px;
    margin-bottom: 8px;
}

.sc-timeline-role {
    font-size: 15.5px;
    font-weight: 500;
    color: var(--sc-heading);
    margin-bottom: 3px;
    line-height: 1.35;
}

.sc-timeline-org {
    font-size: 12.8px;
    font-weight: 500;
    color: var(--sc-accent-bright);
    margin-bottom: 5px;
}

.sc-timeline-desc {
    font-size: 12.2px;
    font-weight: 400;
    color: var(--sc-muted);
    line-height: 1.55;
}

/* ==========================================================================
   5. Portfolio — Redesigned Modern Cards with Dynamic Hover Float & Movement
   ========================================================================== */
.portfolio-case-card {
    position: relative;
    background: var(--sc-card-bg);
    border: 1px solid var(--sc-border);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), 
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), 
                border-color 0.3s ease;
}

.portfolio-case-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #34D399, #10B981);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

/* Card hover animation with lift & vibrant medical glow */
.portfolio-case-card:hover {
    transform: translateY(-8px) scale(1.008);
    border-color: rgba(52, 211, 153, 0.45);
    box-shadow: 0 20px 42px -10px rgba(16, 185, 129, 0.22), 0 8px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-case-card:hover::before {
    transform: scaleX(1);
}

.portfolio-case-top {
    padding: 18px 18px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.portfolio-case-icon-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-case-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #047857, #10B981);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.portfolio-case-card:hover .portfolio-case-icon {
    transform: translateY(-2px) scale(1.1) rotate(-6deg);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.38);
}

.portfolio-case-num-pill {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--sc-accent-bright);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.portfolio-case-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--sc-accent-bright);
    white-space: nowrap;
}

.portfolio-case-body {
    padding: 6px 18px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-case-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--sc-heading);
    margin-bottom: 8px;
    line-height: 1.38;
    transition: color 0.25s ease;
}

.portfolio-case-card:hover .portfolio-case-title {
    color: var(--sc-accent-bright);
}

.portfolio-case-card .portfolio-case-desc {
    font-size: 12px;
    color: var(--sc-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.portfolio-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.portfolio-case-tags span {
    font-size: 11px;
    font-weight: 500;
    color: var(--sc-accent-bright);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
    padding: 3px 9px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.portfolio-case-card:hover .portfolio-case-tags span {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(52, 211, 153, 0.35);
}

.portfolio-case-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    border-top: 1px solid var(--sc-border-soft);
    font-size: 12px;
    font-weight: 600;
    color: var(--sc-accent-bright);
    background: transparent;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: background 0.28s ease, color 0.28s ease, padding-left 0.28s ease;
}

.portfolio-case-cta-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    transition: background 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-case-cta:hover {
    background: linear-gradient(135deg, #047857, #10B981);
    color: #FFFFFF;
    padding-left: 22px;
}

.portfolio-case-cta:hover .portfolio-case-cta-arrow {
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(5px);
}

.sc-box-card,
.sc-service-card {
    border: 1px solid var(--sc-border);
    border-radius: 16px;
    background: var(--sc-card-bg);
    padding: 28px 24px;
    height: 100%;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.sc-box-card:hover {
    border-color: var(--sc-accent-bright);
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(16, 185, 129, 0.16);
}

.sc-service-circle {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #059669, #10B981);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

/* ==========================================================================
   6. Complete Responsive Gallery + Separate Gallery Menu Bar
   ========================================================================== */
.gallery-menu-bar {
    background: var(--sc-card-bg);
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 26px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gallery-menu-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--sc-heading);
}

.gallery-menu-label i {
    color: var(--sc-accent-bright);
}

.gallery-menu-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sc-tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.sc-tab-btn {
    padding: 7px 16px;
    font-size: 12.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--sc-border);
    border-radius: 99px;
    background: transparent;
    color: var(--sc-heading);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.sc-tab-btn.active,
.sc-tab-btn:hover {
    background: linear-gradient(135deg, #059669, #10B981);
    border-color: transparent;
    color: #FFFFFF;
}

.sc-gallery-card {
    position: relative;
    aspect-ratio: 16 / 10;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--sc-border);
    cursor: pointer;
}

.sc-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.sc-gallery-card:hover img {
    transform: scale(1.06);
}

.sc-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.94) 15%, rgba(6, 13, 10, 0.35));
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sc-gallery-card:hover .sc-gallery-overlay {
    opacity: 1;
}

.gallery-cat-tag {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: #10B981;
    color: #FFFFFF;
    padding: 2px 9px;
    border-radius: 99px;
    margin-bottom: 6px;
}

.gallery-preview-btn {
    font-size: 12px;
    font-weight: 500;
    background: #FFFFFF;
    color: #064E3B;
    padding: 4px 11px;
    border-radius: 6px;
}

@media (max-width: 991px), (hover: none) {
    .sc-gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(6, 13, 10, 0.92) 0%, rgba(6, 13, 10, 0.35) 55%, transparent 100%);
        padding: 14px;
    }
    .sc-gallery-overlay h6 {
        font-size: 14px;
        line-height: 1.3;
        white-space: normal;
        max-width: 100%;
    }
    .sc-gallery-overlay p {
        display: none;
    }
}

@media (max-width: 767px) {
    .gallery-menu-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        max-width: 100%;
        overflow: hidden;
    }
    .gallery-menu-pills {
        flex-wrap: wrap;
        width: 100%;
        gap: 6px;
    }
    .gallery-menu-pills .sc-tab-btn {
        padding: 6px 11px;
        font-size: 11px;
    }
    .med-fg-title {
        white-space: normal;
        font-size: clamp(1.35rem, 5.2vw, 1.75rem);
    }
    .med-watermark {
        font-size: clamp(1.9rem, 8.5vw, 2.6rem);
        letter-spacing: 2px;
    }
}

/* ==========================================================================
   7. Redesigned Editorial Medical Journal Blog Cards
   ========================================================================== */
.blog-journal-card {
    border: 1px solid var(--sc-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--sc-card-bg);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.blog-journal-card:hover {
    border-color: var(--sc-accent-bright);
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(16, 185, 129, 0.16);
}

.blog-journal-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--sc-border-soft);
}

.blog-journal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.blog-journal-card:hover .blog-journal-media img {
    transform: scale(1.06);
}

.blog-media-badges {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.blog-cat-chip {
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
    background: linear-gradient(135deg, #059669, #10B981);
    color: #FFFFFF;
}

.blog-read-chip {
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 400;
    background: rgba(6, 13, 10, 0.85);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #ECFDF5;
}

.blog-journal-body {
    padding: 18px 18px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--sc-accent-bright);
    margin-bottom: 8px;
}

.blog-journal-title {
    font-size: 15.5px;
    font-weight: 500;
    color: var(--sc-heading);
    line-height: 1.4;
    margin-bottom: 8px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    transition: color 0.25s ease;
}

.blog-journal-card:hover .blog-journal-title {
    color: var(--sc-accent-bright);
}

.blog-journal-excerpt {
    font-size: 12.5px;
    font-weight: 400;
    color: var(--sc-muted);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-journal-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid var(--sc-border-soft);
    background: transparent;
    color: var(--sc-accent-bright);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.22s ease, gap 0.22s ease;
}

.blog-journal-cta i {
    font-size: 11px;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-journal-cta:hover {
    color: var(--sc-accent-bright);
    gap: 13px;
}

.blog-journal-cta:hover i {
    transform: translateX(5px);
}

.sc-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #059669, #10B981);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 99px;
    width: max-content;
    margin-bottom: 12px;
}

/* ==========================================================================
   8. Contact Hub & Forms (Compact Spacing, Reduced Height, Lighter Fonts)
   ========================================================================== */
.contact-compact-type .contact-hub-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--sc-heading);
}

.contact-compact-type .contact-hub-sub {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--sc-muted);
}

.contact-compact-type .contact-row-label {
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sc-muted);
    margin-bottom: 1px;
}

/* Set all contact detail values (phone, whatsapp, email, address, timings) to 11px, font-weight 400 */
.contact-compact-type .contact-row-val {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: var(--sc-heading);
    text-decoration: none;
    line-height: 1.35;
}

.contact-compact-type .contact-row-val:hover {
    color: var(--sc-accent-bright);
}

/* Reduced Timings font-size and font-weight per user request */
.contact-compact-type .contact-timings-val,
.contact-compact-type .contact-timings-sub {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: var(--sc-muted) !important;
    line-height: 1.35 !important;
}

.contact-compact-type .contact-map-label,
.contact-compact-type .contact-map-link {
    font-size: 11px;
    font-weight: 500;
    color: var(--sc-accent-bright);
}

.contact-compact-type .sc-input-group .form-control,
.contact-compact-type .sc-input-group .form-select {
    font-size: 12.5px;
    font-weight: 400;
}

.contact-compact-type .slot-pill {
    font-size: 11px;
    font-weight: 500;
}

.contact-compact-type .btn-emerald {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
}

/* ==========================================================================
   8. Redesigned Contact Hub & Forms (16px Left-Right Spacing & Compact Height)
   ========================================================================== */
.sc-contact-hub {
    background: var(--sc-card-bg);
    border: 1px solid var(--sc-border);
    border-radius: 16px;
    padding: 22px 18px;
    height: auto;
}

.sc-contact-row-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid var(--sc-border-soft);
    margin-bottom: 12px;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.sc-contact-row-item:last-child {
    margin-bottom: 0;
}

.sc-contact-row-item:hover {
    border-color: var(--sc-accent);
    background: rgba(16, 185, 129, 0.09);
    transform: translateX(3px);
}

.sc-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #059669, #10B981);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sc-contact-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #047857, #10B981);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    flex-shrink: 0;
}

.sc-input-group {
    position: relative;
    margin-bottom: 0;
}

.sc-input-group i.sc-input-icon {
    position: absolute;
    left: 13px;
    top: 13px;
    color: var(--sc-accent-bright);
    font-size: 13px;
    pointer-events: none;
}

.sc-input-group .form-control,
.sc-input-group .form-select {
    background-color: rgba(6, 13, 10, 0.65) !important;
    border: 1.5px solid var(--sc-input-border) !important;
    border-radius: 8px !important;
    color: var(--sc-heading) !important;
    padding: 10px 14px 10px 38px !important;
    font-size: 12.5px;
    line-height: 1.4;
    min-height: 42px;
}

.sc-input-group textarea.form-control {
    min-height: 60px;
    padding-top: 10px !important;
}

.sc-input-group .form-select {
    padding-right: 32px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2334D399' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px 9px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[data-theme="light"] .sc-input-group .form-control,
html[data-theme="light"] .sc-input-group .form-select {
    background-color: #F8FAFC !important;
}

.sc-input-group .form-select option {
    background: #091310;
    color: #ECFDF5;
}

.sc-input-group .form-control:focus,
.sc-input-group .form-select:focus {
    border-color: var(--sc-accent-bright) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
}

.slot-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slot-pill {
    padding: 5px 11px;
    border-radius: 6px;
    border: 1px solid var(--sc-border);
    background: transparent;
    color: var(--sc-heading);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-pill.active,
.slot-pill:hover {
    background: var(--sc-accent);
    border-color: var(--sc-accent);
    color: #FFFFFF;
}

.map-frame-wrap {
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    overflow: hidden;
}

/* ==========================================================================
   Testimonials (For testimonials.html)
   ========================================================================== */
.sc-testi-card {
    border: 1px solid var(--sc-border);
    border-radius: 16px;
    padding: 74px 24px 34px;
    margin-top: 62px;
    text-align: center;
    position: relative;
    background: var(--sc-card-bg);
}

.sc-testi-avatar {
    width: 106px;
    height: 106px;
    border-radius: 50%;
    border: 3px solid var(--sc-accent);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sc-testi-stars {
    color: #10B981;
    margin-top: 12px;
}

/* ==========================================================================
   Page Banner, Footer, Floating Call & WhatsApp, Scroll-Top & Modals
   ========================================================================== */
.page-banner {
    background: var(--sc-bg-alt);
    border-bottom: 2px solid var(--sc-accent);
    padding: 50px 5%;
}

.page-banner .breadcrumb-item a {
    color: var(--sc-accent-bright);
}

.footer {
    background: #060D0A !important;
    color: #CBD5E1;
    padding: 56px 5% 28px;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.footer h5, .footer h6 {
    color: #34D399;
}

.footer a {
    color: #CBD5E1;
}

.footer a:hover {
    color: #34D399;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.floating-med-actions {
    position: fixed;
    right: 22px;
    bottom: 80px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-size: 19px;
    border: 1.5px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.float-btn::before,
#back-top-top::before {
    content: attr(data-tip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    padding: 5px 11px;
    border-radius: 99px;
    background: #091310;
    color: #ECFDF5;
    border: 1px solid rgba(52, 211, 153, 0.45);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

html[data-theme="light"] .float-btn::before,
html[data-theme="light"] #back-top-top::before {
    background: #FFFFFF;
    color: #064E3B;
    border-color: rgba(5, 150, 105, 0.35);
    box-shadow: 0 8px 20px rgba(6, 78, 59, 0.14);
}

.float-btn:hover::before,
#back-top-top:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.float-btn i {
    transition: transform 0.28s ease;
}

.float-btn-whatsapp {
    background: linear-gradient(135deg, #16A34A, #25D366);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35), 0 0 0 4px rgba(37, 211, 102, 0.14);
}

.float-btn-whatsapp::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid rgba(37, 211, 102, 0.45);
    animation: pulseDot 2.4s ease-out infinite;
    pointer-events: none;
}

.float-btn-whatsapp:hover {
    transform: translateY(-3px) scale(1.07);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.52), 0 0 0 5px rgba(37, 211, 102, 0.2);
}

.float-btn-whatsapp:hover i {
    transform: scale(1.12) rotate(-8deg);
}

.float-btn-call {
    background: linear-gradient(135deg, #047857, #10B981);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.34), 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.float-btn-call:hover {
    transform: translateY(-3px) scale(1.07);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.5), 0 0 0 5px rgba(16, 185, 129, 0.2);
}

.float-btn-call:hover i {
    transform: scale(1.1) rotate(12deg);
}

#back-top-top {
    position: fixed;
    right: 22px;
    bottom: -24px;
    width: 46px;
    height: 46px;
    line-height: 1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 19, 16, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #34D399;
    font-size: 16px;
    border: 1.5px solid rgba(16, 185, 129, 0.65);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), 0 0 0 4px rgba(16, 185, 129, 0.1);
    z-index: 990;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#back-top-top.active {
    bottom: 22px;
    opacity: 1;
    visibility: visible;
}

html[data-theme="light"] #back-top-top {
    background: rgba(255, 255, 255, 0.94);
    color: #059669;
    box-shadow: 0 10px 24px rgba(6, 78, 59, 0.14), 0 0 0 4px rgba(16, 185, 129, 0.1);
}

#back-top-top i {
    transition: transform 0.26s ease;
}

#back-top-top:hover {
    background: linear-gradient(135deg, #059669, #34D399);
    border-color: #6EE7B7;
    color: #FFFFFF !important;
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.48), 0 0 0 5px rgba(16, 185, 129, 0.2);
}

#back-top-top:hover i {
    transform: translateY(-2px);
}

.modal-content {
    background: #091310;
    color: #ECFDF5;
    border: 1.5px solid #10B981;
}

html[data-theme="light"] .modal-content {
    background: #FFFFFF;
    color: #0F172A;
}

.modal h1, .modal h2, .modal h3, .modal h4, .modal h5, .modal h6 {
    color: inherit;
}

.modal-content button.modal-close {
    right: 16px;
    top: 16px;
    background: #10B981;
    color: #FFFFFF;
}

/* ==========================================================================
   Scroll-Reveal & Medical Keyframes
   ========================================================================== */
.sc-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes ecgFlow {
    0% { stroke-dashoffset: 1200; }
    100% { stroke-dashoffset: 0; }
}

@keyframes spinHalo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes heartbeatAura {
    0%, 100% { transform: scale(0.98); opacity: 0.45; }
    50% { transform: scale(1.06); opacity: 0.95; }
}

@keyframes heartbeatIcon {
    0%, 100% { transform: scale(1); }
    20% { transform: scale(1.24); }
    40% { transform: scale(1); }
    60% { transform: scale(1.16); }
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.75); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(6deg); }
}

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

@keyframes heroZoomIn {
    from { opacity: 0; transform: scale(0.84); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes btnShimmer {
    0%, 60% { left: -120%; }
    100% { left: 160%; }
}

/* Minimal footer strip */
.footer-minimal {
    background: #060D0A;
    color: #CBD5E1;
    padding: 18px 5%;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    text-align: center;
}

html[data-theme="light"] .footer-minimal {
    background: #F1F5F9;
    color: #374151;
    border-top-color: #E5E7EB;
}

/* Responsive */
@media (max-width: 991px) {
    #sc-menu-btn { display: inline-flex; }
    .floating-theme-toggle { top: 18px; right: 72px; }
    .sc-sidebar { left: -300px; }
    .sc-sidebar.active { left: 0; box-shadow: 12px 0 40px rgba(0, 0, 0, 0.7); }
    .sc-main-wrap, html[dir="rtl"] .sc-main-wrap { margin-left: 0; margin-right: 0; }
    .sc-counting-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portfolio-case-num-pill { font-size: 10px; }
    .sc-hero-name { font-size: clamp(1.6rem, 5vw, 2.4rem); }
}

@media (max-width: 767px) {
    html, body, .sc-main-wrap { overflow-x: hidden; max-width: 100%; }
    .sc-hero-float-badge { display: none; }
    .sc-hero-quick-stats { grid-template-columns: 1fr; gap: 10px; }
    .about-feature-grid { grid-template-columns: 1fr; }
    .sc-counting-bar { grid-template-columns: 1fr; }
    .sc-timeline-col { padding-left: 22px; }
    .sc-timeline-icon { width: 32px; height: 32px; left: -39px; font-size: 12px; }
    .blog-journal-card { max-width: 100%; }
    .sc-contact-hub { padding: 16px 14px; }
    .floating-med-actions { right: 12px; bottom: 64px; transform: scale(0.9); transform-origin: bottom right; }
    .floating-theme-toggle { top: 14px; right: 64px; }
    #back-top-top { right: 12px; bottom: 14px; }
    .portfolio-case-card { border-radius: 16px; }
    .skill-radial-card { flex-direction: column; align-items: flex-start; }
    .med-watermark { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .sc-section { padding: 34px 4%; }
    .sc-hero { padding: 32px 4%; }
    .sc-hero-avatar { width: 220px; height: 220px; }
    .sc-hero-stage { min-height: 240px; }
    .sc-hero-cta { flex-direction: column; align-items: stretch; }
    .btn-hero-sm { width: 100%; justify-content: center; }
    .sc-contact-row-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .slot-pill-group { gap: 6px; }
    .slot-pill { font-size: 11px; padding: 5px 10px; }
    .sc-sidebar { width: 82vw; max-width: 280px; }
}
