/* =============================================
   THEME.CSS — Luciano Designer Link Page
   Based on: futuristic-webgl reference template
   ============================================= */

/* Fonts */
.font-orbitron { font-family: 'Orbitron', sans-serif; }
body { font-family: 'Inter', sans-serif; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; border-left: 1px solid rgba(255,255,255,0.04); }
::-webkit-scrollbar-thumb { background: rgba(34,211,238,0.25); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(34,211,238,0.55); }

/* ── VERTICAL LIGHT STREAKS ── */
.vertical-streaks {
  background-image: linear-gradient(90deg, transparent 99%, rgba(34,211,238,0.025) 100%);
  background-size: 12vw 100%;
}

/* ── CRT SCANLINES ── */
.crt-scanlines {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 50%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.15) 100%
  );
  background-size: 100% 4px;
}

/* ── SCAN LINE SWEEP ANIMATION ── */
@keyframes scan-horizontal {
  0%   { transform: translateX(-100%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(300%); opacity: 0; }
}
.animate-scan-line {
  animation: scan-horizontal 3s cubic-bezier(0.4,0,0.2,1) infinite;
}

/* ── HERO RISE ENTRANCE ── */
@keyframes hero-rise {
  0%   { opacity: 0; transform: translate3d(0, 28px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
.animate-hero-rise {
  animation: hero-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── SCROLL REVEAL ── */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ── KINETIC HEADING ── */
.kinetic-heading {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 26px, 0) scale(0.98);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms ease;
  will-change: transform, opacity, filter;
}
.kinetic-heading.in-view {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  transform-origin: left center;   /* ← barra cresce da esquerda (corrigido) */
  transform: scaleX(0);
  transition: transform 80ms linear;
  will-change: transform;
}

/* ── MAGNETIC CARD ── */
.magnetic-card {
  --mx: 0px;
  --my: 0px;
}
.magnetic-card.reveal-on-scroll {
  transform: translate3d(0, 28px, 0);
}
.magnetic-card.reveal-on-scroll.in-view {
  transform: translate3d(0, 0, 0);
}
.js-parallax { will-change: transform; }

/* ── PILL BUTTON SHIMMER ── */
@keyframes btn-shine {
  0%   { left: -80%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 20;
}

/* ── FLOATING PARTICLES ── */
@keyframes float-particle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  33%       { transform: translate(8px, -14px) scale(1.3); opacity: 1; }
  66%       { transform: translate(-6px, -7px) scale(0.85); opacity: 0.3; }
}
.particle {
  animation: float-particle var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* ── STAT CARD HOVER ── */
.stat-card {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-card:hover {
  border-color: rgba(34,211,238,0.35);
  background: rgba(34,211,238,0.05);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(34,211,238,0.1);
}

/* ── SKILL TAGS ── */
.skill-tag {
  transition: all 0.3s ease;
  cursor: default;
}
.skill-tag:hover {
  border-color: rgba(34,211,238,0.5);
  background: rgba(34,211,238,0.1);
  color: #22d3ee;
  box-shadow: 0 0 10px rgba(34,211,238,0.15);
}

/* ── AVATAR PULSE RING ── */
@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0.5), 0 0 0 8px rgba(34,211,238,0.08); }
  50%       { box-shadow: 0 0 0 6px rgba(34,211,238,0.15), 0 0 0 18px rgba(34,211,238,0.04); }
}
.avatar-ring { animation: ring-pulse 3.5s ease-in-out infinite; }

/* ── TYPING CURSOR ── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.cursor-blink { animation: blink 1s step-end infinite; }

/* ── ACCESSIBILITY: REDUCE MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .animate-hero-rise,
  .animate-scan-line,
  .reveal-on-scroll,
  .kinetic-heading,
  .particle,
  .btn-shine::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
