/* ============================================================
   CareerLah — Animations & Decorative Graphics
   Friendly, soft, non-distracting motion
   ============================================================ */

/* ── Keyframes ──────────────────────────────────────────────── */

/* Mascot gentle float */
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-14px) rotate(1deg); }
}

/* Mascot tip strip subtle bounce */
@keyframes mascotPulse {
  0%, 100% { transform: scale(1); }
  40%       { transform: scale(1.08) rotate(-3deg); }
  60%       { transform: scale(1.05) rotate(2deg); }
}

/* Card scroll-reveal */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero content entrance */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero eyebrow pop in from left */
@keyframes eyebrowSlide {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Background blob drift */
@keyframes blobDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25%       { transform: translate(18px, -22px) scale(1.06) rotate(8deg); }
  50%       { transform: translate(-12px, 14px) scale(0.96) rotate(-5deg); }
  75%       { transform: translate(8px, -8px) scale(1.03) rotate(4deg); }
}

@keyframes blobDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  30%       { transform: translate(-24px, 16px) scale(1.08) rotate(-10deg); }
  60%       { transform: translate(14px, -20px) scale(0.94) rotate(6deg); }
  80%       { transform: translate(-6px, 10px) scale(1.04) rotate(-3deg); }
}

@keyframes blobDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  45%       { transform: translate(10px, 18px) scale(1.1); }
  70%       { transform: translate(-16px, -8px) scale(0.95); }
}

/* Sparkle twinkle */
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  30%, 70% { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* Floating dot */
@keyframes dotFloat {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(-8px); opacity: 1; }
}

/* Loading bar shimmer sweep */
@keyframes shimmerSweep {
  0%   { background-position: -300% 0; }
  100% { background-position: 300% 0; }
}

/* Score ring fill */
@keyframes ringStroke {
  from { stroke-dashoffset: 283; }
}

/* Tip strip slide in from left */
@keyframes tipReveal {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Soft fade in */
@keyframes softFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Button ripple */
@keyframes rippleOut {
  to { transform: scale(4); opacity: 0; }
}

/* Page entrance */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── Hero decorative blobs ──────────────────────────────────── */
.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}

.hero-blob-1 {
  width: 320px; height: 320px;
  top: -80px; left: -60px;
  background: radial-gradient(circle, rgba(0,181,168,.18) 0%, transparent 70%);
  animation: blobDrift1 14s ease-in-out infinite;
}
.hero-blob-2 {
  width: 260px; height: 260px;
  top: 20px; right: -40px;
  background: radial-gradient(circle, rgba(27,52,97,.10) 0%, transparent 70%);
  animation: blobDrift2 18s ease-in-out infinite;
}
.hero-blob-3 {
  width: 200px; height: 200px;
  bottom: -60px; left: 45%;
  background: radial-gradient(circle, rgba(255,140,105,.12) 0%, transparent 70%);
  animation: blobDrift3 12s ease-in-out infinite;
}
.hero-blob-4 {
  width: 180px; height: 180px;
  bottom: -40px; right: 20%;
  background: radial-gradient(circle, rgba(129,140,248,.10) 0%, transparent 70%);
  animation: blobDrift1 16s ease-in-out infinite reverse;
}

/* ── Hero sparkles ──────────────────────────────────────────── */
.hero-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.sparkle {
  position: absolute;
  opacity: 0;
}
.sparkle svg { display: block; }

.sparkle-1 { top: 18%;  left: 12%;  animation: sparkleTwinkle 3.2s ease-in-out infinite 0.0s; }
.sparkle-2 { top: 60%;  left: 8%;   animation: sparkleTwinkle 3.8s ease-in-out infinite 0.7s; }
.sparkle-3 { top: 25%;  right: 22%; animation: sparkleTwinkle 4.1s ease-in-out infinite 1.2s; }
.sparkle-4 { top: 70%;  right: 10%; animation: sparkleTwinkle 3.5s ease-in-out infinite 1.8s; }
.sparkle-5 { top: 42%;  left: 38%;  animation: sparkleTwinkle 3.0s ease-in-out infinite 0.5s; }

/* ── Hero dots pattern ──────────────────────────────────────── */
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(0,150,138,.12) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Make hub-hero a positioning context */
.hub-hero {
  position: relative;
  overflow: hidden;
}

/* Hero content sits above blobs */
.hub-hero-inner {
  position: relative;
  z-index: 2;
}

/* ── Mascot animations ──────────────────────────────────────── */
.hub-hero-mascot-large {
  animation: mascotFloat 4.5s ease-in-out infinite;
  transform-origin: center bottom;
}

.hub-tip-mascot-img {
  animation: mascotPulse 3.5s ease-in-out infinite;
  transform-origin: center center;
}

/* Pause when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hub-hero-mascot-large,
  .hub-tip-mascot-img,
  .hero-blob,
  .sparkle { animation: none !important; }
}

/* ── Hero entrance animations ───────────────────────────────── */
.hub-eyebrow {
  animation: eyebrowSlide 0.55s ease-out both;
  animation-delay: 0.05s;
}
.hub-hero-title {
  animation: heroFadeIn 0.6s ease-out both;
  animation-delay: 0.18s;
}
.hub-hero-sub {
  animation: heroFadeIn 0.6s ease-out both;
  animation-delay: 0.30s;
}
.hero-feature-pills {
  animation: heroFadeIn 0.6s ease-out both;
  animation-delay: 0.40s;
}
.hub-hero-mascot-feature {
  animation: heroFadeIn 0.7s ease-out both;
  animation-delay: 0.25s;
}

