/* ============================================
   NGUYENTHAIMMO.COM — ABOUT PAGE STYLESheet
   Thích nghi từ DESIGN-VE-TOI.md
   Brand: Warm Tech Minimal — Cam #E05A2B
   Cập nhật: Tháng 6/2026
============================================ */

.author-page {
  background-color: var(--bg-base);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M0 0v40M40 0v40M0 0h40M0 40h40' stroke='%23E8E2DA' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: var(--leading-normal);
  padding: 40px 0 80px;
}

.about-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-light);
}

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

/* Section label & heading */
.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 8px;
  display: block;
}

.section-h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary) !important;
  font-family: var(--font-heading) !important;
  margin-bottom: 24px !important;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-primary);
  display: inline-block;
  letter-spacing: var(--tracking-tight);
}

/* HERO SECTION */
.hero {
  padding: 32px 0 56px;
  border-bottom: 1px solid var(--border-light);
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  border: 3px solid var(--accent-primary);
  object-fit: cover;
  margin-bottom: 20px;
}

.hero-name {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-headline {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--accent-primary) !important;
  font-family: var(--font-heading) !important;
  line-height: var(--leading-tight) !important;
  margin-bottom: 16px !important;
  margin-top: 12px !important;
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 680px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: var(--radius-md) !important;
  font-size: var(--text-sm);
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
}

.hero-cta .btn-primary {
  background: var(--accent-primary) !important;
  color: var(--text-inverse) !important;
  box-shadow: var(--shadow-accent);
}

.hero-cta .btn-primary:hover {
  background: var(--accent-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-cta .btn-outline {
  border: 1.5px solid var(--border-medium) !important;
  color: var(--text-primary) !important;
  background: var(--bg-surface) !important;
}

.hero-cta .btn-outline:hover {
  border-color: var(--accent-primary) !important;
  color: var(--accent-primary) !important;
  background: var(--accent-primary-light) !important;
}

/* STORY SECTION (Typography) */
.about-prose p {
  font-size: 1.0625rem; /* 17px */
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-prose > p:first-of-type {
  font-size: var(--text-lg);
  color: var(--text-primary);
  font-weight: 500;
}

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

blockquote.pullquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--accent-primary-light);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--accent-primary);
  line-height: var(--leading-snug);
  font-style: normal;
  border-top: none;
  border-right: none;
  border-bottom: none;
}

/* EXPERTISE SECTION & VALUES SECTION (Grids) */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.expertise-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.expertise-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.expertise-icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}

.expertise-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.expertise-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* VALUES SECTION specific overrides */
.values-section {
  background: var(--bg-elevated);
  margin: 0 -24px;
  padding: 56px 24px;
  border-bottom: 1px solid var(--border-light);
}

.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.value-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.value-card::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.value-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* CREDENTIALS SECTION */
.screenshot-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-caption {
  padding: 12px 16px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-light);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--accent-primary);
  font-family: var(--font-heading);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* SERVICES SECTION */
.services-list {
  margin-top: 24px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  transition: all 0.2s ease;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
}

.service-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.service-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-body {
  flex: 1;
}

.service-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary) !important;
  margin-bottom: 4px !important;
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 0 !important;
}

.service-cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-primary);
  flex-shrink: 0;
  align-self: center;
  white-space: nowrap;
}

/* CONTACT SECTION */
.contact-card {
  background: var(--accent-primary-light);
  border: 1px solid rgba(224, 90, 43, 0.2);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
}

.contact-card h3 {
  font-family: var(--font-heading) !important;
  color: var(--text-primary) !important;
}

.contact-card p {
  color: var(--text-secondary);
}

.contact-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: var(--radius-md) !important;
  font-size: var(--text-sm);
  font-weight: 700;
  background: var(--accent-primary) !important;
  color: var(--text-inverse) !important;
  text-decoration: none;
  box-shadow: var(--shadow-accent);
  transition: all 0.2s ease;
}

.contact-card .btn:hover {
  background: var(--accent-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-tip {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  text-align: left;
}

/* RESPONSIVE BREAKPOINTS & ANIMATIONS */
@media (min-width: 1024px) {
  .hero-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
  .hero-avatar {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .hero-avatar {
    width: 80px;
    height: 80px;
  }
  .hero-headline {
    font-size: var(--text-3xl) !important;
  }
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  blockquote.pullquote {
    font-size: var(--text-base);
  }
  .contact-card {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

/* Scroll Animation */
@media (prefers-reduced-motion: no-preference) {
  .about-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .about-section.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-avatar {
    animation: avatar-pulse 3s ease-in-out infinite;
  }

  @keyframes avatar-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224, 90, 43, 0); }
    50%       { box-shadow: 0 0 0 6px rgba(224, 90, 43, 0.15); }
  }

  .service-cta::after {
    content: ' →';
    transition: transform 0.2s ease;
    display: inline-block;
  }

  .service-item:hover .service-cta::after {
    transform: translateX(4px);
  }
}
