/* ─────────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────────── */
:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Dark theme (default) */
  --bg:            #080808;
  --bg-card:       rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border:        rgba(255, 255, 255, 0.08);
  --border-hover:  rgba(255, 255, 255, 0.18);
  --text-primary:  #f0f0f0;
  --text-muted:    rgba(240, 240, 240, 0.45);
  --text-soft:     #cbd5f5;
  --accent:        #6366f1;
  --accent-glow:   rgba(99, 102, 241, 0.25);
  --orb-1:         rgba(99, 102, 241, 0.12);
  --orb-2:         rgba(168, 85, 247, 0.08);
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover:  0 8px 32px rgba(0, 0, 0, 0.55);
  --toggle-bg:     rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
  --bg:            #f8f8f8;
  --bg-card:       rgba(0, 0, 0, 0.035);
  --bg-card-hover: rgba(0, 0, 0, 0.06);
  --border:        rgba(0, 0, 0, 0.08);
  --border-hover:  rgba(0, 0, 0, 0.18);
  --text-primary:  #0f0f0f;
  --text-muted:    rgba(15, 15, 15, 0.42);
  --text-soft:     rgba(15, 15, 15, 0.62);
  --accent:        #4f46e5;
  --accent-glow:   rgba(79, 70, 229, 0.15);
  --orb-1:         rgba(99, 102, 241, 0.07);
  --orb-2:         rgba(168, 85, 247, 0.05);
  --shadow:        0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover:  0 8px 28px rgba(0, 0, 0, 0.14);
  --toggle-bg:     rgba(0, 0, 0, 0.07);
}

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

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}


a { text-decoration: none; color: inherit; }

/* ─────────────────────────────────────────────────
   BACKGROUND AMBIENT ORBS
───────────────────────────────────────────────── */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.bg-orb-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: 50%;
  transform: translateX(-70%);
  background: var(--orb-1);
  animation: float-orb 18s ease-in-out infinite;
}

.bg-orb-2 {
  width: 380px;
  height: 380px;
  bottom: 60px;
  right: -80px;
  background: var(--orb-2);
  animation: float-orb 22s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% { transform: translateX(-70%) translateY(0px); }
  50%       { transform: translateX(-70%) translateY(40px); }
}

.bg-orb-2 { animation-name: float-orb-2; }
@keyframes float-orb-2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-20px, -30px); }
}

/* ─────────────────────────────────────────────────
   THEME TOGGLE
───────────────────────────────────────────────── */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--toggle-bg);
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, color 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: scale(1.08);
}

/* show/hide sun & moon based on theme */
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ─────────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 60px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ─────────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.28s; }
.delay-3 { animation-delay: 0.40s; }

@keyframes fade-in-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

/* Avatar */
.avatar-wrapper {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 4px;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  overflow: hidden;
  transition: border-color 0.3s;
}

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

.avatar-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border-radius: 50%;
  border: 2.5px solid var(--bg);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-badge 2.5s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* Name & headline */
.name {
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
}

.headline {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.bio {
  margin-top: 28px;
  font-size: 0.9375rem;
  line-height: 1.65;
  text-align: justify;
  hyphens: none;
  color: var(--text-soft);
  max-width: 700px;
}

.bio p {
  margin-bottom: 16px;
  max-width: 62ch;
}

.bio p:nth-child(1) {
  margin-bottom: 22px; 
}

.bio p:nth-child(3) {
  margin-bottom: 22px;
}

.bio p:last-child {
  margin-top: 28px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.bio strong {
  color: #e2e8f0;
  font-weight: 600;
}

.fade {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.5s ease forwards;
}

.fade:nth-child(1) { animation-delay: 0.2s; }
.fade:nth-child(2) { animation-delay: 0.4s; }
.fade:nth-child(3) { animation-delay: 0.6s; }
.fade:nth-child(4) { animation-delay: 0.8s; }
.fade:nth-child(5) { animation-delay: 1s; }

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

/* Tags */
.tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-soft);
  transition: border-color 0.2s, color 0.2s;
  align-items: center;
  display: inline-flex;
}

.tag:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ─────────────────────────────────────────────────
   LINKS
───────────────────────────────────────────────── */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* shimmer layer */
.link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.06) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  background-position: 200% 0;
  transition: background-position 0.55s ease;
}

.link-btn:hover::before {
  background-position: -100% 0;
}

.link-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.link-btn:active {
  transform: translateY(0px) scale(0.99);
  box-shadow: var(--shadow);
}

/* Platform accent left bar */
.link-btn::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.link-btn:hover::after { opacity: 1; }

/* Platform colors */
.link-btn[data-platform="instagram"]:hover::after { background: linear-gradient(180deg, #f58529, #dd2a7b, #8134af); }
.link-btn[data-platform="youtube"]:hover::after   { background: #ff0000; }
.link-btn[data-platform="github"]:hover::after    { background: #e6edf3; }
.link-btn[data-platform="linkedin"]:hover::after  { background: #0077b5; }
.link-btn[data-platform="spotify"]:hover::after   { background: #1db954; }
.link-btn[data-platform="email"]:hover::after     { background: var(--accent); }
.link-btn[data-platform="strava"]:hover::after { background: #fc4c02; }

.link-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: color 0.2s;
}

.link-btn:hover .link-icon { color: var(--text-primary); }

.link-icon svg { width: 20px; height: 20px; }

.link-text {
  flex: 1;
  letter-spacing: -0.01em;
}

.link-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s;
}

.link-btn:hover .link-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--text-soft);
}

.link-arrow svg { width: 14px; height: 14px; }

/* ─────────────────────────────────────────────────
   FOCUS SECTION
───────────────────────────────────────────────── */
.focus {
  padding: 24px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-top: 15px;
}

.focus-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.focus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.focus-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--text-soft);
  transition: color 0.2s;
}

.focus-list li:hover { color: var(--text-primary); }

.focus-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ─────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer p {
  font-style: italic;
  opacity: 0.9;
  letter-spacing: 0.3px;
}

.footer-quote {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-soft);
  font-weight: 400;
  line-height: 1.5;
}

.footer-credit {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 48px 16px 40px; gap: 32px; }
  .link-btn   { padding: 15px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
