/* =========================================================================
   Our Two Worlds - Global Stylesheet
   ========================================================================= */

:root {
  /* Premium Dark Theme Palette */
  --bg-primary: #0a0a0c;
  --bg-secondary: #121216;
  --bg-tertiary: #1c1c22;
  
  --text-primary: #fdfdfd;
  --text-secondary: #a0a0a8;
  --text-muted: #5b5b64;

  /* The Gradient System (Two Worlds Merging) */
  --grad-teal: #14b8a6;   /* MBTI / Cognitive */
  --grad-purple: #8b5cf6; /* Enneagram / Core */
  --grad-pink: #ec4899;   /* Attachment / Relational */

  --gradient-main: linear-gradient(135deg, var(--grad-purple) 0%, var(--grad-pink) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(139,92,246,0.3) 0%, rgba(236,72,153,0.3) 100%);
  
  /* Borders & UI Elements */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(20, 20, 24, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Spacing */
  --section-pad-y: 8rem;
  --section-pad-x: 2rem;
  
  /* Transitions */
  --trans-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================================================
   Reset & Base
   ========================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--grad-purple);
  color: #fff;
}

/* =========================================================================
   Typography Utilities
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 300;
}

.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* =========================================================================
   Layout & Container
   ========================================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.section {
  padding: var(--section-pad-y) 0;
  position: relative;
}

/* =========================================================================
   UI Components
   ========================================================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--trans-smooth);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.btn-gradient {
  background: var(--gradient-main);
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--grad-pink) 0%, var(--grad-purple) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn-gradient:hover::before {
  opacity: 1;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--trans-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 30, 36, 0.6);
}

/* =========================================================================
   Animations & Utils
   ========================================================================= */

/* Fade In Up (used by Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Floating Orb Backgrounds */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -1;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}
