/* ==========================================================================
   ABOUT — Storytelling layout, timeline, skills wheel
   ========================================================================== */

.about {
  position: relative;
}

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 480px;
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--color-surface), var(--color-bg-elevated));
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-text-subtle);
}

.about__image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  opacity: 0.2;
  z-index: -1;
}

.about__content {
  padding-top: var(--space-md);
}

.about__bio {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

/* Timeline */
.about__timeline {
  margin-top: var(--space-xl);
}

.about__timeline-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
}

.about__timeline-list {
  position: relative;
  padding-left: 2rem;
}

.about__timeline-list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-border));
}

.about__timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.about__timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--color-accent-glow);
}

.about__timeline-year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.about__timeline-heading {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: 0.25rem;
}

.about__timeline-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Skills */
.about__skills {
  margin-top: var(--space-xl);
}

.about__skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.skill-card {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: border-color var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) ease;
}

.skill-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.skill-card__wheel {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-sm);
}

.skill-card__wheel svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.skill-card__wheel-bg {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 4;
}

.skill-card__wheel-progress {
  fill: none;
  stroke: url(#skillGradient);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  transition: stroke-dashoffset 1.5s var(--ease-out-expo);
}

.skill-card__percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
}

.skill-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 0.25rem;
}

.skill-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Why Me section */
.why-me {
  position: relative;
}

.why-me__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.why-me__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.why-me__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: border-color var(--duration-fast) ease,
              transform var(--duration-normal) var(--ease-out-expo);
}

.why-me__item:hover {
  border-color: var(--color-border-hover);
  transform: translateX(8px);
}

.why-me__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-muted);
  color: var(--color-accent);
}

.why-me__check svg {
  width: 14px;
  height: 14px;
}

.why-me__text h4 {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: 0.35rem;
}

.why-me__text p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.why-me__visual {
  position: relative;
  padding: var(--space-xl);
}

.why-me__progress-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.progress-bar {
  width: 100%;
}

.progress-bar__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
}

.progress-bar__label {
  font-weight: 500;
}

.progress-bar__value {
  font-family: var(--font-mono);
  color: var(--color-accent);
}

.progress-bar__track {
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: inherit;
  transition: width 1.5s var(--ease-out-expo);
}

@media (max-width: 1024px) {
  .about__grid,
  .why-me__grid {
    grid-template-columns: 1fr;
  }

  .about__image-wrap {
    max-width: 320px;
    margin-inline: auto;
    aspect-ratio: 4 / 5;
  }

  .about__content {
    padding-top: 0;
  }

  .about__skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-me__visual {
    padding: var(--space-md) 0 0;
  }

  .why-me__item:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  /* Kill empty gap between About → Why Me */
  #about.section {
    padding-block: 2.5rem 0.75rem;
  }

  #why-me.section {
    padding-block: 0.75rem 2.5rem;
  }

  .about__image-wrap {
    max-width: 220px;
    aspect-ratio: 3 / 4;
  }

  .about__image-accent {
    width: 72px;
    height: 72px;
    bottom: -12px;
    right: -12px;
  }

  .about__bio {
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
  }

  /* Skills grid hidden on mobile — GSAP left it opacity:0 but still ~1200px tall */
  .about__skills {
    display: none !important;
  }

  .about__timeline {
    margin-top: var(--space-lg);
  }

  .about__timeline-item {
    padding-bottom: var(--space-md);
  }

  .about__timeline-item:last-child {
    padding-bottom: 0;
  }

  .why-me__list {
    gap: var(--space-sm);
    margin-top: var(--space-md);
  }

  .why-me__item {
    padding: var(--space-sm);
  }

  .why-me__progress-list {
    gap: var(--space-md);
  }

  .why-me .section__subtitle {
    margin-bottom: var(--space-sm);
  }
}
