/* ============================
   Color Theme — PeakStone
   ============================ */
:root {
  --bg-primary: #0a0a0e;
  --bg-deep: #1a1a2e;
  --bg-card: rgba(22, 33, 62, 0.45);
  --bg-card-hover: rgba(26, 26, 46, 0.65);
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --accent: #c9a84c;
  --accent-purple: #6C63FF;
  --accent-glow: rgba(201, 168, 76, 0.2);
  --accent-subtle: rgba(201, 168, 76, 0.08);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(201, 168, 76, 0.3);
  --radius: 14px;
  --max-width: 480px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================
   Layered Animated Background
   ============================ */

/* Layer 1: Deep navy-to-black base gradient */
.bg-base {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-deep) 50%, var(--bg-primary) 100%);
  z-index: 0;
}

/* Layer 2: Floating aurora orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

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

/* Purple orb — top left, drifts right */
.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: orbDrift1 16s ease-in-out infinite;
}

/* Gold orb — bottom right, drifts up-left */
.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  bottom: -8%;
  right: -5%;
  animation: orbDrift2 20s ease-in-out infinite;
}

/* Purple orb — center, pulses gently */
.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.07) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation: orbPulse 14s ease-in-out infinite;
}

/* Gold orb — top right, slow drift */
.orb-4 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  top: 5%;
  right: 10%;
  animation: orbDrift3 18s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    opacity: 0.9;
  }
  50% {
    transform: translate(60px, 40px) scale(1.15);
    opacity: 0.8;
  }
  75% {
    opacity: 0.5;
  }
}

@keyframes orbDrift2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  30% {
    opacity: 0.8;
  }
  50% {
    transform: translate(-50px, -60px) scale(1.1);
    opacity: 0.7;
  }
  70% {
    opacity: 0.4;
  }
}

@keyframes orbPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

@keyframes orbDrift3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  40% {
    opacity: 0.6;
  }
  50% {
    transform: translate(-40px, 30px) scale(1.08);
    opacity: 0.5;
  }
  80% {
    opacity: 0.3;
  }
}

/* ============================
   Container
   ============================ */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  padding: 48px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================
   Fade-in Utility
   ============================ */
.fade-in {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

/* ============================
   Profile
   ============================ */
.profile {
  text-align: center;
  margin-bottom: 36px;
}

/* Logo avatar */
.avatar-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 18px;
  position: relative;
}

.avatar-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #c9a84c;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15), 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.25), 0 6px 24px rgba(0, 0, 0, 0.5);
}

/* Fallback text avatar (shown if image fails) */
.avatar-fallback {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  background: linear-gradient(145deg, #2c2c3a, #1a1a2e, #16213e);
  border: 2px solid #c9a84c;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15), 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar-fallback:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.25), 0 6px 24px rgba(0, 0, 0, 0.5);
}

.name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.tagline {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.ai-badge i {
  font-size: 0.65rem;
}

.bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

/* ============================
   Link Buttons
   ============================ */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;

  /* Fade-in animation */
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.link-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-hover);
}

.link-btn:active {
  transform: translateY(0);
}

/* Icon styling */
.link-btn > i:first-child {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  color: var(--accent);
}

/* Label takes up remaining space */
.link-btn > span {
  flex: 1;
}

/* External arrow */
.link-arrow {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.link-btn:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================
   CTA Button — Book a Discovery Call
   ============================ */
.link-cta {
  padding: 18px 20px;
  border: 1.5px solid rgba(201, 168, 76, 0.4);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(22, 33, 62, 0.6));
  position: relative;
}

.link-cta > i:first-child {
  color: var(--accent);
}

.link-cta > span {
  font-weight: 600;
  font-size: 1.05rem;
}

.link-cta:hover {
  border-color: var(--accent);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 20px var(--accent-glow),
    0 0 0 1px var(--accent);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(22, 33, 62, 0.7));
}

/* Subtle shimmer animation on CTA */
.link-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(201, 168, 76, 0.06) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================
   Footer
   ============================ */
.footer {
  margin-top: 48px;
  padding-top: 20px;
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

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

/* ============================
   Responsive
   ============================ */
@media (max-width: 480px) {
  .container {
    padding: 36px 16px 24px;
  }

  .avatar-wrapper {
    width: 88px;
    height: 88px;
  }

  .avatar-logo,
  .avatar-fallback {
    width: 88px;
    height: 88px;
  }

  .avatar-fallback {
    font-size: 1.5rem;
  }

  .name {
    font-size: 1.35rem;
  }

  .link-btn {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .link-cta {
    padding: 16px 16px;
  }

  .link-cta > span {
    font-size: 1rem;
  }
}
