:root {
  color-scheme: dark;
  --bg: #050506;
  --border: #2a2d36;
  --text: #f4f5fb;
  --muted: #bec3d3;
  --subtle: #8991a8;
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --teal-soft: #5eead4;
  --teal-deep: #0f3d38;
  --teal-tint: #d8f5ed;
  --teal-tint-2: #a3dbcc;
  --teal-tint-ink: #0b2c27;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}


a {
  color: inherit;
  text-decoration: none;
}

main {
  position: relative;
  z-index: 1;
}

.lang-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  min-width: 46px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: rgb(15 61 56 / 55%);
  color: var(--teal-soft);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: var(--teal);
  color: #fff;
}

.portfolio {
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 62px 24px 62px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
  text-align: center;
}

.hero .social-links {
  justify-content: center;
}

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

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 116px;
  height: 116px;
  place-items: center;
  margin-top: 16px;
  border: 4px solid var(--teal-tint-2);
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--teal-tint), var(--teal-tint-2));
  color: var(--teal-tint-ink);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 3px 3px 0 rgb(6 45 39 / 18%);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 70%;
  transform: translateX(-5px) scale(1.20);
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--teal-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.role {
  margin-bottom: 2px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
}

.location,
.section p,
.item__subtitle,
.item__description {
  color: var(--muted);
  font-size: 0.9rem;
}

.location {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.social-links,
.tag-list,
.item__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag-list {
  display: grid;
  grid-template-columns: repeat(6, auto);
  column-gap: 18px;
  row-gap: 14px;
  align-items: center;
}

.pill,
.icon-link,
.tag,
.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--teal);
  color: var(--teal-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.pill {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
}

.pill--primary,
.icon-link:hover,
.icon-link:focus-visible {
  background: var(--teal);
  color: #fff;
}

.icon-link {
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--teal-deep);
  font-size: 1.05rem;
}

.item__links .icon-link {
  width: 58px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.15rem;
}

.email-block {
  border-radius: 14px;
  gap: 10px;
  padding: 5px 6px 5px 14px;
}

.email-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.email-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 16%);
  color: #fff;
  cursor: pointer;
}

.email-copy:hover,
.email-copy:focus-visible {
  background: rgb(255 255 255 / 30%);
}

.email-copy.is-copied {
  background: var(--teal-dark);
}

.email-copy.is-copied [data-icon] {
  display: none;
}

.email-copy.is-copied::after {
  content: "✓";
  font-weight: 700;
}

.social-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-links .icon-link {
  width: 112px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.7rem;
}

.social-links .pill {
  padding: 10px 8px 10px 16px;
  font-size: 1rem;
}

.social-links .email-block {
  height: 48px;
  padding: 5px 6px 5px 14px;
}

.social-links .email-copy {
  width: 32px;
  height: 32px;
}

.CV-link {
  flex-direction: row;
  gap: 8px;
  font-size: 1.6rem;
}

.icon-link__label {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(170px, 220px) 1fr;
  column-gap: 10px;
  align-items: start;
}

.section h2 {
  align-self: start;
  padding-top: 0;
  margin-bottom: 0;
}

.section > :not(h2) {
  margin-top: 14px;
}

.section--divided {
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: inherit;
  min-height: 0;
}

.tag__icon {
  width: 53px;
  height: 53px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.timeline {
  display: grid;
  gap: 22px;
  margin-top: 12px;
}

.timeline-item,
.project {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: start;
}

.dot {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-deep);
}

.dot::before {
  width: 15px;
  height: 15px;
  border: 3px dotted var(--teal-soft);
  border-radius: 6px;
  content: "";
}

.item__title {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 800;
}

.item__subtitle,
.item__description {
  margin-bottom: 4px;
}

.badge {
  height: 21px;
  min-height: 21px;
  border: 0;
  border-radius: 999px;
  background: var(--teal-dark);
  padding: 2px 8px;
  color: var(--teal-soft);
  font-size: 0.7rem;
}

.projects {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.project {
  min-height: 150px;
}

.project__preview {
  width: 158px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--teal-tint-2);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 25%) 0 18%, transparent 18% 100%),
    linear-gradient(145deg, var(--teal-tint), var(--teal-tint-2));
  color: var(--teal-tint-ink);
  display: grid;
  place-items: center;
  font-size: 3.2rem;
  font-weight: 800;
}

.project__preview img {
  width: 56%;
  height: 56%;
  object-fit: contain;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 8px;
}

.project__tag {
  border-radius: 5px;
  background: #373a42;
  color: #d7dbe7;
  font-size: 0.66rem;
  line-height: 1;
  padding: 4px 7px;
}

.footer {
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.footer p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

[data-icon] svg {
  display: block;
  width: 1em;
  height: 1em;
  stroke-width: 2.2;
}

@media (max-width: 760px) {
  .portfolio {
    padding: 40px 22px 46px;
  }

  .hero {
    align-items: flex-start;
  }

  .avatar {
    width: 90px;
    height: 90px;
    font-size: 1.7rem;
  }

  .section {
    grid-template-columns: minmax(130px, 170px) 1fr;
    column-gap: 8px;
  }

  .tag-list {
    grid-template-columns: repeat(4, auto);
  }

  .timeline-item,
  .project {
    grid-template-columns: 36px 1fr;
  }

  .badge,
  .project__preview {
    grid-column: 2;
  }

  .project__preview {
    width: min(100%, 220px);
    margin-top: 8px;
  }
}

@media (max-width: 460px) {
  .portfolio {
    padding: 32px 16px 42px;
  }

  .hero {
    display: grid;
    justify-items: center;
  }

  .hero__content {
    width: 100%;
  }

  .avatar {
    margin-top: 14px;
  }

  .section {
    display: block;
  }

  .timeline-item,
  .project {
    grid-template-columns: 26px 1fr;
    gap: 10px;
  }

  .dot {
    width: 26px;
    height: 26px;
  }

  .tag-list {
    grid-template-columns: repeat(3, auto);
  }

  .social-links .icon-link {
    width: 92px;
    height: 42px;
    font-size: 1.5rem;
  }

  .social-links {
    gap: 7px;
  }

  .lang-toggle {
    top: 10px;
    right: 10px;
  }
}

/* Star Animations */
.container{
  background-image: linear-gradient(#051327, #000);
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.space{
  width: var(--size);
  height: var(--size);
  background: #fff;
  box-shadow: var(--space-layer);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 75%;
  animation: moveStars var(--duration, 20s) linear infinite;
  pointer-events: none;
}

@keyframes moveStars {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100vh);}
}