/* 
═══════════════════════════════════════════════
   HERO — Full-viewport intro section
   BUG FIXES:
     • Floating chip @keyframes properly declared (was broken " removed-dup e-in-out infinite 1.5s}")
     • .avc-title no longer truncated (removed white-space:nowrap overflow:hidden)
     • .avs overflow:visible so chips float outside card
═══════════════════════════════════════════════ 
*/

.hero {
  height: calc(100svh - 66px);
  min-height: 560px;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
  margin-top: 66px;
  display: flex; align-items: center;
  position: relative; overflow: clip;
  border-bottom: 2px solid var(--border2);
  background:
    radial-gradient(ellipse 60% 70% at 75% 50%, rgba(13,122,107,.06) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(200,150,42,.05) 0%, transparent 55%),
    var(--cream);
}

/* Notebook ruled-lines texture */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent, transparent 39px,
    rgba(13,122,107,.04) 39px,
    rgba(13,122,107,.04) 40px
  );
  pointer-events: none;
}

/* Decorative rings */
.hero-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(13,122,107,.08);
  pointer-events: none;
  animation: ring-pulse 6s ease-in-out infinite;
}
.hero-ring.r1 { width:600px; height:600px; top:-200px; right:-100px; animation-delay:0s; }
.hero-ring.r2 { width:400px; height:400px; top:-100px; right:0; animation-delay:1.5s; border-color:rgba(200,150,42,.06); }
.hero-ring.r3 { width:200px; height:200px; top:0; right:100px; animation-delay:3s; }

/* Layout grid */
.hero-inner {
  max-width: 1200px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(1rem, 3vw, 3.5rem);
  align-items: center;
  position: relative; z-index: 2;
}

/* ── Left column ── */
.hero-text { }

.hero-stamp {
  margin-bottom: 1rem;
  animation: fade-up .5s var(--ease) both;
}

.hero-title {
  font-family: var(--f-h);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.04;
  margin-bottom: .85rem;
  animation: fade-up .55s var(--ease) .08s both;
  color: var(--ink);
}
.hero-title .accent-teal  { color: var(--teal); }
.hero-title .accent-gold  {
  position: relative; display: inline-block;
  background: linear-gradient(135deg, var(--gold), #a8760e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .accent-gold::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #e8b030);
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(200,150,42,.4);
  transform: scaleX(0); transform-origin: left;
  animation: underline-draw .55s var(--ease) .9s forwards;
}

.hero-typewriter {
  font-size: clamp(.9rem, 1.5vw, 1.05rem); color: var(--muted);
  font-weight: 400; margin-bottom: 1.5rem; line-height: 1.6;
  animation: fade-up .55s var(--ease) .16s both;
  min-height: 2em;
}
.hero-typewriter .tw-text  { color: var(--ink); font-weight: 500; }
.hero-typewriter .tw-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--teal); margin-left: 1px; vertical-align: middle;
  animation: blink .7s step-end infinite;
}

.hero-trust {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem; flex-wrap: wrap;
  animation: fade-up .55s var(--ease) .20s both;
}

.hero-buttons {
  display: flex; gap: .9rem; flex-wrap: wrap;
  margin-bottom: 1.75rem;
  animation: fade-up .55s var(--ease) .24s both;
}

.hero-social {
  display: flex; align-items: center; gap: .75rem;
  animation: fade-up .55s var(--ease) .32s both;
}
.social-divider { width: 1px; height: 36px; background: var(--border); }

/* ── Right column — profile card ── */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  animation: fade-up .7s var(--ease) .1s both;
}

/* Wrapper — MUST have overflow:visible so chips float outside */
.profile-wrapper {
  position: relative;
  width: clamp(260px, 28vw, 320px);
  padding: 44px 40px;        /* breathing room for floating chips */
  overflow: visible;         /* ← critical: chips escape the wrapper */
}

/* ════ FLOATING CHIPS ════
   BUG FIX: Previously the animation property was accidentally
   stripped leaving a bare fragment "e-in-out infinite 1.5s}"
   which created invalid CSS. Now declared correctly below.
═══════════════════════════════════════════════════════════ */
.floating-chip {
  position: absolute;
  background: linear-gradient(160deg, var(--parchment), var(--cream2));
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border2);
  border-radius: 14px;
  padding: .5rem .9rem;
  box-shadow: var(--sh-card);
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
  z-index: 5;
}

/* Individual chip positions + CORRECT animation declarations */
.chip-apps {
  top: 0; right: 0;
  animation: float-chip 4s ease-in-out infinite;          /* ← FIXED */
}
.chip-rating {
  bottom: 44px; left: 0;
  animation: float-chip 4s ease-in-out infinite .8s reverse; /* ← FIXED */
}
.chip-ontime {
  top: 42%; right: 0;
  animation: float-chip 3.5s ease-in-out infinite 1.5s;   /* ← FIXED */
}

.chip-icon { font-size: 1rem; }
.chip-text strong { display: block; font-weight: 700; font-size: .8rem; line-height: 1.2; color: var(--ink); }
.chip-text span   { font-size: .63rem; color: var(--muted); }

