/*1. RESET & GLOBAL STYLES
   Mengatur ulang gaya bawaan browser agar konsisten
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  overflow-x: hidden;
  background-color: #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

/*2. HEADER (NAVBAR)
   Bagian navigasi atas yang melayang
*/
header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none; /* Supaya klik tembus ke bawah kecuali kena tombol */
}

/* Container List Menu */
.header-list {
  margin: 0;
  padding: 0;
}

.div-list {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Styling UL untuk Menu Utama */
.ul-list {
  pointer-events: auto; /* Mengaktifkan klik kembali */
  list-style: none;
  display: flex;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.85); /* Efek kaca transparan */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 12px 35px;
  border-radius: 50px;
  margin: 0;
}

.ul-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 25px;
  transition: 0.3s;
  padding: 8px 16px;
}

.ul-list li a {
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* State Aktif (Menu yang sedang dipilih) */
.ul-list li.active {
  background-color: black;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ul-list li.active a,
.ul-list li.active i {
  color: white;
}

.ul-list li:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.ul-list li.active:hover {
  background-color: #333;
}

/* Admin Icon (Pojok Kanan Atas) */
.admin-icon-container {
  pointer-events: auto;
  position: fixed;
  top: 20px;
  right: 40px;
  display: flex;
  gap: 15px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 15px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.admin-icon {
  font-size: 20px;
  color: #c09bff;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 50%;
}

.admin-icon:hover {
  color: #474af0;
  background-color: rgba(71, 74, 240, 0.1);
  transform: scale(1.1);
}

/*3. CONTENT SECTIONS
   Layout dasar untuk setiap bagian halaman
*/
section,
.home,
.about,
.team,
.anonymous {
  position: relative;
  z-index: 5;
}

/* HOME SECTION */
.home {
  margin: 160px 200px;
  padding-top: 40px;
  margin-top: 0;
}

.home-container {
  display: flex;
  gap: 6rem;
  align-items: center;
}

.home-p {
  color: black;
  background-color: rgba(128, 128, 128, 0.214);
  display: inline-block;
  border-radius: 25px;
  padding: 5px 10px;
  margin-bottom: 30px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.home-s {
  font-weight: bold;
  color: green;
}

.info-home h1 {
  font-size: 70px;
  font-family: "Raleway", sans-serif;
  margin-bottom: 20px;
  line-height: 1.1;
  transition: color 0.3s ease;
  letter-spacing: -1px;
}

.info-home h3 {
  font-size: 40px;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
  color: #474af0;
  min-height: 60px;
}

.info-p {
  color: #222;
  font-family: "Roboto", sans-serif;
  padding-bottom: 20px;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.info-p p {
  padding-bottom: 5px;
}

.info-p2 {
  display: flex;
  gap: 1rem;
  color: #2c2c2c;
  font-size: 14px;
  padding-bottom: 20px;
  flex-wrap: wrap;
  transition: color 0.3s ease;
}

.hhr {
  padding-bottom: 30px;
}

hr {
  width: 90%;
  border: none;
  height: 1px;
  background-color: #ddd;
  margin: 0 auto;
  transition: background-color 0.3s ease;
}

.follow {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.follow ul {
  display: flex;
  gap: 2rem;
  font-size: 20px;
  list-style: none;
}

.follow ul a {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s ease;
}

.follow ul a:hover {
  color: #474af0;
}

.home img {
  width: 400px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 6;
  background: #fff;
}

/* ABOUT SECTION */
.about {
  margin: 160px 200px;
}

.about p {
  padding-bottom: 30px;
  font-size: 13px;
  color: rgb(50, 50, 50);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.about h1 {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  transition: color 0.3s ease;
}

.title {
  padding-bottom: 20px;
}

.hrrr {
  width: 30%;
  padding-bottom: 40px;
}

.about-container {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.info-about {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.about-info p {
  text-transform: none;
  letter-spacing: normal;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555;
  transition: color 0.3s ease;
}

.about h2 {
  padding: 30px 0;
  font-family: "Open Sans", sans-serif;
  color: #1e40af;
}

/* VIDEO CONTAINER (Di dalam About) */
.video-container {
  position: relative;
  width: 225px;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  cursor: pointer;
  background: #000;
  transition: all 0.3s ease;
  z-index: 6;
}

.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.video-overlay {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  opacity: 0.8;
  cursor: pointer;
  z-index: 10;
}

.video-overlay:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.9);
  transform: translateX(-50%) scale(1.05);
}

.video-container:hover .about-video {
  transform: scale(1.05);
}

/* VIDEO POPUP (Modal) */
.video-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-popup.active {
  display: flex;
  opacity: 1;
}

.video-popup-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#popup-video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #000;
  outline: none;
}

.close-video-popup {
  position: absolute;
  top: -50px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
  border: none;
}

.close-video-popup:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* TEAM SECTION (KEMBALI KE 450px) */
.team {
  margin: 160px 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.team p {
  padding-bottom: 20px;
  font-size: 13px;
  color: rgb(50, 50, 50);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.team h1 {
  font-family: "Open Sans", sans-serif;
  padding-bottom: 10px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.team hr {
  width: 10%;
}

.info-team {
  padding-top: 20px;
  text-align: center;
}

.info-team p {
  text-transform: none;
  letter-spacing: normal;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* Scrollable Team List */
.team-scroll-container {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  position: relative;
}

.team-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 40px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  display: block; 
}

.team-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.team-member-scroll {
  display: flex;
  gap: 30px;
  padding: 20px;
  min-width: min-content;
}

/* Kartu Anggota Tim */
.member-card-simple {
  /* [UPDATE] Dikembalikan ke 450px sesuai permintaan */
  flex: 0 0 450px; 
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  z-index: 6;
}

.member-card-simple:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-photo-container {
  width: 100%;
  height: 253px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-photo-simple {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.member-card-simple:hover .member-photo-simple {
  transform: scale(1.1);
}

.scroll-indicator {
  text-align: center;
  margin-top: 20px;
}

.scroll-hint {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
  animation: bounce 2s infinite;
  transition: color 0.3s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
  40% { transform: translateX(-10px); }
  60% { transform: translateX(-5px); }
}

/* IMAGE VIEWER (Updated: UKURAN POPUP LEBIH KECIL) */
.image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* JS akan ubah jadi flex */
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.image-viewer.active {
  display: flex;
  opacity: 1;
}

/* Backdrop terpisah untuk efek blur */
.viewer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Hitam transparan biar tidak terlalu gelap */
  backdrop-filter: blur(10px);      /* EFEK BLUR */
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
}

.viewer-content {
  position: relative;
  z-index: 2; /* Di atas backdrop */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  max-height: 90%;
  animation: popupScale 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes popupScale {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Wrapper untuk gambar + dekorasi */
.viewer-image-wrapper {
  position: relative;
  padding: 15px;
  display: inline-block;
}

/* Container gambar (POPUP DIPERKECIL) */
.viewer-image-container {
  position: relative;
  z-index: 2;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  /* [UPDATE] Membatasi ukuran popup agar tidak terlalu besar */
  max-width: 600px;  /* Lebar maks 500px */
  max-height: 70vh;  /* Tinggi maks 60% layar */
  
  display: flex;
}

#viewer-image {
  max-width: 100%;
  max-height: 70vh; /* Sesuaikan dengan container */
  object-fit: contain;
  display: block;
}

/* DEKORASI SUDUT (INTERAKTIF) */
.viewer-decoration {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid #474af0; /* Warna biru tema */
  z-index: 3;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Top Left */
.deco-tl {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

/* Top Right */
.deco-tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}

/* Bottom Left */
.deco-bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}

/* Bottom Right */
.deco-br {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

/* Efek saat wrapper di-hover (dekorasi agak melebar) */
.viewer-image-wrapper:hover .deco-tl { transform: translate(-5px, -5px); }
.viewer-image-wrapper:hover .deco-tr { transform: translate(5px, -5px); }
.viewer-image-wrapper:hover .deco-bl { transform: translate(-5px, 5px); }
.viewer-image-wrapper:hover .deco-br { transform: translate(5px, 5px); }

/* Tombol Close */
.close-viewer {
  position: absolute;
  top: -50px;
  right: -10px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 10;
}

.close-viewer:hover {
  background: #d93025;
  transform: rotate(90deg);
}

/* Navigasi (Prev/Next) */
.viewer-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  z-index: 10;
}

.viewer-nav:hover {
  background: #474af0;
  transform: translateY(-50%) scale(1.1);
  border-color: #474af0;
}

.viewer-prev { left: 40px; }
.viewer-next { right: 40px; }

/* Counter Angka */
.viewer-counter {
  margin-top: 15px;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsif Mobile untuk Viewer */
@media (max-width: 768px) {
  .viewer-image-container {
    max-width: 95vw;
  }
  
  .viewer-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
    background: rgba(0,0,0,0.5); /* Lebih gelap di mobile biar kontras */
  }
  
  .viewer-prev { left: 10px; }
  .viewer-next { right: 10px; }
  
  .close-viewer {
    top: -50px;
    right: 0;
  }
}

/* FOOTER */
.footer {
  background: #000;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  overflow-x: hidden;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 5;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: #474af0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-social a {
  color: #fff;
  font-size: 18px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  color: #474af0;
}

.footer-copy {
  font-size: 12px;
  color: #aaa;
}

/* LOADING SCREEN & ANIMATION */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: #fff;
  text-align: center;
  flex-direction: column;
  overflow: hidden;
}

.hidden {
  opacity: 0;
  transform: translateY(-200px);
}

.fall {
  animation: fall 0.9s forwards;
}

@keyframes fall {
  0% { opacity: 0; transform: translateY(-200px); }
  60% { opacity: 1; transform: translateY(20px); }
  100% { transform: translateY(0); }
}

.loading-content h1,
.loading-content h2,
.loading-content i {
  margin: 20px 0;
}

.sub-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
}

.custom-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

#main-page {
  opacity: 0;
  transition: opacity 1s ease;
}

#main-page.visible {
  opacity: 1;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* THEME TOGGLE (Dark/Light Mode Button) */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-size: 20px;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* DARK MODE SETTINGS */
body.dark-mode {
  background-color: #120f12;
  color: #e0e0e0;
}

body.dark-mode header {
  background: transparent;
  border-bottom: none;
}

body.dark-mode .ul-list {
  background-color: rgba(30, 30, 30, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .ul-list li a,
body.dark-mode .ul-list li i {
  color: #e0e0e0;
}

body.dark-mode .ul-list li:hover {
  background-color: #333;
}

body.dark-mode .ul-list li.active {
  background-color: #474af0;
}

body.dark-mode .admin-icon-container {
  background-color: rgba(30, 30, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .admin-icon {
  color: #c09bff;
}

body.dark-mode .admin-icon:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .home-p {
  color: #e0e0e0;
  background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .info-home h1,
body.dark-mode .about h1,
body.dark-mode .team h1 {
  color: #e0e0e0;
}

body.dark-mode .info-p,
body.dark-mode .info-p2 {
  color: #b0b0b0;
}

body.dark-mode .follow ul a {
  color: #e0e0e0;
}

body.dark-mode .about-info p {
  color: #b0b0b0;
}

body.dark-mode .info-team p {
  color: #b0b0b0;
}

body.dark-mode .member-card-simple {
  background: #1e1e1e;
  border: 1px solid #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .scroll-hint {
  color: #b0b0b0;
}

body.dark-mode .footer {
  background-color: #0a0a0a;
}

body.dark-mode hr {
  background-color: #333;
}

body.dark-mode .theme-toggle {
  background: rgba(30, 30, 30, 0.95);
  color: #e0e0e0;
}

body.dark-mode .video-container {
  border: 1px solid #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .about-video {
  border: 1px solid #444;
}

/* BACK TO TOP BUTTON */
#back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #474af0;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(71, 74, 240, 0.3);
}

#back-to-top:hover {
  transform: scale(1.1);
  background: #2c36d9;
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

button,
a,
.video-container,
.member-card-simple {
  transition: all 0.3s ease;
}

button:focus,
a:focus {
  outline: 2px solid #474af0;
  outline-offset: 2px;
}

::selection {
  background: #474af0;
  color: white;
}

::-moz-selection {
  background: #474af0;
  color: white;
}

/* ==============
   MUSIC PLAYER MODERN (UPDATED: LINKTREE STYLE)
   ============== */
:root {
  --primary: #474af0;
  --accent: #9b5cf6;
  --muted: rgba(0, 0, 0, 0.6);
  --card-bg: rgba(255, 255, 255, 0.98);
  --card-text: #111;
  --card-border: rgba(0, 0, 0, 0.06);
}

.modern-music-player {
  position: fixed;
  left: 20px;
  right: auto;
  bottom: 20px;
  width: 340px;
  max-width: calc(100% - 100px);
  background: var(--card-bg);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  backdrop-filter: blur(6px);
  border: 1px solid var(--card-border);
  font-family: "Montserrat", sans-serif;
  color: var(--card-text);
  overflow: hidden;
  
  /* KONDISI NORMAL (EXPAND) */
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0s,
              height 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0s,
              padding 0.6s ease 0s,
              background-color 0.4s ease 0s;
}

/* KONDISI MINIMIZED (TUTUP) */
.modern-music-player.minimized {
  width: 50px;
  height: 50px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  
  /* LOGIKA REVERSE */
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.3s,
              height 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.3s,
              padding 0.6s ease 0.3s,
              background-color 0.6s ease 0.3s;
}

/* TOMBOL TOGGLE (ANIMASI GESER) */
.modern-toggle {
  position: absolute;
  top: 10px;
  left: calc(100% - 46px);
  right: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(71, 74, 240, 0.2);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10;
}

/* Saat Minimized: Tombol pindah ke Kiri + Gede + Muter */
.modern-music-player.minimized .modern-toggle {
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(71, 74, 240, 0.4);
  transform: rotate(360deg);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

/* ISI KONTEN (Lirik, Judul, Tombol Play) */
.modern-header,
.modern-controls {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
  transition-delay: 0.3s;
}

.modern-music-player.minimized .modern-header,
.modern-music-player.minimized .modern-controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  transition-delay: 0s;
}

/* Elemen Player Lainnya */
.modern-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.modern-album {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.modern-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.modern-title {
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern-artist {
  font-size: 13px;
  color: var(--muted);
}

.modern-lyrics {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.75);
  max-height: 42px;
  overflow: hidden;
  white-space: pre-line;
}

.modern-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.modern-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.modern-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 8px;
  color: var(--primary);
}

.modern-play {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(75, 70, 250, 0.18);
  border: none;
  cursor: pointer;
}

.modern-progress-container {
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}

.modern-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .06s linear;
  border-radius: 999px;
}

.modern-time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* Theme Dark Mode Player */
body.dark-mode {
  --card-bg: rgba(20, 18, 20, 0.86);
  --card-text: #e6e6e6;
  --card-border: rgba(255, 255, 255, 0.06);
  --muted: rgba(255, 255, 255, 0.65);
  --primary: #7c84ff;
  --accent: #c09bff;
}

body.dark-mode .modern-play {
  box-shadow: 0 10px 24px rgba(124, 132, 255, 0.14);
}

body.dark-mode .modern-btn {
  color: var(--primary);
}

body.dark-mode .modern-artist {
  color: var(--muted);
}

body.dark-mode .modern-lyrics {
  color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .modern-time {
  color: var(--muted);
}

body.dark-mode .modern-progress-container {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  #back-to-top {
    bottom: 80px;
    right: 10px;
    width: 45px;
    height: 45px;
  }
  
  .theme-toggle {
    bottom: 10px;
    right: 10px;
  }

  @media (max-width: 480px) {
    #back-to-top {
      bottom: 70px;
      right: 10px;
      width: 40px;
      height: 40px;
    }
  }
}

/*5. ANONYMOUS
   Bagian Pesan Anonim (Firebase)
*/
.anonymous {
  margin: 160px 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.anonymous p {
  padding-bottom: 20px;
  font-size: 13px;
  color: rgb(50, 50, 50);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.anonymous h1 {
  font-family: "Open Sans", sans-serif;
  padding-bottom: 10px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.anonymous hr {
  width: 10%;
}

.anonymous-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.anon-form-container,
.anon-messages-container {
  width: 100%;
}

.anon-form-container h3,
.anon-messages-container h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid #474af0;
  padding-bottom: 10px;
  display: inline-block;
  transition: color 0.3s ease, border-color 0.3s ease;
}

#anon-message-input {
  width: 100%;
  height: 150px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  resize: vertical;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
  position: relative;
  z-index: 5;
}

#anon-message-input:focus {
  outline: none;
  border-color: #474af0;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(71, 74, 240, 0.1);
}

.anon-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

#anon-char-counter {
  font-size: 13px;
  color: #666;
  transition: color 0.3s ease;
}

#anon-char-counter.limit-reached {
  color: #d93025;
  font-weight: bold;
}

#anon-submit-btn {
  background-color: #474af0;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

#anon-submit-btn:hover {
  background-color: #2c36d9;
  transform: scale(1.05);
}

#anon-submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

#anon-messages-list {
  width: 100%;
  height: 400px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  background-color: #fafafa;
  transition: all 0.3s ease;
  position: relative;
  z-index: 5;
}

.anon-message-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #888;
  font-size: 16px;
  gap: 10px;
  transition: color 0.3s ease;
}

.anon-message-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease;
  position: relative;
}

.anon-message-card p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  padding-bottom: 0;
  text-transform: none;
  letter-spacing: normal;
  transition: color 0.3s ease;
}

.anon-message-card span {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 10px;
  font-style: italic;
  transition: color 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dark Mode untuk Anonymous */
body.dark-mode .anonymous p {
  color: #b0b0b0;
}

body.dark-mode .anonymous h1 {
  color: #e0e0e0;
}

body.dark-mode .anon-form-container h3,
body.dark-mode .anon-messages-container h3 {
  color: #e0e0e0;
  border-color: #7c84ff;
}

body.dark-mode #anon-message-input {
  background-color: #1e1e1e;
  border-color: #333;
  color: #e0e0e0;
}

body.dark-mode #anon-message-input:focus {
  border-color: #7c84ff;
  background-color: #222;
  box-shadow: 0 4px 12px rgba(124, 132, 255, 0.1);
}

body.dark-mode #anon-char-counter {
  color: #888;
}

body.dark-mode #anon-char-counter.limit-reached {
  color: #ff8a80;
}

