/* Globale resets */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Poppins", sans-serif;
  background-color: #111;
  color: white;
  overflow-x: hidden;
}

/* Bovenbalk met logo */
.topbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 60px;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

.topbar img {
  height: 250px;
  width: auto;
  transform: translateY(10px);
  cursor: pointer;
}

/* Hoofdcontainer */
.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: url("img/DE OVERVIEW.png") no-repeat center center;
  background-size: cover;
  transition: transform 1s cubic-bezier(.2,.9,.2,1), transform-origin 0.2s;
  will-change: transform;
  z-index: 1;
  margin-top: 60px;
}

/* Hotspots */
.hotspot {
  position: absolute;
  cursor: pointer;
  background: transparent;
  z-index: 5;
}

.laptop { left: 18%; top: 12%; width: 28%; height: 35%; }
.cup { left: 22%; top: 60%; width: 8%; height: 12%; }
.notebook { left: 35%; top: 66%; width: 25%; height: 20%; }

/* Hover items */
.hover-item {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

.laptop-hover { left: 17%; top: 10%; width: 30%; height: auto; }
.cup-hover { left: 17%; top: 54%; width: 14%; height: auto; }
.notebook-hover { left: 23%; top: 18%; width: 45%; height: auto; }

.laptop:hover ~ .laptop-hover,
.cup:hover ~ .cup-hover,
.notebook:hover ~ .notebook-hover {
  opacity: 1;
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* Popups */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 100;
}

.popup.active { visibility: visible; opacity: 1; }

.popup-content {
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 2rem;
  overflow-y: auto;
  text-align: center;
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.popup.active .popup-content {
  transform: translateY(0);
  opacity: 1;
}

/* Over mij popup */
.about-popup {
  max-width: 55%;
  max-height: 80%;
}

.about-popup img {
  max-width: 55%;
  max-height: auto;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
  border-radius: 10px;
}

/* Project popups */
.notebook-popup {
  max-width: 80%;
  max-height: 95%;
}

/* Specifieke project detail afbeeldingen */
.work-detail-img {
  max-width: 100%;
  max-height: 500px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto 1.5rem auto;
}

/* Popup tekst */
.popup-content h2,
.popup-content h3,
.popup-content p {
  text-align: left;
  margin-bottom: 1rem;
}

.close-btn {
  margin-top: 1rem;
  padding: .5rem 1rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Contactsectie */
#contactSection {
  width: 100%;
  background: #000;
  padding: 80px 20px;
  text-align: center;
}

#contactSection h2 { color: #fff; }
#contactSection a { color: #0ff; }

/* Project grid 2x2 */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 2rem;
  margin: 1rem 0;
  justify-items: center;
  align-items: start;
}

.work-item {
  cursor: pointer;
  text-align: center;
}

/* Alle grid afbeeldingen */
.project-img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto 0.5rem auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.project-img:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* Specifieke afmetingen per project */
.project1 { max-height: 400px; }
.project2 { max-height: 400px; }
.project3 { max-height: 450px; }
.project4 { max-height: 450px; }
