/* ============================================
   About Page - Panel Layout
   ============================================ */

.about-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ---- Section Navigator (sticky pills) ---- */
.section-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.section-nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.section-nav-inner::-webkit-scrollbar { display: none; }

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---- Panel (each section block) ---- */
.about-panel {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 120px;
}

.about-panel:last-of-type {
  border-bottom: none;
}

/* ---- Panel Header ---- */
.panel-header {
  margin-bottom: 32px;
}

.panel-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.panel-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
}

.panel-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.panel-body { /* content container */ }

/* ---- Panel: Hero ---- */
#panel-hero {
  padding-top: 48px;
  text-align: center;
}

.panel-hero-content {
  max-width: 560px;
  margin: 0 auto;
}

.hero-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.25);
}

.hero-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

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

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: all 0.25s ease;
}

.skill-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.skill-card.skill-highlight {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--surface) 100%);
}

.skill-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.skill-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.skill-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.skill-tag {
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 11px;
  font-weight: 500;
}

/* ---- Services List ---- */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.service-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.service-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  flex-shrink: 0;
  line-height: 1;
}

.service-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.service-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Media Grid ---- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.media-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s ease;
  color: var(--text);
  text-decoration: none;
}

.media-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--text);
}

.media-card-current {
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--surface) 100%);
  border-color: var(--accent);
}

.media-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.media-icon { font-size: 26px; }
.media-name { font-size: 15px; font-weight: 700; }

.media-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.media-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.media-tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 11px;
  font-weight: 500;
}

.media-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

/* ---- Themes Grid ---- */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.theme-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.theme-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.theme-num {
  font-size: 44px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.08;
  position: absolute;
  top: 14px;
  right: 18px;
  line-height: 1;
}

.theme-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}

.theme-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
  position: relative;
}

.theme-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: relative;
}

.theme-keywords span {
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 11px;
  font-weight: 500;
}

/* ---- Contact CTA ---- */
.cta-box {
  padding: 36px;
  background: linear-gradient(135deg, var(--accent-light), #f0f4ff);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  text-align: center;
}

.cta-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  background: var(--accent);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .about-main { padding: 0 16px 60px; }
  .section-nav-inner { padding: 0 16px; }

  .hero-name { font-size: 26px; }
  .hero-tagline { font-size: 14px; }
  .hero-desc { font-size: 14px; }
  .hero-stats { gap: 14px; }
  .stat-divider { display: none; }

  .panel-title { font-size: 22px; }
  .about-panel { padding: 40px 0; }

  .skills-grid { grid-template-columns: 1fr; }
  .service-item { padding: 16px; gap: 12px; }
  .media-grid { grid-template-columns: 1fr; }
  .themes-grid { grid-template-columns: 1fr; }

  .cta-box { padding: 24px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn-primary, .cta-actions .btn-secondary { width: 100%; justify-content: center; }
}
