:root {
  --ink: #1b1f24;
  --muted: #5b6672;
  --accent: #006d77;
  --accent-2: #e29578;
  --paper: #f7f3ef;
  --card: #ffffff;
  --shadow: 0 18px 40px rgba(18, 24, 32, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #f1f8f7 0%, #f7f3ef 45%, #f3ece5 100%);
  line-height: 1.6;
  display: flex;
}

.sidebar {
  width: 200px;
  background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  padding: 32px 20px;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
  z-index: 100;
}

.sidebar-logo {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.logo {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover {
  background: rgba(0, 109, 119, 0.08);
  color: var(--accent);
  text-decoration: none;
}

.sidebar-nav a.active {
  background: rgba(0, 109, 119, 0.12);
  color: var(--accent);
  font-weight: 600;
}

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

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 48px 96px;
  margin-left: 200px;
  flex: 1;
}

.hero {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f6f7f6 55%, #eef5f2 100%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: rise 700ms ease-out both;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(0, 109, 119, 0.08);
}

.hero h1 {
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.1rem, 3vw, 3.1rem);
  margin: 0 0 10px;
}

.hero p {
  color: var(--muted);
  margin: 0 0 14px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  margin: 0 0 10px;
}

.portrait {
  width: 230px;
  aspect-ratio: 24 / 31;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(18, 24, 32, 0.18);
  border: 6px solid #ffffff;
  flex-shrink: 0;
}

.current-role {
  margin: 20px 0;
  padding: 18px;
  background: rgba(0, 109, 119, 0.05);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
}

.current-role h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.current-role p {
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.role-info {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 109, 119, 0.12);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact {
  display: grid;
  gap: 8px;
  font-size: 0.98rem;
}

.section {
  margin-top: 44px;
}

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 10px 28px rgba(18, 24, 32, 0.08);
  border: 1px solid rgba(15, 23, 36, 0.06);
  animation: fade 700ms ease-out both;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.education-card {
  padding: 20px 20px 12px 20px;
}

.education-header {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
}

.edu-logo {
  width: 65px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  justify-self: center;
}

.education-header h3 {
  margin-top: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.list {
  margin: 0;
  padding-left: 18px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 16px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 10px 24px rgba(18, 24, 32, 0.07);
}

.timeline-item h3 {
  margin: 0 0 4px;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #15803d;
  font-size: 0.85rem;
  font-weight: 600;
}

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

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

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

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .sidebar-logo {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .logo {
    max-width: 140px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .page {
    margin-left: 0;
    padding: 28px 20px 60px;
  }

  .hero {
    padding: 28px;
    flex-direction: column;
  }

  .portrait {
    width: 240px;
    align-self: center;
  }
}
