/* Tech Stack Section Headers */
.tech-stack-section {
  margin-bottom: 2.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tech-stack-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-primary, #2563eb);
}
/* Tech Stack Icon Grid */
.tech-stack-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
  justify-content: flex-start;
  align-items: center;
}
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--card-bg, #fff);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tech-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.tech-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
}
.tech-item span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color, #333);
}
/* Maximum specificity for HealthcareSDLC modal tag */
.project-modal.show[data-project="healthcaresdlc"] .tag {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%) !important;
}
/* Maximum specificity for modal tag gradients */
.project-modal.show[data-project="plantswap"] .tag {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
}
.project-modal.show[data-project="homi"] .tag {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}
/* Modal tags match project card tag gradients exactly */
.project-modal[data-project="schackeriet"] .tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
/* Modal tags match project card tag gradients exactly */
.project-modal[data-project="schackeriet"] .tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.project-modal[data-project="claims"] .tag {
  background: linear-gradient(135deg, #3a8dd9 0%, #00c5d4 100%);
}
.project-modal[data-project="personality-miner"] .tag {
  background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
}
}
/* Fix broken braces and selectors above */

.project-card:nth-child(3) .project-image,
.project-card:nth-child(4) .project-image {
  background: linear-gradient(135deg, #3a8dd9 0%, #00c5d4 100%);
}


.project-card:nth-child(2) .tag {
  background: linear-gradient(135deg, #3a8dd9 0%, #00c5d4 100%); /* Claims */
}
.project-card:nth-child(3) .tag {
  background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%); /* Personality Miner */
}
.project-card:nth-child(4) .tag {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); /* Finance Tracker */
}


.project-card:nth-child(2) .see-more-btn,
.project-card:nth-child(3) .see-more-btn,
.project-card:nth-child(4) .see-more-btn {
  background: #fff !important;
  color: var(--link-color) !important;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.project-card:nth-child(2) .see-more-btn:hover,
.project-card:nth-child(3) .see-more-btn:hover,
.project-card:nth-child(4) .see-more-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
/* Project Details Modal */
.project-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  min-height: 0;
  overflow: auto;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modal.show {
  display: flex;
}

.modal-content {
  background: var(--card-bg, #fff);
  margin: 0;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  animation: modalFadeIn 0.25s;
}

@keyframes modalFadeIn {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-color, #333);
  cursor: pointer;
  font-weight: bold;
  z-index: 2;
  transition: color 0.2s;
}
.close-modal:hover {
  color: var(--accent-primary, #2563eb);
}

#modal-body {
  margin-top: 1.5rem;
}
/* Modern Professional Design System - Light Mode (Default) */
html,
:root {
  /* Background */
  --bg-gradient-start: #f8fafc;
  --bg-gradient-mid: #ffffff;
  --bg-gradient-end: #f1f5f9;
  
  /* Surface Colors */
  --header-bg: #ffffff;
  --header-shadow: rgba(15, 23, 42, 0.08);
  --card-bg: #ffffff;
  
  /* Text Colors */
  --header-text: #0f172a;
  --text-color: #334155;
  --text-secondary: #64748b;
  --title-color: #1e293b;
  
  /* Accent Colors - Modern Blue */
  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-secondary: #3b82f6;
  --link-color: #2563eb;
  --link-hover: #1d4ed8;
  
  /* Button Colors */
  --button-bg-start: #2563eb;
  --button-bg-end: #3b82f6;
  --button-hover: #1d4ed8;
  --download-btn-start: #047857;
  --download-btn-end: #0f766e;
  --download-btn-hover-start: #065f46;
  --download-btn-hover-end: #115e59;
  
  /* UI Elements */
  --profile-border: #059669;
  --contact-btn-bg: #475569;
  --contact-btn-hover: #334155;
  --h2-icon-bg: #1e293b;
  --border-color: #e2e8f0;
  
  /* Overlay Effects */
  --overlay-1: rgba(37, 99, 235, 0.06);
  --overlay-2: rgba(99, 102, 241, 0.05);
  --overlay-3: rgba(124, 58, 237, 0.04);
  --overlay-4: rgba(59, 130, 246, 0.04);
  --overlay-5: rgba(139, 92, 246, 0.03);
}

/* Modern Professional Design System - Dark Mode */
html.dark-mode,
html.dark-mode:root {
  /* Background - Soft Dark */
  --bg-gradient-start: #0f172a;
  --bg-gradient-mid: #1e293b;
  --bg-gradient-end: #0f172a;
  
  /* Surface Colors */
  --header-bg: #1e293b;
  --header-shadow: rgba(0, 0, 0, 0.4);
  --card-bg: #1e293b;
  
  /* Text Colors - Reduced Contrast */
  --header-text: #f1f5f9;
  --text-color: #cbd5e1;
  --text-secondary: #94a3b8;
  --title-color: #e2e8f0;
  
  /* Accent Colors - Brighter for Dark */
  --accent-primary: #60a5fa;
  --accent-primary-hover: #93c5fd;
  --accent-secondary: #3b82f6;
  --link-color: #60a5fa;
  --link-hover: #93c5fd;
  
  /* Button Colors */
  --button-bg-start: #3b82f6;
  --button-bg-end: #60a5fa;
  --button-hover: #2563eb;
  --download-btn-start: #059669;
  --download-btn-end: #0d9488;
  --download-btn-hover-start: #047857;
  --download-btn-hover-end: #0f766e;
  
  /* UI Elements */
  --profile-border: #10b981;
  --contact-btn-bg: #475569;
  --contact-btn-hover: #64748b;
  --h2-icon-bg: #3b82f6;
  --border-color: #334155;
  
  /* Overlay Effects - Subtle */
  --overlay-1: rgba(96, 165, 250, 0.08);
  --overlay-2: rgba(139, 92, 246, 0.06);
  --overlay-3: rgba(59, 130, 246, 0.05);
  --overlay-4: rgba(167, 139, 250, 0.04);
  --overlay-5: rgba(96, 165, 250, 0.04);
}

/* Base Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.011em;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
  min-height: 100vh;
  color: var(--text-color);
  position: relative;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 35%, var(--overlay-1) 0, transparent 30%),
    radial-gradient(circle at 70% 60%, var(--overlay-2) 0, transparent 28%),
    radial-gradient(circle at 60% 20%, var(--overlay-3) 0, transparent 26%),
    radial-gradient(circle at 80% 30%, var(--overlay-4) 0, transparent 24%),
    radial-gradient(circle at 40% 75%, var(--overlay-5) 0, transparent 22%);
  animation: bg-pulse-1 5s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
  transition: opacity 0.3s ease;
  will-change: opacity;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

html.dark-mode body::before {
  opacity: 0.5;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 80%, var(--overlay-1) 0, transparent 18%),
    radial-gradient(circle at 85% 15%, var(--overlay-2) 0, transparent 16%),
    radial-gradient(circle at 55% 60%, var(--overlay-3) 0, transparent 14%);
  animation: bg-pulse-2 7s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
  transition: opacity 0.3s ease;
  will-change: opacity;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

html.dark-mode body::after {
  opacity: 0.5;
}

@keyframes bg-pulse-1 {
  0%, 100% {
    filter: blur(0px) brightness(1);
    opacity: 1;
  }
  50% {
    filter: blur(6px) brightness(1.12);
    opacity: 0.8;
  }
}

@keyframes bg-pulse-2 {
  0%, 100% {
    filter: blur(0px) brightness(1);
    opacity: 1;
  }
  50% {
    filter: blur(4px) brightness(1.10);
    opacity: 0.7;
  }
}

/* Header */
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--header-bg);
  padding: 0.6rem 0;
  box-shadow: 0 2px 8px var(--header-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  isolation: isolate;
}

html.dark-mode header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: 2vw;
}

.header-middle {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-right: 2vw;
  position: relative;
  z-index: 10;
}

header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  background: transparent;
  padding: 0;
}

header nav a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 450;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  transition: color 0.2s, background 0.2s;
}

header nav a:hover,
header nav a:focus,
header nav a:hover,
header nav a:focus,
header nav a:hover,
header nav a:focus {
  color: #94a3b8;
  background: none;
  text-decoration: none;
  border: none;
  box-shadow: none;
  outline: none;
}

.header-name {
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-family: inherit;
  cursor: pointer;
  padding: 0 0.9em 0 0;
  margin: 0;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
  letter-spacing: 0.05em;
}

.header-name .logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.header-name:hover .logo-icon {
  transform: rotate(180deg);
}

