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

:root {
  --bg-deep: #1a1c0f;
  --bg-card: #262a17;
  --border: rgba(255, 255, 255, 0.06);
  --accent: #a1ad71;
  --accent-glow: #a8a04d;
  --bg-mid: #232614;
  --text-main: #d0b396;
  --text-muted: #9da18c;
  --text-dim: #7f846e;
  --pink: #d0b396;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  background: rgba(26, 28, 15, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--text-main);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: color .2s;
}

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

.nav-links a.active {
  color: var(--accent);
  border: 1px solid var(--accent);
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: 90px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(35, 38, 20, 0.7);
  overflow: hidden;
}

.lang-switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  transition: transform .22s ease;
}

.lang-switch[data-active-lang="en"]::before {
  transform: translateX(100%);
}

.lang-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: center;
  padding: 5px 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color .18s ease;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  color: var(--bg-deep);
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(161, 173, 113, 0.6);
  outline-offset: 2px;
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 48px 72px;
  border-bottom: 1px solid var(--border);
}

/* subtle radial glow behind avatar */
.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(168, 160, 77, .22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 44px;
}

/* avatar */
.avatar-wrap {
  flex-shrink: 0;
  position: relative;
}

.avatar-ring {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  box-shadow: 0 0 32px rgba(168, 160, 77, .35);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #404422, #31351c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: .04em;
  color: var(--text-main);
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

/* hero text */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--text-main);
  letter-spacing: -.01em;
}

/* ── SECTIONS ── */
section {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 48px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(161, 173, 113, .35), transparent);
}

/* ── ABOUT ── */
.about-text {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(161, 173, 113, 0.18);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  min-height: 168px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(161, 173, 113, 0.35);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.22), 0 10px 28px rgba(161, 173, 113, 0.18);
}

.project-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 150px;
  padding: 5px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(161, 173, 113, 0.1);
  border: 1px solid rgba(161, 173, 113, 0.32);
  backdrop-filter: blur(5px);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 10px;
}

.project-text {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--text-dim);
}

.project-links {
  margin-left: -22px;
  margin-right: -22px;
  margin-bottom: -22px;
  margin-top: auto;
  padding: 12px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.12));
}

.project-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(161, 173, 113, 0.3);
  background: rgba(161, 173, 113, 0.08);
  color: var(--accent);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: border-color .18s ease, background-color .18s ease;
}

.project-link:hover {
  border-color: rgba(161, 173, 113, 0.55);
  background: rgba(161, 173, 113, 0.16);
}

.project-link:focus-visible {
  outline: 2px solid rgba(161, 173, 113, 0.6);
  outline-offset: 2px;
}

.projects-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1px solid rgba(161, 173, 113, 0.34);
  background: linear-gradient(180deg, rgba(161, 173, 113, 0.15), rgba(161, 173, 113, 0.05));
  color: var(--text-main);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.projects-cta img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  display: block;
}

.projects-cta:hover {
  color: var(--accent);
  border-color: rgba(161, 173, 113, 0.5);
  background: rgba(161, 173, 113, 0.12);
}

.projects-cta:focus-visible {
  outline: 2px solid rgba(161, 173, 113, 0.6);
  outline-offset: 2px;
}

/* ── TIMELINE ── */
.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 58px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(161, 173, 113, 0.35), rgba(161, 173, 113, 0.08));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid rgba(161, 173, 113, 0.3);
  border-radius: 999px;
  background: rgba(161, 173, 113, 0.08);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.timeline-content {
  position: relative;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(161, 173, 113, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(161, 173, 113, 0.12);
}

.timeline-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .95rem;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-item,
.social-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child,
.social-btn:last-child {
  border-bottom: none;
}

.contact-icon-link {
  text-decoration: none;
}

.contact-icon,
.social-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: border-color .18s ease, background-color .18s ease;
}

.contact-icon img,
.social-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.contact-icon.email {
  color: var(--accent);
}

.contact-icon.phone {
  color: var(--text-main);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-info strong {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color .18s ease;
}

.contact-info span {
  font-size: .78rem;
  color: var(--text-dim);
  transition: color .18s ease;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.social-btn {
  width: 100%;
  background: transparent;
  text-decoration: none;
  color: var(--text-main);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: none;
  transition: color .18s ease;
}

.social-btn:hover {
  color: var(--accent);
}

.contact-item:hover .contact-info strong,
.contact-item:hover .contact-info span {
  color: var(--accent);
}

.contact-item:hover .contact-icon {
  border-color: rgba(161, 173, 113, 0.45);
  background: rgba(161, 173, 113, 0.12);
}

.contact-icon-link:hover,
.contact-icon-link:focus-visible,
.social-btn:hover .social-icon {
  border-color: rgba(161, 173, 113, 0.45);
  background: rgba(161, 173, 113, 0.12);
}

.contact-icon-link:focus-visible,
.social-btn:focus-visible {
  outline: 2px solid rgba(161, 173, 113, 0.6);
  outline-offset: 2px;
}

/* ── FOOTER ── */
.site-footer {
  padding: 18px 48px 26px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-signature {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-stamp {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(161, 173, 113, 0.3);
  border-radius: 999px;
  background: rgba(161, 173, 113, 0.08);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner {
  animation: fadeUp .6s ease both;
}

section {
  animation: fadeUp .6s ease both;
}

section:nth-of-type(2) {
  animation-delay: .1s;
}

section:nth-of-type(3) {
  animation-delay: .2s;
}

section:nth-of-type(4) {
  animation-delay: .3s;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav {
    height: auto;
    min-height: 60px;
    padding: 10px 24px;
    gap: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nav-logo {
    text-align: center;
  }

  .nav-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .hero {
    padding: 64px 24px 60px;
  }

  section {
    padding: 56px 24px;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer {
    padding: 18px 24px 24px;
  }
}

@media (max-width: 768px) {
  .nav-links a {
    padding: 6px 10px;
    font-size: .72rem;
  }

  .lang-switch {
    width: 82px;
  }

  .lang-btn {
    padding: 4px 0;
    font-size: .62rem;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .avatar-ring {
    width: 108px;
    height: 108px;
  }

  .about-text,
  .project-text,
  .timeline-content p {
    font-size: .89rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .timeline-list::before {
    left: 47px;
  }

  .timeline-item {
    grid-template-columns: 52px 1fr;
    gap: 12px;
  }

  .timeline-content::before {
    left: -19px;
  }
}

@media (max-width: 520px) {
  nav {
    padding: 12px 16px;
  }

  .hero {
    padding: 46px 16px 50px;
  }

  section {
    padding: 44px 16px;
  }

  .hero-label {
    letter-spacing: .14em;
  }

  .timeline-list::before {
    left: 41px;
  }

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

  .timeline-content {
    padding: 12px 14px;
  }

  .timeline-content::before {
    left: -16px;
  }

  .site-footer {
    padding: 18px 16px 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}