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

:root {
  --hover-alpha: 0.16;
  --icon-size: 30px;
  --accent: #88CE02;
  --bg-rotate: 0deg;
}

html {
  background: #f6ecde;
  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(120% 120% at 10% 0%, #fff2e2 0%, #f7ebdd 40%, #f0e4d7 70%),
              conic-gradient(from var(--bg-rotate), rgba(243,115,36,0.08), rgba(124,77,255,0.06), rgba(37,211,102,0.06), rgba(243,115,36,0.08));
  color: #2d2d2d;
  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.35;
  border-radius: 50%;
}
.orb-1 { left: -80px; top: -80px; background: radial-gradient(closest-side, #fbb146, #f37324 60%, transparent 70%); }
.orb-2 { right: -120px; top: 20%; background: radial-gradient(closest-side, #7C4DFF, #E4405F 55%, transparent 70%); opacity: 0.25; }
.orb-3 { left: 30%; bottom: -160px; background: radial-gradient(closest-side, #25D366, #fbb146 60%, transparent 70%); opacity: 0.22; }

.container-main {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: 100%;
  padding: 32px;
  border-radius: 24px;
  background: rgba(255,255,255,0.45);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10), 0 1px 0 rgba(255,255,255,0.55) inset;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.35);
  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.35), rgba(255,255,255,0) 40%),
              linear-gradient(180deg, rgba(255,255,255,0.10), 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(255,255,255,0.30), 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(0,0,0,0.15);
  background: linear-gradient(45deg, #f37324, #fbb146);
  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(90deg, #fbb146, #f37324);
  -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); }
}

.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(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.35)) padding-box,
    linear-gradient(120deg, rgba(255,255,255,0.45), rgba(255,255,255,0), rgba(255,255,255,0.45)) border-box;
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  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(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
}

.link-item:hover {
  background: rgba(255,255,255,0.5);
  box-shadow: 0 10px 28px rgba(244,156,59,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.45)) padding-box,
    linear-gradient(120deg, var(--accent), rgba(255,255,255,0), var(--accent)) border-box;
}

.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;
}


.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-website { color: #f37324; }
.icon-instagram { color: #E4405F; }
.icon-whatsapp { color: #25D366; }
.icon-channel { color: #25D366; }
.icon-group { color: #25D366; }
.icon-tiktok { color: #000000; }
.icon-x { color: #000000; }
.icon-csai { color: #7C4DFF; }
.icon-reseller { color: #f37324; }

/* Brand hover colors */
.link-item:hover .icon-website { color: #fbb146; }
.link-item:hover .icon-instagram { color: #F56040; }
.link-item:hover .icon-whatsapp { color: #1ebe57; }
.link-item:hover .icon-channel { color: #1ebe57; }
.link-item:hover .icon-group { color: #1ebe57; }
.link-item:hover .icon-tiktok { color: #ff004f; }
.link-item:hover .icon-x { color: #555555; }
.link-item:hover .icon-csai { color: #9B6BFF; }

/* Brand-synced hover backgrounds */
.link-item.brand-website:hover {
  background: rgba(243, 115, 36, var(--hover-alpha));
  border-color: #f37324;
  box-shadow: 0 8px 24px rgba(243, 115, 36, 0.25);
}

.link-item.brand-instagram:hover {
  background: linear-gradient(90deg,
    rgba(245,133,41, var(--hover-alpha)),
    rgba(221,42,123, var(--hover-alpha)),
    rgba(129,52,175, var(--hover-alpha))
  );
  border-color: #DD2A7B;
  box-shadow: 0 8px 24px rgba(221, 42, 123, 0.25);
}

.link-item.brand-whatsapp:hover {
  background: rgba(37, 211, 102, calc(var(--hover-alpha) + 0.02));
  border-color: #25D366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

.link-item.brand-csai:hover {
  background: rgba(124, 77, 255, var(--hover-alpha));
  border-color: #7C4DFF;
  box-shadow: 0 8px 24px rgba(124, 77, 255, 0.25);
}

.link-item.brand-tiktok:hover {
  background: rgba(0, 0, 0, calc(var(--hover-alpha) - 0.04));
  border-color: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.link-item.brand-x:hover {
  background: rgba(0, 0, 0, calc(var(--hover-alpha) - 0.04));
  border-color: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.link-item.brand-reseller:hover {
  background: rgba(243, 115, 36, var(--hover-alpha));
  border-color: #f37324;
  box-shadow: 0 8px 24px rgba(243, 115, 36, 0.25);
}

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

.footer {
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: #555;
  border-top: 1px solid #f5c48d;
  padding-top: 16px;
  opacity: 0.8;
}

.footer span {
  color: #f37324;
}

@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(120% 120% at 10% 0%, #fff2e2 0%, #f7ebdd 60%, #f0e4d7 100%); }
  .link-item { box-shadow: 0 3px 10px rgba(0,0,0,0.06); }
}

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