﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --hover-alpha: 0.18;
  --icon-size: 30px;
  --accent: #1a93d1;
  --accent-soft: #80cff9;
  --accent-dark: #062637;
  --surface: rgba(245, 252, 255, 0.92);
  --surface-strong: rgba(227, 244, 255, 0.9);
  --surface-border: rgba(122, 206, 248, 0.55);
  --shadow-strong: rgba(11, 89, 133, 0.32);
  --bg-rotate: 0deg;
}

html {
  background: #04101d;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
body.hover-soft { --hover-alpha: 0.10; }
body.hover-strong { --hover-alpha: 0.24; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(140% 160% at 18% -22%, rgba(128,207,249,0.82) 0%, rgba(64,161,221,0.62) 45%, rgba(13,57,94,0.45) 70%, rgba(6,30,49,0.28) 90%),
    linear-gradient(145deg, rgba(5,18,32,0.96), rgba(9,34,54,0.92));
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 5vw, 30px);
  min-height: 100vh;
  min-height: 100dvh;
  perspective: 1000px;
  overflow-x: hidden;
}

/* Floating background orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.svg-defs-hidden {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  visibility: hidden;
}
#fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(0,0,0,0.03) 0.5px, rgba(0,0,0,0) 0.5px);
  background-size: 2px 2px;
  mix-blend-mode: multiply;
  opacity: 0.5;
}
.orb {
  position: absolute;
  width: 360px;
  height: 360px;
  filter: blur(60px);
  opacity: 0.32;
  border-radius: 50%;
}
.orb-1 { left: -80px; top: -80px; background: radial-gradient(closest-side, rgba(171,227,255,0.9), rgba(106,196,241,0.65) 65%, transparent 75%); }
.orb-2 { right: -120px; top: 20%; background: radial-gradient(closest-side, rgba(26,147,209,0.55), rgba(6,38,55,0.35) 60%, transparent 80%); opacity: 0.25; }
.orb-3 { left: 30%; bottom: -160px; background: radial-gradient(closest-side, rgba(128,207,249,0.78), rgba(60,146,198,0.38) 60%, transparent 80%); opacity: 0.26; }

.container-main {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: 100%;
  padding: 32px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 25px 55px rgba(7, 54, 86, 0.28), 0 1px 0 rgba(255,255,255,0.9) inset;
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--surface-border);
  animation: fadeIn 0.7s ease-out both;
}

.container-main::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,0.78), rgba(255,255,255,0) 42%),
              linear-gradient(180deg, rgba(193,229,255,0.25), rgba(255,255,255,0));
  pointer-events: none;
}

/* Spotlight inside card */
.spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle 260px at var(--sx,50%) var(--sy,40%), rgba(128,207,249,0.26), rgba(255,255,255,0.0) 60%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

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

.profile {
  text-align: center;
  margin-bottom: 28px;
}

.profile-img-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: 0 5px 18px rgba(4,31,49,0.18);
  background: linear-gradient(135deg, #0f5b88, #4bc2f6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent-dark), var(--accent), #e8f6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 0 rgba(0,0,0,0); /* Supaya bisa diubah JS */
  animation: judulRevealTrail 1.5s ease-out forwards;
}

.profile h1::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #fff 0%, #ffffff00 50%, #fff 100%);
  animation: judulSwipe 1.6s ease-out forwards;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translateX(-120%);
}

@keyframes judulSwipe {
  to { transform: translateX(120%); }
}

@keyframes judulRevealTrail {
  from { opacity: 0.2; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile p {
  margin-top: 8px;
  color: rgba(6,38,55,0.76);
  letter-spacing: 0.3px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.96), rgba(232,246,255,0.9)) padding-box,
    linear-gradient(130deg, rgba(64,161,221,0.22), rgba(128,207,249,0.18)) border-box;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 14px 32px rgba(7,73,116,0.16), 0 6px 16px rgba(0,0,0,0.08);
  transform: scale(1);
  will-change: transform, opacity, filter;
  position: relative;
}

.link-item::after {
  content: '';
  position: absolute;
  left: var(--shine-left, -120%);
  top: 0;
  height: 100%;
  width: 40%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(128,207,249,0.6) 50%, rgba(255,255,255,0) 100%);
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
}

.link-item:hover {
  background:
    linear-gradient(185deg, rgba(255,255,255,0.99), rgba(226,243,255,0.94)) padding-box,
    linear-gradient(120deg, rgba(26,147,209,0.35), rgba(128,207,249,0.25)) border-box;
  border-color: rgba(26,147,209,0.8);
  box-shadow: 0 20px 40px rgba(12,111,163,0.22), 0 10px 24px rgba(0,0,0,0.12);
}

.link-item:hover::after { opacity: 1; --shine-left: 140%; transition: left 0.6s ease, opacity 0.6s ease; }

.link-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(221,241,255,0.78));
  border: 1px solid var(--surface-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 4px 12px rgba(26,147,209,0.22);
}

