:root {
  --neon-green: #ffffff;
  --page-width: 85%;
  --gap: 12px;
}

/* General */
body {
  background: black;
  color: #e2e823;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--neon-green);
  font-size: 30px;
  font-weight: 900;
  width: var(--page-width);
  margin: 0 auto;
  padding: 10px -20px;
}

/* Only links in the header (work pages) */
header .name a {
  color: var(--neon-green);
  text-decoration: underline;
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* two columns */
  gap: var(--gap);
  width: var(--page-width);
  margin: 5px auto;
}

.portfolio-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Work detail page */
.work-detail {
  width: var(--page-width);
  margin: 20px auto;
  text-align: center;
}

.work-detail .work-image {
  max-width: 100%;
  max-height: 80vh; /* fit in viewport height */
  object-fit: contain; /* show full image */
  margin-bottom: 20px;
}

.work-detail .work-text {
  color: #e2e823;
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.work-detail .work-text h1 {
  color: var(--neon-green);
  margin-bottom: 12px;
  font-size: 32px;
}
/* Animation container between header and portfolio */
.header-animation {
  text-align: center;       /* centers the animation */
  margin: -70px auto;        /* space above and below */
  width: var(--page-width); /* aligns with page width */
}

.header-animation img {
  max-width: 150px; /* adjust size if needed */
  width: 100%;
  height: auto;
  display: inline-block;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 20px;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}