/* =========================================
   KALSEPADHUNGA — ABOUT PAGE
   Uses the shared theme variables from the app.
========================================= */

/* =========================================
   PAGE BASE
========================================= */

.about-page {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  margin: 0;

  width: min(100% - 2rem, 68.75rem);
  margin-inline: auto;

  color: var(--text-primary);
  background: transparent;
  overflow-x: hidden;
}

.about-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--gradient-main);
}

.about-container {
  width: min(100% - clamp(1.25rem, 4vw, 2rem), 1100px);
  margin-inline: auto;
}

/* =========================================
   HEADER
========================================= */

.about-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: calc(100% - 1rem);
  min-height: 4.5rem;
  margin: 0 auto;
  padding: 0.75rem 0.85rem;
  background: var(--home-header-bg);
  border: 1px solid var(--home-header-border);
  border-top: 0;
  border-radius: 0 0 1.4rem 1.4rem;
  box-shadow: var(--home-header-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.back-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--text-primary);
  text-decoration: none;
  box-sizing: border-box;
  background: var(--home-header-button-bg);
  border: 1px solid var(--home-header-button-border);
  border-radius: 50%;
  box-shadow: var(--home-header-button-shadow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.back-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.back-icon:hover {
  background: var(--home-header-bg);
  border-color: var(--home-header-border);
  transform: translateY(-1px);
}

.back-icon:focus-visible {
  outline: 3px solid var(--brand-text-soft);
  outline-offset: 3px;
}

/* =========================================
   SHARED SECTION STYLES
========================================= */

.about-eyebrow {
  display: inline-block;
  margin: 0 0 clamp(1.1rem, 3vw, 1.5rem);
  padding: 0.55rem 1rem;
  color: var(--brand-text);
  background: var(--background-glass);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: clamp(0.68rem, 1.2vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.about-section-content {
  width: min(100%, 900px);
  margin-inline: auto;
  text-align: center;
}

.about-section-title {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.about-section-title span {
  display: block;
  color: var(--brand-text);
}

.about-section-description,
.about-intro-description,
.about-vision-description,
.about-how-description,
.about-interests-description,
.about-why-description,
.about-developer-description,
.about-missing-description,
.about-final-description {
  max-width: 680px;
  margin: clamp(1rem, 2.5vw, 1.5rem) auto 0;
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2vw, 1rem);
  line-height: 1.8;
}

/* =========================================
   SECTION 1 — HERO
========================================= */

.about-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vw, 8rem) 1rem clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  text-align: center;
}

.about-hero::before {
  position: absolute;
  z-index: -1;
  top: 8%;
  left: 50%;
  width: min(75vw, 520px);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: var(--about-hero-glow);
  transform: translateX(-50%);
  pointer-events: none;
}

.about-hero-content {
  width: min(100%, 800px);
}

.about-hero h1 {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2.5rem, 9vw, 6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.about-hero h1 span {
  color: var(--brand-text);
  font-size: clamp(1.35rem, 4.5vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.about-hero-description {
  max-width: 650px;
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.8;
}

.about-hero-button,
.about-how-button,
.about-final-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  margin-top: clamp(1.5rem, 4vw, 2rem);
  padding: 0.85rem 1.5rem;
  color: var(--text-on-primary);
  background: var(--gradient-btn);
  border: 1px solid var(--primary);
  border-radius: 999px;
  box-shadow: var(--card-shadow);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.about-hero-button span,
.about-how-button span,
.about-final-button span {
  font-size: 1.2rem;
  transition: transform 180ms ease;
}

.about-hero-button:hover,
.about-how-button:hover,
.about-final-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  filter: brightness(1.04);
}

.about-hero-button:hover span,
.about-how-button:hover span,
.about-final-button:hover span {
  transform: translateX(3px);
}

.about-hero-button:focus-visible,
.about-how-button:focus-visible,
.about-final-button:focus-visible {
  outline: 3px solid var(--brand-text-soft);
  outline-offset: 4px;
}

.about-hero-img-cont {
  display: grid;
  place-items: center;
  width: min(85%, 25rem);
  min-height: 9rem;
  margin: clamp(1.5rem, 4vw, 2rem) auto 0;
  padding: 1rem;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--background-glass);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  box-shadow: var(--card-shadow);
}

.about-hero-brand-mark {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  color: var(--brand-text);
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.08em;
  box-shadow: var(--card-shadow);

  overflow: hidden;
}

/* =========================================
   SECTION 2 — INTRODUCTION
========================================= */

.about-intro,
.about-vision,
.about-how,
.about-interests,
.about-why,
.about-developer,
.about-missing,
.about-final-cta {
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.about-intro-content {
  width: min(100%, 850px);
  margin-inline: auto;
  text-align: center;
}

.about-intro h2,
.about-vision h2,
.about-how h2,
.about-interests h2,
.about-why h2,
.about-missing h2,
.about-final-cta h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.about-intro h2 span,
.about-vision h2 span,
.about-how h2 span,
.about-interests h2 span,
.about-why h2 span,
.about-final-cta h2 span {
  display: block;
  color: var(--brand-text);
}

.about-intro-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(0.875rem, 2vw, 1rem);
  margin-top: clamp(2rem, 5vw, 3rem);
  text-align: left;
}

.about-feature {
  padding: clamp(1.25rem, 3vw, 1.5rem);
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease;
}

.about-feature:hover {
  transform: translateY(-5px);
}

.about-feature-number {
  display: inline-block;
  margin-bottom: clamp(0.75rem, 2.5vw, 1.5rem);
  color: var(--brand-text);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.about-feature h3,
.about-how-card h3,
.about-interest-card h3,
.about-why-card h3 {
  margin: 0 0 0.65rem;
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 500;
}

.about-feature p,
.about-how-card p,
.about-interest-card p,
.about-why-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* =========================================
   SECTION 3 — THE IDEA / VISION
========================================= */

.about-vision-content {
  width: min(100%, 850px);
  margin-inline: auto;
  text-align: center;
}

.about-vision-highlight {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  overflow: hidden;
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  box-shadow: var(--card-shadow);
}

.about-vision-mark {
  display: block;
  height: 2.5rem;
  color: var(--brand-text);
  font-size: 4rem;
  line-height: 1;
  opacity: 0.8;
}

.about-vision-highlight p {
  max-width: 600px;
  margin: 1rem auto 1.5rem;
  color: var(--text-primary);
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 500;
  line-height: 1.6;
}

.about-vision-tag {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

/* =========================================
   SECTION 4 — HOW IT WORKS
========================================= */

.about-how-content {
  width: min(100%, 950px);
  margin-inline: auto;
  text-align: center;
}

.about-how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-top: clamp(2rem, 5vw, 3rem);
  text-align: left;
}

.about-how-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  box-shadow: var(--card-shadow);
}

.about-how-number {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--brand-text);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* =========================================
   SECTION 5 — PLATFORM FEATURES
========================================= */

.about-interests-content,
.about-why-content {
  width: min(100%, 950px);
  margin-inline: auto;
  text-align: center;
}

.about-interests-grid,
.about-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-top: clamp(2rem, 5vw, 3rem);
  text-align: left;
}

.about-interest-card,
.about-why-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  box-shadow: var(--card-shadow);
  transition: transform 180ms ease;
}

