/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #111;
  background: #fff;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 80px;
}

/* ===== HEADER ===== */
.header {
  padding: 72px 0 0;
  border-bottom: 1px solid #e8e8e8;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* eyebrow */
.head__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.head__eyebrow::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 1.5px;
  background: #888;
  flex-shrink: 0;
}

/* name */
.head__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 8px;
}

/* title with cursor */
.head__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: #555;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
}

.head__cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #555;
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

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

/* bio */
.head__bio {
  font-size: 17px;
  line-height: 1.75;
  color: #444;
  max-width: 780px;
  margin-bottom: 32px;
}

/* cta buttons */
.head__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 56px;
}

.btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  display: inline-block;
}

.btn--primary {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}

.btn--primary:hover {
  opacity: 0.8;
}

.btn--ghost {
  background: transparent;
  color: #111;
  border: 1px solid #ccc;
}

.btn--ghost:hover {
  background: #f5f5f5;
}

/* photo */
.head__photo {
  position: relative;
  align-self: center;
  flex-shrink: 0;
}

.head__photo img {
  width: 200px;
  /* height: 320px; */
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 2;
}

.head__smoke {
  position: absolute;
  height: 420px;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: multiply;
  filter: invert(1);
  left: -70px;
  bottom: 40px;
}

/* stats bar */
.head__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e8e8e8;
  margin-top: 0;
}

.stat {
  padding: 28px 0;
  border-right: 1px solid #e8e8e8;
}

.stat:last-child {
  border-right: none;
}

.stat__num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #111;
  line-height: 1;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 13px;
  color: #888;
}

/* ===== MAIN LAYOUT ===== */
.main {
  display: flex;
  gap: 80px;
  padding-top: 64px;
  padding-bottom: 80px;
  align-items: flex-start;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* section title shared */
.section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
}

.section {
  margin-bottom: 48px;
}

/* tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 13px;
  border: 1px solid #ddd;
  border-radius: 100px;
  color: #444;
  background: #fff;
  white-space: nowrap;
}

.tag--accent {
  background: #f3f3f3;
  border-color: #e0e0e0;
  color: #111;
}

/* education */
.edu {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #f0f0f0;
}

.edu:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.edu__date {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #aaa;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.edu__place {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  line-height: 1.35;
  margin-bottom: 2px;
}

.edu__degree {
  font-size: 14px;
  color: #666;
}

/* contacts */
.contact-link {
  display: block;
  font-size: 15px;
  color: #111;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #0055cc;
}

/* languages */
.lang {
  font-size: 15px;
  color: #444;
  margin-bottom: 6px;
}

.lang__level {
  font-size: 12px;
  color: #aaa;
  margin-left: 6px;
}

/* ===== PROJECTS ===== */
.projects {
  flex: 1;
  min-width: 0;
}

.project {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid #f0f0f0;
}

.project:first-of-type {
  padding-top: 24px;
}

.project__info {
  flex: 1;
  min-width: 0;
}

.project__client {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 4px;
}

.project__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #111;
  margin-bottom: 10px;
  display: block;
  transition: color 0.2s;
}

a.project__name:hover {
  color: #0055cc;
}

.project__stack {
  font-size: 13px;
  color: #999;
  letter-spacing: 0.01em;
}

.project__preview {
  display: block;
  flex-shrink: 0;
  width: 260px;
  height: 90px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.75;
}

.project__preview:hover {
  opacity: 1;
  border-color: #bbb;
}

.project__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .container {
    padding: 0 40px;
  }
  .head__name {
    font-size: 44px;
  }
  .head__photo img {
    width: 220px;
    height: 260px;
  }
  .head__smoke {
    height: 340px;
    left: -50px;
  }
}

@media (max-width: 860px) {
  .container {
    padding: 0 24px;
  }
  .header {
    padding-top: 48px;
  }
  .head {
    flex-direction: column-reverse;
    gap: 32px;
  }
  .head__photo {
    align-self: center;
  }
  .head__photo img {
    width: 120px;
    height: 120px;
  }
  .head__smoke {
    display: none;
  }
  .head__name {
    font-size: 36px;
  }
  .head__title {
    font-size: 20px;
  }
  .head__bio {
    font-size: 15px;
  }
  .head__stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .main {
    flex-direction: column;
    gap: 48px;
  }
  .sidebar {
    width: 100%;
  }
  .project {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .project__preview {
    width: 100%;
    height: 120px;
  }
}
