/* ===========================
   RESET & ROOT
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Blue Tech palette */
  --bg:          #060b14;
  --bg2:         #0a1120;
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --blue-pale:   #93c5fd;
  --cyan:        #06b6d4;
  --cyan-light:  #22d3ee;
  --navy:        #0f172a;

  --surface:     rgba(37,99,235,0.07);
  --surface-h:   rgba(37,99,235,0.13);
  --border:      rgba(59,130,246,0.18);
  --border-h:    rgba(59,130,246,0.5);

  --text:        #e8f0fe;
  --text2:       rgba(232,240,254,0.55);
  --text3:       rgba(232,240,254,0.28);

  /* Platform brand colors */
  --line-green:   #06C755;
  --tiktok-dark:  #010101;
  --yt-red:       #FF0000;
  --ig-pink:      #E1306C;
  --shop-amber:   #f59e0b;

  --glow:    0 0 50px rgba(37,99,235,0.15);
  --glow-h:  0 0 28px rgba(59,130,246,0.25);
  --glow-sm: 0 0 14px rgba(59,130,246,0.15);

  --r:    16px;
  --r-sm: 11px;
  --ease: cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* ===========================
   BACKGROUND
=========================== */
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

/* Particles canvas */
#particles-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Blue glow orbs */
.orb {
  position: fixed; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 0;
  animation: orb-drift 15s ease-in-out infinite;
}
.orb-1 {
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
  top: -200px; left: -140px;
}
.orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  bottom: -120px; right: -100px;
  animation-delay: -6s;
}
.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
  top: 45%; left: 55%;
  animation-delay: -10s;
}
@keyframes orb-drift {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(22px,-18px); }
  66% { transform: translate(-16px,22px); }
}

/* ===========================
   LAYOUT
=========================== */
.container {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto;
  padding: 40px 18px 64px;
  display: flex; flex-direction: column;
  align-items: center; gap: 18px;
}

/* ===========================
   SYS LABEL
=========================== */
.sys-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.68rem; color: var(--blue-pale);
  letter-spacing: 1.5px; text-transform: uppercase;
  opacity: 0.7;
  animation: fadein 0.6s ease both;
}
.sys-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan-light);
  box-shadow: 0 0 8px var(--cyan-light);
  animation: dot-blink 1.8s ease-in-out infinite;
}
@keyframes dot-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 0.7; transform: translateY(0); }
}

/* ===========================
   PROFILE CARD
=========================== */
.profile-card {
  position: relative; width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 34px 26px 26px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--glow), inset 0 1px 0 rgba(59,130,246,0.1);
  animation: slide-up 0.7s cubic-bezier(0.16,1,0.3,1) both;
  overflow: hidden;
}
/* Animated blue top border */
.profile-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    transparent, var(--blue-light), var(--cyan-light), var(--blue-light), transparent);
  background-size: 200% 100%;
  animation: border-scan 3s linear infinite;
}
@keyframes border-scan {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Corners */
.corner {
  position: absolute; width: 14px; height: 14px;
  border-color: var(--blue-light); border-style: solid; opacity: 0.5;
}
.corner.tl { top: 12px;    left: 12px;  border-width: 1.5px 0 0 1.5px; }
.corner.tr { top: 12px;    right: 12px; border-width: 1.5px 1.5px 0 0; }
.corner.bl { bottom: 12px; left: 12px;  border-width: 0 0 1.5px 1.5px; }
.corner.br { bottom: 12px; right: 12px; border-width: 0 1.5px 1.5px 0; }

/* ===========================
   AVATAR
=========================== */
.avatar-wrapper {
  position: relative; width: 112px; height: 112px;
}
.avatar-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    var(--blue), var(--cyan-light), var(--blue-pale), var(--cyan), var(--blue)
  );
  animation: ring-spin 5s linear infinite; z-index: 0;
}
.avatar-ring::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--bg);
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

.avatar {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  object-position: top center; display: block;
}

/* ✅ Green online dot */
.online-dot {
  position: absolute; bottom: 6px; right: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid var(--bg);
  z-index: 3;
  box-shadow: 0 0 10px rgba(34,197,94,0.7), 0 0 20px rgba(34,197,94,0.3);
  animation: online-pulse 2s ease-in-out infinite;
}
@keyframes online-pulse {
  0%,100% { box-shadow: 0 0 8px rgba(34,197,94,0.7), 0 0 18px rgba(34,197,94,0.3); }
  50%      { box-shadow: 0 0 14px rgba(34,197,94,0.9), 0 0 28px rgba(34,197,94,0.5); }
}

