/* assets/css/global.css */

/* === CSS Custom Properties === */
:root {
  --cyan: #00AEEF;
  --cyan-light: #E0F6FD;
  --cyan-mid: #6DD5F5;
  --navy: #1A3A6B;
  --navy-dark: #0E2247;
  --navy-deeper: #081530;
  --white: #FFFFFF;
  --grey-light: #F4F6F9;
  --text-primary: #1A1A2E;
  --text-muted: #6B7280;
  --border: rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Container */
  --container-max: 1200px;
  --container-padding: 24px;
}

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: 42px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
}

.wordmark {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 16px;
  color: var(--navy);
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.stat-number {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--cyan);
}

/* === Container === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }
}

/* === Section Spacing === */
section {
  padding: 80px 0;
}

@media (max-width: 640px) {
  section {
    padding: 48px 0;
  }
}

/* === Utility === */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-cyan { color: var(--cyan); }
.bg-light { background: var(--grey-light); }

/* === Gradient Backgrounds === */
.bg-gradient-hero {
  background: linear-gradient(180deg, #f8fbff 0%, var(--white) 100%);
}

.bg-gradient-section {
  background: linear-gradient(180deg, var(--grey-light) 0%, var(--white) 100%);
}

.bg-gradient-dark {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-deeper) 100%);
}

/* === Decorative Elements === */
.decoration-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.decoration-orb--cyan {
  background: radial-gradient(circle, rgba(0, 174, 239, 0.08) 0%, transparent 70%);
}

.decoration-orb--navy {
  background: radial-gradient(circle, rgba(26, 58, 107, 0.06) 0%, transparent 70%);
}

.decoration-dots {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image: radial-gradient(circle, var(--cyan) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* === Section Dividers === */
.section-divider {
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.section-divider--light::after {
  background: var(--grey-light);
}

/* === Icon Container === */
.icon-container {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.icon-container--cyan {
  background: linear-gradient(135deg, var(--cyan-light) 0%, #f0f9ff 100%);
}

.icon-container--navy {
  background: linear-gradient(135deg, rgba(26, 58, 107, 0.1) 0%, rgba(26, 58, 107, 0.05) 100%);
}

.icon-container--lg {
  width: 56px;
  height: 56px;
  font-size: 26px;
  border-radius: 12px;
}

/* === Scroll Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* === Stagger Animation Delays === */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }
