/* =================================================================
   AortaCFD Homepage — Hero, Gallery, Stats, Persona Cards
   ================================================================= */

/* ---- Hero Section ---- */
.hero-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 12px;
  padding: 1.8rem 2rem;
  margin-bottom: 1.5rem;
  color: #eceff1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
[data-md-color-scheme="default"] .hero-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8edf5 50%, #dce3f0 100%);
  color: #2c3e50;
}

.hero-text {
  flex: 0 0 240px;
  min-width: 180px;
}

.hero-section h1 {
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
  border-bottom: none;
  background: linear-gradient(135deg, #667eea, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-md-color-scheme="default"] .hero-section h1 {
  background: linear-gradient(135deg, #3b4fd0, #764ba2);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-tagline {
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 0.7rem;
  opacity: 0.85;
}

.hero-buttons {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.hero-buttons .md-button {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid currentColor !important;
  border-radius: 3px;
  line-height: 1.4;
  min-width: 0;
}

/* ---- Image Gallery ---- */
.hero-gallery {
  flex: 1;
  min-width: 0;
}
.hero-gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: heroFadeUp 0.6s ease-out both;
  animation-delay: 0.15s;
}
.hero-gallery-item img {
  width: 100%;
  display: block;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-section { flex-direction: column; padding: 1.2rem; }
  .hero-text { flex: none; width: 100%; }
  .hero-section h1 { font-size: 1.4rem; }
}

/* ---- Stats Bar ---- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem 1rem;
  margin: 1.5rem 0;
  background: var(--md-code-bg-color, #f5f5f5);
  border-radius: 12px;
}
.stat-item {
  text-align: center;
  min-width: 100px;
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #667eea;
  display: block;
  line-height: 1.2;
}
[data-md-color-scheme="default"] .stat-number {
  color: #3b4fd0;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--md-default-fg-color--light, #666);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
@media (max-width: 600px) {
  .stats-bar { gap: 1rem; }
  .stat-number { font-size: 1.4rem; }
}

/* ---- Persona Cards ---- */
.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.persona-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1.1rem;
  background: var(--md-code-bg-color, #f5f5f5);
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none !important;
  color: var(--md-default-fg-color, #333) !important;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.persona-card:hover {
  transform: translateY(-3px);
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}
.persona-card__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
}
[data-md-color-scheme="slate"] .persona-card__icon {
  background: rgba(102, 126, 234, 0.15);
}
.persona-card__body { flex: 1; }
.persona-card__title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 3px;
}
.persona-card__desc {
  font-size: 0.82rem;
  color: var(--md-default-fg-color--light, #666);
  line-height: 1.4;
}

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

/* ---- Section Dividers ---- */
.homepage-divider {
  border: none;
  border-top: 1px solid var(--md-default-fg-color--lightest, #e0e0e0);
  margin: 2rem 0;
}

/* ---- References: smaller, muted across all pages ---- */
h2#references,
h2#references ~ p,
h2#references ~ ol,
h2#references ~ ul,
h2#references ~ blockquote,
h3#references,
h3#references ~ p,
h3#references ~ ol {
  font-size: 0.72rem !important;
  line-height: 1.5;
  color: var(--md-default-fg-color--light, #999) !important;
}
h2#references,
h3#references {
  font-size: 0.82rem !important;
  margin-top: 1rem;
  opacity: 0.7;
}
