:root {
  --media-width: 600px;     /* images */
  --video-width: 720px;     /* videos */
  --media-ratio: 16 / 9;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
}

header {
  background-color: #0a0a0a;
  border-bottom: 2px solid #bfa046;
  padding: 16px;
  text-align: center;
}

header h1 {
  color: #bfa046;
  margin: 0;
  font-size: 2.4em;
}

.contact-button {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  border: 2px solid #bfa046;
  color: #bfa046;
  text-decoration: none;
}

.contact-button:hover {
  text-decoration: underline;
}

.intro {
  text-align: center;
  padding: 36px 20px;
}

.profile-image {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid #bfa046;
  object-fit: cover;
  margin-bottom: 14px;
}

.portfolio-title {
  font-size: 2.2em;
  color: #bfa046;
  margin-bottom: 14px;
}

.section-title {
  text-align: center;
  padding: 26px 20px 6px;
}

.section-title h2 {
  color: #ffffff;
  font-size: 2em;
}

.media {
  padding: 28px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-color: #1a1a1a;
  margin: 0 20px 26px;
  border-radius: 12px;
}

/* IMAGES */
.media img {
  width: var(--media-width);
  aspect-ratio: var(--media-ratio);
  object-fit: cover;
  border: 2px solid #c5ac62;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* VIDEOS */
.media video {
  width: var(--video-width);
  aspect-ratio: var(--media-ratio);
  object-fit: cover;
  border: 2px solid #c5ac62;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media img:hover,
.media video:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.text-block {
  max-width: 520px;
  text-align: center;
}

.project-link {
  color: #66ccff;
  text-decoration: none;
}

@media (max-width: 900px) {
  .media img,
  .media video {
    width: 100%;
    max-width: var(--media-width);
  }

  .media video {
    max-width: var(--video-width);
  }
}

@media (max-width: 700px) {
  .media {
    flex-direction: column;
  }
}
