:root {
  --bg: #f4f4f9;
  --bg2: #eaeaf2;
  --surface: #ffffff;
  --surface2: #000;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(108, 104, 255, 0.4);
  --text: #0a0a1a;
  --muted: rgba(10, 10, 26, 0.5);
  --accent: #5b56f0;
  --accent2: #7c3aed;
  --accent3: #22d3ee;
  --accent-glow: rgba(91, 86, 240, 0.2);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(108, 104, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(108, 104, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(108, 104, 255, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: clamp(32px, 6vw, 60px) clamp(16px, 5vw, 24px) clamp(48px, 8vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  animation: fadeUp 0.7s ease both;
}

.avatar {
  position: relative;
  z-index: 2;
  width: clamp(88px, 20vw, 128px);
  height: clamp(88px, 20vw, 128px);
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Mono", monospace;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 700;
  color: #fff;
  margin: 3px;
  overflow: hidden;
  letter-spacing: -1px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-name {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-bio {
  font-size: clamp(13px, 3vw, 14px);
  color: var(--muted);
  text-align: center;
  line-height: 1.65;
  max-width: 340px;
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: clamp(3px, 1vw, 4px) clamp(9px, 2vw, 11px);
  border-radius: 100px;
  font-size: clamp(10px, 2.5vw, 11px);
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: "Space Mono", monospace;
}

.badge i {
  font-size: 10px;
  color: var(--accent);
}

.section-label {
  align-self: flex-start;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.1s;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 16px);
  padding: clamp(12px, 3vw, 16px) clamp(14px, 4vw, 20px);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  overflow: hidden;
  cursor: pointer;
  animation: fadeUp 0.6s ease both;
}

.link-card:nth-child(1) { animation-delay: 0.15s; }
.link-card:nth-child(2) { animation-delay: 0.22s; }
.link-card:nth-child(3) { animation-delay: 0.29s; }
.link-card:nth-child(4) { animation-delay: 0.36s; }
.link-card:nth-child(5) { animation-delay: 0.43s; }
.link-card:nth-child(6) { animation-delay: 0.5s; }

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow), 0 0 0 1px var(--border-hover);
}

.link-card:hover::before {
  opacity: 1;
}

.link-card:active {
  transform: translateY(0) scale(0.99);
}

.link-icon-wrap {
  position: relative;
  z-index: 1;
  width: clamp(34px, 8vw, 42px);
  height: clamp(34px, 8vw, 42px);
  border-radius: clamp(8px, 2vw, 10px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 4vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.25s ease;
}

.link-card:hover .link-icon-wrap {
  transform: scale(1.08);
}

.link-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.link-title {
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-desc {
  font-size: clamp(11px, 2.5vw, 12px);
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.3px;
}

.link-arrow {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 13px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.link-card:hover .link-arrow {
  transform: translateX(4px);
  color: var(--accent2);
}

.c-purple .link-icon-wrap { background: rgba(108, 104, 255, 0.15); color: var(--accent); }
.c-cyan .link-icon-wrap { background: rgba(34, 211, 238, 0.12); color: var(--accent3); }
.c-violet .link-icon-wrap { background: rgba(167, 139, 250, 0.13); color: var(--accent2); }
.c-green .link-icon-wrap { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.c-orange .link-icon-wrap { background: rgba(251, 146, 60, 0.12); color: #fb923c; }
.c-pink .link-icon-wrap { background: rgba(236, 72, 153, 0.12); color: #ec4899; }

.c-purple:hover { box-shadow: 0 8px 32px rgba(108, 104, 255, 0.25), 0 0 0 1px rgba(108, 104, 255, 0.4); }
.c-cyan:hover { box-shadow: 0 8px 32px rgba(34, 211, 238, 0.2), 0 0 0 1px rgba(34, 211, 238, 0.35); }
.c-violet:hover { box-shadow: 0 8px 32px rgba(167, 139, 250, 0.2), 0 0 0 1px rgba(167, 139, 250, 0.35); }
.c-green:hover { box-shadow: 0 8px 32px rgba(52, 211, 153, 0.2), 0 0 0 1px rgba(52, 211, 153, 0.35); }
.c-orange:hover { box-shadow: 0 8px 32px rgba(251, 146, 60, 0.2), 0 0 0 1px rgba(251, 146, 60, 0.35); }
.c-pink:hover { box-shadow: 0 8px 32px rgba(236, 72, 153, 0.2), 0 0 0 1px rgba(236, 72, 153, 0.35); }

.social-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.55s;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 17px;
  text-decoration: none;
  transition: all 0.22s ease;
}

.social-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--glow);
}

.footer {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-align: center;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.65s;
}

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

@font-face {
  font-display: swap; /* tambahkan ini */
}

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

@media (hover: none) {
  .link-card:hover {
    transform: none;
  }
  .social-btn:hover {
    transform: none;
  }
}
