/* ===================================================
   About Page — Component-specific styles
   (Global dark theme is now in style.css)
   =================================================== */

/* ---------- Page Wrapper ---------- */
.about-page {
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--text-primary);
  padding: 0 0 4rem;
  position: relative;
}

/* ---------- Hero ---------- */
.about-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2rem 0 2rem;
  position: relative;
}

.about-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
}

.about-hero h1 {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #fff;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.about-hero h1::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.8rem;
  background: var(--accent-pink);
  margin-left: 6px;
  vertical-align: middle;
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.about-hero .role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.about-hero .role a {
  color: var(--accent-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 156, 0.3);
  transition: all 0.2s;
}

.about-hero .role a:hover {
  color: #fff;
  border-color: var(--accent-green);
  text-shadow: 0 0 12px rgba(0, 255, 156, 0.5);
}

/* ---------- Social Links ---------- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.social-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-card);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.social-links a:hover {
  color: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 0 12px rgba(0, 255, 156, 0.15), inset 0 0 12px rgba(0, 255, 156, 0.05);
  transform: translateY(-1px);
  text-shadow: none;
}

.social-links a svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  vertical-align: -1px;
}

/* ---------- About Summary ---------- */
.about-summary {
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
  border-left: 2px solid var(--accent-green);
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.about-summary strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-summary em {
  color: var(--accent-cyan);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ---------- Section Headings — Terminal style ---------- */
.section-heading {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  margin: 3rem 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--accent-green);
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.section-heading::before {
  content: '> ';
  color: var(--text-muted);
}

.section-heading .icon {
  margin-right: 0.3rem;
}

/* ---------- Stats Bar — Glowing panels ---------- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 2rem 0 1.5rem;
  padding: 1.2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  min-width: 120px;
  transition: all 0.3s ease;
  position: relative;
}

.stat-item:hover {
  border-color: var(--accent-green);
  box-shadow: 0 0 20px rgba(0, 255, 156, 0.1);
  transform: translateY(-2px);
}

.stat-item .stat-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-green);
  text-shadow: 0 0 20px rgba(0, 255, 156, 0.3);
}

.stat-item .stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* ---------- Talks / Timeline ---------- */
.talks-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.talk-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
  transition: background 0.2s;
  border-radius: 3px;
}

.talk-item:hover {
  background: var(--bg-card);
}

.talk-item:last-child {
  border-bottom: none;
}

.talk-item .talk-details .title {
  font-weight: 500;
  color: var(--text-primary);
}

.talk-item .talk-details .title a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 1px solid transparent;
}

.talk-item .talk-details .title a:hover {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
  text-shadow: 0 0 10px rgba(0, 255, 156, 0.3);
}

.talk-item .talk-details .venue {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.talk-item .talk-details p {
  color: var(--text-secondary) !important;
  font-size: 0.84rem !important;
}

/* ---------- Tags — Cyber badges ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid;
}

.tag-talk     { color: var(--accent-cyan); background: rgba(0, 212, 255, 0.08); border-color: rgba(0, 212, 255, 0.2); }
.tag-attend   { color: var(--text-muted); background: rgba(255,255,255,0.03); border-color: var(--border-color); }
.tag-featured { color: var(--accent-pink); background: rgba(255, 46, 136, 0.08); border-color: rgba(255, 46, 136, 0.2); }
.tag-oss      { color: var(--accent-green); background: rgba(0, 255, 156, 0.06); border-color: rgba(0, 255, 156, 0.2); }
.tag-cncf     { color: var(--accent-cyan); background: rgba(0, 212, 255, 0.06); border-color: rgba(0, 212, 255, 0.2); }
.tag-infracloud { color: var(--accent-blue); background: rgba(74, 108, 247, 0.08); border-color: rgba(74, 108, 247, 0.2); }
.tag-fluxninja  { color: var(--accent-cyan); background: rgba(0, 212, 255, 0.06); border-color: rgba(0, 212, 255, 0.2); }
.tag-calyptia   { color: var(--accent-green); background: rgba(0, 255, 156, 0.06); border-color: rgba(0, 255, 156, 0.2); }
.tag-dzone      { color: #ffaa00; background: rgba(255, 170, 0, 0.06); border-color: rgba(255, 170, 0, 0.2); }
.tag-blog       { color: var(--accent-cyan); background: rgba(0, 212, 255, 0.06); border-color: rgba(0, 212, 255, 0.2); }

/* ---------- Blog Lists — Collapsible terminal sections ---------- */
.collapsible-section {
  margin-bottom: 0.5rem;
}

.collapsible-section details {
  border: none;
  border-bottom: 1px solid var(--border-color);
}

.collapsible-section details summary {
  padding: 0.7rem 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  transition: color 0.2s;
}

.collapsible-section details summary:hover {
  color: var(--accent-green);
}

.collapsible-section details summary::-webkit-details-marker {
  display: none;
}

.collapsible-section details summary::before {
  content: '▸';
  font-size: 0.75rem;
  color: var(--accent-green);
  transition: transform 0.2s;
}

.collapsible-section details[open] summary::before {
  transform: rotate(90deg);
}

.collapsible-section details .content {
  padding: 0 0 0.5rem 1rem;
  border-left: 1px solid var(--border-color);
  margin-left: 0.3rem;
}

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-list li {
  padding: 0.3rem 0;
  font-size: 0.84rem;
  line-height: 1.6;
}

.blog-list li::before {
  content: '→ ';
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.blog-list li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.blog-list li a:hover {
  color: var(--accent-green);
  text-shadow: 0 0 8px rgba(0, 255, 156, 0.2);
}

/* ---------- OSS Grid — Terminal cards ---------- */
.oss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0.8rem;
}

.oss-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.oss-card:hover {
  border-color: rgba(0, 255, 156, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 156, 0.05);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.oss-card .project-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.oss-card .project-name a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.oss-card .project-name a:hover {
  color: var(--accent-green);
  text-shadow: 0 0 8px rgba(0, 255, 156, 0.3);
}

.oss-card .project-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.oss-card .project-desc a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.oss-card .project-desc a:hover {
  color: var(--accent-green);
}

.oss-card .project-link a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-green);
  text-decoration: none;
}

.oss-card .project-link a:hover {
  text-shadow: 0 0 10px rgba(0, 255, 156, 0.4);
}

/* ---------- Video — Framed terminal style ---------- */
.video-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  position: relative;
}

