:root {
  /* rely on main style.css variables where available */
  --accent: var(--majorelle-blue, #5b53e9);
  --muted: #6b6b73;
  --card-bg: #ffffff;
  --radius: 12px;
  --text: var(--raisin-black-1, #111);
  --glass: rgba(255, 255, 255, 0.7);
}

.about-hero {
  margin-top: 76px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(91, 83, 233, 0.03),
    rgba(245, 245, 255, 0.02)
  );
}

.about-hero .hero-title {
  /* larger, responsive hero size */
  font-size: 80px;
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--text);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  word-break: keep-all;
}

.about-hero .hero-sub {
  color: var(--muted);
  max-width: 920px;
  margin: 0.6rem auto 0;
  font-size: 1.7rem;
  line-height: 1.75;
}

/* Story */
.about-story {
  padding: 56px 0;
}
.about-story .content {
  display: flex;
  max-width: 980px;
  margin: 0 auto;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
}

/* Values */
.about-values {
  padding-top: 12px;
  padding-bottom: 56px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.value-card {
  background: linear-gradient(
    180deg,
    var(--card-bg),
    rgba(250, 250, 250, 0.98)
  );
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 14px 40px rgba(12, 14, 30, 0.06);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(12, 14, 30, 0.09);
}

.value-card .card-icon {
  font-size: 22px;
  color: var(--accent);
}

.value-card h4 {
  margin: 6px 0 0;
  color: var(--accent);
  font-size: 1.06rem;
}

/* Why choose us */
.about-why {
  padding-bottom: 48px;
}
.why-list {
  max-width: 920px;
  margin: 18px auto 0;
  color: var(--text);
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.why-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(250, 250, 250, 0.98),
    rgba(245, 245, 245, 0.98)
  );
  border: 1px solid rgba(10, 10, 10, 0.04);
  box-shadow: 0 8px 20px rgba(12, 14, 30, 0.03);
}
.why-list ion-icon {
  color: var(--accent);
  font-size: 1.25rem;
  margin-top: 4px;
}

/* Founder */
.about-founder {
  padding-top: 32px;
  padding-bottom: 56px;
}
.founder {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.founder .photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(12, 14, 30, 0.08);
  min-height: 420px;
  background: linear-gradient(
    180deg,
    rgba(246, 246, 250, 0.98),
    rgba(255, 255, 255, 0.98)
  );
}

.founder .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder .bio {
  color: var(--text);
  line-height: 1.75;
}
.founder .bio h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

/* CTA */
.about-cta {
  padding: 56px 0 96px;
  background: linear-gradient(
    180deg,
    rgba(250, 250, 250, 0.97),
    rgba(255, 255, 255, 0.99)
  );
}
.about-cta .btn {
  margin-top: 14px;
}

/* Reveal animation (works with existing class 'reveal' + JS) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Small helpers */
.card-text {
  color: var(--muted);
  font-size: 1.25rem;
}
.section-title {
  margin-bottom: 8px;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  height: fit-content;
}

.team-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  align-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.team-photo {
  width: 120px;
  border-radius: 999px;
  aspect-ratio: 1;
  overflow: hidden;
  display: inline-block;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  align-self: center;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-name {
  align-self: center;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.team-role {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 720px) {
  .about-story .content {
    flex-direction: column;
  }
}
@media (max-width: 1100px) {
  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .founder {
    grid-template-columns: 1fr;
  }
  .founder .photo {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .about-hero {
    padding: 56px 0 28px;
  }
  .about-hero .hero-title {
    font-size: clamp(3.6rem, 7vw, 2.2rem);
  }
  .founder .photo {
    min-height: 260px;
  }
  .value-card {
    padding: 16px;
    min-height: 120px;
  }
  .why-list li {
    padding: 10px 12px;
  }
}

/* Responsive refinements for the About section (overrides & improvements) */
@media (min-width: 1201px) {
  /* moderate hero padding on very large screens */
  .about-hero {
    padding-top: 120px;
  }
  .about-hero .hero-title {
    font-size: clamp(2.6rem, 2.8vw, 3.2rem);
  }
  .about-hero .hero-sub {
    font-size: 1.15rem;
  }
}

@media (max-width: 1200px) {
  .about-hero {
    padding-top: 88px;
  }
  .about-hero .hero-title {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
  }
  .about-hero .hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    max-width: 780px;
  }
}

/* Make hero more balanced and readable on small screens */
@media (max-width: 720px) {
  .about-hero {
    padding: 48px 16px;
    text-align: center;
  }
  .about-hero .hero-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    margin-bottom: 8px;
  }
  .about-hero .hero-sub {
    font-size: 0.98rem;
    line-height: 1.6;
    padding: 0 6px;
  }
  .about-hero .hero-title,
  .about-hero .hero-sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Story content */
.about-story .content {
  font-size: clamp(0.98rem, 1.1vw, 1.05rem);
  max-width: 900px;
  padding: 0 20px;
}

/* Values grid: responsive columns */
.values-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* Reduce card height on small screens and preserve spacing */
.value-card {
  min-height: 120px;
  padding: 18px;
}

/* Founder / team area responsiveness */
.founder {
  grid-template-columns: 360px 1fr;
  gap: 24px;
  padding: 0 20px;
}

/* Stack founder on narrow widths */
@media (max-width: 980px) {
  .founder {
    grid-template-columns: 1fr;
  }
  .founder .photo {
    min-height: 300px;
  }
}

/* Team grid responsive (auto-fit, readable cards) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

/* Team card: horizontal on desktop, compact on small screens */
.team-card {
  background: linear-gradient(180deg, var(--card-bg), #fbfdff);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 84px;
}

/* Team photo scaling */
.team-photo {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  box-shadow: 0 8px 24px rgba(12, 14, 30, 0.06);
}

/* Meta text wrap */
.team-meta {
  min-width: 0;
  overflow: hidden;
}
.team-name {
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.team-role {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Small screens: stack vertically for clarity */
@media (max-width: 640px) {
  .team-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 12px;
    gap: 8px;
  }
  .team-photo {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
  }
  .team-name,
  .team-role {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

/* CTA and spacing tweaks for small screens */
.about-cta {
  padding: 40px 16px 72px;
}
.about-cta .btn {
  width: auto;
}

/* Small visual polish */
@media (prefers-reduced-motion: reduce) {
  .value-card,
  .team-card,
  .founder,
  .reveal {
    transition: none !important;
  }
}