body.dark-mode #anon-submit-btn {
  background-color: #7c84ff;
  color: #121212;
}

body.dark-mode #anon-submit-btn:hover {
  background-color: #c09bff;
}

body.dark-mode #anon-submit-btn:disabled {
  background-color: #444;
  color: #888;
}

body.dark-mode #anon-messages-list {
  background-color: #1a1a1a;
  border-color: #333;
}

body.dark-mode .anon-message-loading {
  color: #888;
}

body.dark-mode .anon-message-card {
  background-color: #222;
  border-color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.dark-mode .anon-message-card p {
  color: #e0e0e0;
}

body.dark-mode .anon-message-card span {
  color: #888;
}

@media (max-width: 1024px) {
  .anonymous {
    margin: 120px 50px;
  }
  .anonymous-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .anonymous {
    margin: 100px 20px;
  }
}

@media (max-width: 480px) {
  .anonymous {
    margin: 80px 15px;
  }
}

.admin-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffebee;
  color: #d93025;
  border: 1px solid #f44336;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  opacity: 0.5;
  z-index: 5;
}

.anon-message-card:hover .admin-delete-btn {
  opacity: 1;
}

.admin-delete-btn:hover {
  background: #d93025;
  color: white;
  transform: scale(1.1);
}

body.dark-mode .admin-delete-btn {
  background: #3a1e1e;
  color: #ff8a80;
  border: 1px solid #ff8a80;
}