.header-name:hover,
.header-name:focus {
  text-decoration: none;
  background: none;
  box-shadow: none;
  outline: none;
}

/* Theme Selector */
#theme-toggle {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 8px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  touch-action: manipulation;
}

html:not(.dark-mode) #theme-toggle:focus {
  outline: none;
  box-shadow: none;
  background: none;
}

#theme-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--header-text);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: all 0.2s;
}

#theme-toggle:hover,
#theme-toggle:focus {
  outline: none;
  background: none !important;
  box-shadow: none !important;
}
#theme-toggle:hover {
  transform: scale(1.15);
  outline: none;
}

#theme-toggle:hover svg,
#theme-toggle:focus svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Language Toggle */
.lang-selector-wrapper {
  position: relative;
}

#lang-toggle {
  background: transparent;
  border: none;
  color: var(--header-text);
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  vertical-align: middle;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 8px 12px;
  font-family: inherit;
}

#lang-toggle svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

#lang-toggle:hover,
#lang-toggle:focus {
  color: var(--link-hover);
  outline: none;
  background: none !important;
  box-shadow: none !important;
}
#lang-toggle:hover {
  color: var(--link-hover);
  outline: none;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--header-bg);
  border: 2px solid var(--link-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 140px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

.lang-dropdown.show {
  display: flex;
}

.lang-option {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

html:not(.dark-mode) .lang-option:focus {
  outline: none;
  box-shadow: none;
  background: none !important;
}

.lang-option:hover {
  background: var(--link-color);
  color: var(--header-bg);
}

.lang-option.active {
  background: rgba(0, 120, 215, 0.1);
}

.lang-check {
  font-size: 1rem;
  color: var(--link-color);
  visibility: hidden;
  width: 16px;
  flex-shrink: 0;
}

.lang-option.active .lang-check {
  visibility: visible;
}

.lang-option:hover .lang-check {
  color: var(--header-bg);
}

#header-dropdown {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  background: none;
  border: none;
  color: var(--header-text);
  cursor: pointer;
  margin-left: 0.5rem;
}

#header-dropdown:focus,
#header-dropdown:hover {
  background: rgba(0, 120, 215, 0.06);
  border-radius: 8px;
}

/* Profile & Content */
.profile-pic {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--profile-border);
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: border-color 0.3s ease;
}

main.two-column {
  display: flex;
  max-width: 1100px;
  margin: 10rem auto 2rem;
  background: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.left-column,
.right-column {
  padding: 2rem;
  background: transparent;
}

.left-column {
  flex: 1 1 320px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: none;
}

.right-column {
  flex: 2 1 600px;
  background: transparent;
}

.title {
  font-size: 1.2rem;
  color: var(--title-color);
  margin: 0 0 0.5rem 0;
  transition: color 0.3s ease;
}

.left-column h1 {
  margin: 0 0 0.25rem 0;
}

.school,
.location {
  margin: 0 0 0.25rem 0;
  font-weight: 500;
}

#resume-cv {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

section {
  margin-bottom: 8rem;
  scroll-margin-top: 100px;
}

.professional-summary p {
  white-space: pre-line;
}

.content-sections {
  max-width: 1100px;
  margin: 10rem auto 3rem;
  padding: 0 2rem;
}

.content-sections section {
  margin-bottom: 10rem;
  padding: 0;
  background: transparent;
  transition: all 0.3s ease;
}

.content-sections section:hover {
  transform: none;
}

/* Education Card */
.education-card {
  background: var(--header-bg);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #2563eb;
  transition: all 0.3s ease;
}

.education-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.education-header h3 {
  margin: 0 0 0.625rem 0;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.education-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.125rem;
  flex-wrap: wrap;
}

.education-institution {
  font-size: 1rem;
  font-weight: 500;
  color: var(--link-color);
}

.education-duration {
  font-size: 1rem;
  font-weight: 450;
  color: var(--text-color);
  opacity: 0.75;
}

.education-description {
  margin: 0 0 1.5rem 0;
  line-height: 1.7;
  color: var(--text-color);
  font-size: 1.05rem;
}

.education-core h4 {
  margin: 0 0 1rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-color);
}

.core-areas-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.core-areas-list li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.6;
  color: var(--text-color);
  font-size: 1rem;
}