/* ════ PROFILE CARD ════ */
.profile-card {
  background: linear-gradient(160deg, var(--parchment) 0%, var(--cream2) 70%, var(--cream3) 100%);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border2);
  border-radius: 20px;
  box-shadow: var(--sh-deep);
  display: flex; flex-direction: column;
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Shimmer stripe at top */
.card-stripe {
  height: 4px; flex-shrink: 0;
  background: linear-gradient(90deg, var(--teal-d), var(--teal), #1fa090, var(--teal-d));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* Profile header row */
.card-profile {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem .75rem;
  flex-shrink: 0;
}
.card-avatar {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal), var(--teal-d));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(13,122,107,.3), inset 0 1px 0 rgba(255,255,255,.15);
  border: 1px solid var(--teal-d);
}
.card-info { flex: 1; min-width: 0; text-align: left; }

/* FIX: removed white-space:nowrap & text-overflow on title — was clipping "Developer" */
.card-name {
  font-family: var(--f-h);
  font-size: .95rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.02em; line-height: 1.2;
}
.card-role {
  font-size: .67rem; color: var(--muted);
  font-family: var(--f-m); letter-spacing: .02em; margin-top: 2px;
  /* No overflow:hidden / white-space:nowrap — text renders fully */
}
.card-available {
  display: flex; align-items: center; gap: 5px;
  font-size: .64rem; font-weight: 600; color: var(--teal);
  font-family: var(--f-m); margin-top: 4px;
}
.available-dot {
  width: 7px; height: 7px;
  background: var(--teal); border-radius: 50%; flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}

/* Stats row */
.card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 5px; padding: 0 .9rem .75rem; flex-shrink: 0;
}
.card-stat {
  background: linear-gradient(135deg, var(--white), var(--parchment));
  border: 1px solid var(--border); border-radius: 10px;
  padding: 6px 5px; box-shadow: var(--sh-raised); text-align: center;
}
.stat-value {
  font-family: var(--f-h); font-size: 1rem; font-weight: 900;
  color: var(--ink); line-height: 1;
}
.stat-value em { font-style: normal; font-size: .58rem; color: var(--teal); font-family: var(--f-m); }
.stat-label {
  font-size: .52rem; color: var(--muted); font-family: var(--f-m);
  letter-spacing: .03em; text-transform: uppercase; margin-top: 2px;
}

/* Code snippet */
.card-code {
  margin: 0 .9rem; flex: 1; min-height: 95px; overflow: hidden;
  background: linear-gradient(160deg, #1a1208, #201810);
  border-radius: 10px; padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.25);
  display: flex; flex-direction: column; gap: 3px;
}
.code-line {
  display: flex; align-items: flex-start; gap: 6px;
  font-family: var(--f-m); font-size: .6rem;
  white-space: nowrap; overflow: hidden; line-height: 1.5;
}
.code-line.highlighted { background: rgba(13,122,107,.2); border-radius: 3px; padding: 0 4px; margin: 0 -4px; }
.ln   { color: rgba(255,255,255,.15); font-size: .52rem; min-width: 10px; text-align: right; flex-shrink: 0; padding-top: 1px; }
.kw   { color: #7dcfb3; }
.cls  { color: #e8b86d; }
.fn   { color: #82aaff; }
.str  { color: #c3e88d; }
.cm   { color: rgba(255,255,255,.3); font-style: italic; }
.op   { color: rgba(255,255,255,.5); }

/* Tech tags */
.card-tags {
  display: flex; flex-wrap: wrap; gap: 5px;
  padding: .7rem .9rem .9rem; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   MARQUEE TICKER
═══════════════════════════════════════════════ */
.marquee-strip {
  background: linear-gradient(90deg, var(--ink2) 0%, var(--leather-d) 50%, var(--ink2) 100%);
  padding: 5px 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.04);
  height: 34px; display: flex; align-items: center;
}
.marquee-track {
  display: flex;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex; align-items: center; gap: 9px;
  padding: 0 2.25rem;
  font-family: var(--f-m); font-size: .7rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; color: rgba(255,255,255,.4);
}
.marquee-item .dot { width: 4px; height: 4px; background: var(--teal); border-radius: 50%; flex-shrink: 0; }
.marquee-item.highlight { color: rgba(200,150,42,.8); }

/* ═══════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════ */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--border); gap: 1px;
  border-bottom: 1px solid var(--border2);
}
.stat-cell {
  background: linear-gradient(160deg, var(--parchment), var(--cream2));
  padding: 1.25rem 1.5rem; text-align: center;
}
.stat-number {
  font-family: var(--f-h);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900; letter-spacing: -.04em;
  color: var(--ink); line-height: 1; margin-bottom: .3rem;
}
.stat-number span { color: var(--teal); }
.stat-desc {
  font-size: .78rem; color: var(--muted);
  font-weight: 500; font-family: var(--f-m); letter-spacing: .04em;
}