/* ============================================================
   Aman Singh Link-in-Bio - Complete Beautiful Version
   ============================================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.6);
  --text-muted: rgba(240, 240, 245, 0.35);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --neon-purple: #a855f7;
  --neon-pink: #ec4899;
  --neon-blue: #3b82f6;
  --neon-cyan: #06b6d4;
  --neon-green: #22c55e;
  --neon-orange: #f97316;

  --container-max: 520px;
  --card-radius: 18px;
  --avatar-size: 110px;
  --icon-box: 56px;
  --icon-img: 32px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}


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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  cursor: default;
}

a, button { cursor: pointer; }

  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  border-radius: 18% 18% 40% 40%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}
.rocket-cursor::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 10px;
  height: 14px;
  background: radial-gradient(circle at 50% 0%, #facc15 0%, #fb7185 55%, transparent 100%);
  transform: translateX(-50%) rotate(10deg);
  border-radius: 50%;
  filter: blur(1px);
}

/* Tech Symbols Floating Background */
.tech-symbols {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.tech-symbol {
  position: absolute;
  display: inline-block;
  color: rgba(219, 23, 203, 0.281);
  font-family: var(--font-body);
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.8;
  animation: floatSymbol 14s ease-in-out infinite;
}
.tech-symbol:nth-child(1) { left: 8%; top: 18%; font-size: 1.4rem; animation-duration: 15s; animation-delay: 0s; }
.tech-symbol:nth-child(2) { left: 72%; top: 12%; font-size: 1.6rem; animation-duration: 13s; animation-delay: 1.2s; }
.tech-symbol:nth-child(3) { left: 42%; top: 72%; font-size: 1.35rem; animation-duration: 16s; animation-delay: 0.7s; }
.tech-symbol:nth-child(4) { left: 16%; top: 78%; font-size: 1.1rem; animation-duration: 18s; animation-delay: 2s; }
.tech-symbol:nth-child(5) { left: 84%; top: 48%; font-size: 1.65rem; animation-duration: 14s; animation-delay: 0.4s; }
.tech-symbol:nth-child(6) { left: 28%; top: 38%; font-size: 1.25rem; animation-duration: 17s; animation-delay: 1.6s; }
.tech-symbol:nth-child(7) { left: 60%; top: 30%; font-size: 1.15rem; animation-duration: 12s; animation-delay: 2.4s; }
.tech-symbol:nth-child(8) { left: 50%; top: 10%; font-size: 1.45rem; animation-duration: 19s; animation-delay: 0.9s; }
.tech-symbol:nth-child(9) { left: 10%; top: 55%; font-size: 1.2rem; animation-duration: 16s; animation-delay: 1.1s; }

@keyframes floatSymbol {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.8; }
  50% { transform: translate(12px, -110px) rotate(8deg); opacity: 0.2; }
}

/* Background Orbs */
.bg-gradient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.bg-orb--1 { width: 420px; height: 420px; background: radial-gradient(circle, var(--neon-purple), transparent 70%); top: -10%; left: -10%; animation: orb-float-1 18s ease-in-out infinite; }
.bg-orb--2 { width: 380px; height: 380px; background: radial-gradient(circle, var(--neon-pink), transparent 70%); top: 40%; right: -15%; animation: orb-float-2 22s ease-in-out infinite; }
.bg-orb--3 { width: 360px; height: 360px; background: radial-gradient(circle, var(--neon-blue), transparent 70%); bottom: -10%; left: 20%; animation: orb-float-3 20s ease-in-out infinite; }

@keyframes orb-float-1 { 0%,100%{transform:translate(0,0)scale(1)} 25%{transform:translate(60px,40px)scale(1.15)} 50%{transform:translate(-30px,70px)scale(0.95)} 75%{transform:translate(20px,-15px)scale(1.05)} }
@keyframes orb-float-2 { 0%,100%{transform:translate(0,0)scale(1)} 25%{transform:translate(-50px,-60px)scale(1.1)} 50%{transform:translate(40px,-30px)scale(0.85)} 75%{transform:translate(-15px,40px)scale(1.05)} }
@keyframes orb-float-3 { 0%,100%{transform:translate(0,0)scale(1)} 25%{transform:translate(40px,-50px)scale(1.12)} 50%{transform:translate(-60px,20px)scale(0.88)} 75%{transform:translate(10px,60px)scale(1.08)} }

.bg-noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
}


/* Container */
.container {
  position: relative; z-index: 1; max-width: var(--container-max);
  margin: 0 auto; padding: 60px 22px 44px;
  display: flex; flex-direction: column; align-items: center;
}

