@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Premium Dark Mode */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-glass: rgba(30, 41, 59, 0.7);
  --bg-glass-hover: rgba(51, 65, 85, 0.8);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glass: 1px solid rgba(255, 255, 255, 0.05);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout & Spacing */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #eef3f9;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-glass-hover: rgba(255, 255, 255, 0.95);
  --text-primary: #142033;
  --text-secondary: #526277;
  --text-muted: #718096;
  --border-color: rgba(30, 64, 105, 0.16);
  --border-glass: 1px solid rgba(30, 64, 105, 0.12);
  --shadow-md: 0 8px 24px rgba(36, 55, 80, 0.1);
  --shadow-lg: 0 16px 35px rgba(36, 55, 80, 0.15);
  --shadow-glow: 0 0 24px rgba(59, 130, 246, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  /* Subtle animated gradient background */
  background: radial-gradient(circle at top left, #1e293b, #0f172a 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  padding-top: 4.5rem;
}

html[data-theme="light"] body {
  background: radial-gradient(circle at top left, #ffffff, #eef3f9 46%, #e4ebf4);
}

/* Layout Containers */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.25rem;
}

.intro-content {
  display: contents;
}

.sidebar {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.summary-card {
  grid-column: 2;
  grid-row: 1;
}

.main-content {
  grid-column: 2;
  grid-row: 2;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    padding-top: 4rem;
  }

  .app-container {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1rem;
  }

  .sidebar,
  .summary-card,
  .main-content {
    grid-column: 1;
    grid-row: auto;
  }

  .sidebar {
    position: static;
  }

  .main-content {
    gap: 0.8rem;
  }

  .glass-card,
  .filters-bar {
    border-radius: var(--radius-lg);
    padding: 1.1rem;
  }

  .glass-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }

  .profile-header {
    text-align: center;
  }

  .profile-avatar {
    width: 112px;
    height: 112px;
    margin: 0 auto 1rem;
  }

  .profile-header h2 {
    font-size: 1.55rem;
  }

  .profile-role {
    justify-content: center;
    margin-bottom: 0.25rem;
    line-height: 1.35;
  }

  .contact-list {
    gap: 0.85rem;
    margin-top: 1.25rem;
  }

  .contact-item {
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .contact-icon,
  .map-icon-link,
  .map-icon-link svg {
    width: 18px;
    height: 18px;
  }

  .phone-links {
    gap: 0.15rem;
  }

  .filters-bar {
    gap: 0.75rem;
    margin-bottom: 0;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .filter-label {
    display: none;
  }

  .filter-group,
  .filter-input {
    width: 100%;
  }

  .filter-input {
    min-height: 2.75rem;
  }

  .active-filters {
    gap: 0.45rem;
  }

  .tag {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }

  .work-content h4 {
    font-size: 1rem;
    line-height: 1.35;
  }

  .work-content ul {
    margin-top: 0.75rem;
  }

  .work-content li {
    padding-left: 1.15rem;
  }
}

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

h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-primary); }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }

/* Glassmorphism Card Base */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

/* CV Layout Specifics */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: static;
  height: fit-content;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Header & Profile */
.profile-header {
  text-align: center;
}

.profile-role {
  display: block;
  text-align: center;
}

.linkedin-title-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.2rem;
  vertical-align: -0.18rem;
  color: #0a66c2;
  border-radius: 4px;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.linkedin-title-link:hover {
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.linkedin-title-link svg {
  margin: 0 !important;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  margin: 0 auto 1.5rem;
  background: var(--accent-gradient);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo-carousel {
  border: 0;
  cursor: pointer;
  appearance: none;
  font: inherit;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.25);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.profile-photo-carousel:hover {
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.45);
}

.profile-photo-carousel img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: opacity 0.4s ease;
}

.profile-photo-carousel img.is-fading {
  opacity: 0;
}

.summary-card {
  padding-top: 1.5rem;
  padding-bottom: 1.35rem;
}

.summary-text {
  margin-bottom: 0;
}

.summary-text + .summary-text {
  margin-top: 1rem;
}

.summary-text:first-child::first-letter {
  float: left;
  padding: 0.07em 0.12em 0 0;
  color: var(--text-primary);
  font-size: 3.35rem;
  font-weight: 700;
  line-height: 0.78;
}

/* Tags & Badges */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.tags-container .tag {
  padding: 0.15rem 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.25;
}

.tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: scale(1.05);
}

/* Work Experience Items */
.work-list {
  margin-top: 1.1rem;
}

.work-heading-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.work-heading-row h3 {
  margin: 0;
}

.sort-controls {
  display: inline-flex;
  gap: 0.15rem;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.sort-button:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.sort-button.active {
  color: var(--accent-primary);
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.1);
}

.work-entry {
  position: relative;
}