body.dark-mode .admin-delete-btn:hover {
  background: #d93025;
  color: white;
}

/* 6. CHRISTMAS EFFECTS
   Efek Salju, Pohon, & Popup Natal
*/
#christmas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -20px;
  font-size: 1.2rem;
  animation: snowfall linear infinite;
  color: #4682B4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

body.dark-mode .snowflake {
  color: white;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
  opacity: 0.8;
}

@keyframes snowfall {
  0% { transform: translateY(-20px) translateX(0) rotate(0deg); }
  100% { transform: translateY(110vh) translateX(20px) rotate(360deg); }
}

.christmas-star {
  position: absolute;
  font-size: 24px; /* DIPERBAIKI: Sebelumnya 0, jadi gak kelihatan */
  transform: scale(0); /* DITAMBAH: Awalnya kecil biar pas muncul ada efek pop */
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out, color 0.3s ease;
  color: #DAA520;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2));
}

body.dark-mode .christmas-star {
  color: #ffd700;
  filter: drop-shadow(0 0 5px #ffd700);
}

.christmas-star.visible {
  opacity: 1;
  transform: scale(1);
}

.christmas-tree-widget {
  position: fixed;
  bottom: 20px;
  right: 80px;
  font-size: 50px;
  z-index: 2000;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
  animation: sway 3s ease-in-out infinite;
  transform-origin: bottom center;
  transition: transform 0.3s;
}

.christmas-tree-widget:hover {
  animation-play-state: paused;
  transform: scale(1.1);
}

@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@media (max-width: 768px) {
  .christmas-tree-widget {
    right: 70px;
    bottom: 15px;
    font-size: 40px;
  }
}

.christmas-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.christmas-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.christmas-popup-container {
  position: relative;
  width: 85%;
  max-width: 380px;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.christmas-popup-overlay.active .christmas-popup-container {
  transform: scale(1);
}

.christmas-message-box {
  background: #ffffff;
  border: 2px solid #333;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  font-family: 'Playfair Display', serif;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .christmas-message-box {
  background: #1e1e1e;
  border-color: #f0f0f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.christmas-message-box h2 {
  color: #c0392b;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
}

.christmas-message-box p {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.3s ease;
}

body.dark-mode .christmas-message-box p {
  color: #e0e0e0;
}

.christmas-message-box .from-text {
  font-weight: bold;
  color: #27ae60;
  margin-top: 20px;
  font-size: 13px;
  font-style: italic;
}

.close-xmas-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}

.close-xmas-btn:hover {
  color: #c0392b;
}

.xmas-deco {
  position: absolute;
  width: 50px;
  height: auto;
  z-index: 2;
  transition: filter 0.3s ease;
  filter: brightness(0);
}

body.dark-mode .xmas-deco {
  filter: brightness(0) invert(1);
}

.deco-tl {
  top: -25px;
  left: -25px;
  transform: rotate(-20deg);
}

.deco-tr {
  top: -25px;
  right: -25px;
  transform: rotate(20deg);
}

.deco-bl {
  bottom: -20px;
  left: -20px;
  transform: rotate(15deg);
}

.deco-br {
  bottom: -20px;
  right: -20px;
  transform: rotate(-15deg);
}

@media (max-width: 480px) {
  .christmas-popup-container {
    max-width: 320px;
  }
  .christmas-message-box {
    padding: 25px 15px;
  }
  .christmas-message-box h2 {
    font-size: 20px;
  }
  .christmas-message-box p {
    font-size: 13px;
  }
  .xmas-deco {
    width: 40px;
  }
  .deco-tl {
    top: -15px;
    left: -10px;
  }
  .deco-tr {
    top: -15px;
    right: -10px;
  }
  .deco-bl {
    bottom: -15px;
    left: -10px;
  }
  .deco-br {
    bottom: -15px;
    right: -10px;
  }
}

/*7. RESPONSIVE DESIGN
   Media Queries untuk tablet & mobile
 */

/* TABLET / SMALL LAPTOP */
@media (max-width: 1024px) {
  .video-container {
    width: 200px;
    height: 355px;
  }
  
  .video-popup-content {
    max-width: 95%;
  }

  .home,
  .about,
  .team {
    margin: 120px 50px;
  }

  .home-container,
  .about-container {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .home img {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .info-home h1 {
    font-size: 50px;
  }

  .info-home h3 {
    font-size: 30px;
  }

  .ul-list {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 8px 15px;
  }

  .member-card-simple {
    flex: 0 0 300px; /* Ukuran responsif */
  }

  .member-photo-container {
    height: 225px;
  }

  .custom-logo {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 1200px) {
  .home,
  .about,
  .team {
    margin: 120px 100px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .video-container {
    width: 180px;
    height: 320px;
    margin: 0 auto;
  }

  .video-overlay {
    font-size: 11px;
    padding: 6px 12px;
  }

  .video-popup-content {
    max-width: 98%;
  }

  #popup-video {
    max-height: 70vh;
  }

  .close-video-popup {
    top: -40px;
    width: 35px;
    height: 35px;
    font-size: 24px;
  }

  header {
    display: none; /* Sembunyikan header di mobile */
  }

  .home,
  .about,
  .team {
    margin: 100px 20px;
  }

  .home-container,
  .about-container {
    flex-direction: column;
    gap: 2rem;
  }

  .home img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .follow {
    flex-direction: column;
    text-align: center;
  }

  .follow ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .info-home h1 {
    font-size: 40px;
  }

  .info-home h3 {
    font-size: 24px;
  }

  .member-card-simple {
    flex: 0 0 280px;
  }

  .member-photo-container {
    height: 197px;
  }

  .theme-toggle {
    bottom: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
  }

  .viewer-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .viewer-prev {
    left: 10px;
  }

  .viewer-next {
    right: 10px;
  }

  .custom-logo {
    width: 100px;
    height: 100px;
  }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
  .video-container {
    width: 160px;
    height: 285px;
  }

  .video-overlay {
    font-size: 10px;
    padding: 5px 10px;
  }

  .video-overlay i {
    font-size: 14px;
  }

  #popup-video {
    max-height: 60vh;
  }

  .home,
  .about,
  .team {
    margin: 80px 15px;
  }

  .info-home h1 {
    font-size: 32px;
  }

  .info-home h3 {
    font-size: 20px;
  }

  .home-p,
  .about p,
  .team p {
    font-size: 12px;
  }

  .member-card-simple {
    flex: 0 0 250px;
  }

  .member-photo-container {
    height: 169px;
  }

  .team-member-scroll {
    gap: 20px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .viewer-nav {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .custom-logo {
    width: 80px;
    height: 80px;
  }
}