/* ==========================================================================
   MEiQ — About Page Stylesheet
   Production CSS: Replaces Tailwind CDN with native, scoped utility classes
   and all component styles for the About page.
   ========================================================================== */

/* ── Google Fonts (kept as external link; embed below if self-hosting) ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── CSS Design Tokens ── */
:root {
  --meiq-bg:         #050810;
  --meiq-bg2:        #080d1a;
  --meiq-card:       #0d1526;
  --meiq-cardHover:  #111e35;
  --meiq-accent:     #63b3ed;
  --meiq-accent2:    #4299e1;
  --meiq-border:     rgba(255,255,255,0.08);
  --meiq-text:       #e2e8f0;
  --meiq-muted:      #718096;
  --meiq-subtle:     #4a5568;
  --font-display:    'Syne', sans-serif;
  --font-body:       'DM Sans', sans-serif;
}

/* ==========================================================================
   1. BASE / RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--meiq-bg);
  color: var(--meiq-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar               { width: 6px; }
::-webkit-scrollbar-track         { background: #050810; }
::-webkit-scrollbar-thumb         { background: rgba(99,179,237,0.3); border-radius: 3px; }

/* ==========================================================================
   2. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(30px,-20px) scale(1.05); }
  66%       { transform: translate(-20px,15px) scale(0.97); }
}

/* ==========================================================================
   3. SCROLL-REVEAL UTILITY
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible       { opacity: 1; transform: translateY(0); }
.reveal-delay-1       { transition-delay: 0.1s; }
.reveal-delay-2       { transition-delay: 0.2s; }
.reveal-delay-3       { transition-delay: 0.3s; }
.reveal-delay-4       { transition-delay: 0.4s; }
.reveal-delay-5       { transition-delay: 0.5s; }
.reveal-delay-6       { transition-delay: 0.6s; }

/* ==========================================================================
   4. TYPOGRAPHY COMPONENTS
   ========================================================================== */

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #63b3ed 0%, #90cdf4 50%, #4299e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meiq-accent);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--meiq-accent);
  display: block;
}

/* ==========================================================================
   5. COMPONENT STYLES
   ========================================================================== */

/* Noise overlay */
.noise {
  position: relative;
}
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* Card hover glow */
.card-glow {
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-glow:hover {
  transform: translateY(-6px);
  border-color: rgba(99,179,237,0.35) !important;
  box-shadow: 0 0 48px rgba(99,179,237,0.1);
}

/* Timeline line */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(99,179,237,0.4), transparent);
  transform: translateX(-50%);
}

/* Team card photo placeholder */
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #0d1526 0%, #111e35 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(99,179,237,0.3);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  transition: all 0.3s ease;
}
.team-card:hover .team-photo {
  border-color: rgba(99,179,237,0.3);
}

/* Stat counter card */
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,179,237,0.5), transparent);
}