.link-item.brand-instagram .link-icon {
  background: linear-gradient(135deg, #f7f6ff, #fedae8, #dd2a7b 65%, #515bd4);
  border-color: rgba(122,206,248,0.6);
}

.link-item.brand-whatsapp .link-icon {
  background: linear-gradient(135deg, #f0fbff, #25d366 78%);
  border-color: rgba(122,206,248,0.6);
  color: #ffffff;
}

.link-item.brand-tiktok .link-icon {
  background: linear-gradient(135deg, #f2f7ff, #0b2235 70%);
  border-color: rgba(122,206,248,0.5);
  color: #ffffff;
}

.link-item.brand-threads .link-icon {
  background: linear-gradient(140deg, #edf6ff, #0f1b2b 75%);
  border-color: rgba(122,206,248,0.5);
  color: #ffffff;
}


.icon-social {
  width: var(--icon-size);
  height: var(--icon-size);
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

/* Cursor ring for premium feel */
.link-item:hover .icon-social {
  transform: scale(1.2);
}

/* Brand colors per icon */
.icon-instagram { color: #dd2a7b; }
.icon-whatsapp,
.icon-channel,
.icon-group { color: #25d366; }
.icon-x { color: #111111; }
.icon-tiktok { color: #000000; }
.icon-threads { color: #050505; }

/* Brand hover colors */
.link-item:hover .icon-instagram { color: #feda77; }
.link-item:hover .icon-whatsapp,
.link-item:hover .icon-channel,
.link-item:hover .icon-group { color: #128c7e; }
.link-item:hover .icon-tiktok { color: #ff0050; }
.link-item:hover .icon-threads { color: #111111; }
.link-item:hover .icon-x { color: #000000; }

/* Brand-synced hover backgrounds */
.link-item.brand-instagram:hover {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.99), rgba(240,246,255,0.94)) padding-box,
    linear-gradient(135deg, rgba(122,206,248,0.45), rgba(221,42,123,0.55), rgba(81,91,212,0.52)) border-box;
  border-color: rgba(122,206,248,0.75);
  box-shadow: 0 20px 38px rgba(221,42,123,0.25), 0 12px 32px rgba(81,91,212,0.22);
}

.link-item.brand-whatsapp:hover {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.99), rgba(233,248,255,0.95)) padding-box,
    linear-gradient(135deg, rgba(122,206,248,0.35), rgba(37,211,102,0.65)) border-box;
  border-color: rgba(37,211,102,0.7);
  box-shadow: 0 20px 36px rgba(37,211,102,0.22), 0 10px 24px rgba(12,111,163,0.16);
}

.link-item.brand-tiktok:hover {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.99), rgba(235,243,255,0.9)) padding-box,
    linear-gradient(135deg, rgba(122,206,248,0.38), rgba(0,0,0,0.82), rgba(0,242,234,0.3)) border-box;
  border-color: rgba(122,206,248,0.75);
  box-shadow: 0 20px 36px rgba(0,0,0,0.25), 0 12px 26px rgba(0,242,234,0.18);
}

.link-item.brand-threads:hover {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.99), rgba(235,244,255,0.9)) padding-box,
    linear-gradient(135deg, rgba(122,206,248,0.38), rgba(17,17,17,0.8)) border-box;
  border-color: rgba(122,206,248,0.75);
  box-shadow: 0 18px 34px rgba(17,17,17,0.2), 0 10px 24px rgba(12,111,163,0.2);
}

.link-text {
  flex-grow: 1;
  font-size: clamp(14px, 2.8vw, 16px);
  font-weight: 500;
  color: var(--accent-dark);
}

.footer {
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: rgba(6,38,55,0.72);
  border-top: 1px solid rgba(26,147,209,0.28);
  padding-top: 16px;
  opacity: 0.8;
}

.footer span {
  color: var(--accent);
}

@media (max-width: 480px) {
  body { padding: 16px; justify-content: flex-start; }
  .container-main { padding: 18px; border-radius: 18px; -webkit-backdrop-filter: blur(12px) saturate(120%); backdrop-filter: blur(12px) saturate(120%); }

  .profile h1 { font-size: 22px; }

  :root { --icon-size: 28px; }
  .link-icon { width: 40px; height: 40px; }
  .links { gap: 12px; }
  .link-item { padding: 12px 14px; }
  .link-text { font-size: clamp(14px, 3.6vw, 16px); }
}

@media (max-width: 380px) {
  :root { --icon-size: 26px; }
  .link-icon { width: 36px; height: 36px; }
  .links { gap: 10px; }
  .link-item { padding: 12px; }
}

@media (pointer: coarse) {
  #fx, .bg-orbs, .noise { display: none !important; }
  body { background: radial-gradient(130% 150% at 20% 0%, #f0f9ff 0%, #9cd7ff 55%, #0a2032 120%); }
  .link-item { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  #fx { display: none !important; }
}

