/* ===================================
   VBCI — Design System & Global Styles
   Victory Bible Church International
   Christ the Rock Sanctuary
   =================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ---------- Custom Font Placeholders ---------- */
/* When you have the Abolition font files, uncomment and update the url():
@font-face {
  font-family: 'Abolition';
  src: url('../assets/fonts/Abolition-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/
/* When you have the Lil Grotesk font files, uncomment and update the url():
@font-face {
  font-family: 'Lil Grotesk';
  src: url('../assets/fonts/LilGrotesk-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* === Colors === */
  /* Primary Purple — Lighter / More Vibrant */
  --purple-50:  #F5EDFF;
  --purple-100: #E8D5FF;
  --purple-200: #D4B0FF;
  --purple-300: #BB85FF;
  --purple-400: #A35FE8;
  --purple-500: #8B44C8;
  --purple-600: #7B3CB5;
  --purple-700: #6A349E;
  --purple-800: #502878;
  --purple-900: #381B55;
  --purple-950: #24103A;

  /* Gold Accent */
  --gold-50:  #FFF9E6;
  --gold-100: #FFF0BF;
  --gold-200: #FFE080;
  --gold-300: #FFCF40;
  --gold-400: #D4A847;
  --gold-500: #C49A3A;
  --gold-600: #A67C2E;
  --gold-700: #886422;
  --gold-800: #6A4C16;
  --gold-900: #4D360A;

  /* Neutrals */
  --black:    #050208;
  --dark-1:   #0A0614;
  --dark-2:   #110B1E;
  --dark-3:   #1A1028;
  --dark-4:   #231735;
  --dark-5:   #2E2042;
  --gray-1:   #3D2E54;
  --gray-2:   #584873;
  --gray-3:   #7A6895;
  --gray-4:   #9E90B5;
  --gray-5:   #BFB4D0;
  --white-dim: #E8E0F2;
  --white-soft: #F0EBF7;
  --white:    #FFFFFF;

  /* Semantic Colors */
  --success:  #34D399;
  --warning:  #FBBF24;
  --error:    #F87171;
  --info:     #60A5FA;
  --live-red: #EF4444;

  /* === Surfaces & Glass === */
  --surface-primary:   var(--dark-1);
  --surface-elevated:  rgba(26, 16, 40, 0.7);
  --surface-card:      rgba(35, 23, 53, 0.5);
  --surface-card-hover: rgba(45, 30, 68, 0.6);
  --glass-bg:          rgba(26, 16, 40, 0.4);
  --glass-border:      rgba(107, 33, 168, 0.25);
  --glass-border-gold: rgba(212, 168, 71, 0.3);
  --glass-blur:        20px;

  /* === Typography === */
  /* Abolition replacement — swap to 'Abolition' when font file is added */
  --font-display: 'Bebas Neue', 'Abolition', sans-serif;
  /* Oswald — headings, nav, UI elements */
  --font-heading: 'Oswald', sans-serif;
  /* Raleway — body text */
  --font-body:    'Raleway', sans-serif;
  /* Lil Grotesk replacement — swap to 'Lil Grotesk' when font file is added */
  --font-accent:  'Space Grotesk', 'Lil Grotesk', sans-serif;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  --leading-tight:  1.15;
  --leading-snug:   1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.05em;
  --tracking-wider:  0.1em;

  /* === Spacing (4px base) === */
  --space-1:  0.25rem;  /* 4px */
  --space-2:  0.5rem;   /* 8px */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.25rem;  /* 20px */
  --space-6:  1.5rem;   /* 24px */
  --space-8:  2rem;     /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* === Border Radius === */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* === Shadows === */
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl:   0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow-purple: 0 0 30px rgba(107, 33, 168, 0.3);
  --shadow-glow-gold:   0 0 30px rgba(212, 168, 71, 0.2);

  /* === Transitions === */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* === Z-Index Scale === */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-fixed:    300;
  --z-modal:    400;
  --z-toast:    500;
  --z-tooltip:  600;

  /* === Layout === */
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1280px;
  --container-2xl: 1440px;
  --nav-height:    72px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--white-soft);
  background-color: var(--dark-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Display headings (h1, h2) use Bebas Neue */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400; /* Bebas Neue only has 400 */
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--white);
}

/* UI headings (h3–h6) use Oswald */
h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--white);
}

/* ---------- Global Background ---------- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(107, 33, 168, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(212, 168, 71, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(42, 8, 69, 0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark-2);
}
::-webkit-scrollbar-thumb {
  background: var(--purple-700);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--purple-600);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(107, 33, 168, 0.4);
  color: var(--white);
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--container-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: linear-gradient(135deg, var(--purple-300), var(--purple-400), var(--purple-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 168, 71, 0.1); }
  50%      { box-shadow: 0 0 40px rgba(212, 168, 71, 0.3); }
}

/* Scroll animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ---------- Page Transitions ---------- */
.page-section {
  display: none;
  opacity: 0;
  min-height: calc(100vh - var(--nav-height));
  padding-top: var(--nav-height);
  transition: opacity var(--transition-slow);
}

.page-section.active {
  display: block;
  animation: fadeIn 0.5s ease-out forwards;
}

/* ---------- Demo Dot (replaces emoji red dot) ---------- */
.demo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--live-red);
  border-radius: var(--radius-full);
  animation: livePulse 1.5s infinite;
}

/* ---------- Responsive Base ---------- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  html {
    font-size: 15px;
  }

  .container {
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
}
