:root {
  --bg: #0d0f12;
  --surface: #14171b;
  --text: #f2f3f4;
  --muted: #9a9ea5;
  --line: #2a2e34;
  --accent: #6ea8ff;
  --button: #f2f3f4;
  --button-text: #0d0f12;
  --max: 1180px;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --text: #181818;
  --muted: #6d6d6d;
  --line: #e7e7e7;
  --accent: #1d4ed8;
  --button: #181818;
  --button-text: #ffffff;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
  transition: background-color .25s ease, color .25s ease;
}

body.menu-open { overflow: hidden; }

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

button { font: inherit; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  max-width: var(--max);
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, border-color .25s ease;
}

.name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}

.desktop-nav a:hover,
.mobile-menu a:hover { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.contact-btn {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: .2s ease;
}

.theme-toggle {
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.theme-toggle:hover,
.contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-icon { font-size: 13px; }

.contact-btn {
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--text);
  transition: transform .2s ease;
}

.mobile-menu {
  display: none;
}

.hero {
  max-width: var(--max);
  margin: auto;
  min-height: 650px;
  padding: 110px 28px 90px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 70px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(65px, 9.5vw, 125px);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 700;
}

h1 span { color: var(--accent); }

.hero .intro {
  max-width: 600px;
  margin: 42px 0 30px;
  font-size: 18px;
  color: var(--muted);
}

.primary {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  padding: 13px 17px;
  background: var(--button);
  color: var(--button-text);
  font-size: 13px;
  border-radius: 3px;
  transition: .2s ease;
}

.primary:hover {
  background: var(--accent);
  color: white;
}

.hero-aside {
  align-self: end;
  border-left: 1px solid var(--line);
  padding-left: 25px;
}

.hero-aside p {
  color: var(--muted);
  font-size: 13px;
}

.status {
  font-size: 12px;
  line-height: 1.4;
}

.status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #32c76a;
  margin-right: 7px;
}

.section {
  max-width: var(--max);
  margin: auto;
  padding: 100px 28px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 80px;
  border-bottom: 1px solid var(--line);
}

.section-title span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title h2,
.contact-section h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 43px;
  font-weight: 500;
  letter-spacing: -.035em;
  margin: 0;
  line-height: 1.05;
}

.section-body { color: var(--muted); }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
}

.large {
  color: var(--text);
  font-size: 24px;
  line-height: 1.4;
  margin-top: 0;
}

.item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 45px;
  padding: 0 0 45px;
  margin-bottom: 45px;
  border-bottom: 1px solid var(--line);
}

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

.date {
  color: var(--muted);
  font-size: 12px;
  padding-top: 5px;
}

.item h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
}

.item strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.item p { margin: 18px 0; }

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

.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
}

.skills > div {
  padding: 0 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.skills h3 {
  color: var(--text);
  font-size: 14px;
  margin: 0 0 12px;
}

.skills p {
  margin: 0;
  line-height: 1.9;
}

.contact-section {
  max-width: var(--max);
  margin: auto;
  padding: 130px 28px;
  text-align: center;
}

.contact-section .eyebrow { margin-bottom: 30px; }

.contact-section h2 {
  font-size: clamp(55px, 8vw, 100px);
}

.contact-section > p:not(.eyebrow) {
  max-width: 500px;
  margin: 25px auto;
  color: var(--muted);
}

.contact-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 45px;
}

.contact-list a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding-bottom: 4px;
}

footer {
  max-width: var(--max);
  margin: auto;
  padding: 25px 28px 35px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--line);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s ease, transform .55s ease;
}

@media (max-width: 800px) {
  .header {
    height: 68px;
    padding: 0 18px;
  }

  .desktop-nav,
  .header .contact-btn {
    display: none;
  }

  .header-actions { margin-left: auto; }

  .menu-toggle { display: flex; }

  .mobile-menu {
    position: fixed;
    z-index: 40;
    inset: 68px 0 0;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: var(--bg);
    transform: translateY(-110%);
    transition: transform .25s ease, background-color .25s ease;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu.open { transform: translateY(0); }

  .mobile-menu a {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 34px;
  }

  .hero {
    min-height: 600px;
    padding: 80px 20px 65px;
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero .intro {
    font-size: 16px;
    margin-top: 30px;
  }

  .hero-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }

  .section {
    padding: 75px 20px;
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .section-title h2 { font-size: 36px; }

  .two-col,
  .skills {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .large { font-size: 21px; }

  .item {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 35px;
    padding-bottom: 35px;
  }

  .contact-section {
    padding: 90px 20px;
  }

  footer {
    margin: 0 20px;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 430px) {
  .theme-label { display: none; }
  .theme-toggle { width: 38px; justify-content: center; padding: 0; }

  h1 { font-size: clamp(52px, 17vw, 76px); }

  .hero {
    min-height: 570px;
    padding-top: 65px;
  }

  .section-title h2 { font-size: 32px; }
  .contact-section h2 { font-size: 58px; }
  .contact-list {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}


.hero{
  grid-template-columns: 1fr 320px;
  align-items:center;
}

.hero-photo-wrap{
  display:flex;
  justify-content:center;
}

.hero-photo{
  width:300px;
  height:400px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--line);
}

@media (max-width: 900px){
  .hero{
    grid-template-columns:1fr;
  }
  .hero-photo{
    width:240px;
    height:320px;
  }
}