.core-areas-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--link-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.education-focus {
  margin: 0;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.1), rgba(245, 87, 108, 0.1));
  border-radius: 8px;
  font-style: italic;
  color: var(--text-color);
  line-height: 1.6;
  border-left: 3px solid #2563eb;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 1rem 0 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 140px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--link-color) 0%, transparent 100%);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 40px 1fr;
  gap: 0;
  margin-bottom: 2.5rem;
  align-items: start;
}

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

.timeline-date {
  text-align: right;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--link-color);
  padding-top: 0.25rem;
  letter-spacing: 0.01em;
  word-spacing: 100vw;
  line-height: 1.4;
}

.timeline-dot {
  position: relative;
  width: 16px;
  height: 16px;
  background: var(--link-color);
  border-radius: 50%;
  margin: 0.5rem auto;
  box-shadow: 0 0 0 4px var(--bg-gradient-start), 0 0 0 8px var(--link-color);
  opacity: 0.9;
  transition: all 0.3s ease;
  z-index: 2;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px var(--bg-gradient-start), 0 0 0 12px var(--link-color);
}

.timeline-content {
  background: var(--header-bg);
  border-radius: 10px;
  padding: 1.375rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border-left: 3px solid var(--link-color);
}

.timeline-content:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-color);
}

.timeline-location {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: var(--link-color);
  font-weight: 450;
  opacity: 0.85;
}

.timeline-content p:last-child {
  margin: 0;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.9;
}

/* Skill Tree */
.skill-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  margin-top: 1rem;
}

.tree-root {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  position: relative;
}

.tree-root::after {
  content: '';
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3rem;
  background: linear-gradient(180deg, var(--link-color) 0%, transparent 100%);
}

.skill-node {
  background: var(--header-bg);
  border: 2px solid var(--link-color);
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.skill-node:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, var(--link-color) 0%, var(--link-hover) 100%);
  color: #ffffff;
  border-color: var(--link-hover);
}

.root-node {
  font-size: 1.3rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--link-color) 0%, var(--link-hover) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.root-node:hover {
  transform: translateY(-4px) scale(1.08);
}

.tree-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
  justify-items: center;
  width: 100%;
  max-width: 1200px;
}

.branch-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 220px;
}

.branch-line {
  width: 3px;
  height: 2rem;
  background: linear-gradient(180deg, transparent 0%, var(--link-color) 100%);
  margin-bottom: 1rem;
}

.main-branch {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  background: var(--header-bg);
  border-width: 3px;
  position: relative;
}

.main-branch::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 2rem;
  background: linear-gradient(180deg, var(--link-color) 0%, transparent 100%);
}

.sub-branches {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.sub-branch {
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-width: 2px;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.sub-branch:nth-child(1) {
  animation-delay: 0.1s;
}

.sub-branch:nth-child(2) {
  animation-delay: 0.2s;
}

.sub-branch:nth-child(3) {
  animation-delay: 0.3s;
}

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

/* Branch color variations */
.branch-group:nth-child(1) .main-branch {
  border-color: #8b5cf6;
}

.branch-group:nth-child(1) .skill-node {
  border-color: #8b5cf6;
}

.branch-group:nth-child(1) .skill-node:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: #7c3aed;
}

.branch-group:nth-child(2) .main-branch {
  border-color: #3b82f6;
}

.branch-group:nth-child(2) .skill-node {
  border-color: #3b82f6;
}

.branch-group:nth-child(2) .skill-node:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #2563eb;
}

.branch-group:nth-child(3) .main-branch {
  border-color: #10b981;
}

.branch-group:nth-child(3) .skill-node {
  border-color: #10b981;
}

.branch-group:nth-child(3) .skill-node:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #059669;
}

.branch-group:nth-child(4) .main-branch {
  border-color: #ec4899;
}

.branch-group:nth-child(4) .skill-node {
  border-color: #ec4899;
}

.branch-group:nth-child(4) .skill-node:hover {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  border-color: #db2777;
}

.branch-group:nth-child(5) .main-branch {
  border-color: #f97316;
}

.branch-group:nth-child(5) .skill-node {
  border-color: #f97316;
}

.branch-group:nth-child(5) .skill-node:hover {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-color: #ea580c;
}

.branch-group:nth-child(6) .main-branch {
  border-color: #06b6d4;
}

.branch-group:nth-child(6) .skill-node {
  border-color: #06b6d4;
}

