/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:          #0d0d12;
  --bg-deep:     #0a0a10;
  --purple:      #7B6FE8;
  --purple-light:#9d70f5;
  --purple-glow: rgba(123, 111, 232, 0.35);
  --purple-glow-soft: rgba(123, 111, 232, 0.15);
  --white:       #ffffff;
  --white-75:    rgba(255, 255, 255, 0.75);
  --white-50:    rgba(255, 255, 255, 0.5);
  --white-20:    rgba(255, 255, 255, 0.2);
  --white-08:    rgba(255, 255, 255, 0.08);
  --white-03:    rgba(255, 255, 255, 0.03);

  --radius-card: 28px;
  --radius-btn:  50px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   BACKGROUND LAYER — floating orbs, no images
   ============================================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Subtle radial depth behind card */
.bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #1a0a2e 0%, transparent 70%);
}

/* Noise texture overlay */
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

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

.orb--1 {
  width: 420px;
  height: 420px;
  background: rgba(123, 111, 232, 0.18);
  top: -100px;
  left: -80px;
  animation: float-1 18s ease-in-out infinite;
}

.orb--2 {
  width: 360px;
  height: 360px;
  background: rgba(74, 48, 128, 0.14);
  bottom: -80px;
  right: -60px;
  animation: float-2 22s ease-in-out infinite;
}

.orb--3 {
  width: 280px;
  height: 280px;
  background: rgba(157, 112, 245, 0.1);
  top: 40%;
  right: -40px;
  animation: float-3 15s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, 40px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.97); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-40px, -30px) scale(1.08); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0); }
  40%       { transform: translate(-30px, 40px); }
  70%       { transform: translate(20px, -20px); }
}

/* ============================================================
   LAYOUT — card wrapper
   ============================================================ */
.card-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* mobile: no padding — card fills screen */
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.card {
  width: 100%;
  max-width: 100%; /* mobile: edge-to-edge */
  min-height: 100svh;
  background: var(--white-03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none; /* mobile: no border on full-screen card */
  border-radius: 0; /* mobile: no radius */
  padding: 56px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: none; /* mobile: no outer shadow needed */

  /* 3D perspective for mouse tilt — controlled via JS */
  transform-style: preserve-3d;
  will-change: transform;
}

/* ============================================================
   PHOTO
   ============================================================ */
.photo-ring {
  margin-bottom: 24px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  box-shadow:
    0 0 0 1px rgba(123, 111, 232, 0.3),
    0 0 40px var(--purple-glow),
    0 0 80px rgba(123, 111, 232, 0.12);
  will-change: transform;

  /* Start invisible — GSAP will animate in */
  opacity: 0;
}

.photo {
  display: block;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  border: 3px solid var(--bg-deep);
}

/* ============================================================
   IDENTITY
   ============================================================ */
.identity {
  text-align: center;
  margin-bottom: 20px;
}

.name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
  opacity: 0; /* GSAP */
}

.title {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-50);
  opacity: 0; /* GSAP */
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: 0; /* GSAP expands to 40px */
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  margin-bottom: 20px;
  border-radius: 1px;
}

/* ============================================================
   TEXT BLOCK
   ============================================================ */
.text-block {
  text-align: center;
  margin-bottom: 32px;
}

.tagline {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--white-50);
  margin-bottom: 12px;
  opacity: 0; /* GSAP */
}

.oneliner {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--white);
  opacity: 0; /* GSAP */
}

.accent {
  color: var(--purple-light);
}

/* ============================================================
   CTA BUTTON
   ============================================================ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 260px;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 0;
  overflow: hidden;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  will-change: transform;
  margin-bottom: 28px;

  /* Start invisible — GSAP */
  opacity: 0;
  transform: translateY(16px) scale(0.95);

  /* Glow shadow */
  box-shadow:
    0 4px 24px var(--purple-glow),
    0 1px 0 rgba(255,255,255,0.1) inset;
}

/* Shimmer layer */
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 8px 40px var(--purple-glow),
    0 2px 12px rgba(157, 112, 245, 0.4),
    0 1px 0 rgba(255,255,255,0.1) inset;
}

.cta-btn:hover::before {
  opacity: 1;
}

.cta-btn:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

.cta-icon {
  flex-shrink: 0;
}

/* CTA pulse animation — draws attention */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow:
      0 4px 24px var(--purple-glow),
      0 1px 0 rgba(255,255,255,0.1) inset;
  }
  50% {
    box-shadow:
      0 4px 48px rgba(123, 111, 232, 0.6),
      0 0 0 6px rgba(123, 111, 232, 0.08),
      0 1px 0 rgba(255,255,255,0.1) inset;
  }
}

.cta-btn.pulse {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ============================================================
   LINKEDIN BUTTON
   ============================================================ */
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--white-50);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  margin-bottom: 28px;
  opacity: 0; /* GSAP */
}

.linkedin-btn:hover {
  color: var(--white-75);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.linkedin-icon {
  flex-shrink: 0;
  color: #7B9FE8;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  font-size: 11px;
  color: var(--white-20);
  letter-spacing: 0.06em;
  text-align: center;
}

/* ============================================================
   RESPONSIVE — tablet & up (restore floating card)
   ============================================================ */
@media (min-width: 768px) {
  .card-wrapper {
    padding: 24px 16px;
  }

  .card {
    max-width: 400px;
    min-height: unset;
    border-radius: var(--radius-card);
    border: 1px solid var(--white-08);
    padding: 48px 40px 36px;
    box-shadow:
      0 0 0 1px rgba(123, 111, 232, 0.08),
      0 32px 64px rgba(0, 0, 0, 0.5),
      0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .photo {
    width: 168px;
    height: 168px;
  }

  .name {
    font-size: 32px;
  }

  .oneliner {
    font-size: 22px;
  }

  .orb--1 { width: 600px; height: 600px; }
  .orb--2 { width: 500px; height: 500px; }
  .orb--3 { width: 400px; height: 400px; }
}

/* ============================================================
   RESPONSIVE — small phones
   ============================================================ */
@media (max-width: 380px) {
  .card {
    padding: 32px 24px 28px;
  }

  .photo {
    width: 130px;
    height: 130px;
  }

  .name {
    font-size: 24px;
  }

  .oneliner {
    font-size: 18px;
  }
}

/* ============================================================
   REDUCED MOTION — accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .orb,
  .cta-btn.pulse {
    animation: none;
  }

  .cta-btn {
    transition: none;
  }

  /* Reveal all elements immediately */
  .photo-ring,
  .name,
  .title,
  .tagline,
  .oneliner,
  .cta-btn,
  .linkedin-btn {
    opacity: 1 !important;
    transform: none !important;
  }

  .divider {
    width: 40px !important;
  }
}
