:root {
  --ink: #16211f;
  --muted: #5f6b68;
  --paper: #f6f7f2;
  --surface: #ffffff;
  --line: #dfe5dc;
  --green: #1f8a70;
  --blue: #3654cf;
  --coral: #e86f51;
  --gold: #e6ad35;
  --shadow: 0 20px 60px rgba(22, 33, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(246, 247, 242, 0.84);
  border-bottom: 1px solid rgba(22, 33, 31, 0.08);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 58px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(22, 33, 31, 0.08);
}

.brand {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--surface);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 48px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(16px, 2.5vw, 34px);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  color: rgba(22, 33, 31, 0.78);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
}

.menu-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  height: 42px;
  padding: 8px;
  width: 42px;
}

.menu-button span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 2px;
  margin: 6px 0;
  width: 100%;
}

.hero {
  align-items: flex-end;
  background-image:
    linear-gradient(90deg, rgba(22, 33, 31, 0.88), rgba(22, 33, 31, 0.68) 42%, rgba(22, 33, 31, 0.14)),
    url("https://www.dipeshthashrestha.com.np/images/grad.jpeg");
  background-position: center 36%;
  background-size: cover;
  color: var(--surface);
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  min-height: 92vh;
  padding: 136px clamp(20px, 6vw, 84px) 58px;
}

.hero-content {
  max-width: 820px;
}

.eyebrow,
.section-kicker,
.project-label {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.4rem, 9vw, 8.6rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
  max-width: 920px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  margin: 26px 0 0;
  max-width: 720px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--coral);
  color: var(--surface);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--surface);
}

.hero-stats {
  align-self: end;
  display: grid;
  gap: 12px;
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: var(--ink);
  padding: 18px;
}

.hero-stats span {
  color: var(--blue);
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
}

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

.section {
  padding: clamp(72px, 9vw, 124px) clamp(20px, 6vw, 84px);
}

.intro {
  background: var(--surface);
}

.intro-grid {
  align-items: center;
  display: grid;
  gap: clamp(34px, 6vw, 82px);
  grid-template-columns: minmax(260px, 0.5fr) minmax(0, 0.9fr);
  margin-top: 18px;
}

.portrait-wrap {
  background:
    linear-gradient(135deg, rgba(31, 138, 112, 0.18), rgba(54, 84, 207, 0.14)),
    var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-wrap img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.intro-copy h2,
.section-heading h2,
.contact-inner h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.intro-copy p,
.section-heading p,
.contact-inner p {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 22px 0 0;
  max-width: 760px;
}

.quick-facts,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.quick-facts span,
.tag-row span {
  background: #edf5f2;
  border: 1px solid rgba(31, 138, 112, 0.18);
  border-radius: 999px;
  color: #185f51;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 8px 12px;
}

.skill-band {
  background:
    linear-gradient(180deg, #f6f7f2 0%, #eef2f6 100%);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.section-heading p {
  margin: 0;
  max-width: 480px;
}

.skills-grid,
.project-grid,
.education-grid {
  display: grid;
  gap: 16px;
}

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

.skill-card,
.project-card,
.education-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 30px);
}

.skill-card {
  min-height: 238px;
}

.skill-card:nth-child(2) {
  border-top: 5px solid var(--blue);
}

.skill-card:nth-child(3) {
  border-top: 5px solid var(--green);
}

.skill-card:nth-child(4) {
  border-top: 5px solid var(--gold);
}

.skill-card:first-child {
  border-top: 5px solid var(--coral);
}

.skill-card h3,
.project-card h3,
.education-grid h3,
.timeline-item h3 {
  font-size: 1.18rem;
  line-height: 1.2;
  margin: 0;
}

.skill-card p,
.project-card p,
.education-grid p,
.timeline-item p {
  color: var(--muted);
  margin: 14px 0 0;
}

.timeline-section,
.education-section {
  background: var(--surface);
}

.timeline {
  border-left: 2px solid var(--line);
  display: grid;
  gap: 22px;
  margin-left: 9px;
  padding-left: 26px;
}

.timeline-item {
  display: grid;
  gap: 20px;
  grid-template-columns: 180px minmax(0, 1fr);
  position: relative;
}

.timeline-item::before {
  background: var(--blue);
  border: 4px solid var(--surface);
  border-radius: 999px;
  content: "";
  height: 16px;
  left: -36px;
  position: absolute;
  top: 2px;
  width: 16px;
}

time {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

.projects-section {
  background: #f9f3ef;
}

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

.project-card {
  min-height: 280px;
}

.project-card.featured {
  background:
    linear-gradient(135deg, rgba(22, 33, 31, 0.92), rgba(31, 138, 112, 0.86)),
    var(--ink);
  color: var(--surface);
  grid-column: span 2;
}

.project-card.featured p {
  color: rgba(255, 255, 255, 0.82);
}

.project-card.featured .tag-row span {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--surface);
}

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

.contact-section {
  background:
    linear-gradient(90deg, rgba(22, 33, 31, 0.94), rgba(54, 84, 207, 0.78)),
    url("https://www.dipeshthashrestha.com.np/images/dipeshtha.png");
  background-position: center;
  background-size: cover;
  color: var(--surface);
  padding: clamp(76px, 10vw, 132px) clamp(20px, 6vw, 84px);
}

.contact-inner {
  max-width: 780px;
}

.contact-inner p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-section .button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--surface);
}

.footer {
  align-items: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  justify-content: space-between;
  padding: 26px clamp(20px, 6vw, 84px);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--surface);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 90vh;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intro-grid,
  .section-heading {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

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

@media (max-width: 720px) {
  .site-header {
    height: 66px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    position: absolute;
    right: 16px;
    top: 76px;
    width: min(280px, calc(100vw - 32px));
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
    width: 100%;
  }

  .hero {
    background-image:
      linear-gradient(180deg, rgba(22, 33, 31, 0.2), rgba(22, 33, 31, 0.9) 58%),
      url("https://www.dipeshthashrestha.com.np/images/grad.jpeg");
    background-position: center top;
    min-height: 88vh;
    padding: 108px 20px 34px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero-stats,
  .skills-grid,
  .project-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .timeline {
    margin-left: 4px;
    padding-left: 22px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item::before {
    left: -32px;
  }

  .button {
    width: 100%;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
