/* --- Root Design Variables --- */
:root {
    --primary-color: #0d9488;     /* Modern Medical Teal */
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --secondary-color: #0f172a;   /* Deep Slate Navy */
    --accent-color: #2563eb;      /* Academic Blue Accent */
    --light-bg: #f8fafc;
    --card-border: #e2e8f0;
    --text-main: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --transition: all 0.25s ease-in-out;
}
.hero-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--secondary-color);
    line-height: 1.25;
}

p { margin-bottom: 1rem; }

a {
    text-decoration: none;
    transition: var(--transition);
}

/* --- Utilities --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 5.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.bg-light { background-color: var(--light-bg); }
.bg-primary { background-color: var(--primary-color); }
.text-white, .text-white h2, .text-white p { color: var(--white); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-15 { margin-top: 1.5rem; }

/* --- Navigation --- */
.navbar {
    background: var(--white);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    padding: 6px 10px;
    font-size: 0.9rem;
}

.logo-text {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover { color: var(--primary-color); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover { background-color: var(--primary-dark); }

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}
.btn-secondary:hover { background-color: #1e293b; }

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}
.btn-light:hover { background-color: var(--primary-light); }

/* --- Hero Section & Integrated Image Styling --- */
.hero {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.hero-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Photo Card Frame */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.hero-image-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    border: 8px solid var(--white);
    outline: 1px solid var(--card-border);
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08);
    background: var(--white);
}

.hero-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.image-floating-tag {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-floating-tag .dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* --- Experience & Cards --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 2rem;
}

.flat-card {
    background: var(--white);
    padding: 2.2rem;
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.flat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 1.8rem;
    background: var(--light-bg);
    padding: 10px;
    line-height: 1;
}

.meta-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.flat-list {
    list-style: none;
}

.flat-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.flat-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.75rem;
    top: 2px;
}

/* --- Timeline Section --- */
.timeline {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    border-left: 2px solid var(--card-border);
    padding-left: 2.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2.9rem;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.4rem;
}

.timeline .date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.pub-type {
    background: var(--light-bg);
    border: 1px solid var(--card-border);
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
}

.timeline-content h4 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.timeline-content .journal {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

/* --- Skills & Education Components --- */
.card-title-with-icon {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--light-bg);
}

.edu-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.edu-school {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.award-pill {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
}

.skills-group {
    margin-bottom: 1.2rem;
}

.skills-label {
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--light-bg);
    border: 1px solid var(--card-border);
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main);
}

.tag-primary {
    background: var(--primary-light);
    border-color: transparent;
    color: var(--primary-dark);
    font-weight: 600;
}

.tag-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* --- Contact & Footer --- */
.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    font-size: 1.05rem;
}

.footer {
    background: #020617;
    color: #64748b;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-badge { margin: 0 auto 1.2rem auto; }
    .hero-actions { justify-content: center; }
    .grid-2 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-details { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 600px) {
    .nav-links { display: none; } /* Simplified mobile header state */
    .hero-text h2 { font-size: 2.1rem; }
    .timeline { padding-left: 1.5rem; }
    .timeline-marker { left: -1.9rem; }
}