:root {
  --bg-dark: #0a0a0a;
  --accent: #f7901e;
  --muted: #615c5d;
  --text: #ffffff;
  --max-width: 1200px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Satoshi", sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: "Cabinet Grotesk", sans-serif;
}

h2 {
  color: var(--accent);
  font-size: 2.75rem;
}

a {
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 0.5px solid #303030;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.125rem;
}

.logo-mark {
  height: 48px;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.6px;
}

.menu {
  display: flex;
  gap: 2rem;

  li {
    list-style-type: none;
  }

  a {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;

    &:hover {
      color: var(--accent);
      transition-duration: 0.3s;
    }
  }
}

.menu-toggle {
  display: none;
}

.hero {
  display: flex;
  height: 90vh;
  background: var(--bg-dark) url("/img/hero-bg.png") no-repeat center / cover;

  .hero-inner {
    max-width: var(--max-width);
    margin: auto;
    text-align: center;
    padding: auto auto;
  }

  .hero-title {
    font-size: 4rem;
    line-height: 1;
    margin: 1.125rem 0 0;
    font-weight: 800;
  }
}

.kicker {
  display: flex;
  justify-content: center;
}

.kicker p {
  display: inline-block;
  letter-spacing: 3.9px;
  font-size: 1.25rem;
  color: var(--text);
  overflow: hidden;
  margin-inline: auto;
  margin-bottom: 2rem;
  white-space: nowrap;
  border-right: 2px solid var(--text);
  animation:
    typing 4s steps(26) forwards,
    blink 1s step-end infinite;
}

.hero-title.start {
  display: inline-block;
  overflow: hidden;
  margin-inline: auto;
  white-space: normal;
  opacity: 0;
  animation: fadeUp 6s ease forwards 0.5s;
}

.hero-title span {
  color: var(--accent);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 30ch;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.about {
  background: #fff;
  color: #231f20;
  padding: 100px 0;
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 0 24px;
}

.avatar-mask {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
}

.avatar-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-copy {
  flex: 1;
  display: flex;
  flex-direction: column;

  .link-cta {
    margin-top: 2rem;
  }
}

.accent {
  color: var(--accent);
  font-size: 44px;
  margin: 0 0 12px;
}

.lead {
  font-size: 18px;
  margin: 0 0 12px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: underline;
  margin-top: 16px;
}

.works {
  padding: 100px 0;
  background: var(--bg-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  color: var(--accent);
  font-size: 44px;
  text-align: center;
  margin: 0;
}

.section-sub {
  color: var(--text);
  text-align: center;
  opacity: 0.9;
  margin: 8px 0 32px;
  letter-spacing: 3px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 18px;
  border: 0.5px solid #c8c8c8;
}

.card-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 8px;
}

.card h3 {
  margin: 12px 0 6px;
  font-size: 20px;
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  span {
    align-self: flex-start;
    margin-left: 0;
  }
}

.tag {
  background: transparent;
  border: 1px solid #fff;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  margin-left: 8px;
}

.card p {
  color: #b6b6b6;
  margin-bottom: 2rem;
}

.link-cta {
  display: flex;
  color: var(--accent);
  gap: 0.25rem;
  margin-top: auto;
  align-items: center;
  margin-bottom: 1rem;
  transform-origin: left center;
  transition: transform 0.2s ease;

  &:hover {
    background-color: var(--accent);
    color: white;
    padding: 0.5rem;
    border: 1px solid var(--accent);
    align-self: flex-start;
    animation: grow 0.2s forwards;
    border-radius: 4px;
  }

  &:active {
    animation: shrink 0.1s forwards;
  }

  svg {
    width: 1.5rem;
  }
}

@keyframes grow {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes shrink {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0.92);
  }
}

.skills {
  background: #fbf6f1;
  color: #231f20;
  padding: 80px 0;
}

.skills-right h2 {
  margin-top: 0;
}

.skills .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chips span {
  border: 1px solid #231f20;
  padding: 8px 14px;
  border-radius: 30px;
}

.experience {
  margin-bottom: 2rem;

  h3 {
    margin-bottom: 0.5rem;
  }

  p {
    color: var(--muted);
    margin-top: 0;
  }
}

.contact {
  padding: 100px 0;
  background: var(--bg-dark);
}

.contact-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.contact-left {
  flex: 1;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: block;
  color: #c8c8c8;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid #7d7d7d;
  background: transparent;
  color: var(--text);
}

.btn {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.site-footer {
  padding: 40px 120px;
  background: var(--bg-dark);
  color: #c8c8c8;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-inner {
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 2rem;

  a {
    color: #c8c8c8;
    text-transform: uppercase;
    letter-spacing: 2px;

    &:hover {
      color: var(--accent);
      transition-duration: 0.3s;
    }
  }
}

@media (max-width: 780px) {
  .site-header,
  .site-footer {
    padding: 24px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .about-inner {
    flex-direction: column;
    text-align: center;
  }

  .skills .container {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    flex-direction: column;
  }

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

  .menu-toggle {
    display: block;
    background-color: var(--bg-dark);
    color: white;
    cursor: pointer;
    min-width: 14mm;
    border: 1px solid #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-align: center;

    &:hover {
      color: var(--accent);
    }

    svg {
      display: block;
    }
  }

  .site-header {
    position: relative;
  }

  nav {
    margin-top: 0.5rem;
    position: absolute;
    top: 6.25rem;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    z-index: 99;

    transform: translateY(-20%);
    opacity: 0;
  }

  nav.show-menu {
    animation: slideDown 0.4s ease forwards;
  }

  nav:not(.show-menu) {
    animation: slideUp 0.3s ease forwards;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
  }

  nav ul li a {
    display: flex;
    align-items: center;
    font-size: 1rem;
    min-height: 11mm;
    padding-bottom: 1rem;
    color: white;
  }

  nav ul li:first-child a {
    padding-top: 1.5rem;
  }

  nav ul li:last-child a {
    padding-bottom: 2.5rem;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}
