/* ======================
   BACKGROUND DEPTH LAYER
   ====================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 204, 0, 0.08), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(0, 197, 255, 0.08), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

body {
  background: radial-gradient(120% 120% at 20% 20%, rgba(255, 204, 0, 0.08), transparent 40%),
              radial-gradient(120% 120% at 80% 70%, rgba(0, 255, 199, 0.05), transparent 45%),
              linear-gradient(135deg, #0c0c0f, #111119 50%, #0c0c12);
}


/* ======================
   CSS VARIABLES & THEME
   ====================== */
:root {
  --primary-color: #f6d14f;
  --accent-color: #6be1e6;

  --dark-bg: #0d0d12;
  --light-bg: #f5f5f7;

  --dark-text: #ffffff;
  --muted-text: #c5c5c8;
  --light-text: #1c1c1c;

  --card-bg: rgba(18, 18, 24, 0.85);
  --card-border: rgba(255, 255, 255, 0.08);

  /* Shadow system (calm + professional) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.55);

  --radius-sm: 8px;
  --radius-md: 14px;
}

/* ======================
   GLOBAL RESET
   ====================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: var(--dark-text);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ======================
   SHARED SECTION STYLE
   ====================== */
section {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 3.5rem 2rem;
  scroll-margin-top: 90px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 204, 0, 0.07), transparent 35%),
              radial-gradient(circle at 80% 80%, rgba(107, 225, 230, 0.08), transparent 40%);
  opacity: 0.7;
  pointer-events: none;
}

/* ======================
   TYPOGRAPHY
   ====================== */
h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.3px;
}

p {
  line-height: 1.7;
  font-size: 1rem;
  color: var(--muted-text);
}


.highlight {
  color: var(--primary-color);
}

/* ======================
   THEME TOGGLE BUTTON
   ====================== */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--dark-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

.theme-toggle .fa-sun {
  display: none;
}

/* ======================
   LIGHT THEME OVERRIDES
   ====================== */
.light-theme {
  background: linear-gradient(135deg, #f9f9fc, #eceef5);
  color: var(--light-text);
}

body.light-theme {
  background: linear-gradient(135deg, #f9f9fc, #eceef5);
}

.light-theme section {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme::before {
  background: radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.04), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.03), transparent 45%);
}

.light-theme section::before {
  background: radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.03), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.02), transparent 45%);
}

.light-theme p {
  color: #444444;
}

.light-theme .highlight {
  color: #2a7ae2;
}

.light-theme .animated-subtitle {
  color: #2a2a2a;
}
