/* =====================================================
   BASE.CSS – CYVERRA GLOBAL TECHNOLOGIES LLP
   Purpose:
   - Global design system
   - Dark / Light theme
   - Typography
   - Resets & utilities
   NOTE:
   - NO page-specific styles here
   ===================================================== */

/* =====================================================
   START: CSS RESET
   ===================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* =====================================================
   END: CSS RESET
   ===================================================== */

/* =====================================================
   START: DESIGN TOKENS (COLORS, FONTS, SIZES)
   ===================================================== */

:root {
  /* ---------- Brand Colors ---------- */
  --color-bg: #050a0f; /* Midnight Black */
  --color-surface: #0b1c2d; /* Cyber Navy Blue */
  --color-primary: #00b4ff; /* Electric Cyber Blue */
  --color-secondary: #a7b1bc; /* Steel Silver */
  --color-text: #e6eef6; /* Primary Text */
  --color-muted: #9aa7b2; /* Muted Text */

  --color-success: #2ecc71; /* Trust Green */
  --color-danger: #e63946; /* Alert Red */

  /* ---------- Typography ---------- */
  --font-heading: "Inter", "Poppins", sans-serif;
  --font-body: "Roboto", "Open Sans", sans-serif;

  /* ---------- Font Sizes ---------- */
  --fs-h1: 3rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.75rem;
  --fs-h4: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* ---------- Spacing ---------- */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;

  /* ---------- Effects ---------- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* ---------- Shadows ---------- */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* =====================================================
   END: DESIGN TOKENS
   ===================================================== */

/* =====================================================
   START: LIGHT THEME OVERRIDES
   ===================================================== */

html[data-theme="light"] {
  --color-bg: #ffffff;
  --color-surface: #f4f7fb;
  --color-text: #0b1c2d;
  --color-muted: #5a6b7b;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   END: LIGHT THEME OVERRIDES
   ===================================================== */

/* =====================================================
   START: GLOBAL ELEMENT STYLES
   ===================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}

p {
  font-size: var(--fs-body);
  color: var(--color-muted);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* =====================================================
   END: GLOBAL ELEMENT STYLES
   ===================================================== */

/* =====================================================
   START: BUTTON SYSTEM
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);

  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  font-weight: 500;

  cursor: pointer;
  border: none;
  transition: var(--transition-base);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #000;
}

/* =====================================================
   END: BUTTON SYSTEM
   ===================================================== */

/* =====================================================
   START: UTILITY CLASSES
   ===================================================== */

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-sm {
  margin-top: var(--space-sm);
}
.mt-md {
  margin-top: var(--space-md);
}
.mt-lg {
  margin-top: var(--space-lg);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}
.mb-md {
  margin-bottom: var(--space-md);
}
.mb-lg {
  margin-bottom: var(--space-lg);
}

.hidden {
  display: none !important;
}

/* =====================================================
   END: UTILITY CLASSES
   ===================================================== */