.work-company-badge {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  width: 100%;
  color: var(--accent-secondary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
}

.work-company-badge h4 {
  margin: 0;
  color: inherit;
  font-size: 1.05rem;
}

.work-company-badge span {
  margin-left: auto;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(139, 92, 246, 0.35);
  font-size: 0.825rem;
  white-space: nowrap;
}

.work-engagement {
  padding-top: 0.5rem;
  scroll-margin-top: 5.5rem;
}

.work-engagement + .work-engagement {
  margin-top: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

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

.engagement-title-group {
  min-width: 0;
}

.engagement-heading h5 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.35;
}

.engagement-position {
  margin: 0.2rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.engagement-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.engagement-links {
  display: flex;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.engagement-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.engagement-links svg {
  flex: 0 0 auto;
}

.work-content ul {
  list-style-type: none;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.work-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.work-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.takeaways-line {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.75rem 0 0.25rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
}

.takeaways-icon {
  flex: 0 0 auto;
  color: #facc15;
  line-height: 1.55;
}

.engagement-metadata {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.metadata-row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}

.metadata-row dt {
  padding-top: 0.16rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
}

.metadata-row dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 0;
  margin: 0;
}

.metadata-chip {
  max-width: 100%;
  padding: 0.14rem 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.metadata-chip-role {
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.11);
  color: #a78bfa;
}

.metadata-chip-capability {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}

.metadata-chip-domain {
  border-color: rgba(6, 182, 212, 0.24);
  background: rgba(6, 182, 212, 0.1);
  color: #22d3ee;
}

.metadata-chip-tool {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

html[data-theme="light"] .metadata-chip-role {
  color: #6d28d9;
}

html[data-theme="light"] .metadata-chip-capability {
  color: #047857;
}

html[data-theme="light"] .metadata-chip-domain {
  color: #0e7490;
}

html[data-theme="light"] .metadata-chip-tool {
  color: #b45309;
}

.work-separator {
  height: 1px;
  margin: 1.5rem 0;
  border: 0;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

/* Filters Component */
.filters-bar {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0;
  background: var(--bg-glass);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  border: var(--border-glass);
  position: relative;
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: center;
}

.filter-controls.filter-controls-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 769px) and (max-width: 1100px) {
  .filter-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.preset-filter {
  min-width: 0;
  border: 0;
}

.preset-options {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.preset-option {
  cursor: pointer;
}

.preset-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.preset-option-content {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.14);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.preset-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.68rem;
}

.preset-option:hover .preset-option-content {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.preset-option input:focus-visible + .preset-option-content {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.preset-option input:checked + .preset-option-content {
  color: #fff;
  border-color: rgba(59, 130, 246, 0.58);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(139, 92, 246, 0.24));
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.18);
}

.preset-option input:checked + .preset-option-content .preset-count {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.search-filter {
  position: relative;
  min-width: 0;
}

.search-filter::before {
  content: '⌕';
  position: absolute;
  left: 0.8rem;
  top: 50%;
  color: var(--text-muted);
  font-size: 1.1rem;
  transform: translateY(-52%);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 2.4rem;
  padding: 0.5rem 2.2rem 0.5rem 2.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  font: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.search-clear {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transform: translateY(-50%);
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.time-filter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  border: 0;
}

.time-filter-groups {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex-wrap: wrap;
}

.time-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.14);
}

.time-filter-group-label {
  padding: 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.time-filter-option {
  cursor: pointer;
}

.time-filter-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.time-filter-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 1.9rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.time-filter-option:hover span {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.time-filter-option input:focus-visible + span {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.time-filter-option input:checked + span {
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.28);
}

.filter-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.filter-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  outline: none;
  font-family: inherit;
  transition: all var(--transition-fast);
  width: 100%;
  min-width: 0;
}

.filter-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

html[data-theme="light"] .filter-input,
html[data-theme="light"] .search-input {
  background-color: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .time-filter-group,
html[data-theme="light"] .preset-option-content {
  background: rgba(255, 255, 255, 0.58);
}

select.filter-input {
  cursor: pointer;
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1em;
}

select.filter-input option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.clear-filters-button {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.clear-filters-button:hover {
  background: rgba(239, 68, 68, 0.24);
  border-color: rgba(239, 68, 68, 0.75);
  transform: scale(1.04);
}

/* Contact List */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-item:hover {
  color: var(--accent-primary);
}

.contact-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
}

.phone-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.phone-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.phone-links a:hover {
  color: var(--accent-primary);
}

.map-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.map-icon-link:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.map-icon-link svg {
  width: 20px;
  height: 20px;
}

/* Sidebar profile details */
.profile-details-card {
  padding: 0;
  overflow: hidden;
}

.profile-details-card > summary {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  min-height: 3.6rem;
  padding: 0.85rem 1.1rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background-color var(--transition-fast);
}

.profile-details-card > summary::-webkit-details-marker {
  display: none;
}

.profile-details-card > summary:hover {
  background: var(--bg-glass-hover);
}

.profile-details-card > summary:focus-visible {
  background: var(--bg-glass-hover);
  box-shadow: inset 0 0 0 2px var(--accent-primary);
  outline: none;
}

.profile-details-title {
  flex: 1;
  line-height: 1.3;
}

.profile-details-icon,
.profile-section-icon {
  width: 1.35rem;
  flex: 0 0 auto;
  color: var(--accent-primary);
  text-align: center;
  font-size: 0.9rem;
}

.profile-details-chevron {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

.profile-details-card[open] .profile-details-chevron {
  transform: rotate(180deg);
}

.profile-details-content {
  border-top: 1px solid var(--border-color);
}

.profile-details-card:not([open]) > .profile-details-content {
  display: none;
}

.profile-content-section {
  padding: 0.9rem 1.1rem 1rem;
}

.profile-content-section + .profile-content-section {
  border-top: 1px solid var(--border-color);
}

.profile-content-heading {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 0.75rem;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.profile-language-list {
  display: grid;
  gap: 0.45rem;
}

.profile-language-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.profile-fluency-badge {
  flex: 0 0 auto;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  font-size: 0.7rem;
  font-weight: 700;
}

.profile-fluency-badge {
  padding: 0.08rem 0.45rem;
}

.profile-skill-group + .profile-skill-group,
.profile-education-entry + .profile-education-entry {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-color);
}

.profile-skill-heading {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.profile-skill-heading h3,
.profile-education-entry h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.profile-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.45rem;
}

.profile-keyword {
  padding: 0.08rem 0.38rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.68rem;
  line-height: 1.35;
}

.profile-education-entry p {
  margin: 0.2rem 0 0;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.4;
}

.profile-education-dates {
  color: var(--text-muted) !important;
  font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 100ms; opacity: 0; }
.delay-200 { animation-delay: 200ms; opacity: 0; }
.delay-300 { animation-delay: 300ms; opacity: 0; }

/* Top Navigation */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-glass);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-short {
  display: none;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.12rem;
  width: 3.55rem;
  min-height: 2.35rem;
  padding: 0.22rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.16);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.theme-toggle:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.14);
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: var(--radius-full);
  opacity: 0.48;
  font-size: 0.9rem;
  line-height: 1;
  transition: opacity var(--transition-fast), color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.64);
}

html[data-theme="light"] .theme-sun,
html[data-theme="dark"] .theme-moon {
  opacity: 1;
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.14);
  transform: scale(1.04);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

.nav-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  color: var(--bg-primary);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.react-icon { background: #61DAFB; }
.vue-icon { background: #41B883; }
.svelte-icon { background: #FF3E00; color: #fff; }
.angular-icon { background: #DD0031; color: #fff; }

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
}

@media (max-width: 768px) {
  .top-nav {
    justify-content: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
  }

  .nav-brand {
    font-size: 1rem;
    white-space: nowrap;
  }

  .brand-long {
    display: none;
  }

  .brand-short {
    display: inline;
  }

  .nav-links {
    gap: 0.4rem;
  }

  .nav-link {
    width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
    padding: 0;
  }

  .theme-toggle {
    width: 3rem;
    min-height: 2.5rem;
  }

  .theme-toggle-icon {
    width: 1.25rem;
    height: 1.75rem;
    font-size: 0.82rem;
  }

  .nav-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .filter-controls.filter-controls-compact {
    grid-template-columns: 1fr;
  }

  .filter-label {
    display: none;
  }

  .active-filters {
    gap: 0.45rem;
  }

  .metadata-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .metadata-row dt {
    padding-top: 0;
  }

  .filters-bar > .preset-filter,
  .filters-bar > .time-filter,
  .filters-bar > .filter-controls {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
  }

  .time-filter {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .time-filter-groups {
    gap: 0.45rem;
  }

}

@media print {
  @page {
    margin: 12mm;
  }

  body {
    padding: 0;
    background: #fff;
    color: #111827;
    font-size: 10pt;
  }

  .top-nav,
  .filters-bar,
  .sort-controls,
  .theme-toggle {
    display: none !important;
  }

  .app-container {
    display: block;
    max-width: none;
    padding: 0;
  }

  .intro-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    min-height: calc(100vh - 24mm);
    break-after: page;
    page-break-after: always;
  }

  .sidebar,
  .summary-card,
  .main-content {
    width: 100%;
  }

  .glass-card {
    background: #fff;
    border: 1px solid #d1d5db;
    box-shadow: none;
    padding: 0.75rem;
    break-inside: auto;
  }

  .glass-card:hover {
    background: #fff;
    border-color: #d1d5db;
    box-shadow: none;
    transform: none;
  }

  .profile-details-card > .profile-details-content {
    display: block !important;
  }

  .profile-details-chevron {
    display: none;
  }

  .sidebar,
  .summary-card,
  .work-entry {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .animate-fade-in,
  .delay-100,
  .delay-200,
  .delay-300 {
    opacity: 1;
    animation: none;
  }

  .text-gradient {
    background: none;
    color: #111827;
    -webkit-text-fill-color: #111827;
  }

  .work-list {
    margin-top: 0.55rem;
  }

  .work-content p,
  .work-content ul {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
  }

  .work-content li {
    margin-bottom: 0.2rem;
  }

  .work-separator {
    margin: 0.7rem 0;
  }

  h2,
  h3,
  h4,
  .summary-text,
  .work-content p,
  .work-content li,
  .contact-item,
  .phone-links a {
    color: #111827;
  }
}
