* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*:focus-visible {
  outline: 2px solid black;
  border-radius: 0;
  outline-offset: 2px;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background-color: #fff;
}

.layout {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  box-sizing: border-box;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 32px;
}

.main-nav .nav-left a {
  color: black;
  text-decoration: none;
  font-weight: 600;
}

.main-nav .nav-right {
  display: flex;
  gap: 16px;
}

.main-nav .nav-right a {
  font-size: 24px;
  color: black;
  text-decoration: none;
}

h1.hero-text {
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 1px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.landing-content {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  margin: 164px auto 0;
  padding: 32px;
}

.content-block {
  margin-bottom: 96px;
  display: flex;
  flex-flow: column;
  align-content: left;
  gap: 0;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}
.content-block h2 {
  margin-bottom: 32px;
  font-size: 1.25rem;
  font-weight: 600;
}
.content-block p {
  font-size: 1rem;
  line-height: 1.8rem;
  margin-bottom: 20px;
  color: rgba(0, 0, 0, 0.6);
  max-width: 540px;
  letter-spacing: 0.4px;
}

.experience-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 32px;
  margin-top: 32px;
}

.experience-list {
  list-style: none;
  margin-bottom: 32px;
}

.experience-list-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  gap: 8px;
}

.experience-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.experience-list-item .experience-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.experience-role,
.experience-time {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
}

.experience-context {
  color: rgba(0, 0, 0, 0.6);
  max-width: 540px;
  letter-spacing: 0.4px;
  line-height: 1.8rem;
}

hr.divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin-bottom: 112px;
  width: 100%;
}

.about-me {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
}

.about-me-text {
  flex: 1;
}

.profile-picture {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  padding: 24px;
}

@media (max-width: 768px) {
  .about-me {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-picture {
    margin-top: 32px;
  }
}

.last-divider {
  border-color: black;
  margin-bottom: 12px;
  margin-top: 64px;
}

.main-footer {
  text-align: center;
  font-size: 14px;
  color: black;
  opacity: 0;
  animation: fadeInUp 0.5s 0.9s ease-out forwards;
}

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

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

.landing-content > .content-block:nth-child(1) {
  animation-delay: 0.4s;
}
.landing-content > .content-block:nth-child(3) {
  animation-delay: 0.5s;
}
.landing-content > .content-block:nth-child(5) {
  animation-delay: 0.6s;
}
.landing-content > .content-block:nth-child(7) {
  animation-delay: 0.7s;
}
.landing-content > .content-block:nth-child(9) {
  animation-delay: 0.8s;
}

.projects-content {
  max-width: 80em;
  margin: 0 auto;
  padding: 0 32px;
}

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

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.project-item {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Mobile-first: default to 1 column, all items span 1 */
.project-item--span-1,
.project-item--span-2 {
  grid-column: span 1 / span 1;
}

/* Tablet: 2 columns, all items still span 1 */
@media (min-width: 768px) {
  .project-item--span-1,
  .project-item--span-2 {
    grid-column: span 1 / span 1;
  }
}

/* Desktop: 3 columns, with span variations */
@media (min-width: 1024px) {
  .project-item--span-1 {
    grid-column: span 1 / span 1;
  }

  .project-item--span-2 {
    grid-column: span 2 / span 2;
  }
}

.w-full {
  width: 100%;
}

.project-video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.project-description {
  padding: 24px;
  padding-left: 0;
}

.project-description p {
  margin: 0;
  color: #000;
  max-width: 100%;
}