/* Value icon ring */
.value-icon-ring {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(99,179,237,0.2);
  background: rgba(99,179,237,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.card-glow:hover .value-icon-ring {
  border-color: rgba(99,179,237,0.45);
  background: rgba(99,179,237,0.12);
}

/* Navbar */
.navbar-about {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(5,8,16,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Differentiator number */
.diff-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(99,179,237,0.08);
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 20px;
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease;
}
.card-glow:hover .diff-number {
  color: rgba(99,179,237,0.14);
}

/* CTA glow button */
.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, #63b3ed, #4299e1, #63b3ed);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-glow:hover::before { opacity: 1; }

/* Hero animated orb */
.orb {
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
  pointer-events: none;
}

/* ==========================================================================
   6. LAYOUT UTILITIES  (Tailwind-equivalent, scoped to .meiq-page if needed)
   ========================================================================== */

/* Container max-widths */
.max-w-7xl { max-width: 80rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-sm  { max-width: 24rem; }

/* Centering */
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding — X axis */
.px-6  { padding-left: 1.5rem;  padding-right: 1.5rem; }

/* Padding — Y axis */
.py-8  { padding-top: 2rem;    padding-bottom: 2rem; }
.py-32 { padding-top: 8rem;    padding-bottom: 8rem; }
.py-40 { padding-top: 10rem;   padding-bottom: 10rem; }

/* Padding — top */
.pt-24 { padding-top: 6rem; }

/* Padding — uniform */
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }

/* Padding — per side */
.px-5  { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-8  { padding-left: 2rem;    padding-right: 2rem; }
.px-10 { padding-left: 2.5rem;  padding-right: 2.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3  { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.py-4  { padding-top: 1rem;     padding-bottom: 1rem; }
.py-5  { padding-top: 1.25rem;  padding-bottom: 1.25rem; }

/* Margin — bottom */
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* Margin — top */
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }

/* Stacked children spacing */
.space-y-5 > * + * { margin-top: 1.25rem; }

/* ==========================================================================
   7. FLEXBOX UTILITIES
   ========================================================================== */
.flex          { display: flex; }
.inline-flex   { display: inline-flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }

.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }

.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Gap */
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-16 { gap: 4rem; }

/* ==========================================================================
   8. GRID UTILITIES
   ========================================================================== */
.grid         { display: grid; }
.grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-2   { grid-column: span 2 / span 2; }

/* ==========================================================================
   9. TYPOGRAPHY UTILITIES
   ========================================================================== */

/* Font families */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }

/* Font weights */
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }

/* Font sizes */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;     line-height: 1; }
.text-8xl  { font-size: 6rem;     line-height: 1; }

/* Line heights */
.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Letter spacing */
.tracking-wide   { letter-spacing: 0.025em; }
.tracking-tight  { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Text transform */
.uppercase   { text-transform: uppercase; }

/* Text align */
.text-center { text-align: center; }

/* ==========================================================================
   10. COLOR UTILITIES
   ========================================================================== */
.text-meiq-muted  { color: var(--meiq-muted); }
.text-meiq-accent { color: var(--meiq-accent); }
.text-white       { color: #ffffff; }

/* Border colours */
.border-meiq-accent { border-color: var(--meiq-accent); }

/* Hover: text colours */
.hover\:text-white:hover      { color: #ffffff; }
.hover\:text-meiq-bg:hover    { color: var(--meiq-bg); }

/* Hover: background */
.hover\:bg-meiq-accent:hover  { background-color: var(--meiq-accent); }

/* Hover: border */
.hover\:border-meiq-accent:hover { border-color: var(--meiq-accent); }

/* Hover: shadow */
.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* ==========================================================================
   11. BORDER, RADIUS, MISC UTILITIES
   ========================================================================== */
.border        { border-width: 1px; border-style: solid; }
.rounded-full  { border-radius: 9999px; }
.rounded-2xl   { border-radius: 1rem; }

/* ==========================================================================
   12. POSITION / DISPLAY UTILITIES
   ========================================================================== */
.relative          { position: relative; }
.absolute          { position: absolute; }
.fixed             { position: fixed; }

.inset-0           { top: 0; left: 0; right: 0; bottom: 0; }
.top-0             { top: 0; }
.left-0            { left: 0; }
.right-0           { right: 0; }
.bottom-0          { bottom: 0; }
.top-1\/2          { top: 50%; }
.bottom-4          { bottom: 1rem; }
.right-6           { right: 1.5rem; }

.z-10              { z-index: 10; }
.overflow-hidden   { overflow: hidden; }

.pointer-events-none { pointer-events: none; }
.select-none         { user-select: none; -webkit-user-select: none; }
.cursor-default      { cursor: default; }

/* ==========================================================================
   13. SIZE UTILITIES
   ========================================================================== */
.min-h-screen  { min-height: 100vh; }

.w-auto        { width: auto; }
.h-6           { height: 1.5rem; }
.h-8           { height: 2rem; }
.h-px          { height: 1px; }
.w-px          { width: 1px; }

/* Arbitrary size classes (used for ambient orbs) */
.w-\[600px\]   { width: 600px; }
.h-\[600px\]   { height: 600px; }
.w-\[500px\]   { width: 500px; }
.h-\[500px\]   { height: 500px; }
.w-\[800px\]   { width: 800px; }
.h-\[400px\]   { height: 400px; }

/* ==========================================================================
   14. OPACITY / VISIBILITY UTILITIES
   ========================================================================== */
.opacity-80  { opacity: 0.8; }
.opacity-20  { opacity: 0.2; }
.opacity-15  { opacity: 0.15; }
.opacity-100 { opacity: 1; }

/* ==========================================================================
   15. TRANSITION UTILITIES
   ========================================================================== */
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* ==========================================================================
   16. BACKGROUND UTILITIES
   ========================================================================== */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(99,179,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,179,237,0.04) 1px, transparent 1px);
}
.bg-grid { background-size: 60px 60px; }

/* ==========================================================================
   17. GROUP-HOVER UTILITIES
   ========================================================================== */
.group:hover .group-hover\:border-meiq-border {
  border-color: var(--meiq-border);
}

/* ==========================================================================
   18. RESPONSIVE — sm: (≥640px)
   ========================================================================== */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row    { flex-direction: row; }
}

/* ==========================================================================
   19. RESPONSIVE — md: (≥768px)
   ========================================================================== */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   20. RESPONSIVE — lg: (≥1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .lg\:grid-cols-2    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4    { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:flex-row       { flex-direction: row; }
  .lg\:items-end      { align-items: flex-end; }
  .lg\:justify-between { justify-content: space-between; }
}

/* ==========================================================================
   21. MOBILE — hide nav items < 640px (optional: adjust per site needs)
   ========================================================================== */
@media (max-width: 639px) {
  .navbar-about ul { gap: 1.25rem; }
  .navbar-about ul li:first-child { display: none; }
}