.about-interest-card:hover,
.about-why-card:hover {
  transform: translateY(-4px);
}

.about-interest-icon,
.about-why-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  color: var(--brand-text);
  background: var(--background-glass);
  border: 1px solid var(--card-border);
  border-radius: 0.85rem;
  font-size: 1.4rem;
}

/* =========================================
   SECTION 6 — WHY / OUR VISION
========================================= */

.about-why-card h3 {
  line-height: 1.4;
}

/* =========================================
   SECTION 7 — DEVELOPER
========================================= */

.about-developer-content {
  width: min(100%, 950px);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  box-sizing: border-box;
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.about-developer h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

#about-developer-role {
  display: block;
  margin: 1rem 0 0;
  color: var(--brand-text);
  font-size: 1.05rem;
  font-weight: 500;
}

/* =========================================
   SECTION 8 — FEEDBACK
========================================= */

.about-missing-content {
  width: min(100%, 950px);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  box-sizing: border-box;
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  box-shadow: var(--card-shadow);
  text-align: center;
}

/* =========================================
   SECTION 9 — FINAL CTA
========================================= */

.about-final-content {
  width: min(100%, 850px);
  margin-inline: auto;
  text-align: center;
}

.about-final-tagline {
  margin: 2rem 0 0;
  color: var(--brand-text);
  font-size: clamp(1rem, 3vw, 1.2rem);
  letter-spacing: 0.02em;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 600px) {
  .about-container {
    width: min(100% - 1.5rem, 1100px);
  }

  .about-hero {
    padding-top: 3.5rem;
  }

  .about-hero-img-cont {
    width: 100%;
    min-height: 7.5rem;
  }

  .about-intro,
  .about-vision,
  .about-how,
  .about-interests,
  .about-why,
  .about-developer,
  .about-missing,
  .about-final-cta {
    padding-block: 3rem;
  }

  .about-developer-content,
  .about-missing-content {
    padding: 1.5rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-page *,
  .about-page *::before,
  .about-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
