/* ============================================================
   GLORIOUS GROUP — GLOBAL DESIGN SYSTEM
   Design tokens, CSS reset, typography, dual theme system
   ============================================================ */

/* ── Google Fonts & CDN Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/lemon-milk');

/* ============================================================
   CSS CUSTOM PROPERTIES — LIGHT THEME (Default)
   ============================================================ */
:root,
[data-theme="light"] {
  /* Backgrounds */
  --bg-primary: #ffffff; /* The outer body background */
  --bg-primary-rgb: 255, 255, 255;
  --bg-app: #ffffff; /* The inner app card */
  --bg-app-rgb: 255, 255, 255;
  --bg-secondary: #f4f5f5; /* Light grey cards */
  --bg-tertiary: #ebebeb;
  --bg-hero: #111111;

  /* Text */
  --text-primary: #151515;
  --text-secondary: #4a4a4a;
  --text-tertiary: #888888;
  --text-on-dark: #ffffff;

  /* Accent — UI */
  --gold: #151515; /* Primary buttons are now dark/black */
  --gold-light: #333333;
  --gold-dark: #000000;
  --gold-glow: rgba(0, 0, 0, 0.1);

  /* Borders & Dividers */
  --border: #e0e0e0;
  --border-light: #f0f0f0;

  /* Surfaces */
  --nav-bg: rgba(255, 255, 255, 0.95);
  --card-bg: #ffffff;
  --card-shadow: var(--shadow-3d);
  --card-shadow-hover: var(--shadow-3d-hover);
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(255, 255, 255, 0.8);

  /* 3D Shadows for UI Elements */
  --shadow-3d: 0 10px 30px rgba(0, 0, 0, 0.2), 0 20px 40px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-3d-hover: 0 20px 40px rgba(0, 0, 0, 0.3), 0 30px 60px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.15);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-pill: 100px;

  /* Footer */
  --footer-bg: #f4f5f5;
  --footer-text: #4a4a4a;
  --footer-heading: #151515;

  /* Form */
  --input-bg: #f4f5f5;
  --input-border: #e0e0e0;
  --input-focus-border: #151515;

  /* Misc */
  --overlay: rgba(0, 0, 0, 0.6);
  --selection-bg: rgba(0, 0, 0, 0.2);
}

/* ============================================================
   CSS CUSTOM PROPERTIES — DARK THEME
   ============================================================ */
[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-primary-rgb: 0, 0, 0;
  --bg-app: #151515;
  --bg-app-rgb: 21, 21, 21;
  --bg-secondary: #222222;
  --bg-tertiary: #2a2a2a;
  --bg-hero: #000000;

  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-tertiary: #707070;
  --text-on-dark: #f0f0f0;

  --gold: #ffffff;
  --gold-light: #e0e0e0;
  --gold-dark: #cccccc;
  --gold-glow: rgba(255, 255, 255, 0.15);

  --border: #333333;
  --border-light: #222222;

  --nav-bg: rgba(30, 30, 30, 0.95);
  --card-bg: #1e1e1e;
  --card-shadow: var(--shadow-3d);
  --card-shadow-hover: var(--shadow-3d-hover);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);

  --footer-bg: #0a0a0a;
  --footer-text: #707070;
  --footer-heading: #f0f0f0;

  /* 3D Shadows for UI Elements */
  --shadow-3d: 0 10px 30px rgba(0, 0, 0, 0.2), 0 20px 40px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-3d-hover: 0 20px 40px rgba(0, 0, 0, 0.3), 0 30px 60px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.15);

  --input-bg: #222222;
  --input-border: #333333;
  --input-focus-border: #ffffff;

  --overlay: rgba(0, 0, 0, 0.8);
  --selection-bg: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   THEME TRANSITION
   ============================================================ */
html.theme-transitioning .navbar,
html.theme-transitioning .app-container,
html.theme-transitioning .footer-wrapper,
html.theme-transitioning .sidebar {
  transition: background-color 0.45s ease, color 0.35s ease, border-color 0.35s ease;
}

/* ============================================================
   CSS RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary); /* This will be the outer dark background */
  overflow-x: clip;
  min-height: 100vh;
  /* padding removed to make it full bleed */
}

/* App Container (The main white card) */
.app-container {
  background-color: var(--bg-app);
  min-height: 100vh;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}



/* Footer */


/* Huge Background Text */
.bg-huge-text {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 25vw;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* Selection */
::selection {
  background: var(--selection-bg);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Lists */
ul, ol {
  list-style: none;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

h6 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.8;
  color: var(--text-secondary);
}

.overline {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.text-gold {
  color: var(--gold);
}

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

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.container-sm {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.container-lg {
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.section-sm {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-header .overline {
  margin-bottom: 0.75rem;
  display: block;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}

/* Flex */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: clamp(3rem, 6vw, 5rem) 0;
  }
}

/* ============================================================
   ANIMATIONS — BASE CLASSES
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.6s; }
.stagger-children .reveal:nth-child(8) { transition-delay: 0.7s; }
.stagger-children .reveal:nth-child(9) { transition-delay: 0.8s; }
.stagger-children .reveal:nth-child(10) { transition-delay: 0.9s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
body {
  cursor: none; /* Hide default cursor */
}

a, button, input, textarea, select {
  cursor: none; /* Override standard pointer */
}

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(212, 175, 55, 0.5); /* var(--gold) with opacity */
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* Hover effect state */
.cursor-outline.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--gold);
  background-color: rgba(212, 175, 55, 0.1);
}


