/* ============================================
   ABOUT PAGE - Specific Styles
   Matches homepage (index) design language
   ============================================ */

/* First section (hero) always visible; other sections animate in on scroll via .is-visible */
main > section:first-child {
  opacity: 1 !important;
  transform: none !important;
}

/* Page hero – two columns: text left, image right */
.page-hero {
  position: relative;
  padding: calc(200px) var(--space-xl) var(--space-3xl);
  min-height: 60vh;
  display: flex;
  align-items: center;  
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.92) 45%, rgba(14, 165, 233, 0.2) 100%),
    linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  overflow: hidden;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.page-hero-content {
  text-align: left;
  max-width: 520px;
}

.page-hero-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-lg);
  padding: var(--space-xs) var(--space-md);
  background: rgba(14, 165, 233, 0.22);
  border-radius: var(--radius-full);
  width: fit-content;
}

.page-hero-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.page-hero-highlight {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

/* Image: tilt, blend, and floating effect */
.page-hero-image-wrap {
  position: relative;
  max-width: 420px;
  margin-left: auto;
  aspect-ratio: 4 / 3;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 20px;
  overflow: hidden;
  transform: perspective(800px) rotateY(-4deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.25),
    0 24px 48px -8px rgba(0, 0, 0, 0.35),
    0 48px 80px -24px rgba(0, 0, 0, 0.4),
    0 0 120px -20px rgba(14, 165, 233, 0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.page-hero-image-wrap:hover {
  transform: perspective(800px) rotateY(-2deg) translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 32px 64px -8px rgba(0, 0, 0, 0.4),
    0 64px 100px -24px rgba(0, 0, 0, 0.45),
    0 0 140px -16px rgba(14, 165, 233, 0.25);
}

.page-hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 85% at 60% 50%,
    transparent 50%,
    rgba(15, 23, 42, 0.25) 75%,
    rgba(15, 23, 42, 0.7) 100%
  );
  pointer-events: none;
}

.page-hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  filter: brightness(1);
}

@media (max-width: 900px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .page-hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-hero-label {
    margin-left: auto;
    margin-right: auto;
  }

  .page-hero-image-wrap {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* About intro – Our mission section, bubble decor */
.about-intro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-bg) 0%, white 100%);
}

.about-intro-container {
  position: relative;
  z-index: 1;
}

.about-intro-header {
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.about-intro-header .section-label {
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.about-intro-header .section-title {
  color: var(--color-primary);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-md);
}

.about-intro-header .section-desc {
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* Two rows: mission card (row 1), value cards (row 2) */
.about-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  max-width: 1000px;
  margin: 0 auto;
}

/* Row 1: full-width mission card */
.about-mission-card {
  background: white;
  border-radius: 20px;
  padding: var(--space-2xl) var(--space-3xl);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(14, 165, 233, 0.06);
}

.about-mission-inner {
  max-width: 72ch;
  margin: 0 auto;
}

.about-mission-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.about-mission-text {
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.01em;
}

.about-mission-text:last-child {
  margin-bottom: 0;
}

/* Row 2: four horizontal value cards */
.about-values-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* Flip card: front = icon + title, back = description (darker), horizontal flip on hover */
.about-value-card {
  perspective: 800px;
  min-height: 200px;
}

.about-value-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.about-value-card:hover .about-value-card-inner {
  transform: rotateY(180deg);
}

.about-value-card-front,
.about-value-card-back {
  position: absolute;
  inset: 0;
  padding: var(--space-xl) var(--space-lg);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-value-card-front {
  background: white;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.about-value-card-back {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, transparent 100%, rgba(14, 165, 233, 0.06) 0%),
    linear-gradient(180deg, var(--color-primary-light) 100%, var(--color-primary) 50%);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
  transform: rotateY(180deg);
}

.about-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
  color: white;
}

.about-value-icon svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.about-value-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.about-value-card-back .about-value-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 900px) {
  .about-values-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .about-mission-card {
    padding: var(--space-xl) var(--space-lg);
  }

  .about-values-row {
    grid-template-columns: 1fr;
  }
}

/* Stats – modern cards with number animation */
.stats-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-bg) 0%, #f1f5f9 100%);
  padding: var(--space-3xl) 0;
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