/* Profile */
.profile { text-align: center; margin-bottom: 32px; animation: profile-entrance 0.8s var(--ease-out-expo) 0.1s both; }
@keyframes profile-entrance { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.profile__avatar-ring {
  width: var(--avatar-size); height: var(--avatar-size); border-radius: 50%;
  padding: 3px; background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink), var(--neon-blue));
  margin: 0 auto 12px; box-shadow: 0 0 12px rgba(168,85,247,0.22);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  animation: avatar-pulse 3s ease-in-out infinite;
}
.profile__avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: zoom out center;
  margin: 0;
  background: var(--bg-secondary);
  box-shadow: 0 6px 14px rgba(0,0,0,0.28);
}

.profile__name {
  font-family: var(--font-heading); font-size: 1.85rem; font-weight: 700;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink), var(--neon-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease-in-out infinite; background-size: 200% 200%;
}
@keyframes gradient-shift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

.profile__bio { font-size: 1rem; color: var(--text-secondary); margin-bottom: 4px; }
.profile__tagline { font-size: 0.875rem; color: var(--text-muted); }

/* Links */
/* ============================================================
   GAP & MARGIN FIX FOR CARDS
   ============================================================ */


.links {
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important; 
}

.link-card {
  margin-bottom: 16px !important;
}


.link-card {
  width: 100%; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--card-radius);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.28s var(--ease-spring), background 0.28s var(--ease-spring), border-color 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-spring);
  opacity: 0; animation: card-enter 0.5s var(--ease-out-expo) forwards;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}


.link-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}
.link-card::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left 0.6s ease;
}
.link-card:hover::before { left: 100%; }

/* Staggered Animation */
.link-card:nth-child(1) { animation-delay: 0.15s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.25s; }
.link-card:nth-child(4) { animation-delay: 0.3s; }
.link-card:nth-child(5) { animation-delay: 0.35s; }
.link-card:nth-child(6) { animation-delay: 0.4s; }
.link-card:nth-child(7) { animation-delay: 0.45s; }
.link-card:nth-child(8) { animation-delay: 0.5s; }
.link-card:nth-child(9) { animation-delay: 0.55s; }

@keyframes card-enter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Icon Box */
.link-card__icon {
  width: var(--icon-box); height: var(--icon-box); min-width: var(--icon-box);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); flex-shrink: 0;
  transition: all 0.3s var(--ease-spring);
}
.link-card:hover .link-card__icon { transform: scale(1.12) rotate(-5deg); }
.link-card__icon img { width: var(--icon-img); height: var(--icon-img); object-fit: contain; }

/* Content */
.link-card__content { flex-grow: 1; }
.link-card__title { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 700; color: var(--text-primary); display: block; }
.link-card__subtitle { font-size: 0.95rem; color: rgba(255, 255, 255, 0.92); line-height: 1.4; display: block;
  opacity: 0; max-height: 0; overflow: hidden; transition: opacity 220ms var(--ease-out-expo), max-height 260ms var(--ease-out-expo);
}
.link-card:hover .link-card__subtitle { opacity: 1; max-height: 120px; }
.link-card__arrow { width: 22px; height: 22px; color: rgba(255,255,255,0.75); transition: all 0.3s var(--ease-spring); }
.link-card:hover .link-card__arrow { color: var(--text-primary); transform: translate(2px, -2px); }

/* Hover Glows */
#link-portfolio:hover { border-color: var(--neon-cyan); box-shadow: 0 8px 32px rgba(6,182,212,0.22); }


#link-github:hover { border-color: #fff; box-shadow: 0 8px 32px rgba(255,255,255,0.15); }
#link-linkedin:hover { border-color: var(--neon-blue); box-shadow: 0 8px 32px rgba(59,130,246,0.22); }
#link-google:hover { border-color: var(--neon-orange); box-shadow: 0 8px 32px rgba(249,115,22,0.22); }
#link-google-dev:hover { border-color: #4285f4; box-shadow: 0 8px 32px rgba(66,133,244,0.25); }
#link-credly:hover { border-color: #ff6b00; box-shadow: 0 8px 32px rgba(255,107,0,0.22); }
#link-instagram:hover { border-color: var(--neon-pink); box-shadow: 0 8px 32px rgba(236,72,153,0.22); }
#link-whatsapp:hover { border-color: var(--neon-green); box-shadow: 0 8px 32px rgba(34,197,94,0.22); }
#link-telegram:hover { border-color: var(--neon-blue); box-shadow: 0 8px 32px rgba(59,130,246,0.22); }

/* Footer */
.footer { margin-top: 42px; text-align: center; }
.footer p { font-size: 0.85rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 480px) {
  :root { --avatar-size: 92px; --icon-box: 48px; --icon-img: 26px; }
  .container { padding: 34px 14px 32px; }
  .profile__name { font-size: 1.55rem; }
  .link-card { padding: 11px 14px; gap: 10px; }
  .link-card__subtitle { opacity: 1; max-height: none; }
}

body { animation: page-load 0.6s var(--ease-out-expo); }
@keyframes page-load { from { opacity: 0; } to { opacity: 1; } }
