/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION — about.css
═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   ABOUT — BASE
───────────────────────────────────────── */
.about {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  background-color: #0d0d0d;
  color: var(--cream);
  padding: 80px 40px 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-scanlines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(255, 255, 255, 0.015) 3px,
    rgba(255, 255, 255, 0.015) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.corner {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 5;
}

.corner-tl {
  top: 20px;
  left: 20px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}
.corner-tr {
  top: 20px;
  right: 20px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
}
.corner-bl {
  bottom: 20px;
  left: 20px;
  border-bottom: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
}
.corner-br {
  bottom: 20px;
  right: 20px;
  border-bottom: 2px solid var(--yellow);
  border-right: 2px solid var(--yellow);
}

.about > * {
  position: relative;
  z-index: 2;
}

/* ─────────────────────────────────────────
   TOP BAR — name + 4 unified stats
───────────────────────────────────────── */
.about-topbar {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(240, 238, 219, 0.12);
  flex-wrap: wrap;
}

.about-name-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.about-name {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 100px);
  line-height: 0.9;
  color: var(--cream);
  letter-spacing: 0.02em;
  text-shadow:
    0 0 40px rgba(232, 41, 28, 0.35),
    0 0 80px rgba(232, 41, 28, 0.15);
}

.about-name-tag {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
}

/* 4-item unified stats row */
.about-stats-row {
  display: flex;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
}

.top-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px 16px;
  flex: 1;
  min-width: 120px;
}

.top-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.ts-xp {
  background: rgba(232, 41, 28, 0.15);
  color: var(--red);
}
.ts-trophy {
  background: rgba(245, 200, 0, 0.15);
  color: var(--yellow);
}
.ts-coffee {
  background: rgba(58, 143, 212, 0.15);
  color: var(--blue);
}
.ts-blender {
  background: rgba(77, 176, 72, 0.15);
  color: var(--green);
}

.top-stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.top-stat-label {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
}

.top-stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--cream);
}

.top-stat-accent {
  color: var(--yellow);
}

/* ─────────────────────────────────────────
   ACHIEVEMENT GLOW — Hrs in Blender stat
───────────────────────────────────────── */
.ts-blender ~ .top-stat-info .top-stat-value {
  color: var(--green);
  text-shadow:
    0 0 8px rgba(77, 176, 72, 0.9),
    0 0 20px rgba(77, 176, 72, 0.6),
    0 0 40px rgba(77, 176, 72, 0.3);
  animation: achievementPulse 2.5s ease-in-out infinite;
}

@keyframes achievementPulse {
  0%,
  100% {
    text-shadow:
      0 0 8px rgba(77, 176, 72, 0.9),
      0 0 20px rgba(77, 176, 72, 0.6),
      0 0 40px rgba(77, 176, 72, 0.3);
  }
  50% {
    text-shadow:
      0 0 12px rgba(77, 176, 72, 1),
      0 0 30px rgba(77, 176, 72, 0.8),
      0 0 60px rgba(77, 176, 72, 0.5),
      0 0 80px rgba(77, 176, 72, 0.2);
  }
}

/* ─────────────────────────────────────────
   MAIN 3-COLUMN GRID
───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px 1fr;
  gap: 32px;
  align-items: start;
  flex: 1;
}

.block-label {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
  opacity: 0.7;
}

/* ── CV Button ── */
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid rgba(240, 238, 219, 0.2);
  padding: 10px 20px;
  border-radius: 100px;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

.cv-btn:hover {
  background-color: var(--red);
  border-color: var(--red);
  color: var(--cream);
  transform: translateY(-2px);
}

.cv-btn-icon {
  font-size: 13px;
  transition: transform 0.25s ease;
}

.cv-btn:hover .cv-btn-icon {
  transform: translateY(2px);
}

/* ─────────────────────────────────────────
   LEFT COLUMN
───────────────────────────────────────── */
.about-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-bio-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px 22px;
}

.about-bio {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.9;
  color: rgba(240, 238, 219, 0.7);
}