/* Bubbles flowing right to left – mix of visible/large and subtle/small */
.stats-flow-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.stats-bubble {
  position: absolute;
  border-radius: 50%;
  left: 100%;
  animation: stats-bubble-flow 20s linear infinite;
}

/* Large, more visible */
.stats-bubble--lg {
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.45), rgba(14, 165, 233, 0.18));
  opacity: 0.85;
}

/* Medium */
.stats-bubble--md {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.35), rgba(14, 165, 233, 0.12));
  opacity: 0.7;
}

/* Small, less visible */
.stats-bubble--sm {
  width: 11px;
  height: 11px;
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.22), rgba(14, 165, 233, 0.08));
  opacity: 0.5;
}

/* Extra small, subtle */
.stats-bubble--xs {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.05));
  opacity: 0.35;
}

.stats-bubble--1 { top: 8%; animation-delay: 0s; }
.stats-bubble--2 { top: 22%; animation-delay: -3s; }
.stats-bubble--3 { top: 38%; animation-delay: -7s; }
.stats-bubble--4 { top: 52%; animation-delay: -1s; }
.stats-bubble--5 { top: 68%; animation-delay: -5s; }
.stats-bubble--6 { top: 82%; animation-delay: -9s; }
.stats-bubble--7 { top: 15%; animation-delay: -12s; }
.stats-bubble--8 { top: 45%; animation-delay: -4s; }
.stats-bubble--9 { top: 5%; animation-delay: -2s; }
.stats-bubble--10 { top: 28%; animation-delay: -6s; }
.stats-bubble--11 { top: 58%; animation-delay: -10s; }
.stats-bubble--12 { top: 72%; animation-delay: -14s; }
.stats-bubble--13 { top: 92%; animation-delay: -8s; }
.stats-bubble--14 { top: 42%; animation-delay: -11s; }
.stats-bubble--15 { top: 12%; animation-delay: -15s; }
.stats-bubble--16 { top: 35%; animation-delay: -2s; }
.stats-bubble--17 { top: 62%; animation-delay: -6s; }
.stats-bubble--18 { top: 78%; animation-delay: -13s; }
.stats-bubble--19 { top: 18%; animation-delay: -9s; }
.stats-bubble--20 { top: 88%; animation-delay: -4s; }
.stats-bubble--21 { top: 48%; animation-delay: -16s; }
.stats-bubble--22 { top: 25%; animation-delay: -8s; }
.stats-bubble--23 { top: 75%; animation-delay: -1s; }
.stats-bubble--24 { top: 2%; animation-delay: -5s; }
.stats-bubble--25 { top: 95%; animation-delay: -10s; }
.stats-bubble--26 { top: 32%; animation-delay: -17s; }
.stats-bubble--27 { top: 55%; animation-delay: -3s; }
.stats-bubble--28 { top: 65%; animation-delay: -11s; }

@keyframes stats-bubble-flow {
  from { transform: translateX(0); }
  to { transform: translateX(-120vw); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: white;
  padding: var(--space-2xl) var(--space-xl);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(14, 165, 233, 0.1);
}

.stat-number {
  display: block;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
  min-height: 1.2em;
}

.stat-number--text {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--color-primary);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.stats-section.is-visible .stat-number--text {
  opacity: 1;
  transform: translateY(0);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .stat-card {
    padding: var(--space-xl) var(--space-lg);
  }
}

/* Why Choose Us – one big card, text left, image right, darker background */
.why-choose-section {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.why-choose-container {
  position: relative;
  z-index: 1;
}

.why-choose-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, transparent 50%, rgba(14, 165, 233, 0.06) 100%),
    linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.why-choose-content {
  padding: var(--space-3xl) var(--space-2xl) var(--space-3xl) var(--space-3xl);
  text-align: left;
}

.why-choose-content .section-label {
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.why-choose-heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.why-choose-intro {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.why-choose-trust {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2xl);
}

.why-choose-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-choose-list li {
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.why-choose-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.why-choose-item-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.why-choose-item-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin: 0;
}

.why-choose-image-wrap {
  min-height: 320px;
  background: rgba(0, 0, 0, 0.2);
}

.why-choose-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}


@media (max-width: 900px) {
  .why-choose-card {
    grid-template-columns: 1fr;
  }

  .why-choose-image-wrap {
    order: -1;
    min-height: 280px;
  }

  .why-choose-content {
    padding: var(--space-2xl) var(--space-xl);
  }
}
