/* =============================================
   ABOUT ME SECTION — about.css
   Add to functions.php enqueue or @import
   into main.css
   ============================================= */

/*
 * Safety fallback:
 * If JS hasn't run yet (slow connection, JS error),
 * show content after a CSS animation timeout.
 * The JS adds .visible which immediately overrides this.
 */
.about-image-col,
.about-content-col {
  animation: about-fallback-show 0s ease 2.5s forwards;
}
@keyframes about-fallback-show {
  to { opacity: 1; transform: none; }
}

.about-section {
  position: relative;
  padding: 7rem 0 6rem;
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  top: 10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, hsla(187,80%,48%,0.05) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.about-section::after {
  content: '';
  position: absolute;
  bottom: 5%; left: -8%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, hsla(199,89%,48%,0.04) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .about-container { padding: 0 3rem; } }

/* Label */
.about-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.about-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--primary);
  opacity: 0.6;
}

/* Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
    align-items: center;
  }
}

/* ── Image column ── */
.about-image-col {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.about-image-col.visible {
  opacity: 1;
  transform: translateX(0);
}
.about-image-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 380px;
}
@media (min-width: 1024px) { .about-image-wrap { max-width: 100%; } }

/* .about-image-frame {
  position: relative;
  border-radius: 1.5rem;
  padding: 3px;
  background: linear-gradient(135deg, hsla(187,80%,48%,0.5), hsla(220,14%,22%,0.3), hsla(199,89%,48%,0.4));
  box-shadow:
    0 0 40px -10px hsla(187,80%,48%,0.25),
    0 30px 60px -15px hsla(220,20%,4%,0.8);
} */
/* .about-image-frame::before,
.about-image-frame::after {
  content: '';
  position: absolute;
  width: 2.5rem; height: 2.5rem;
  border-color: var(--primary);
  border-style: solid;
  opacity: 0.6;
  z-index: 2;
  transition: opacity 0.3s;
} */
.about-image-frame::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: 1.5rem 0 0 0;
}
.about-image-frame::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 1.5rem 0;
}
.about-image-frame:hover::before,
.about-image-frame:hover::after { opacity: 1; }

.about-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(1.5rem - 3px);
  filter: brightness(0.92) contrast(1.05);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.about-image-frame:hover .about-img {
  filter: brightness(1) contrast(1.05);
  transform: scale(1.01);
}

.about-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: calc(1.5rem - 3px);
  background: linear-gradient(160deg, hsl(220,18%,12%) 0%, hsl(220,18%,8%) 100%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  letter-spacing: 0.08em;
}
.about-img-placeholder svg { width: 3rem; height: 3rem; opacity: 0.25; color: var(--primary); }

/* Floating badges */
.about-badge {
  position: absolute;
  bottom: -1.25rem; right: -1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: hsla(220,18%,10%,0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--foreground);
  white-space: nowrap;
  box-shadow: 0 8px 24px -4px hsla(220,20%,4%,0.6);
  z-index: 3;
}
.about-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: badge-pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 hsla(187,80%,48%,0.5); }
  50%      { box-shadow: 0 0 0 5px hsla(187,80%,48%,0); }
}

.about-exp-tag {
  position: absolute;
  top: 1.5rem; right: -1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 5rem; height: 5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 50%;
  box-shadow: 0 0 24px -4px hsla(187,80%,48%,0.4);
  z-index: 3;
}
.about-exp-tag .num {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-foreground);
  line-height: 1;
}
.about-exp-tag .label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsla(220,20%,6%,0.75);
  line-height: 1.2;
  text-align: center;
}

/* ── Content column ── */
.about-content-col {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s;
}
.about-content-col.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.about-bio {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-weight: 300;
}
.about-bio strong { color: var(--foreground); font-weight: 500; }

.about-skills-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 2rem 0 0.75rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.about-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid var(--border);
  background: hsla(220,18%,12%,0.6);
  color: var(--muted-foreground);
  transition: all 0.25s ease;
  cursor: default;
}
.about-tag:hover {
  border-color: hsla(187,80%,48%,0.4);
  color: var(--primary);
  background: hsla(187,80%,48%,0.06);
}
.about-tag.primary {
  border-color: hsla(187,80%,48%,0.3);
  background: hsla(187,80%,48%,0.08);
  color: var(--primary);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
}
.about-stat {
  padding: 1.25rem 1rem;
  background: hsla(220,18%,10%,0.5);
  text-align: center;
  transition: background 0.3s;
}
.about-stat:hover { background: hsla(220,18%,13%,0.8); }
.about-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-stat-label {
  font-size: 0.72rem;
  color: var(--muted-foreground);
  font-weight: 400;
  line-height: 1.4;
}

.about-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary-about {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--primary-foreground);
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.2s;
  box-shadow: 0 0 20px -6px hsla(187,80%,48%,0.5);
}
.btn-primary-about:hover {
  box-shadow: 0 0 32px -4px hsla(187,80%,48%,0.65);
  transform: translateY(-1px);
  color: var(--primary-foreground);
}
.btn-outline-about {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.btn-outline-about:hover {
  border-color: hsla(187,80%,48%,0.5);
  color: var(--primary);
  background: hsla(187,80%,48%,0.05);
}

.about-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
  margin: 6rem 0 0;
}

/* Mobile */
@media (max-width: 640px) {
  .about-section { padding: 5rem 0 4rem; }
  .about-image-wrap { max-width: 280px; }
  .about-exp-tag { right: -0.5rem; width: 4rem; height: 4rem; }
  .about-exp-tag .num { font-size: 1.1rem; }
  .about-stat-num { font-size: 1.4rem; }
}

/* ABout page */
/* ============================================================
   ABOUT PAGE — Hero Section CSS
   Add this to your theme's main stylesheet
   ============================================================ */

/* ── Hero grid: 55/45 split ── */
.about-hero__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

/* ── Quick-fact pills ── */
.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(26, 200, 224, 0.07);
  border: 1px solid rgba(26, 200, 224, 0.20);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary, #1ac8e0);
}
.about-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary, #1ac8e0);
  flex-shrink: 0;
}

/* ── Avatar card extras ── */
.about-avatar-divider {
  height: 1px;
  background: var(--color-border, #252e3d);
  margin: 0 auto;
  width: 100%;
}
.about-avatar-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.about-avatar-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-avatar-facts__icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

/* ── Story section: 2-col — label | content ── */
.about-story__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}
.about-story__label {
  position: sticky;
  top: 100px;
}
.about-story__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-hero__right {
    max-width: 420px;
  }
  .about-story__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-story__label {
    position: static;
  }
}

@media (max-width: 768px) {
  .about-pills { gap: 8px; }
  .about-pill  { font-size: 0.75rem; padding: 5px 12px; }
  .about-hero__right { max-width: 100%; }
}