/* ═══════════════════════════════════════
   Taiba Medina — Public Page 2026
   ═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  -webkit-text-size-adjust: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family, 'Poppins', system-ui, sans-serif);
  font-size: var(--font-size-base, 15px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.10) 0%, transparent 30%, rgba(255,255,255,.08) 55%, transparent 80%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-1) 30%, var(--bg-2) 65%, var(--bg-2) 100%);
  background-blend-mode: overlay, normal;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 16px 72px;
  color: #2b2b2b;
}

/* ─────────────────────────────────────
   ENTRANCE ANIMATIONS
───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.8); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: .6; }
  50%  { transform: scale(1.08); opacity: .2; }
  100% { transform: scale(1);   opacity: .6; }
}

/* staggered delays */
.anim-logo  { animation: scaleIn .5s cubic-bezier(.34,1.56,.64,1) both; }
.anim-badge { animation: fadeUp  .45s .12s ease both; }
.anim-name  { animation: fadeUp  .45s .2s  ease both; }
.anim-tag   { animation: fadeUp  .45s .28s ease both; }
.anim-col   { animation: fadeUp  .5s  .32s ease both; }
.anim-links { animation: fadeUp  .5s  .4s  ease both; }
.anim-soc   { animation: fadeUp  .45s .5s  ease both; }

/* ─────────────────────────────────────
   WRAP
───────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 460px;
  min-width: 0;
}

/* ─────────────────────────────────────
   CARD TOP
───────────────────────────────────── */
.card-top {
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
}

/* ── Avatar ── */
.logo-wrap {
  position: relative;
  width: 100px;
  margin: 0 auto 16px;
}

.logo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(201,162,39,.5);
  animation: pulse-ring 3s ease-in-out infinite;
}

.logo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 28px rgba(0,0,0,.28), 0 0 0 4px rgba(201,162,39,.2);
  position: relative;
  z-index: 1;
}

.logo-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.verified-badge {
  position: absolute;
  top: 2px; right: -2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #1d9bf0;
  border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  z-index: 2;
}

.verified-badge svg { width: 14px; height: 14px; }

/* ── Badge pill ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(201,162,39,.18);
  border: 1px solid rgba(232,205,107,.5);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 13px;
  border-radius: 999px;
  margin-bottom: 10px;
  backdrop-filter: blur(8px);
}

h1 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.2px;
  margin-bottom: 7px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.tagline {
  font-size: 13.5px;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  padding: 0 8px;
}

.legal {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  margin-top: 8px;
}

/* ─────────────────────────────────────
   PHOTO COLLAGE
───────────────────────────────────── */
.collage-wrap {
  margin-bottom: 20px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
}

.collage-page { display: none; }
.collage-page.active { display: block; }

.collage {
  display: grid;
  gap: 3px;
  width: 100%;
}

.collage.count-1 { grid-template-columns: 1fr; }
.collage.count-1 .collage-item { padding-top: 56.25%; }

.collage.count-2 { grid-template-columns: 1fr 1fr; }
.collage.count-2 .collage-item { padding-top: 100%; }

.collage.count-3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
.collage.count-3 .collage-item:first-child { grid-row: 1/3; padding-top: 200%; }
.collage.count-3 .collage-item:not(:first-child) { padding-top: 100%; }

.collage.count-4 { grid-template-columns: 1fr 1fr; }
.collage.count-4 .collage-item { padding-top: 100%; }

.collage-item {
  position: relative;
  overflow: hidden;
  background: #111;
  display: block;
}

.collage-item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}

.collage-item:hover img { transform: scale(1.05); }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 6px;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.dot.active { background: #fff; transform: scale(1.35); }

/* ─────────────────────────────────────
   LINK BUTTONS
───────────────────────────────────── */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

a.link-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255,255,255,.92);
  color: var(--maroon-dark);
  text-decoration: none;
  padding: 14px 16px;
  border-radius: var(--btn-radius, 14px);
  font-size: var(--font-size-base, 15px);
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, background .18s ease, border-color .18s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.1), 0 0 0 0 rgba(201,162,39,0);
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

/* shimmer effect on hover */
a.link-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transition: left .4s ease;
}

a.link-btn:hover::before { left: 150%; }

a.link-btn:hover, a.link-btn:active {
  transform: translateY(-3px) scale(1.01);
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,.16), 0 0 0 3px rgba(201,162,39,.15);
}

a.link-btn:active {
  transform: translateY(-1px) scale(.99);
}

a.link-btn.primary {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--maroon-dark);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(201,162,39,.35);
}

a.link-btn.primary:hover {
  box-shadow: 0 8px 28px rgba(201,162,39,.45);
  border-color: transparent;
  background: linear-gradient(120deg, var(--gold-light) 0%, var(--gold) 100%);
}

a.link-btn.outline {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.5);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

a.link-btn.outline:hover {
  background: rgba(255,255,255,.22);
  border-color: #fff;
}

/* ── Icon circle ── */
.icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  flex-shrink: 0;
  transition: transform .2s;
}

a.link-btn:hover .icon { transform: scale(1.1) rotate(-5deg); }
a.link-btn.primary .icon { background: var(--maroon-dark); }

/* ── Label ── */
.label { flex: 1; min-width: 0; }

