:root {
  --bg-color: #ffffff;
  --text-main: #333333;
  --text-secondary: #555555;
  --text-muted: #888888;
  --link-blue: #467cc2;
  --link-hover: #2c599d;
  --accent-color: #000000;
  --sidebar-width: 280px;
  --border-color: #f0f0f0;
  --section-border: #eeeeee;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --card-bg: #fafafa;
}

html[data-theme="dark"] {
  --bg-color: #0b0f14;
  --text-main: #e5e7eb;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --link-blue: #7cb6ff;
  --link-hover: #a6ccff;
  --accent-color: #f8fafc;
  --border-color: #1f2937;
  --section-border: #1f2937;
  --shadow-color: rgba(0, 0, 0, 0.35);
  --card-bg: #111827;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .status-dot {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 400;
  padding: 0.6rem 1rem;
  background: var(--accent-color);
  color: var(--bg-color);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--link-blue);
  outline-offset: 3px;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.65;
  display: flex;
  min-height: 100vh;
  letter-spacing: -0.01em;
  transition: background-color 0.2s, color 0.2s;
}

a {
  color: var(--link-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 300;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.05s;
}

.theme-toggle:hover {
  color: var(--text-main);
}

.theme-toggle:active {
  transform: translateY(1px);
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

nav {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-color);
  background: var(--bg-color);
  z-index: 100;
  transition: background-color 0.2s, border-color 0.2s;
}

nav ul {
  list-style: none;
  margin-top: 1rem;
}

nav li {
  margin-bottom: 0.85rem;
}

nav a {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.nav-socials {
  margin-top: auto;
  display: flex;
  gap: 18px;
  font-size: 1.3rem;
}

.nav-socials a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
}

.nav-socials a:hover {
  color: var(--text-main);
}

.nav-socials i {
  line-height: 1;
}

main {
  margin-left: var(--sidebar-width);
  padding: 5rem 7rem;
  max-width: 1100px;
  width: 100%;
}

h1 {
  font-family: "Satoshi", "Georgia", "Times New Roman", serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.hero-headline {
  font-family: "Satoshi", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.hero-stack {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}

.contact-links a {
  font-weight: 600;
  font-size: 0.95rem;
}

h2 {
  font-family: "Satoshi", "Georgia", "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 3.2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--section-border);
  padding-bottom: 0.45rem;
}

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

.hero {
  display: flex;
  align-items: flex-start;
  gap: 3.25rem;
  margin-bottom: 2.5rem;
}

.hero-text {
  flex: 1;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  background: linear-gradient(145deg, #467cc2, #2c599d);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Satoshi", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.item {
  margin-bottom: 2rem;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.item-header-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.item-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 8px;
  box-shadow: 0 4px 14px var(--shadow-color);
}

html[data-theme="dark"] .item-logo {
  background: #ffffff;
}

.item-logo-evhs {
  padding: 3px;
}

.item-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #ffffff;
  color: #467cc2;
  font-size: 1.45rem;
}

.item-logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: "Satoshi", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2c599d;
  background: #f0f5fc;
}

html[data-theme="dark"] .item-logo-text {
  background: #1e293b;
  color: #7cb6ff;
}

.item-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.3;
}

.item-meta {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.92rem;
  white-space: nowrap;
}

.item-role {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.item-meta-inline {
  display: block;
  margin: -0.2rem 0 0.85rem;
  font-style: italic;
  white-space: normal;
}

.item-role + .item-meta-inline + .item-role {
  margin-top: 0.15rem;
}

.item-summary,
.item-problem {
  margin: 0 0 0.55rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.item-problem {
  margin-top: 0.35rem;
}

.featured-card {
  margin: 2rem 0 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: 0 4px 18px var(--shadow-color);
}

.featured-heading {
  font-family: "Satoshi", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 1rem;
  border: none;
  padding: 0;
  margin-top: 0;
}

.featured-inner {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}

.featured-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 8px;
}

.featured-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.featured-outcome {
  margin-bottom: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.featured-metrics {
  list-style-type: circle;
  margin: 0 0 0.85rem 1.15rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.featured-metrics li {
  margin-bottom: 0.3rem;
}

.skills-grid {
  display: grid;
  gap: 1.35rem;
}

.skill-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.skill-tags,
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-tag,
.tech-tag {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.tech-tags {
  margin: 0.5rem 0 0.75rem;
}

.item-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 0.35rem;
}

.item-links a {
  font-weight: 600;
  font-size: 0.9rem;
}

.item-featured {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--section-border);
}

.item-metrics {
  margin-bottom: 0.85rem;
}

.item-metrics li {
  margin-bottom: 0.38rem;
}

.metric-num {
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.item-details {
  list-style-type: circle;
  margin: 0 0 1rem 1.15rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.item-details li {
  margin-bottom: 0.28rem;
}

footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  transition: border-color 0.2s;
}

.footer-note {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  body {
    flex-direction: column;
  }

  nav {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    border-right: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  nav ul {
    display: flex;
    gap: 1.25rem;
    margin-top: 0;
    flex-wrap: wrap;
  }

  nav li {
    margin-bottom: 0;
  }

  .nav-socials {
    margin-top: 0;
  }

  main {
    margin-left: 0;
    padding: 3rem 1.5rem;
  }

  .hero {
    flex-direction: column-reverse;
    gap: 1.75rem;
  }

  .profile-img {
    width: 170px;
    height: 170px;
    font-size: 3rem;
    align-self: center;
  }

  .theme-toggle {
    top: 1rem;
    right: 1rem;
  }

  .item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .item-header-left {
    gap: 0.9rem;
  }

  .item-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    padding: 7px;
  }

  .item-meta {
    white-space: normal;
  }

  .featured-inner {
    flex-direction: column;
  }

  .featured-logo {
    width: 48px;
    height: 48px;
  }
}
