/* About Page Styles */

#about-page {
  max-width: var(--container-md);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
}

#about-page h1 {
  text-align: center;
  position: relative;
  margin-bottom: var(--space-4xl);
}

#about-page h1::after {
  content: '';
  position: absolute;
  bottom: calc(-1 * var(--space-xl));
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow);
}

#about-page h2 {
  position: relative;
  padding-top: var(--space-2xl);
  margin-top: var(--space-3xl);
}

/* Gradient divider line before each h2 (except first) */
#about-page #content h2:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-divider) 50%,
    transparent 100%);
  opacity: 0.5;
}

/* Hover vertical line effect - using ::after */
#about-page h2::after {
  content: '';
  position: absolute;
  left: -16px;
  top: calc(50% + var(--space-2xl) / 2);
  transform: translateY(-50%);
  height: 24px;
  width: 5px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow);
  opacity: 0;
  transition: all var(--transition-base);
}

#about-page h2:hover::after {
  opacity: 1;
  left: -20px;
}

/* First h2 doesn't need extra top spacing */
#about-page #content h2:first-child {
  padding-top: 0;
  margin-top: var(--space-3xl);
}

/* First h2 vertical line centered on text */
#about-page #content h2:first-child::after {
  top: 50%;
}

#about-page p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-loose);
  margin-bottom: var(--space-xl);
  color: var(--color-text-secondary);
}

#about-page p:last-child {
  margin-bottom: 0;
}

#about-page p strong {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
}

/* Disclaimer styling - paragraph starting with strong */
#about-page p:has(strong:first-child) {
  background: rgba(var(--color-accent-cyan-rgb), 0.05);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-lg);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: var(--space-2xl) 0;
}

#about-page ul {
  margin: var(--space-xl) 0;
  padding-left: var(--space-3xl);
  position: relative;
  list-style: none;
}

#about-page ul::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    var(--color-primary) 0%,
    transparent 100%);
  opacity: 0.2;
  border-radius: var(--radius-full);
}

#about-page li {
  display: block;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-loose);
  margin-bottom: var(--space-lg);
  color: var(--color-text-secondary);
  position: relative;
  padding-left: var(--space-lg);
  transition: all var(--transition-base);
}

#about-page li::before {
  content: '\25C6';
  color: var(--color-primary);
  font-size: 0.6em;
  position: absolute;
  left: 0;
  top: 0.65em;
}

#about-page li:hover {
  color: var(--color-text-primary);
  transform: translateX(4px);
}

#about-page li:last-child {
  margin-bottom: 0;
}

#about-page li strong {
  display: inline;
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.back-to-home {
  text-align: center;
  margin-top: var(--space-3xl);
}

.back-to-home a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: var(--color-background-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-base);
}

.back-to-home a svg {
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.back-to-home a:hover {
  border-color: var(--color-accent-cyan);
  background: rgba(var(--color-accent-cyan-rgb), 0.1);
  transform: translateY(-2px);
  color: var(--color-accent-cyan);
}

.back-to-home a:hover svg {
  transform: translateX(-4px);
}

@media (max-width: 768px) {
  #about-page {
    padding: var(--space-2xl) var(--space-md);
  }

  #about-page h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4xl);
  }

  #about-page h1::after {
    width: 80px;
  }

  #about-page h2 {
    font-size: var(--font-size-3xl);
  }

  #about-page h2::after {
    display: none;
  }

  #about-page p {
    font-size: var(--font-size-base);
  }

  #about-page ul {
    padding-left: var(--space-xl);
  }

  #about-page li {
    display: block;
    font-size: var(--font-size-base);
    padding-left: var(--space-md);
  }

  #about-page li:hover {
    transform: translateX(0);
  }

  .back-to-home a {
    font-size: var(--font-size-base);
    padding: var(--space-sm) var(--space-xl);
  }
}