/* ===========================
   PROFILE TEXT
=========================== */
.profile-info { text-align: center; }
.profile-name {
  font-size: 2.1rem; font-weight: 700; letter-spacing: -1.5px;
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 45%, #22d3ee 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 5px;
  filter: drop-shadow(0 0 20px rgba(59,130,246,0.4));
}
.profile-tagline {
  font-size: 0.7rem; color: var(--text3); letter-spacing: 0.5px; margin-bottom: 10px;
}
.profile-bio {
  font-size: 0.9rem; color: var(--text2); line-height: 1.75;
}

/* ===========================
   TECH BAR
=========================== */
.tech-bar {
  display: flex; align-items: center;
  background: rgba(37,99,235,0.06);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 0; width: 100%;
  justify-content: space-around;
}
.tech-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; }
.tech-val  { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.tech-key  { font-size: 0.6rem; color: var(--text3); }
.tech-sep  { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }

/* ===========================
   SOCIAL ROW
=========================== */
.social-row {
  display: flex; gap: 10px;
  animation: slide-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.08s both;
}
.social-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text2); text-decoration: none;
  font-size: 0.78rem; font-weight: 500;
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(10px);
}
.social-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.s-tiktok:hover { background: rgba(1,1,1,0.6); border-color: rgba(105,201,208,0.7); color: #69c9d0; box-shadow: 0 6px 20px rgba(105,201,208,0.25); }
.s-youtube:hover { background: rgba(255,0,0,0.12); border-color: rgba(255,0,0,0.6); color: #ff5050; box-shadow: 0 6px 20px rgba(255,0,0,0.2); }
.s-insta:hover { background: rgba(225,48,108,0.12); border-color: rgba(225,48,108,0.6); color: #e1306c; box-shadow: 0 6px 20px rgba(225,48,108,0.2); }

/* ===========================
   LINKS
=========================== */
.links { width: 100%; display: flex; flex-direction: column; gap: 10px; }

.link-item {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none; color: var(--text);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: all 0.28s var(--ease);
  overflow: hidden;
  animation: slide-up 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
.link-item:nth-child(1) { animation-delay: 0.10s; }
.link-item:nth-child(2) { animation-delay: 0.17s; }
.link-item:nth-child(3) { animation-delay: 0.24s; }
.link-item:nth-child(4) { animation-delay: 0.31s; }
.link-item:nth-child(5) { animation-delay: 0.38s; }
.link-item:nth-child(6) { animation-delay: 0.45s; }

/* Shimmer sweep */
.link-item::after {
  content: '';
  position: absolute; top: 0; left: -100%; bottom: 0; width: 60%;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.06), transparent);
  transition: left 0.55s ease;
}
.link-item:hover::after { left: 150%; }

.link-item:hover {
  border-color: var(--border-h);
  background: var(--surface-h);
  transform: translateX(6px);
  box-shadow: -5px 0 20px rgba(37,99,235,0.2), var(--glow-sm);
}

/* ── Platform-specific hover border colors ── */
#link-line:hover    { border-color: rgba(6,199,85,0.55);  box-shadow: -5px 0 20px rgba(6,199,85,0.15), 0 0 14px rgba(6,199,85,0.1); }
#link-kalodata:hover{ border-color: rgba(59,130,246,0.65); box-shadow: -5px 0 22px rgba(37,99,235,0.25); }
#link-shop:hover    { border-color: rgba(245,158,11,0.5);  box-shadow: -5px 0 20px rgba(245,158,11,0.12); }
#link-tiktok:hover  { border-color: rgba(105,201,208,0.6); box-shadow: -5px 0 20px rgba(105,201,208,0.15); }
#link-youtube:hover { border-color: rgba(255,0,0,0.5);     box-shadow: -5px 0 20px rgba(255,0,0,0.15); }
#link-ig:hover      { border-color: rgba(225,48,108,0.55); box-shadow: -5px 0 20px rgba(225,48,108,0.15); }

/* Featured */
.link-item.featured {
  background: rgba(37,99,235,0.1);
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 0 24px rgba(37,99,235,0.12);
}

/* Collab */
.link-item.collab {
  background: rgba(6,199,85,0.06);
  border-color: rgba(6,199,85,0.2);
}

/* Number */
.link-num { font-size: 0.62rem; color: var(--text3); width: 18px; flex-shrink: 0; }

/* ===========================
   ICON BOXES — brand colors
=========================== */
.link-icon-box {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); flex-shrink: 0;
  transition: all 0.25s var(--ease);
  border: 1.5px solid transparent;
}
.link-item:hover .link-icon-box {
  transform: scale(1.1) rotate(-4deg);
}

/* LINE — green */
.line-box {
  background: #06C755;
  color: #fff;
  box-shadow: 0 4px 14px rgba(6,199,85,0.4);
}
.link-item:hover .line-box {
  box-shadow: 0 6px 22px rgba(6,199,85,0.6);
}

/* Kalodata — white bg to show logo clearly */
.kalodata-box {
  background: #fff;
  border-color: rgba(59,130,246,0.2);
  padding: 6px;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
.link-item:hover .kalodata-box {
  box-shadow: 0 6px 22px rgba(37,99,235,0.4);
}

/* Shop — amber */
.shop-box {
  background: rgba(245,158,11,0.15);
  color: #fbbf24;
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 4px 12px rgba(245,158,11,0.15);
}
.link-item:hover .shop-box {
  background: rgba(245,158,11,0.25);
  box-shadow: 0 6px 20px rgba(245,158,11,0.3);
}

/* TikTok — dark + cyan glow */
.tiktok-box {
  background: #111;
  color: #69c9d0;
  border-color: rgba(105,201,208,0.3);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.link-item:hover .tiktok-box {
  background: #1a1a1a;
  box-shadow: 0 6px 22px rgba(105,201,208,0.3);
}

/* YouTube — white background for logo visibility */
.yt-box {
  background: #ffffff;
  border-color: rgba(255,0,0,0.2);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.link-item:hover .yt-box {
  box-shadow: 0 6px 22px rgba(255,0,0,0.25);
}

/* Instagram — gradient */
.ig-box {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  box-shadow: 0 4px 14px rgba(225,48,108,0.35);
}
.link-item:hover .ig-box {
  box-shadow: 0 6px 22px rgba(225,48,108,0.55);
}

/* ===========================
   LINK BODY
=========================== */
.link-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-name {
  font-size: 0.92rem; font-weight: 600; color: var(--text);
  letter-spacing: -0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.link-desc { font-size: 0.67rem; color: var(--text3); letter-spacing: 0.2px; }

/* Badges */
.link-badge {
  font-size: 0.58rem; font-weight: 700;
  padding: 3px 9px; border-radius: 6px;
  letter-spacing: 0.8px; flex-shrink: 0; text-transform: uppercase;
}
.hot-badge  { background: rgba(59,130,246,0.15); color: var(--blue-pale); border: 1px solid rgba(59,130,246,0.35); }
.line-badge { background: rgba(6,199,85,0.15);   color: #4ade80;          border: 1px solid rgba(6,199,85,0.35); }

/* Chevron */
.link-chevron { width: 16px; height: 16px; color: var(--text3); flex-shrink: 0; transition: all 0.25s var(--ease); }
.link-chevron svg { width: 100%; height: 100%; }
.link-item:hover .link-chevron { color: var(--blue-pale); transform: translateX(4px); }

/* ===========================
   FOOTER
=========================== */
.footer {
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  animation: slide-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.52s both;
}
.footer-divider { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin-bottom: 4px; }
.footer-line { font-size: 0.72rem; color: var(--text3); letter-spacing: 1.5px; }
.footer-sub  { font-size: 0.62rem; color: rgba(232,240,254,0.12); letter-spacing: 2px; }

/* ===========================
   RIPPLE
=========================== */
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(59,130,246,0.2);
  pointer-events: none;
  animation: ripple-out 0.6s ease-out forwards;
}
@keyframes ripple-out {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(4); opacity: 0; }
}

/* ===========================
   TOAST
=========================== */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(6,11,22,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: var(--blue-pale);
  padding: 11px 22px; border-radius: 50px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; font-weight: 500;
  border: 1px solid rgba(59,130,246,0.3);
  box-shadow: 0 8px 32px rgba(37,99,235,0.3);
  z-index: 9999; opacity: 0;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  white-space: nowrap; letter-spacing: 0.3px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 480px) {
  .container { padding: 28px 14px 52px; gap: 15px; }
  .profile-card { padding: 28px 18px 22px; }
  .profile-name { font-size: 1.8rem; }
  .social-btn span { display: none; }
  .social-btn { padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
