@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url('img/backgroundgunung.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 0.5 = 50% gelap */
  z-index: 0;
}

.container {
  z-index: 1;
  position: relative;
}



.container {
  text-align: center;
  position: relative;
  animation: fadeIn 1s ease-out;
}

.avatar-glow {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  padding: 6px; /* tebal border */
  background:
    conic-gradient(from var(--angle, 90deg), 
      rgba(0,123,255,0.5),
      rgba(0,123,255,1) 25%, 
      rgba(0,123,255,0.5) 50%,
      rgba(0,123,255,1) 75%,
      rgba(0,123,255,0.5) 100%);
  animation: borderRotate 2.5s linear infinite;
  box-shadow: 0 0 20px #007bff, 0 0 40px #007bff40;
  margin: auto;
  cursor: pointer;
  transition: transform 0.4s;
}

.avatar-glow:hover {
  transform: scale(1.05);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #0e0f1a;
}

/* Animasi putar */
@keyframes borderRotate {
  100% {
    --angle: 450deg;
  }
}


h1 {
  margin-top: 1rem;
  font-size: 2rem;
  color: #ffffff;
  text-shadow: 0 0 8px #007bff;
}

.social-icons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 20px;       /* jarak antar icon */
  flex-wrap: nowrap; /* jangan pindah baris */
  flex-shrink: 1;  /* icon bisa menyusut agar muat */
}

.icon {
  font-size: 2.5rem;
  color: #ffffffcc;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  border-radius: 50%;
  flex-shrink: 0;  /* jangan icon mengecil di desktop */
}

/* Untuk ukuran icon di HP (screen kecil) */
@media (max-width: 480px) {
  .icon {
    font-size: 1.8rem;  /* ukuran icon diperkecil */
  }
}


.icon:hover {
  color: #ffffff;
  text-shadow: 0 0 15px #007bff, 0 0 25px #007bff;
  transform: scale(1.2);
}

.icon-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* YouTube Popup */
.youtube-popup {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  background: #1f2937;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 0 25px #007bff80;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
  animation: slideDown 0.3s ease-out forwards;

  /* Responsif */
  width: max-content;
  max-width: 90vw; /* maksimal 90% lebar layar */
  min-width: 180px; /* minimal lebar */
  box-sizing: border-box;
}

.youtube-popup a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid #007bff;
  border-radius: 8px;
  background: #0f111a;
  transition: all 0.3s;
  font-size: 1rem;
  white-space: nowrap; /* agar link tidak pecah ke baris baru */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.youtube-popup a:hover {
  background: #007bff;
  color: #fff;
}

/* Ukuran font dan padding lebih kecil di layar kecil */
@media (max-width: 480px) {
  .youtube-popup {
    top: 50px;
    padding: 10px 14px;
    max-width: 95vw;
    min-width: 140px;
  }
  .youtube-popup a {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}


.youtube-popup.show {
  display: flex;
}

/* Icon Colors */
.icon.youtube { color: red; }
.icon.discord { color: #7289da; }
.icon.tiktok { color: #69C9D0; }
.icon.instagram { color: #E1306C; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Canvas untuk tetesan embun */
#dewCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1; /* di atas background (default z=0), tapi di bawah konten (z > 1) */
}

/* Container utama (foto + sosmed) */
.container {
  position: relative;
  z-index: 10; /* pastikan ini di atas canvas */
  text-align: center;
  /* properti lain sudah ada */
}

.glass-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 15px; /* ujung kotak dibuat tumpul */
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  margin: 0 auto;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  z-index: 10;
  position: relative;
  text-align: center;
}



.profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap; /* Biar responsif */
}

.avatar-glow {
  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: rotateGlow 4s linear infinite;
}




