/* ============================================================
   YENGLE — styles.css
   Base reset, CSS variables, typography, utilities, animations
   ============================================================ */

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Custom Properties ──────────────────────────────────── */
:root {
  --color-bg-dark: #0A0A0F;
  --color-bg-navy: #0F0F1A;
  --color-bg-section: #111118;
  --color-bg-light: #F4F6FA;
  --color-gradient: linear-gradient(135deg, #0A0A0F 0%, #0F0F1A 100%);
  --color-primary-blue: #1A1AFF;
  --color-primary-blue-bright: #4D4DFF;
  --color-accent-red: #E8000E;
  --color-accent-red-bright: #FF1A26;
  --color-accent-line: #1A1AFF;
  --color-white: #FFFFFF;
  --color-gray-light: #B0B8C8;
  --color-gray-mid: #6B7280;
  --color-card-bg: rgba(255,255,255,0.04);
  --color-card-border: rgba(255,255,255,0.08);
  --color-card-bg-light: #FFFFFF;
  --color-whatsapp: #25D366;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.25);
  --shadow-card-light: 0 4px 24px rgba(0,0,0,0.08);
  --transition: 0.25s ease;
}

/* ─── Body ───────────────────────────────────────────────── */
body {
  background: var(--color-bg-dark);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.1;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* ─── Layout Utilities ───────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-blue { color: var(--color-primary-blue); }
.text-red { color: var(--color-accent-red); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ─── Decorative Separator ───────────────────────────────── */
.deco-lines {
  width: 100%;
  height: 9px;
  position: relative;
  overflow: hidden;
}
.deco-lines::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--color-accent-line);
  margin-bottom: 4px;
}
.deco-lines::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--color-accent-red);
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.7s ease forwards; }

@keyframes shimmer {
  to { background-position: -200% 0; }
}
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ─── Stats Grid ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-primary-blue);
  line-height: 1;
  display: block;
}
.stat__label {
  color: var(--color-gray-light);
  font-size: 15px;
  margin-top: 8px;
}
@media (max-width: 580px) {
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── Mobile global fixes (≤ 480px) ─────────────────────── */
@media (max-width: 480px) {
  /* Section labels: reduce letter-spacing so they don't overflow */
  .section-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    max-width: 100%;
    white-space: normal;
    flex-wrap: wrap;
  }
  /* Container padding more comfortable on small phones */
  .container { padding: 0 16px; }
  /* Section heading sizes */
  .section-title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
}

@media (max-width: 390px) {
  .container { padding: 0 12px; }
}