.branch-group:nth-child(6) .skill-node:hover {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  border-color: #0891b2;
}

/* Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--header-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.project-status {
  display: none;
}

.project-status.commercial {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.project-image {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--link-color) 0%, var(--link-hover) 100%);
  overflow: hidden;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
}

.project-placeholder svg {
  width: 80px;
  height: 80px;
}

.project-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  background: #ffffff;
  color: var(--link-color);
  padding: 0.7rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  border: 2px solid var(--link-color);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}


.project-link:hover {
  background: #fff;
  color: var(--link-color);
  border-color: var(--link-color);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.18);
}

/* Override for see-more-btn: only scale, no color change */
.see-more-btn:hover {
  background: #fff !important;
  color: var(--link-color) !important;
  border-color: var(--link-color) !important;
}

.project-link.disabled {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: default;
  opacity: 0.9;
}

.project-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.project-link.disabled:hover {
  transform: none;
  box-shadow: none;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
}

.project-content p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.85;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--link-color);
  color: #ffffff;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.project-card:hover .tag {
  transform: scale(1.05);
}

/* Project color variations */
.project-card:nth-child(1) .project-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-card:nth-child(1) .tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-card:nth-child(2) .project-image {
  background: linear-gradient(135deg, #3a8dd9 0%, #00c5d4 100%);
}

.project-card:nth-child(2) .tag {
  background: linear-gradient(135deg, #3a8dd9 0%, #00c5d4 100%);
}


.project-card:nth-child(5) .project-image {
  background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
}

.project-card:nth-child(5) .tag {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); /* PlantSwap */
}

.project-card:nth-child(6) .project-image {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.project-card:nth-child(6) .tag {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); /* HealthcareSDLC */
}

.project-card:nth-child(7) .project-image {
  background: linear-gradient(135deg, #6ed4cf 0%, #f9adc4 100%);
}

.project-card:nth-child(7) .tag {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); /* HOMI */
}

.project-card:nth-child(8) .project-image {
  background: linear-gradient(135deg, #ffb84d 0%, #19547b 100%);
}

.project-card:nth-child(8) .tag {
  background: linear-gradient(135deg, #ffb84d 0%, #19547b 100%); /* Budget Tracker */
}

/* Clean Icon Badge Layout for Interests */
.interest-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--header-bg);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.badge-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.badge-icon-wrapper {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--link-color) 0%, var(--link-hover) 100%);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.badge-item:hover .badge-icon-wrapper {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.badge-icon-wrapper svg {
  width: 35px;
  height: 35px;
  stroke: #ffffff;
  stroke-width: 2;
}

.badge-item h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
}

.badge-item p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.8;
}

