/* =========================================================
   HALAMAN MAIN BOARD  (dipakai bersama assets/style.css)
========================================================= */
.mb-page {
  background: #0f001f;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */
.mb-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 6% 90px;
  overflow: hidden;
  color: white;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 106, 162, 0.45), transparent 70%),
    linear-gradient(180deg, #ff2d75 0%, #a3155f 35%, #3a0747 75%, #1a0033 100%);
}

.mb-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

.mb-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: mbOrb 14s ease-in-out infinite;
}

.orb-1 { width: 420px; height: 420px; left: -120px; top: 15%; background: #ff6aa2; opacity: 0.45; }
.orb-2 { width: 360px; height: 360px; right: -100px; bottom: 0; background: #6a00ff; opacity: 0.4; animation-delay: -7s; }

@keyframes mbOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(50px, -40px) scale(1.1); }
}

.mb-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
}

.mb-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 26px;
  animation: mbIn 0.9s ease both;
}

.mb-breadcrumb a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.mb-breadcrumb a:hover { color: white; }
.mb-breadcrumb span { color: rgba(255, 255, 255, 0.4); }

.mb-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffc2d9;
  animation: mbIn 0.9s ease 0.1s both;
}

.mb-title {
  font-family: 'Love Ya Like A Sister', cursive;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.1;
  margin: 12px 0 18px;
  text-shadow: 0 10px 40px rgba(26, 0, 51, 0.5);
  animation: mbIn 1s ease 0.2s both;
}

.mb-title .spesial-name { color: #ffc2d9; }

.mb-desc {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  animation: mbIn 1s ease 0.3s both;
}

@keyframes mbIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   JUDUL SECTION
--------------------------------------------------------- */
.mb-head {
  text-align: center;
  margin-bottom: 60px;
}

.mb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ff6aa2;
}

.mb-kicker::before,
.mb-kicker::after {
  content: "";
  width: 30px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #ff6aa2);
}