/* ── Tip strip reveal ───────────────────────────────────────── */
.hub-tip-strip {
  animation: tipReveal 0.6s ease-out both;
  animation-delay: 0.6s;
}

/* ── Scroll-reveal cards ────────────────────────────────────── */
.hub-card {
  opacity: 0;
  transform: translateY(32px);
  transition: none;
}
.hub-card.is-visible {
  animation: revealUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* Stagger via nth-child */
.hub-card:nth-child(1).is-visible { animation-delay: 0.00s; }
.hub-card:nth-child(2).is-visible { animation-delay: 0.10s; }
.hub-card:nth-child(3).is-visible { animation-delay: 0.20s; }

/* Hub section header */
.hub-section-head {
  opacity: 0;
  animation: heroFadeIn 0.5s ease-out 0.35s both;
}

/* ── Button ripple ──────────────────────────────────────────── */
.btn-primary,
.auth-submit-btn,
.disc-submit {
  position: relative;
  overflow: hidden;
}
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  width: 10px; height: 10px;
  background: rgba(255,255,255,.4);
  transform: scale(0);
  animation: rippleOut 0.55s linear;
  pointer-events: none;
}

/* ── Card icon hover bounce ─────────────────────────────────── */
.hub-card:hover .hub-card-icon {
  animation: mascotPulse 0.4s ease-in-out;
}

/* ── Loading bar shimmer ────────────────────────────────────── */
.loading-bar-fill {
  background: linear-gradient(
    90deg,
    rgba(0,181,168,.8) 0%,
    #34d399 40%,
    rgba(255,255,255,.9) 55%,
    #34d399 70%,
    rgba(0,181,168,.8) 100%
  ) !important;
  background-size: 300% 100% !important;
  animation: shimmerSweep 1.8s linear infinite !important;
}

/* ── Score ring animated fill ───────────────────────────────── */
.ring-fill {
  animation: ringStroke 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Results hero entrance ──────────────────────────────────── */
.results-hero .results-eyebrow { animation: eyebrowSlide 0.5s ease-out 0.1s both; }
.results-hero .results-headline { animation: heroFadeIn 0.6s ease-out 0.2s both; }
.results-hero .results-sub { animation: heroFadeIn 0.6s ease-out 0.32s both; }
.results-hero .score-ring-wrap { animation: heroFadeIn 0.7s ease-out 0.15s both; }

/* ── Hist empty mascot animation ────────────────────────────── */
.hist-empty-mascot-img {
  animation: mascotFloat 4.5s ease-in-out infinite;
  transform-origin: center bottom;
}

/* ── Section reveals ────────────────────────────────────────── */
.acard,
.rec-verdict,
.rec-checklist,
.rec-strategy,
.company-bg-banner,
.hist-card,
.disc-card,
.iq-card {
  opacity: 0;
  transform: translateY(20px);
}
.acard.is-visible,
.rec-verdict.is-visible,
.rec-checklist.is-visible,
.rec-strategy.is-visible,
.company-bg-banner.is-visible,
.hist-card.is-visible,
.disc-card.is-visible,
.iq-card.is-visible {
  animation: revealUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Loading mascot float ───────────────────────────────────── */
.loading-mascot-img {
  animation: mascotFloat 3s ease-in-out infinite;
  transform-origin: center bottom;
}

/* ── Auth page entrance ─────────────────────────────────────── */
.auth-form-container {
  animation: pageEnter 0.55s ease-out both;
}
.auth-panel-left .auth-logo,
.auth-panel-left .auth-panel-headline,
.auth-panel-left .auth-panel-sub,
.auth-panel-left .auth-panel-features,
.auth-panel-left .auth-preview-card,
.auth-panel-left .auth-panel-note {
  animation: heroFadeIn 0.6s ease-out both;
}
.auth-panel-left .auth-logo         { animation-delay: 0.10s; }
.auth-panel-left .auth-panel-headline { animation-delay: 0.20s; }
.auth-panel-left .auth-panel-sub    { animation-delay: 0.30s; }
.auth-panel-left .auth-panel-features{ animation-delay: 0.40s; }
.auth-panel-left .auth-preview-card { animation-delay: 0.50s; }
.auth-panel-left .auth-panel-note   { animation-delay: 0.60s; }

/* ── Floating accent dots (hero corners) ────────────────────── */
.hero-float-dot {
  position: absolute;
  border-radius: 50%;
  animation: dotFloat ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.hero-float-dot-1 {
  width: 10px; height: 10px;
  top: 22%; left: 5%;
  background: var(--fr-teal, #00968a);
  opacity: 0.25;
  animation-duration: 3.2s;
  animation-delay: 0s;
}
.hero-float-dot-2 {
  width: 7px; height: 7px;
  top: 65%; left: 18%;
  background: var(--fr-peach, #ff8c69);
  opacity: 0.30;
  animation-duration: 4.0s;
  animation-delay: 0.8s;
}
.hero-float-dot-3 {
  width: 12px; height: 12px;
  top: 15%; right: 15%;
  background: var(--fr-purple, #818cf8);
  opacity: 0.22;
  animation-duration: 3.6s;
  animation-delay: 1.4s;
}
.hero-float-dot-4 {
  width: 8px; height: 8px;
  bottom: 20%; right: 25%;
  background: var(--fr-yellow, #fbbf24);
  opacity: 0.28;
  animation-duration: 4.4s;
  animation-delay: 0.4s;
}
