:root {
  --bg: #ffffff;
  --bg-accent: #f9fbfc;
  --surface: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.78);
  --text: rgba(15, 15, 15, 0.8);
  --muted: rgba(15, 15, 15, 0.8);
  --primary: rgba(15, 15, 15, 0.8);
  --primary-strong: rgba(15, 15, 15, 0.95);
  --line: rgba(15, 15, 15, 0.22);
  --radius: 0.5rem;
  --shadow: none;
  --maxw: 75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 10pt;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(75, 78, 82, 0.149) 0%, rgba(22, 23, 25, 0.529) 100%),
    url("../assets/images/bg.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  line-height: 1;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--maxw), 100vw);
  margin-inline: auto;
}

.section {
  padding: 0;
  margin: 1.75rem 0;
}

.section > .container {
  border-radius: var(--radius);
  padding: 3rem 3.75rem;
  background-image:
    linear-gradient(to top, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    url("../assets/images/container01.jpg");
  background-size: 512px, cover;
  background-position: center, 50% 50%;
  background-repeat: repeat, repeat-y;
}

.hero > .container {
  background-image:
    linear-gradient(to top, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    url("../assets/images/container03.jpg");
}

#about > .container,
#skills > .container {
  background-image:
    linear-gradient(to top, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    url("../assets/images/container04.jpg");
}

#contact > .container {
  background-image:
    linear-gradient(to top, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    url("../assets/images/container02.jpg");
}

h1,
h2,
h3 {
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.2;
  margin-top: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 3.75em;
  line-height: 1.2;
  margin-bottom: 0.125rem;
  font-weight: 300;
}

h2 {
  font-size: 2.75em;
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 1.75rem;
}

p {
  margin: 0 0 1.25rem;
}

a {
  color: #3e3e3e;
  font-weight: 700;
}

.site-header {
  display: none;
}

.nav-wrap {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.94rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.82rem;
}

.site-nav a {
  text-decoration: none;
  color: #3e3e3e;
  font-weight: 700;
  font-size: 0.88rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary-strong);
}

.nav-toggle {
  display: none;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  text-align: left;
}

.hero {
  padding-top: 0;
}

.hero-role {
  margin: 0 0 1rem;
  color: var(--primary-strong);
  font-weight: 300;
  font-size: 3.75em;
  line-height: 1.2;
}

.lead {
  font-size: 1.375em;
  line-height: 1.75;
  font-weight: 300;
  color: var(--muted);
  max-width: 43.875rem;
  margin-inline: 0;
}

.hero-grid > div:first-child {
  max-width: 30rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
}

.hero-image-wrap {
  justify-self: center;
  border-radius: 0;
  border: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: min(400px, 100%);
  aspect-ratio: auto;
}

main {
  padding-top: 1.25rem;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-block;
  margin-top: 0;
  padding: 0 1.625rem;
  height: 3.25rem;
  line-height: calc(3.25rem - 2px);
  border-radius: 3rem;
  background: rgba(255, 255, 255, 0.502);
  color: var(--primary);
  text-decoration: none;
  border: 1px solid var(--line);
  font-weight: 400;
  font-size: 1em;
  cursor: pointer;
  transform: scale(1);
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: rgba(255, 255, 255, 0.902);
  transform: scale(1.06);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.502);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.502);
  color: var(--primary);
  border: 1px solid var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: #3d3d3d;
  color: #fff;
  border-color: #3d3d3d;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 1.125em;
  line-height: 1.75;
  font-weight: 300;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.project-card {
  background: var(--surface);
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  line-height: 0;
  position: relative;
}

.project-thumb-wrap {
  overflow: hidden;
}

.project-thumb {
  width: 100%;
  height: auto;
  object-fit: initial;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 320ms ease;
}

.project-card:hover .project-thumb,
.project-card:focus-within .project-thumb {
  transform: scale(1.06);
}

.project-tooltip {
  position: absolute;
  left: var(--tooltip-x, 50%);
  top: var(--tooltip-y, calc(100% - 1rem));
  bottom: auto;
  transform: translate(0.35rem, 0.35rem) scale(0.98);
  width: min(90%, 24rem);
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: var(--bg-accent);
  border: 1px solid rgba(61, 61, 61, 0.16);
  color: #3d3d3d;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
  z-index: 2;
  line-height: 1.4;
}

.project-card:hover .project-tooltip,
.project-card:focus-within .project-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0) scale(1);
}

.project-tooltip p {
  margin: 0;
  font-size: 0.88rem;
}

.project-tooltip p + p {
  margin-top: 0.3rem;
}

.project-tooltip-title {
  font-size: 1.28rem;
  line-height: 1.2;
}

.project-tooltip p.project-tooltip-company {
  font-size: 1.18rem;
  line-height: 1.25;
}

.project-tooltip-label {
  font-weight: 600;
}

.project-content {
  line-height: 1.5;
  padding: 0.45rem 0.5rem 0.7rem;
}

.project-content h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05em;
  line-height: 1.3;
}

.project-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95em;
}

.project-summary {
  margin: 0.3rem 0 0;
  font-size: 1em;
  line-height: 1.5;
}

.project-toggle {
  width: 100%;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.5rem 0.7rem;
  color: var(--text);
  cursor: pointer;
  font-weight: 400;
  font-size: 1em;
}

.project-toggle:hover,
.project-toggle:focus-visible {
  border-color: var(--primary);
}

.project-details {
  margin-top: 0.55rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  font-size: 1em;
  line-height: 1.6;
}

.project-details[hidden] {
  display: none;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.project-link {
  color: #3e3e3e;
  font-weight: 700;
}

#about p {
  font-size: 1.125em;
  line-height: 1.75;
  font-weight: 300;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.75rem;
}

.skill-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.skill-card h3 {
  font-size: 1.25em;
  line-height: 0.75;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: 400;
  color: #8a8a8a;
}

.skill-card li {
  font-size: 1.125em;
  line-height: 1.75;
  font-weight: 300;
}

.skill-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.contact-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: left;
}

.site-footer {
  border-top: 0;
  padding: 1.5rem 0 0.75rem;
}

.site-footer p,
.site-footer a {
  font-size: 0.75rem;
  color: #3e3e3e;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.footer-wrap a {
  color: #3e3e3e;
  background-color: rgba(80, 80, 80, 0.5);
  border-radius: 24px;
  padding: 0.5em 0.375em;
  text-decoration: none;
  font-weight: 700;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
}

.contact-subtitle {
  max-width: 43.875rem;
  color: var(--muted);
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.125em;
  line-height: 1.75;
  font-weight: 300;
  margin: 0 0 1.25rem;
}

@media (max-width: 980px) {
  html {
    font-size: 9pt;
  }

  h1,
  .hero-role {
    line-height: 0.75;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-image-wrap {
    justify-self: start;
    width: min(286px, 100%);
  }
}

@media (max-width: 736px) {
  html {
    font-size: 11pt;
  }

  .section {
    margin: 1.5rem 0;
  }

  h1,
  .hero-role {
    font-size: 3.5em;
    line-height: 0.75;
  }

  .container {
    width: min(var(--maxw), 100vw - 2rem);
  }

  .section > .container {
    padding: 3rem 2rem;
  }

  .hero-grid > div:first-child {
    max-width: none;
  }

  .hero-image-wrap {
    width: min(272px, 100%);
  }

  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-weight: 700;
    font-size: 0.82rem;
  }

  .site-nav {
    position: absolute;
    right: 4vw;
    top: 49px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.45rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 154px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: min(100%, 32rem);
    text-align: center;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: row;
    text-align: left;
  }
}