/* Unique gradient backgrounds for each badge icon */
.badge-item:nth-child(1) .badge-icon-wrapper {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.badge-item:nth-child(2) .badge-icon-wrapper {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.badge-item:nth-child(3) .badge-icon-wrapper {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.badge-item:nth-child(4) .badge-icon-wrapper {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.badge-item:nth-child(5) .badge-icon-wrapper {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.badge-item:nth-child(6) .badge-icon-wrapper {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* Dark mode adjustments */
html.dark-mode .badge-item {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Buttons */
button {
  background: linear-gradient(90deg, var(--button-bg-start) 0%, var(--button-bg-end) 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-cv-btn {
  display: flex;
  align-items: center;
  gap: 0.625em;
  background: linear-gradient(90deg, var(--download-btn-start) 0%, var(--download-btn-end) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  border: none;
  border-radius: 12px;
  padding: 0.75em 1.75em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border-bottom: none;
}

.download-cv-btn:hover,
.download-cv-btn:focus {
  background: linear-gradient(90deg, var(--download-btn-hover-start) 0%, var(--download-btn-hover-end) 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.download-cv-btn svg {
  width: 1.6em;
  height: 1.6em;
  display: block;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 0.5em;
}

.contact-buttons button {
  background: var(--contact-btn-bg);
  border: none;
  outline: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e6eef6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

.contact-buttons button:hover {
  background: var(--contact-btn-hover);
  color: #e6eef6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.contact-buttons svg {
  width: 28px;
  height: 28px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-top: 0;
}

.header-name,
header nav a,
button,
.title {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

h2 {
  display: flex;
  align-items: center;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.8em;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -0.3em;
  left: 0;
  width: 60px;
  height: 4px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.3;
}

.h2-icon {
  width: 2.2em;
  height: 2.2em;
  margin-right: 0.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.h2-icon svg {
  width: 1.3em;
  height: 1.3em;
  transition: transform 0.3s ease;
}

h2:hover .h2-icon svg {
  transform: scale(1.1) rotate(5deg);
}

/* Icon-specific colors */
.summary-icon {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.education-icon {
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.experience-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.skills-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.interests-icon {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(250, 112, 154, 0.3);
}

.projects-icon {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(48, 207, 208, 0.3);
}

h2:hover .h2-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsive Design (max-width: 600px) */
@media (max-width: 600px) {
  .header-middle {
    display: none;
  }

  #header-dropdown {
    display: flex;
  }

  .header-left {
    order: 1;
  }

  .header-right {
    order: 2;
    margin-left: auto;
    display: flex;
    gap: 0.3rem;
    align-items: center;
    margin-right: 0.5vw;
  }

  header {
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.5rem 0.5rem;
    gap: 0.5rem;
  }

  .header-middle.mobile-active {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--header-bg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    z-index: 99;
  }

  .header-middle.mobile-active nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .header-middle.mobile-active nav a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
  }

  .header-middle.mobile-active nav a:hover,
  .header-middle.mobile-active nav a:focus {
    color: var(--link-hover);
  }

  .header-left {
    margin-left: 0.5vw;
    flex-shrink: 0;
  }

  .header-name {
    font-size: 1.1rem;
    padding: 0 0.3em 0 0;
    height: 44px;
    gap: 8px;
  }

  .header-name .logo-icon {
    width: 36px;
    height: 36px;
  }

  #theme-toggle,
  #header-dropdown {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  #lang-toggle {
    font-size: 0.9rem;
    padding: 6px 8px;
    height: 40px;
    gap: 4px;
    flex-shrink: 0;
  }

  #lang-toggle svg {
    width: 20px;
    height: 20px;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
  }

  main.two-column {
    margin: 2.2rem auto 1rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .h2-icon {
    width: 2em;
    height: 2em;
    margin-right: 0.5em;
  }

  /* Timeline mobile */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .timeline-date {
    display: none;
  }

  .timeline-dot {
    margin: 0.5rem 0 0 2px;
  }

  .timeline-content {
    padding: 1.2rem;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .timeline-content:hover {
    transform: translateX(4px);
  }

  /* Skill tree mobile */
  .tree-branches {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .branch-group {
    min-width: 100%;
    max-width: 100%;
  }

  .skill-node {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  .root-node {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
  }

  .main-branch {
    font-size: 1rem;
  }

  .sub-branch {
    font-size: 0.85rem;
  }

  /* Projects mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card:hover {
    transform: translateY(-6px);
  }

  .project-image {
    height: 180px;
  }

  .project-placeholder svg {
    width: 60px;
    height: 60px;
  }

  .project-content {
    padding: 1.2rem;
  }

  .project-content h3 {
    font-size: 1.1rem;
  }

  /* Interests mobile - badges */
  .interest-badges {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .badge-item {
    padding: 1.75rem 1.25rem;
  }

  .badge-icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .badge-icon-wrapper svg {
    width: 30px;
    height: 30px;
  }

  .badge-item h3 {
    font-size: 1.1rem;
  }

  .badge-item p {
    font-size: 0.9rem;
  }

  /* Disable animations on mobile for performance */
  body::before,
  body::after {
    animation: none !important;
    opacity: 0.5;
    filter: blur(8px);
  }
}

/* Tablet Responsive Design (max-width: 900px) */
@media (max-width: 900px) {
  main.two-column {
    flex-direction: column;
    max-width: 98vw;
    margin: 4rem auto 1rem;
  }

  .left-column,
  .right-column {
    padding: 1.2rem;
  }

  .left-column {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .right-column {
    border-bottom: none;
  }

  .tree-branches {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .branch-group {
    max-width: 200px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .interest-badges {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

/* Dark Mode Enhancements */
html.dark-mode {
  --header-shadow: rgba(0, 0, 0, 0.5);
  --contact-btn-bg: #1f2937;
  --contact-btn-hover: #374151;
}

html.dark-mode .contact-buttons button {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

html.dark-mode .contact-buttons button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html.dark-mode .left-column {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}