/* 
 * Silk Pearlescent (Section) & Bento Grid Stats Cards
 */

/* =========================================
 * 1. FULL SECTION BACKGROUND (Pearlescent & Sand)
 * ========================================= */
.about-v2 {
  position: relative;
  z-index: 1;
  background-color: transparent !important;
}

.about-v2__text-col,
.about-v2__stats {
  position: relative;
  z-index: 2;
}

/* LIGHT MODE Pearlescent for whole section */
.about-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, oklch(0.99 0.002 55) 0%, oklch(0.96 0.003 55) 50%, oklch(0.92 0.003 55) 100%);
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* DARK MODE Pearlescent for whole section */
.about-v2::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, oklch(0.14 0.005 55) 0%, oklch(0.11 0.004 55) 50%, oklch(0.18 0.006 55) 100%);
  opacity: 0;
  transition: opacity 0.8s ease;
}

[data-theme="dark"] .about-v2::before { opacity: 0; }
[data-theme="dark"] .about-v2::after { opacity: 1; }

.sand-bg--about {
  position: absolute !important;
  inset: 0;
  z-index: -1 !important;
  opacity: 0.8;
  pointer-events: none;
}
.sand-bg--about path.sand-fill { fill: transparent !important; }
.sand-bg--about path { stroke: oklch(0.50 0.01 55) !important; opacity: 0.15 !important; }

[data-theme="dark"] .sand-bg--about { opacity: 0.6; }
[data-theme="dark"] .sand-bg--about path { stroke: oklch(0.80 0.01 55) !important; opacity: 0.1 !important; }

/* =========================================
 * 1.5 DESKTOP LAYOUT - Text + Stats side by side
 * ========================================= */
.about-v2__desktop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* =========================================
 * 2. BENTO GRID CONTAINER
 * ========================================= */
.about-v2__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
@media (max-width: 500px) {
  .about-v2__stats { grid-template-columns: 1fr; }
}

/* =========================================
 * 3. BENTO GRID CARDS (General)
 * ========================================= */
.about-v2__stat-card {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  border-radius: var(--radius, 0); /* Deviation 3: Sharp corners */
  overflow: hidden;
  border: 1px solid var(--border); /* System border */
  box-shadow: none; /* Deviation 5: Flat by default in idle state */
  background-color: var(--surface-alt);
  transition: transform 0.4s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)), box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
  cursor: default;
}
[data-theme="dark"] .about-v2__stat-card {
  border-color: var(--border);
  box-shadow: none; /* Idle state flat */
  background-color: var(--surface-alt);
}

.about-v2__stat-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04); /* System Raised Light */
  border-color: var(--accent);
}
[data-theme="dark"] .about-v2__stat-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.2); /* System Raised Dark */
  border-color: var(--accent);
}

/* =========================================
 * 4. CARD SPECIFIC BACKGROUNDS
 * ========================================= */
/* Card 1: S-Waves (Flat in idle) */
.bg-swaves {
  background-color: var(--surface-alt);
}

/* Card 2: Najm Glow (Center Aura - uses Star Glow low-chroma accent) */
.bg-najmglow {
  background-color: var(--surface-alt);
  background-image: radial-gradient(circle 100px at 50% 30%, var(--accent-glow) 0%, transparent 100%);
}

/* Card 3: Curtain Glow (Top Light - Flat in idle, glow on hover) */
.bg-curtainglow {
  background-color: var(--surface-alt);
}
.bg-curtainglow:hover {
  background-image: linear-gradient(to bottom, var(--accent-glow) 0%, transparent 100%);
}

/* Card 4: Classic Gradient (Flat in idle - uses tonal layer raised) */
.bg-classicgradient {
  background-color: var(--surface-raised);
}

/* Individual Card Waves */
.card-wave {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.wave-light { opacity: 1; transition: opacity 0.5s ease; }
.wave-dark { opacity: 0; transition: opacity 0.5s ease; }
[data-theme="dark"] .wave-light { opacity: 0; }
[data-theme="dark"] .wave-dark { opacity: 1; }

/* =========================================
 * 5. CONTENT TYPOGRAPHY, NARRATIVE & ICONS
 * ========================================= */
.about-v2__stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 2;
  width: 100%;
}

/* Integrated Narrative Layout - replacing forbidden hero-metrics */
.about-v2__narrative {
  font-size: var(--fs-body, clamp(1rem, 1.1vw, 1.125rem));
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-muted);
  font-family: 'Tajawal', 'Sora', sans-serif;
  margin: 0;
  transition: color 0.3s ease;
}
.about-v2__narrative strong {
  color: var(--text);
  font-weight: 700;
  transition: color 0.3s ease;
}

.about-v2__stat-icon {
  width: 44px;
  height: 44px;
  color: var(--accent); /* System low-chroma accent color */
  filter: none; /* No shadow in idle state (Flat-by-Default) */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease, color 0.4s ease;
  z-index: 2;
  margin-bottom: 0.5rem;
}
.about-v2__stat-icon * {
  stroke-width: 1.5;
}
.about-v2__stat-card:hover .about-v2__stat-icon {
  transform: scale(1.15) rotate(8deg);
  filter: drop-shadow(0 0 12px var(--accent-glow)); /* Star glow on hover */
}
