* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Source Code Pro', monospace; overflow:hidden; background:black; }

/* Background GIF */
#bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
}
#bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Title */
#title {
  position: absolute;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
#title img {
  width: 27vw;   /* logo 10% smaller */
  max-width: 450px;
  height: auto;
}

/* Main icon row */
.panel-row {
  position: absolute;
  top: 28vh;  /* 🔹 back to original height */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: flex-end; /* align text baselines */
  gap: 8.5vw; /* 5% closer */
  width: 80%;
  max-width: 1000px;
}

/* Panel containers */
.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-family: 'Source Code Pro', monospace;
}

/* Icon sizing */
.panel .icon {
  position: relative;
  width: 10.8vw;     /* 10% smaller */
  max-width: 180px;
}
.panel.about .icon {
  width: 8vw;        /* 20% smaller */
  max-width: 140px;
}
.panel .icon img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.15s linear;
}
.panel .icon img.hover {
  position: absolute;
  left: 0; top: 0;
  opacity: 0;
}
.panel:hover .icon img.hover { opacity: 1; }
.panel:hover .icon img.idle  { opacity: 0; }

/* Labels */
.panel span {
  margin-top: 1vh;
  font-size: 2vh;
  color: white;
  text-align: center;
}

/* Feedback bottom-right */
.panel.feedback {
  position: absolute;
  bottom: 10vh;
  right: 8vw;
}
.panel.feedback span { font-size: 1.8vh; }

/* Preload hover images */
body::after {
  content: url("assets/about me hover upscaled.png")
           url("assets/Film Hover.png")
           url("assets/Illustration Hover.png")
           url("assets/Feedback box Hover.png");
  display: none;
}

/* ============================= */
/* 📱 Mobile adjustments */
/* ============================= */
@media (max-width: 768px) {
  #title img {
    width: 54vw; /* logo 10% smaller */
  }

  .panel-row {
    top: 25vh; /* keep slightly higher on mobile */
    flex-direction: column;
    gap: 6vh;
    width: 100%;
  }

  .panel .icon {
    width: 32vw;   /* 10% smaller */
    max-width: 200px;
  }

  .panel.about .icon {
    width: 25vw;   /* 20% smaller */
    max-width: 160px;
  }

  .panel span {
    font-size: 2.5vh;
  }

  .panel.feedback {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 8vh;
    align-self: center;
  }
}
