/* ============================================================
   BASE.CSS — Variables, Reset, Typography, Animations
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --blue:        #0647E0;
  --blue-hover:  #0535B5;
  --blue-light:  #3b82f6;
  --blue-glow:   rgba(6, 71, 224, 0.35);

  --bg:    #111827;
  --bg2:   #1f2937;
  --bg3:   #374151;

  --text:  #f9fafb;
  --text2: #d1d5db;
  --text3: #9ca3af;

  --border:  rgba(255, 255, 255, 0.08);
  --radius:  12px;
  --glow:    0 0 30px rgba(6, 71, 224, 0.3);

  /* Spacing scale */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 40px;
  --sp-2xl: 64px;

  /* Font families */
  --font-body:    'Space Grotesk', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

a    { color: inherit; text-decoration: none; }
img  { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── Typography helpers ── */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #0647E0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  background: rgba(6, 71, 224, 0.15);
  color: var(--blue-light);
  border: 1px solid rgba(6, 71, 224, 0.3);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--text3);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── 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 pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes slideIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(6,71,224,0.3); }
  50%       { box-shadow: 0 0 25px rgba(6,71,224,0.6); }
}

/* ── Animation utility classes ── */
.fade-up   { animation: fadeUp 0.6s ease forwards; }
.fade-up-1 { animation: fadeUp 0.6s 0.10s ease both; }
.fade-up-2 { animation: fadeUp 0.6s 0.20s ease both; }
.fade-up-3 { animation: fadeUp 0.6s 0.30s ease both; }
.fade-up-4 { animation: fadeUp 0.6s 0.40s ease both; }
.fade-up-5 { animation: fadeUp 0.6s 0.50s ease both; }
