/* Homepage visual enhancements (hero, stats, ticker). Font: Poppins (unchanged). */

/* ── Hero atmosphere ─────────────────────────── */
#intro.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
#intro.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--terracotta) 18%, transparent), transparent 65%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
  animation: heroGlow 9s ease-in-out infinite alternate;
}
#intro.hero::after {
  content: '';
  position: absolute;
  inset: auto auto -25% -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--terracotta) 12%, transparent), transparent 65%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
  animation: heroGlow 11s ease-in-out infinite alternate-reverse;
}
@keyframes heroGlow {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-30px, 24px) scale(1.12); }
}

/* ── Status pill ─────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid color-mix(in srgb, var(--terracotta) 35%, transparent);
  background: color-mix(in srgb, var(--terracotta) 8%, transparent);
  border-radius: 999px;
}
.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--terracotta);
  animation: statusPulse 2s ease-out infinite;
}
@keyframes statusPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* ── Accent headline words ───────────────────── */
.hero-title .accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-synthesis: none;
  color: var(--terracotta);
}

/* ── Portrait card ───────────────────────────── */
.hero-photo {
  position: relative;
  border-radius: 24px;
  box-shadow: 0 30px 60px color-mix(in srgb, var(--charcoal) 22%, transparent), 0 0 0 1px color-mix(in srgb, var(--charcoal) 6%, transparent);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--terracotta) 70%, transparent), transparent 55%, color-mix(in srgb, var(--terracotta) 50%, transparent));
  -webkit-mask: linear-gradient(var(--surface) 0 0) content-box, linear-gradient(var(--surface) 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-photo:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 40px 80px color-mix(in srgb, var(--charcoal) 28%, transparent), 0 0 0 1px color-mix(in srgb, var(--terracotta) 30%, transparent);
}
.hero-photo img {
  border-radius: 24px;
  display: block;
}
.portrait-chip {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--charcoal) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--stone) 40%, transparent);
  color: var(--ivory);
}
.portrait-chip strong { font-size: 0.85rem; font-weight: 700; }
.portrait-chip small  { font-size: 0.72rem; color: color-mix(in srgb, var(--ivory) 70%, transparent); }

/* ── Download CV button ──────────────────────── */
.button-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--terracotta) 70%, transparent);
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.button-download span { transition: transform 0.3s ease; }
.button-download:hover {
  background: color-mix(in srgb, var(--terracotta) 12%, transparent);
  transform: translateY(-2px);
}
.button-download:hover span { transform: translateY(3px); }

/* ── Ticker ──────────────────────────────────── */
.ticker {
  overflow: hidden;
  padding: 16px 0;
  background: var(--charcoal);
  border-top: 1px solid color-mix(in srgb, var(--stone) 30%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--stone) 30%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--charcoal) 8%, var(--charcoal) 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--charcoal) 8%, var(--charcoal) 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; flex-shrink: 0; }
.ticker-group span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ivory) 70%, transparent);
  white-space: nowrap;
}
.ticker-group i {
  font-style: normal;
  color: var(--terracotta);
  margin: 0 28px;
}
@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}

/* ── Stats bar upgrade ───────────────────────── */
.stat-bar {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--terracotta) 12%, transparent), transparent 60%),
    var(--charcoal);
}
.stat-figure {
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--surface) 30%, color-mix(in srgb, var(--surface) 65%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-item:hover .stat-figure {
  -webkit-text-fill-color: var(--terracotta);
}

/* ── Footer CTA Button: Terracotta fill with Ivory text at 18px+ bold ── */
.tj-footer-area .footer-cta-button {
  background: var(--terracotta) !important;
  color: var(--ivory) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
}
.tj-footer-area .footer-cta-button:hover {
  background: var(--terracotta-deep) !important;
  color: var(--ivory) !important;
}

/* ── Motion preferences ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #intro.hero::before,
  #intro.hero::after,
  .status-dot::after,
  .ticker-track { animation: none; }
  .hero-photo, .hero-photo:hover { transform: none; transition: none; }
}
