/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
  /* Light Theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-light: #e0f2fe;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);

  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --emerald: #059669;
  --emerald-light: #d1fae5;

  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-alt: #0f172a;
  --bg-card: #162032;
  --bg-card-hover: #1e293b;
  --bg-glass: rgba(17, 24, 39, 0.85);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0b0f19;

  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-light: rgba(56, 189, 248, 0.15);
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 100%);

  --teal: #2dd4bf;
  --teal-light: rgba(45, 212, 191, 0.15);
  --emerald: #34d399;
  --emerald-light: rgba(52, 211, 153, 0.15);

  --border-color: #1e293b;
  --border-subtle: #334155;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 48px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  margin: 1.25rem auto 0;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-subtle);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 0.9rem 2rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background-color: var(--teal-light);
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Dark mode icon toggle */
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-alt) 100%);
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
  padding: 1.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.meta-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.meta-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.link-highlight {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Photo Card */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
}

.photo-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15);
}

.photo-container {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  background-color: var(--bg-alt);
}

.profile-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.photo-card:hover .profile-photo {
  transform: scale(1.02);
}

.photo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem 0.25rem;
}

.photo-card-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.photo-card-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: block;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-light);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--emerald);
}

/* ==========================================================================
   HIGHLIGHTS BAR
   ========================================================================== */
.highlights-bar {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2.25rem 0;
}

.highlights-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.highlight-box {
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
  border-left: 3px solid var(--accent);
}

.highlight-number {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.highlight-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.highlight-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.about-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.about-card-title {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.main-about p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.15rem;
}

.main-about p:last-child {
  margin-bottom: 0;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.0625rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.info-card-header svg {
  color: var(--accent);
}

.info-list li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-color);
}

.info-list li:last-child {
  border-bottom: none;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   TIMELINE (EXPERIENCE)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background-color: var(--border-subtle);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2.5rem;
}

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

.timeline-dot {
  position: absolute;
  left: 17px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 3px solid var(--accent);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item.current .timeline-dot {
  background-color: var(--emerald);
  border-color: var(--emerald-light);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.2);
}

.timeline-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-subtle);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.job-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

.job-badge.active {
  background-color: var(--emerald-light);
  color: var(--emerald);
}

.job-title {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.company-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.15rem;
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-alt);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
}

.job-location {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.task-list {
  list-style: disc;
  padding-left: 1.25rem;
}

.task-list li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  line-height: 1.55;
}

.task-list li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   EDUCATION SECTION
   ========================================================================== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.edu-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.edu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.edu-card.featured-edu {
  grid-column: span 2;
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent-light) 100%);
}

.edu-badge-top {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.edu-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-content {
  flex: 1;
}

.edu-date {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.edu-degree {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.edu-institution {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.edu-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   TRAINING & RESEARCH
   ========================================================================== */
.training-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.training-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.training-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.training-card.research-highlight {
  grid-column: span 2;
  border-left: 4px solid var(--teal);
}

.training-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.training-title {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.training-place {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.training-period {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.training-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   SKILLS & LANGUAGES
   ========================================================================== */
.skills-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.skills-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.skills-block.full-width {
  grid-column: span 2;
}

.skills-block-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.skills-block-title svg {
  color: var(--accent);
}

/* Languages Progress */
.lang-item {
  margin-bottom: 1.25rem;
}

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

.lang-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.lang-level {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

/* Pills */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.skill-pill {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
}

.pill-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pill-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* IT Grid */
.it-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.it-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.it-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.it-card h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.it-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-card-main {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.contact-intro h3 {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}

.contact-intro p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2.25rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  text-align: left;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.cm-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cm-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cm-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cm-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.contact-actions {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-alt);
}

.back-to-top:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.85rem;
  }

  .highlights-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .it-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    order: 2;
    text-align: center;
  }

  .hero-image-wrapper {
    order: 1;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta-grid {
    text-align: left;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .edu-card.featured-edu {
    grid-column: span 1;
  }

  .training-grid {
    grid-template-columns: 1fr;
  }

  .training-card.research-highlight {
    grid-column: span 1;
  }

  .skills-wrapper {
    grid-template-columns: 1fr;
  }

  .skills-block.full-width {
    grid-column: span 1;
  }

  .pill-grid {
    grid-template-columns: 1fr;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .contact-card-main {
    padding: 2rem 1.25rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .contact-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .highlights-container {
    grid-template-columns: 1fr;
  }

  .it-grid {
    grid-template-columns: 1fr;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   PRINT STYLES (PDF EXPORT FRIENDLY)
   ========================================================================== */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }

  .navbar,
  .nav-actions,
  .hero-actions,
  .highlights-bar,
  .contact-actions,
  .footer,
  .toast,
  .theme-toggle,
  .back-to-top {
    display: none !important;
  }

  .section {
    padding: 1.5rem 0 !important;
    page-break-inside: avoid;
  }

  .hero {
    padding: 1rem 0 !important;
    background: none !important;
  }

  .hero-container {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .photo-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    max-width: 260px;
  }

  .timeline::before {
    background-color: #999 !important;
  }

  .timeline-dot {
    border-color: #333 !important;
  }

  .timeline-card,
  .edu-card,
  .training-card,
  .skills-block,
  .contact-card-main {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }

  a {
    color: #000000 !important;
    text-decoration: none !important;
  }
}