.label small {
  display: block;
  font-weight: 400;
  font-size: 11.5px;
  color: #7a6a72;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.link-btn.primary .label small { color: #6b4a18; }

/* ── Arrow ── */
.arrow {
  font-size: 18px;
  color: var(--gold);
  opacity: .7;
  flex-shrink: 0;
  transition: transform .2s, opacity .2s;
}

a.link-btn:hover .arrow { transform: translateX(3px); opacity: 1; }

/* ─────────────────────────────────────
   SOCIALS
───────────────────────────────────── */
.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,.14);
  color: #fff;
  text-decoration: none;
  padding: 12px 0;
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  gap: 7px;
  backdrop-filter: blur(8px);
  transition: background .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}

.socials a:hover {
  background: rgba(255,255,255,.24);
  transform: translateY(-2px);
}

.divider {
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 24px 0 12px;
  display: flex; align-items: center; gap: 10px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1; height: 1px;
  background: rgba(255,255,255,.22);
}

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
footer {
  text-align: center;
  margin-top: 30px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  line-height: 1.7;
}

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 400px) {
  body { padding: 22px 12px 52px; }
  h1 { font-size: 20px; }
  .logo-circle, .logo-wrap { width: 84px; height: 84px; }
  a.link-btn { padding: 13px 13px; gap: 10px; }
  .icon { width: 34px; height: 34px; font-size: 16px; }
}

/* ─────────────────────────────────────
   CHAT WIDGET (bubble WhatsApp melayang)
───────────────────────────────────── */
.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease;
  animation: chatPulse 2.4s infinite;
}
.chat-fab:hover { transform: scale(1.07); }
.chat-fab svg { width: 32px; height: 32px; }
.chat-fab img { width: 100%; height: 100%; object-fit: cover; }

@keyframes chatPulse {
  0%   { box-shadow: 0 8px 22px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 8px 22px rgba(0,0,0,.28), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 22px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,0); }
}

.chat-popup {
  width: 270px;
  max-width: calc(100vw - 36px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0,0,0,.25);
  position: relative;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  pointer-events: none;
}
.chat-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-popup-inner {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px 14px 14px 13px;
  text-decoration: none;
  color: inherit;
}

.chat-popup-avatar {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}
.chat-popup-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-online-dot {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 12px; height: 12px;
  background: #25D366;
  border: 2px solid #fff;
  border-radius: 50%;
}

.chat-popup-body { min-width: 0; }
.chat-popup-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.chat-popup-name small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #8a8a8a;
}
.chat-popup-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #555;
}

.chat-popup-close {
  position: absolute;
  top: 6px; right: 8px;
  width: 22px; height: 22px;
  border: none;
  background: transparent;
  color: #b0b0b0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.chat-popup-close:hover { background: #f0f0f0; color: #666; }

@media (max-width: 400px) {
  .chat-widget { right: 14px; bottom: 14px; }
  .chat-fab { width: 54px; height: 54px; }
}


/* GOLD-SHINE */
/* Efek kilau (cahaya menyapu) di tombol gold utama */
.link-btn.primary{ position:relative; overflow:hidden; }
.link-btn.primary::after{
  content:'';
  position:absolute; top:0; bottom:0; left:0; width:60%;
  background:linear-gradient(100deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform:translateX(-180%) skewX(-18deg);
  animation:taibaShine 4.2s ease-in-out infinite;
  pointer-events:none; z-index:3;
}
@keyframes taibaShine{
  0%   { transform:translateX(-180%) skewX(-18deg); }
  16%  { transform:translateX(230%) skewX(-18deg); }
  100% { transform:translateX(230%) skewX(-18deg); }
}
@media (prefers-reduced-motion: reduce){
  .link-btn.primary::after{ animation:none; opacity:0; }
}
/* GOLD-SHINE END */


/* BANNER-MARQUEE */
/* Galeri banner berjalan (marquee) - responsif HP & desktop */
.marquee-wrap{
  width:100%; max-width:100%; overflow:hidden; margin:8px 0 4px;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image:linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee-track{ display:flex; width:max-content; animation:taibaMarquee 26s linear infinite; will-change:transform; }
.marquee-wrap:hover .marquee-track,
.marquee-wrap:focus-within .marquee-track{ animation-play-state:paused; }
.marquee-item{
  flex:0 0 auto; margin-right:12px;
  width:clamp(120px, 40vw, 160px); aspect-ratio:3/4;
  border-radius:16px; overflow:hidden; position:relative; display:block;
  box-shadow:0 6px 18px rgba(0,0,0,.20); text-decoration:none;
}
.marquee-item img{ width:100%; height:100%; object-fit:cover; display:block; }
.marquee-cap{
  position:absolute; left:0; right:0; bottom:0; padding:22px 10px 9px;
  color:#fff; font-size:12.5px; font-weight:700; line-height:1.2; text-align:left;
  background:linear-gradient(transparent, rgba(0,0,0,.6));
}
@keyframes taibaMarquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation:none; } }
/* BANNER-MARQUEE END */


/* TRUST-BADGES */
/* Strip badge kepercayaan di bawah SK PPIU */
.trust-strip{ display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; margin-top:14px; animation:fadeUp .6s ease .35s both; }
.trust-chip{ background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.24); color:#fff; font-size:12px; font-weight:700; padding:7px 12px; border-radius:20px; white-space:nowrap; backdrop-filter:blur(4px); }
/* TRUST-BADGES END */
