:root {
  --bg: #111111;
  --card: #1b1b1b;
  --line: #2d2d2d;
  --text: #ffffff;
  --muted: #b9b9b9;
  --lime: #d4ea6b;
  --round: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Outfit", sans-serif;
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 3rem;
}

h3 {
  font-size: 1.6rem;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wrap {
  width: min(1200px, 100% - 3rem);
  margin: 0 auto;
}

section.wrap {
  padding: 5rem 0;
}

/* HEADER */
.header {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.header h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
}

.header h1 em {
  font-style: normal;
  color: var(--lime);
}

.header .indent {
  display: inline-block;
  margin-top: 0.3em;
  padding-left: 10%;
}

.header-text p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 40ch;
  margin: 2rem 0;
}

.header-photos {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.header-photos .tall {
  flex: 1;
  aspect-ratio: 3 / 4.4;
  margin-top: 3rem;
}

.header-photos .wide {
  flex: 1;
  aspect-ratio: 3 / 4;
}

/* IMAGE AND VIDEO */
.ph {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--round);
}

.ph img,
.ph video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SOCIAL ICONS */
.social {
  display: flex;
  gap: 1rem;
}

.social a {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: 0.2s;
}

.social a:hover {
  color: var(--bg);
  background: var(--lime);
  border-color: var(--lime);
}

/* TECH STACK */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.stack-col h3 {
  font-size: 1.3rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.chips li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

.chips.small li {
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
}

/* MY PROJECTS */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.project .ph {
  aspect-ratio: 16 / 10;
}

.project .ph + .ph {
  margin-top: 1rem;
}

.project h3 {
  margin: 1.5rem 0 0.5rem;
}

.project p {
  color: var(--muted);
  margin: 0 0 1rem;
}

/* MY ACHIEVEMENTS */
.credit {
  max-width: 85ch;
  margin-bottom: 3rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--lime);
}

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

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.filters button {
  font: inherit;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  cursor: pointer;
}

.filters button.on {
  color: var(--lime);
  border-color: var(--lime);
}

.certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.certs li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
}

.certs h4 {
  font-size: 1.2rem;
}

.certs .org {
  color: var(--lime);
  font-weight: 500;
}

.certs .meta,
.certs .id {
  color: var(--muted);
  font-size: 0.85rem;
}

.certs .id {
  word-break: break-all;
}

/* FOOTER */
.callToAction {
  display: grid;
  justify-items: center;
  gap: 2rem;
  padding: 8rem 1.5rem 5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.callToAction h2 {
  color: var(--lime);
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .project.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .project.fade.show {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOILE DEVICES */
@media (max-width: 1000px) {
  .header,
  .projects {
    grid-template-columns: 1fr;
  }

  .header {
    min-height: auto;
    padding: 3rem 0;
  }

  .header-photos .tall,
  .project:nth-child(even) {
    margin-top: 0;
  }

  .stack-grid,
  .certs {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header .indent {
    padding-left: 0;
  }

  .header-photos {
    flex-direction: column;
  }

  .header-photos .ph {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .stack-grid,
  .certs {
    grid-template-columns: 1fr;
  }
}
