/* GLOBAL STYLES */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  cursor: none;
  overflow-x: hidden;
  background-image: url("images/Silicon Cities - Heiko Hellwig.jpeg");
  background-size: 20%;
  background-repeat: repeat;
  background-attachment: fixed;
  font-family: Arial, sans-serif;
}

/* CUSTOM CURSOR */
.cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  background-image: url('cursors/CosmicLink-ezgif.com-ani-to-gif-converter.gif');
  background-size: cover;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.1s ease, background-image 0.2s ease;
}

/* MONITOR LAYOUT(scales with screen) */
.monitor-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
}

/* MONITOR */
.monitor {
  position: relative;
  width: 80vw;
  max-width: 1200px;
  padding-top: 56.25%; /* 16:9 ratio */
  margin-top: 5vh;
}

/* SCREEN GLASS REFLECTION (smaller & subtler) */
.monitor::after {
  content: "";
  position: absolute;

  /* pull reflection inward */
  top: 10%;
  left: 14%;
  width: 72%;
  height: 65%;
  pointer-events: none;
  z-index: 999;
  
  background:
    radial-gradient(
      ellipse at center,
      rgba(0,0,0,0) 55%,
      rgba(0,0,0,0.25) 100%
    );
  border-radius: 4%;
}

.monitor::after {
  content: "";
  position: absolute;

  /* pull reflection inward */
  top: 10%;
  left: 14%;
  width: 72%;
  height: 65%;
  pointer-events: none;
  z-index: 9;
  
  background: radial-gradient(
    ellipse at top left,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.06),
    rgba(0,0,0,0.2)
  );
  border-radius: 3%;
}

/* SCREEN ON GIF */
.screen {
  position: absolute;
  top: 8%;
  left: 11%;
  width: 80%; /* fill monitor frame */
  height: 70%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.3s ease;
  transform: scale(1.01);
}

/* OFF overlay */
.screen-off-overlay {
  position: absolute;
  top: 8%;
  left: 12%;
  width: 80%;
  height: 70%;
  background-image: url('backgrounds/star_sky.gif');
  background-size: cover;
  background-position: center;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.monitor.on .screen-off-overlay {
  opacity: 0;
}

/*desktop icons*/

.desktop-icons {
  position: absolute;
  top: 8%;
  left: 12%;
  width: 80%;
  height: 70%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.monitor.on .desktop-icons {
  opacity: 1;
  pointer-events: auto;
}

/* ICON = BUTTON */
.desktop-icon {
  position: absolute;
  width: 80px;
  text-align: center;
  text-decoration: none;
  color: white;
  font-family: "LinBiolinumK", sans-serif;
  font-size: 13px;
  cursor: pointer;
  left: 0;
}

.desktop-icon span {
  display: block;
  margin-top: 4px;
}

/* image via background (NOT <img>) */
.desktop-icon::before {
  content: "";
  display: block;
  width: 80px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto;
}

/* assign images */
.desktop-icon.about::before {
  background-image: url("folders/folder-22.png");
}
.desktop-icon.work::before {
  background-image: url("folders/folder-15.png");
}
.desktop-icon.video::before {
  background-image: url("folders/folder-11.png");
}

/*individual icons*/
.desktop-icon img {
  width: 64px;
  height: auto;
  display: block;
   margin: 0 auto;
}

/* hover */
.desktop-icon:hover {
  transform: scale(1.08);
  filter: brightness(1.2);
  user-select: none;
  -webkit-user-select: none;  /* Chrome / Safari */
  -moz-user-select: none;     /* Firefox */
  -ms-user-select: none;      /* old Edge */
  cursor: pointer;
}

.desktop-icon:active {
  transform: scale(0.95) translateY(2px);
  filter: brightness(0.95);
}

/* POST-IT NOTE */
.postit {
  position: absolute;
  top: -30%;
  left: -29%;
  width: 80%;
  height: auto;
  padding-top: 80%; 
  background-image: url("images/postitnote.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
  pointer-events: none;
  transform: rotate(-5deg);
  filter: drop-shadow(4px 8px 10px rgba(0,0,0,0.35));
}

.postit p {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  text-align: center;
  font-family: "Meyrin", sans-serif;
  font-size: 1.5vw;
  color: #222;
  line-height: 1.2;
}

/* POWER BUTTON */
.power-btn {
  position: absolute;
  bottom: 10%;
  right: 26%;
  width: 11%;   /* scales with monitor */
  z-index: 9;
  cursor: pointer;
  clip-path: circle(50% at 50% 50%);
  
/* depth */
  box-shadow: 0 6px 8px rgba(0,0,0,0.6);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}

/* hover = finger near */
.power-btn:hover { transform: scale(1.1); 
  box-shadow: 0 8px 10px rgba(0,0,0,0.7);
}

.power-btn:active {
  transform: translateY(4px) scale(0.96);
}

/* =========================
   MONITOR FRAME
========================= */
.monitor-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  pointer-events: none;
}

.monitor.on .screen,

.monitor.on .desktop-icons {
  display: block;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 5; /*above overlay*/
}

/* Glow effect when monitor is ON */
.monitor.on .screen {
  box-shadow: 0 0 300px #8ff;
  transition: box-shadow 0.3s ease;
}


/* MEDIA QUERIES FOR MOBILE */
@media screen and (max-width: 768px) {
  .monitor {
    width: 95vw;
  }

  .postit {
    width: 25%;
    left: -15%;
  }

  .power-btn {
    width: 8%;
    bottom: 3%;
    right: 15%;
  }
  .desktop-icon {
    width: 64px;
    font-size: 11px;
  }

  .desktop-icon::before {
    width: 64px;
    height: 64px;
  }
}