.video-card::before {
  content: '[ ● PLAYING ]';
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-green);
  padding: 0.5rem 0.8rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.1em;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

/* ---------- Achievements ---------- */
.achievements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s;
  border-radius: 3px;
}

.achievement-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.achievement-item:last-child {
  border-bottom: none;
}

.achievement-item .emoji {
  flex-shrink: 0;
}

.achievement-item .text {
  color: inherit;
}

.achievement-item .text strong {
  color: var(--text-primary);
}

.achievement-item .text a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s;
}

.achievement-item .text a:hover {
  color: var(--accent-green);
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.skill-card {
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-green);
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-card:hover {
  border-color: rgba(0, 255, 156, 0.25);
  box-shadow: 0 0 15px rgba(0, 255, 156, 0.05);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card .skill-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  margin-bottom: 0.5rem;
}

.skill-card .skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.skill-card .skill-items span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.skill-card .skill-items span::after {
  content: ' ·';
  color: var(--text-muted);
}

.skill-card .skill-items span:last-child::after {
  content: '';
}

/* ---------- CTA Footer ---------- */
.about-cta {
  text-align: center;
  margin-top: 3.5rem;
  padding: 2.5rem 0;
  position: relative;
}

.about-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
}

.about-cta p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-family: var(--font-mono);
}

.about-cta .social-links {
  margin-top: 1.2rem;
}

.about-cta .social-links a {
  color: var(--accent-green);
  border-color: rgba(0, 255, 156, 0.25);
}

.about-cta .social-links a:hover {
  background: rgba(0, 255, 156, 0.08);
  box-shadow: 0 0 20px rgba(0, 255, 156, 0.15);
}

/* ---------- Inline style overrides ---------- */
.about-page p[style*="color:#555"],
.about-page p[style*="color:#666"] {
  color: var(--text-secondary) !important;
}

.about-page p[style*="color:#555"] a,
.about-page p[style*="color:#666"] a {
  color: var(--accent-cyan) !important;
}

.about-page h3[style] {
  color: var(--text-primary) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.85rem !important;
  text-transform: lowercase;
}

.about-page h3[style]::before {
  content: '└─ ';
  color: var(--text-muted);
}

/* Override main h2/h3 prefixes inside about-page */
.about-page main h2::before,
.about-page main h3::before {
  content: '';
}

/* ---------- Animation ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-bar,
.talks-list,
.oss-grid,
.achievements-grid,
.skills-grid,
.video-card {
  animation: fadeUp 0.6s ease-out;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .about-hero h1 {
    font-size: 1.6rem;
  }
  .stats-bar {
    gap: 0.8rem;
  }
  .stat-item {
    min-width: 100px;
    padding: 0.8rem 1rem;
  }
  .oss-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .social-links {
    gap: 0.5rem;
  }
}