.about-skills-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sk-red {
  background: rgba(232, 41, 28, 0.18);
  color: var(--red);
}
.sk-yellow {
  background: rgba(245, 200, 0, 0.18);
  color: var(--yellow);
}
.sk-blue {
  background: rgba(58, 143, 212, 0.18);
  color: var(--blue);
}
.sk-green {
  background: rgba(77, 176, 72, 0.18);
  color: var(--green);
}

.skill-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
}

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background-color: var(--bar-color, var(--red));
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px var(--bar-color, var(--red));
}

/* ─────────────────────────────────────────
   CENTER COLUMN — Character
───────────────────────────────────────── */
.about-center {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 420px;
}

.about-char-img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto; /* ← add this */
  display: block; /* ← add this */
  object-fit: contain;
  object-position: bottom;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 0 40px rgba(232, 41, 28, 0.25));
  animation: charFloat 4s ease-in-out infinite;
}

@keyframes charFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.char-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(
    ellipse at center,
    rgba(232, 41, 28, 0.18) 0%,
    rgba(245, 200, 0, 0.08) 50%,
    transparent 75%
  );
  border-radius: 50%;
  z-index: 1;
  filter: blur(20px);
}

.char-placeholder {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.char-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.char-block-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cbs-row {
  display: flex;
  gap: 6px;
}

.cbs-row span {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: block;
}

.char-placeholder-label {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.8;
  opacity: 0.4;
  letter-spacing: 0.1em;
}

.char-placeholder-label code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
}

/* ─────────────────────────────────────────
   RIGHT COLUMN — Progress list + circles below
───────────────────────────────────────── */
.about-right {
  display: flex;
  flex-direction: column;
}

.progress-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.progress-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.prog-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 238, 219, 0.8);
}

.prog-bar-track {
  width: 100px;
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  overflow: hidden;
}

.prog-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.prog-red {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}
.prog-yellow {
  background: var(--yellow);
  box-shadow: 0 0 6px var(--yellow);
}
.prog-blue {
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue);
}
.prog-green {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.prog-lvl {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0.45;
  white-space: nowrap;
}

.prog-lvl-num {
  color: var(--cream);
  opacity: 1;
  font-weight: 700;
}

/* ── Circles — directly under progress, right column ── */
.about-bottom-circles {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(240, 238, 219, 0.08);
}

.stat-circle {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

.circle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 3.5;
}

.circle-progress {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cp-red {
  stroke: var(--red);
  filter: drop-shadow(0 0 3px var(--red));
}
.cp-yellow {
  stroke: var(--yellow);
  filter: drop-shadow(0 0 3px var(--yellow));
}

.circle-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  text-align: center;
}

.circle-icon {
  font-size: 18px;
  opacity: 0.45;
}

.circle-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  line-height: 1.3;
}

.circle-pct {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--cream);
  line-height: 1;
}

/* ─────────────────────────────────────────
   SCROLL-TRIGGERED ANIMATIONS
───────────────────────────────────────── */
.about-topbar,
.about-left,
.about-center,
.about-right {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.about-topbar.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}
.about-left.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}
.about-center.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}
.about-right.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

/* ─────────────────────────────────────────
   RESPONSIVE — TABLET
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 240px 1fr;
    gap: 20px;
  }

  .about-stats-row {
    gap: 10px;
  }

  .top-stat {
    min-width: 100px;
    padding: 8px 12px;
  }

  .top-stat-value {
    font-size: 22px;
  }
  .prog-bar-track {
    width: 70px;
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE
───────────────────────────────────────── */
@media (max-width: 768px) {
  .about {
    padding: 70px 20px 40px;
  }

  .about-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .about-stats-row {
    width: 100%;
    gap: 10px;
  }

  .top-stat {
    flex: 1;
    min-width: 130px;
  }

  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .about-center {
    order: -1;
    min-height: 260px;
    width: 100%; /* ← add this */
    align-items: center; /* ← change from flex-end to center */
  }
  .about-left {
    order: 0;
  }
  .about-right {
    order: 1;
    width: 100%;
  }

  .prog-bar-track {
    width: 90px;
  }

  .about-bottom-circles {
    justify-content: space-around;
  }

  .stat-circle {
    width: 130px;
    height: 130px;
  }
  .circle-pct {
    font-size: 22px;
  }
  .circle-label {
    font-size: 8px;
  }
}
