:root {
  --ink: #151515;
  --ink-soft: #343434;
  --paper: #f8faf7;
  --muted: #66706a;
  --line: #dce3dc;
  --white: #ffffff;
  --coral: #ff5c4d;
  --teal: #138a7e;
  --amber: #f5b942;
  --blue: #2d6cdf;
  --violet: #6f4bb8;
  --shadow: 0 22px 55px rgba(17, 23, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-nav {
  background: rgba(248, 250, 247, 0.92);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  backdrop-filter: blur(18px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.navbar-brand span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.88rem;
}

.navbar-toggler {
  border: 0;
  box-shadow: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.nav-link {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--coral);
}

.nav-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 800;
  padding: 0.55rem 0.85rem;
}

.nav-resume:hover {
  color: var(--white);
  background: var(--ink);
}

.hero-section {
  min-height: 84vh;
  padding: 8.5rem 0 3rem;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(9, 13, 13, 0.94), rgba(9, 13, 13, 0.86) 44%, rgba(9, 13, 13, 0.64)),
    url("../img/hero-background.png") center / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.section-kicker,
.project-meta {
  margin: 0 0 0.9rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(3.4rem, 8.4vw, 6.2rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy .lead {
  max-width: 660px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.btn svg,
.nav-resume svg,
.contact-list svg,
.skill-group svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn-accent {
  border: 1px solid var(--coral);
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 15px 28px rgba(255, 92, 77, 0.22);
}

.btn-accent:hover,
.btn-accent:focus {
  border-color: #e94c3e;
  color: var(--white);
  background: #e94c3e;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: var(--ink);
  background: var(--white);
}

.profile-card {
  width: min(100%, 430px);
  justify-self: end;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.profile-photo {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: #111614;
}

.profile-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  pointer-events: none;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.2rem 0.2rem;
}

.profile-info span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 800;
}

.profile-info strong {
  color: var(--amber);
  font-size: 0.95rem;
  font-weight: 900;
  white-space: nowrap;
}

.profile-links {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.profile-links a {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.profile-links a:hover,
.profile-links a:focus {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

.profile-links svg {
  width: 18px;
  height: 18px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.hero-metrics div {
  min-height: 106px;
  padding: 1.3rem;
  background: rgba(16, 17, 17, 0.58);
}

.hero-metrics strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  color: var(--amber);
}

.hero-metrics span {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.section-shell {
  padding: 6.5rem 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.6rem;
}

.section-heading h2,
.section-shell h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
}

.section-intro,
.section-copy {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.about-section {
  background:
    linear-gradient(180deg, var(--paper), #eef6f0);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.about-point,
.experience-card,
.project-card,
.skills-board,
.education-panel,
.contact-form {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-point {
  padding: 1.25rem;
  box-shadow: none;
}

.about-point svg {
  width: 28px;
  height: 28px;
  color: var(--teal);
}

.about-point h3,
.experience-body h3,
.project-card h3,
.skill-group h3 {
  margin: 0.85rem 0 0.45rem;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0;
}

.about-point p,
.experience-card p,
.project-card p {
  margin: 0;
  color: var(--muted);
}

.experience-section {
  background: #111614;
}

.experience-section .section-kicker,
.experience-section .section-heading h2 {
  color: var(--white);
}

.timeline {
  display: grid;
  gap: 1.1rem;
}

.experience-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  overflow: hidden;
  box-shadow: none;
}

.experience-date {
  padding: 1.5rem;
  color: var(--ink);
  background: var(--amber);
  font-weight: 900;
}

.experience-body {
  padding: 1.5rem;
}

.experience-body .role {
  margin-bottom: 0.85rem;
  color: var(--teal);
  font-weight: 900;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tech-stack span,
.skill-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.65rem;
  color: var(--ink);
  background: #eef5ef;
  border: 1px solid #d7e5dc;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
}

.projects-section {
  background: var(--paper);
}

.project-card {
  height: 100%;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(19, 31, 28, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(19, 31, 28, 0.16);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #dfe7e2;
}

.project-body {
  padding: 1.25rem;
}

.project-meta {
  margin-bottom: 0.5rem;
  color: var(--blue);
}

.skills-section {
  background:
    linear-gradient(135deg, #f8faf7 0%, #edf6f4 48%, #fff8e8 100%);
}

.skills-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  overflow: hidden;
  box-shadow: none;
}

.skill-group {
  min-height: 216px;
  padding: 1.35rem;
  background: var(--white);
}

.skill-group h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0;
}

.skill-group:nth-child(1) svg {
  color: var(--coral);
}

.skill-group:nth-child(2) svg {
  color: var(--teal);
}

.skill-group:nth-child(3) svg {
  color: var(--blue);
}

.skill-group:nth-child(4) svg {
  color: var(--violet);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.education-section {
  padding-top: 0;
  background: linear-gradient(180deg, #fff8e8, var(--paper));
}

.education-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  box-shadow: none;
}

.education-panel p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.education-year {
  flex: 0 0 auto;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-weight: 900;
}

.contact-section {
  background: #111614;
  color: var(--white);
}

.contact-section h2,
.contact-section .section-copy {
  color: var(--white);
}

.contact-section .section-copy {
  opacity: 0.75;
}

.contact-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.contact-list a,
.contact-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  color: rgba(255, 255, 255, 0.82);
}

.contact-list a:hover {
  color: var(--amber);
}

.contact-list svg {
  color: var(--amber);
}

.contact-form {
  padding: 1.5rem;
  color: var(--ink);
  box-shadow: none;
}

.form-label {
  color: var(--ink);
  font-weight: 800;
}

.form-control {
  min-height: 48px;
  border: 1px solid #ccd8d0;
  border-radius: 8px;
  color: var(--ink);
  background: #fbfffb;
}

.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.18rem rgba(19, 138, 126, 0.16);
}

textarea.form-control {
  min-height: 150px;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 800;
}

.form-status.success {
  color: var(--teal);
}

.form-status.error {
  color: var(--coral);
}

.site-footer {
  padding: 1.4rem 0;
  color: rgba(255, 255, 255, 0.78);
  background: #0c0f0e;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a:hover {
  color: var(--amber);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.hero-section .reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    padding: 1rem 0;
  }

  .hero-section {
    min-height: 78vh;
    padding-top: 7rem;
    background:
      linear-gradient(180deg, rgba(9, 13, 13, 0.94), rgba(9, 13, 13, 0.76)),
      url("../img/hero-background.png") center / cover no-repeat;
  }

  .hero-main {
    grid-template-columns: 1fr;
  }

  .profile-card {
    justify-self: stretch;
    width: min(100%, 420px);
  }

  .hero-metrics,
  .about-grid,
  .skills-board {
    grid-template-columns: 1fr;
  }

  .experience-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .section-shell {
    padding: 4.5rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .profile-info {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-metrics div {
    min-height: 98px;
  }

  .education-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-form {
    padding: 1rem;
  }
}
