/* === Global Reset & Box Sizing === */
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}

/* --- Latar belakang ganda --- */
.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: -2;
}
.background-gif {
  background-image: url("images/background.gif");
  z-index: -2;
}
.background-jpg {
  background-image: url("images/background.jpg");
  opacity: 0.5;
  z-index: -1;
}

/* --- Body --- */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

/* === Ikon Sosial, Editor & Art - Desktop === */
.profile-icon,
.email-icon,
.insta-icon,
.twitter-icon,
.medium-icon,
.editor-button,
.art-button {
  position: fixed;
  left: 2vw;
  width: 80px;
  height: auto;
  z-index: 11;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.profile-icon:hover,
.email-icon:hover,
.insta-icon:hover,
.twitter-icon:hover,
.medium-icon:hover,
.editor-button:hover,
.art-button:hover {
  transform: scale(1.1);
  filter: brightness(1.15);
}

.profile-icon { top: 60px; }
.email-icon   { top: 160px; }
.insta-icon   { top: 260px; }
.twitter-icon { top: 360px; }
.medium-icon  { top: 460px; }
.editor-button { top: 560px; }
.art-button    { top: 620px; }

/* === Popup Umum === */
.profile-popup,
.email-popup,
.insta-popup,
.twitter-popup,
.medium-popup,
.art-popup {
  display: none;
  position: fixed;
  left: 300px;
  background-color: #fff;
  color: #000;
  border-radius: 10px;
  padding: 15px;
  z-index: 100;
  width: 360px;
  max-width: 90vw;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease-in-out;
}

.profile-popup { top: 50px; }
.email-popup   { top: 180px; }
.insta-popup   { top: 310px; }
.twitter-popup { top: 440px; }
.medium-popup  { top: 570px; }
.art-popup     { top: 640px; }

.profile-popup h3,
.email-popup h3,
.insta-popup h3,
.twitter-popup h3,
.medium-popup h3,
.art-popup h3 {
  margin-top: 0;
  font-size: 20px;
}

.profile-popup img {
  width: 90px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.profile-popup p,
.email-popup p,
.insta-popup p,
.twitter-popup p,
.medium-popup p,
.art-popup p {
  font-size: 18px;
  margin: 0;
  word-break: break-word;
}

.email-popup .close-email {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 20px;
  color: red;
  cursor: pointer;
}

.insta-popup a,
.twitter-popup a,
.medium-popup a,
.art-popup a {
  color: #000;
  text-decoration: none;
}
.insta-popup a:hover,
.twitter-popup a:hover,
.medium-popup a:hover,
.art-popup a:hover {
  text-decoration: underline;
}

/* === Modal / Editor & Art === */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}
.modal-content {
  background-color: white;
  color: black;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.close,
.close-art {
  color: red;
  font-size: 24px;
  float: right;
  cursor: pointer;
  font-weight: bold;
}
.close:hover,
.close-art:hover {
  color: darkred;
}

/* === Responsif Mobile === */
@media (max-width: 600px) {
  .profile-icon { top: 30px; }
  .email-icon   { top: 110px; }
  .insta-icon   { top: 190px; }
  .twitter-icon { top: 270px; }
  .medium-icon  { top: 350px; }
  .editor-button {
    top: 440px;
    left: 4vw;
    width: 22vw;
    max-width: 70px;
  }
  .art-button {
    top: 520px;
    left: 4vw;
    width: 22vw;
    max-width: 70px;
  }

  .profile-icon,
  .email-icon,
  .insta-icon,
  .twitter-icon,
  .medium-icon {
    left: 5vw;
    width: 18vw;
    max-width: 60px;
  }

  .profile-popup,
  .email-popup,
  .insta-popup,
  .twitter-popup,
  .medium-popup,
  .art-popup {
    width: 90vw;
    left: 5vw;
    padding: 12px;
  }

  .art-popup {
    top: 600px;
  }

  .profile-popup img {
    width: 70px;
  }

  .profile-popup h3,
  .email-popup p,
  .insta-popup p,
  .twitter-popup p,
  .medium-popup p,
  .art-popup p {
    font-size: 17px;
  }
}