.mb-kicker::after { background: linear-gradient(90deg, #ff6aa2, transparent); }

.mb-heading {
  font-family: 'Love Ya Like A Sister', cursive;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  color: white;
  margin-top: 8px;
}

.mb-heading .spesial-name { color: #ff6aa2; }

/* ---------------------------------------------------------
   KARTU FOTO (dipakai semua section)
--------------------------------------------------------- */
.mb-person {
  position: relative;
  text-align: center;
  outline: none;
  cursor: pointer;
}

.mb-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* cincin gradasi berputar */
.mb-ring {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 84%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff6aa2, #ff2d75, #6a00ff, #b36bff, #ff6aa2);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  opacity: 0.5;
  animation: mbSpin 12s linear infinite;
  transition: opacity 0.5s ease, width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mbSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* lingkaran lembut di belakang foto */
.mb-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 70%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 117, 0.35), rgba(106, 0, 255, 0.12) 60%, transparent 72%);
  transition: transform 0.7s ease, opacity 0.5s ease;
}

/* logo AMSA muncul di belakang foto saat hover */
.mb-logo {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 72%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4) rotate(-120deg);
  filter: blur(8px) drop-shadow(0 0 40px #ff2d75);
  transition: opacity 0.6s ease,
              transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.6s ease;
}

/* foto */
.mb-photo {
  position: relative;
  z-index: 2;
  width: 86%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 25px 35px rgba(10, 0, 20, 0.55)) grayscale(0.25);
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

/* partikel */
.mb-spark {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 12px #ff6aa2, 0 0 24px #ff2d75;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mb-spark.s1 { top: 14%; left: 12%; }
.mb-spark.s2 { top: 28%; right: 8%; width: 5px; height: 5px; }
.mb-spark.s3 { top: 60%; left: 5%;  width: 5px; height: 5px; }

/* label jabatan kecil di atas foto */
.mb-badge {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 6%;
  transform: translate(-50%, 10px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  max-width: 92%;
  width: max-content;
  text-align: center;
  line-height: 1.4;
  color: white;
  background: linear-gradient(135deg, #ff2d75, #6a00ff);
  box-shadow: 0 10px 25px rgba(255, 45, 117, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- STATE AKTIF (hover laptop / ketuk HP) ---- */
.mb-person.active .mb-logo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  filter: blur(0) drop-shadow(0 0 40px #ff2d75);
}

.mb-person.active .mb-ring { opacity: 1; width: 79%; }
.mb-person.active .mb-glow { opacity: 0; }

.mb-person.active .mb-photo {
  transform: translateY(-12px) scale(1.04);
  filter: drop-shadow(0 35px 45px rgba(10, 0, 20, 0.7)) grayscale(0);
}

.mb-person.active .mb-spark {
  opacity: 1;
  transform: scale(1);
  animation: mbSpark 3s ease-in-out infinite;
}

.mb-person.active .mb-spark.s2 { transition-delay: 0.1s; animation-delay: -1s; }
.mb-person.active .mb-spark.s3 { transition-delay: 0.2s; animation-delay: -2s; }

.mb-person.active .mb-badge {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes mbSpark {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

/* teks nama (di bawah foto, dipakai section 1) */
.mb-info {
  position: relative;
  z-index: 3;
  margin-top: 8px;
}

.mb-name {
  display: inline-block;
  position: relative;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: white;
  padding-bottom: 8px;
}

.mb-name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff2d75, #b36bff, #6a00ff);
  transform: scaleX(0.3);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.mb-person.active .mb-name::after,
.mb-text.active .mb-name::after {
  transform: scaleX(1);
}

.mb-role {
  margin-top: 6px;
  font-family: 'Great Vibes', cursive;
  font-size: 22px;
  color: #ffb3d1;
}

.mb-quote {
  position: relative;
  margin: 14px auto 0;
  max-width: 320px;
  font-size: 14px;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  min-height: 3.4em;
}

.mb-quote::before {
  content: "\201C";
  display: block;
  font-family: Georgia, serif;
  font-style: normal;
  font-size: 44px;
  line-height: 0.6;
  color: #ff6aa2;
  opacity: 0.8;
  margin-bottom: 6px;
}

/* quote menyala saat foto di-hover / diketuk (tanpa dihapus) */
.mb-quote {
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.mb-person.active .mb-quote,
.mb-text.active .mb-quote {
  color: #ffe1ec;
  text-shadow: 0 0 18px rgba(255, 106, 162, 0.45);
}

/* kursor mengetik */
.mb-quote .caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: #ff6aa2;
  animation: mbCaret 0.8s steps(1) infinite;
}

@keyframes mbCaret {
  50% { opacity: 0; }
}

/* ---------------------------------------------------------
   SECTION 1: TRIO (vice - representative - vice)
--------------------------------------------------------- */
.mb-top,
.mb-duo {
  overflow: hidden;
}

.mb-top {
  position: relative;
  padding: 90px 5% 110px;
  background:
    radial-gradient(ellipse 50% 45% at 50% 55%, rgba(255, 45, 117, 0.2), transparent 100%),
    linear-gradient(180deg, #1a0033 0%, #230040 55%, #1a0033 100%);
}

.mb-trio {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 30px;
  align-items: end;
}

/* representative sedikit lebih besar & menonjol */
.mb-trio .mb-person.is-rep .mb-name {
  font-size: clamp(22px, 2.6vw, 30px);
}

.mb-trio .mb-person.is-rep .mb-ring {
  opacity: 0.8;
}

.mb-trio .mb-person:not(.is-rep) {
  padding-bottom: 20px;
}

/* ---------------------------------------------------------
   SECTION 2 & 3: DUO (foto kiri - teks tengah - foto kanan)
--------------------------------------------------------- */
.mb-duo {
  position: relative;
  padding: 90px 5% 110px;
  background:
    radial-gradient(ellipse 40% 35% at 10% 40%, rgba(255, 45, 117, 0.16), transparent 100%),
    radial-gradient(ellipse 40% 35% at 90% 70%, rgba(106, 0, 255, 0.16), transparent 100%),
    linear-gradient(180deg, #1a0033 0%, #14002a 100%);
}

#mb-treasurer {
  background:
    radial-gradient(ellipse 40% 35% at 90% 30%, rgba(255, 45, 117, 0.16), transparent 100%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(106, 0, 255, 0.16), transparent 100%),
    linear-gradient(180deg, #14002a 0%, #0f001f 100%);
}

.mb-duo-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px 40px;
  align-items: center;
}

/* foto 1 di kiri, foto 2 di kanan (membentang 2 baris) */
.mb-duo-grid .mb-person.p1 { grid-column: 1; grid-row: 1 / span 2; }
.mb-duo-grid .mb-person.p2 { grid-column: 3; grid-row: 1 / span 2; }

/* teks 1 di atas, teks 2 di bawah */
.mb-text {
  position: relative;
  padding: 26px 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mb-text.t1 {
  grid-column: 2;
  grid-row: 1;
  text-align: left;
  align-self: end;
}

.mb-text.t2 {
  grid-column: 2;
  grid-row: 2;
  text-align: right;
  align-self: start;
}

.mb-text .mb-quote {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.mb-text.t2 .mb-quote::before {
  text-align: right;
}

/* nomor besar 01 / 02 */
.mb-num {
  position: absolute;
  top: 16px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.18);
  transition: -webkit-text-stroke-color 0.4s ease, color 0.4s ease;
}

.mb-text.t1 .mb-num { right: 22px; }

/* beri ruang supaya nama panjang tidak menabrak angka 01 / 02 */
.mb-text.t1 .mb-name { margin-right: 60px; }
.mb-text.t2 .mb-name { margin-left: 60px; }
.mb-text.t2 .mb-num { left: 22px; }

/* garis penghubung ke foto */
.mb-text::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #ff2d75, #6a00ff);
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mb-text.t1::before { right: 100%; transform-origin: right; }
.mb-text.t2::before { left: 100%;  transform-origin: left; }

/* teks aktif (saat fotonya di-hover) */
.mb-text.active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 106, 162, 0.5);
  box-shadow: 0 25px 60px -15px rgba(255, 45, 117, 0.35);
}

.mb-text.t1.active { transform: translateX(-6px); }
.mb-text.t2.active { transform: translateX(6px); }

.mb-text.active::before { transform: scaleX(1); }

.mb-text.active .mb-num {
  -webkit-text-stroke-color: #ff6aa2;
  color: rgba(255, 106, 162, 0.15);
}

/* ---------------------------------------------------------
   HOVER (hanya perangkat dengan mouse)
--------------------------------------------------------- */
@media (hover: hover) {
  .mb-person:hover .mb-logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    filter: blur(0) drop-shadow(0 0 40px #ff2d75);
  }
  .mb-person:hover .mb-ring { opacity: 1; width: 79%; }
  .mb-person:hover .mb-glow { opacity: 0; }
  .mb-person:hover .mb-photo {
    transform: translateY(-12px) scale(1.04);
    filter: drop-shadow(0 35px 45px rgba(10, 0, 20, 0.7)) grayscale(0);
  }
  .mb-person:hover .mb-spark {
    opacity: 1;
    transform: scale(1);
    animation: mbSpark 3s ease-in-out infinite;
  }
  .mb-person:hover .mb-badge { opacity: 1; transform: translate(-50%, 0); }
  .mb-person:hover .mb-name::after { transform: scaleX(1); }
}

/* ---------------------------------------------------------
   TOMBOL "MAIN BOARD" DI ABOUT US (halaman utama)
--------------------------------------------------------- */
.mainboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 900px) {
  .mb-trio {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }

  /* representative di atas, full lebar */
  .mb-trio .mb-person.is-rep {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 380px;
    margin: 0 auto;
  }

  .mb-duo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 16px;
  }

  /* urutan di HP: foto 1, teks 1, foto 2, teks 2 */
  .mb-duo-grid .mb-person.p1,
  .mb-duo-grid .mb-person.p2,
  .mb-text.t1,
  .mb-text.t2 {
    grid-column: 1;
    grid-row: auto;
  }

  .mb-duo-grid .mb-person { max-width: 320px; margin: 0 auto; width: 100%; }
  .mb-duo-grid .mb-person.p1 { order: 1; }
  .mb-text.t1                { order: 2; margin-bottom: 40px; }
  .mb-duo-grid .mb-person.p2 { order: 3; }
  .mb-text.t2                { order: 4; }

  .mb-text.t1,
  .mb-text.t2 {
    text-align: center;
    transform: none !important;
  }

  .mb-text.t2 .mb-quote::before { text-align: left; }
  .mb-text .mb-quote::before { text-align: center !important; }

  .mb-text::before { display: none; }

  .mb-text.t1 .mb-name,
  .mb-text.t2 .mb-name { margin: 0 30px; }

  .mb-text.t1 .mb-num,
  .mb-text.t2 .mb-num {
    left: 18px;
    right: auto;
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .mb-hero {
    min-height: auto;
    padding: 115px 20px 80px;
  }

  .mb-breadcrumb { font-size: 12px; padding: 6px 14px; }
  .mb-eyebrow { font-size: 11px; letter-spacing: 2.5px; }
  .mb-desc { font-size: 14px; }

  .mb-top,
  .mb-duo {
    padding: 70px 18px 80px;
  }

  .mb-head { margin-bottom: 40px; }
  .mb-kicker { font-size: 11px; letter-spacing: 3px; }

  .mb-role { font-size: 19px; }
  .mb-quote { font-size: 13px; }
  .mb-text { padding: 22px 20px; }

  .mb-trio .mb-person:not(.is-rep) .mb-name { font-size: 15px; }
  .mb-trio .mb-person:not(.is-rep) .mb-role { font-size: 16px; }
  /* quote vice tetap tampil, ukurannya disesuaikan kolom sempit */
  .mb-trio .mb-person:not(.is-rep) .mb-quote {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 10px;
  }

  .mb-trio .mb-person:not(.is-rep) .mb-quote::before {
    font-size: 34px;
  }
  .mb-badge { font-size: 9px; letter-spacing: 1px; padding: 5px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .mb-orb, .mb-ring { animation: none; transition: none; opacity: 1; transform: none; }
}
