/* css/index.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500&family=Inter:wght@400;500&family=Source+Serif+Pro:ital@1&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,400&family=Source+Sans+3:wght@400;600&display=swap');

:root {
  /* Theme Variables: Aurora (Light) - DEFAULT */
  --bg-primary: #FEFDFB;
  --bg-secondary: #F5F3EF;
  --bg-tertiary: #EDE9E3;
  --border-light: #E5E0D8;
  
  --accent-primary: #E8B86D; /* Solar Gold */
  --accent-secondary: #E07A5F; /* Living Coral */
  --accent-tertiary: #81B29A; /* Bud Green */
  --accent-quaternary: #98C1D9; /* Sky Breath */
  
  --text-primary: #2C3E50;
  --text-secondary: #5D6D7E;
  --text-meta: #95A5A6;
  
  --btn-primary-text: #2C3E50;
  --header-bg-scrolled: rgba(254, 253, 251, 0.95);
  --header-text: #2C3E50;
  
  /* Gradients */
  --gradient-sunrise: linear-gradient(135deg, #FEFDFB 0%, #F5F3EF 50%, #E8B86D20 100%);
  --gradient-life: linear-gradient(180deg, #81B29A20 0%, #E07A5F15 100%);
  --gradient-breath: radial-gradient(ellipse at 30% 20%, #E8B86D15 0%, transparent 50%), radial-gradient(ellipse at 70% 80%, #98C1D915 0%, transparent 50%);

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(44, 62, 80, 0.06);
  --shadow-lift: 0 8px 30px rgba(44, 62, 80, 0.08), 0 2px 8px rgba(44, 62, 80, 0.04);
  --shadow-gold: 0 4px 20px rgba(232, 184, 109, 0.15);

  /* Fonts */
  --font-hero: 'Cormorant Garamond', serif;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-quote: 'Cormorant Garamond', serif;
  --font-quote-style: italic;

  /* Legacy Mapping for HTML inline styles (Backwards compatibility) */
  --void-black: var(--bg-primary);
  --deep-space: var(--bg-secondary);
  --nebula-slate: var(--bg-tertiary);
  --consciousness-cyan: var(--accent-primary);
  --soul-amber: var(--accent-secondary);
  --ether-violet: var(--accent-tertiary);
  --starlight: var(--text-primary);
  --moon-glow: var(--text-secondary);
  --glow-cyan: var(--shadow-gold);
  --glow-amber: var(--shadow-soft);

  /* Common Spacing & Animation */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;

  --transition-fast: 0.2s ease;
  --transition-base: 0.4s ease;
  --transition-slow: 0.6s ease;
  --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --backdrop-blur: blur(12px);
}

[data-theme="void"] {
  /* Theme Variables: Void (Dark) */
  --bg-primary: #0B0C10;
  --bg-secondary: #1F2833;
  --bg-tertiary: #2F3E46;
  --border-light: rgba(102, 252, 241, 0.1);
  
  --accent-primary: #66FCF1;
  --accent-secondary: #D4A373;
  --accent-tertiary: #9B5DE5;
  --accent-quaternary: #E8F1F2;
  
  --text-primary: #E8F1F2;
  --text-secondary: #C5C6C7;
  --text-meta: #C5C6C7;

  --btn-primary-text: #0B0C10;
  --header-bg-scrolled: rgba(11, 12, 16, 0.95);
  --header-text: #E8F1F2;

  /* Gradients */
  --gradient-sunrise: none;
  --gradient-life: none;
  --gradient-breath: radial-gradient(ellipse at 30% 20%, rgba(102, 252, 241, 0.05) 0%, transparent 50%), radial-gradient(ellipse at 70% 80%, rgba(212, 163, 115, 0.05) 0%, transparent 50%);

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 8px 30px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-gold: 0 0 20px rgba(102, 252, 241, 0.3); /* Glow cyan originally */

  /* Fonts */
  --font-hero: 'Outfit', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-quote: 'Source Serif Pro', serif;
  --font-quote-style: italic;

  /* Legacy Overrides */
  --glow-cyan: var(--shadow-gold);
  --glow-amber: 0 0 20px rgba(212, 163, 115, 0.3);
}

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

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

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

/* Typography Hierarchy */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
}

h1.hero-title {
  font-family: var(--font-hero);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.125;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
}

h2.section-title {
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.16;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
}

h3.subsection-title {
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  margin-bottom: var(--space-md);
  color: var(--accent-primary);
}

h4.card-title {
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.33;
  margin-bottom: var(--space-sm);
}

p.body-large {
  font-size: 1.125rem;
  line-height: 1.55;
  margin-bottom: var(--space-md);
}

p.body {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

blockquote.quote {
  font-family: var(--font-quote);
  font-style: var(--font-quote-style);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
  border-left: 3px solid var(--accent-tertiary);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) auto;
  border-radius: 0 16px 16px 0;
}

.text-key-concept {
  color: var(--accent-primary);
  font-weight: 500;
}

.caption-text {
  font-size: 0.875rem;
  color: var(--text-meta);
}

/* Layout & Grid System */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-cols-2 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(1, 1fr); }

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

@media (min-width: 1024px) {
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
  opacity: 0.9;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* Standard Content Section */
.content-section {
  padding: var(--space-xl) 0;
  position: relative;
}

.background-stars {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(var(--starlight) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

/* Visual Break */
.visual-break {
  position: relative;
  padding: var(--space-2xl) 0;
  text-align: center;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}
.visual-break-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  opacity: 0.7;
}
.visual-break .container {
  position: relative;
  z-index: 2;
}

/* Navigation System */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  align-items: center;
}

header.scrolled,
header:hover {
  background-color: var(--header-bg-scrolled);
  backdrop-filter: var(--backdrop-blur);
  box-shadow: var(--shadow-soft);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: var(--font-heading);
  color: var(--header-text);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-meta);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-base);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-quaternary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--header-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  box-shadow: var(--glow-cyan);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--header-text);
  transition: all var(--transition-base);
}

.mobile-only {
  display: none;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .mobile-only {
    display: block;
    margin-top: 10px;
    font-size: 1.1rem !important;
    opacity: 0.7;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary) !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
    padding-top: 80px;
    padding-bottom: 80px;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.3s ease;
    z-index: 90;
  }
  
  .nav-links.nav-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.15rem;
    font-family: var(--font-hero);
    color: var(--text-primary);
  }

  .hamburger {
    display: flex;
    z-index: 101;
  }
  
  .hamburger.toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.toggle span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 500;
  transition: all var(--transition-base);
  cursor: pointer;
  padding: 16px 32px;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-tertiary);
  border: 2px solid var(--accent-tertiary);
  padding: 14px 30px;
}

.btn-secondary:hover {
  background-color: var(--accent-tertiary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-soft);
}

.btn-tertiary {
  color: var(--accent-quaternary);
  text-decoration: none;
  position: relative;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
}

.btn-tertiary::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-quaternary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.btn-tertiary:hover::after {
  width: 100%;
}

.btn-ghost {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 14px 28px;
  backdrop-filter: var(--backdrop-blur);
  border-radius: 8px;
}

.btn-ghost:hover {
  background-color: var(--border-light);
}

/* Cards */
.card {
  background: var(--bg-tertiary);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(129, 178, 154, 0.1);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: var(--shadow-soft);
}

.card:hover {
  border-color: rgba(129, 178, 154, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* Media styling */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.img-container {
  overflow: hidden;
  border-radius: 8px;
}

.img-container img {
  transition: transform var(--transition-slow);
}

.img-container:hover img {
  transform: scale(1.05);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Custom elements */
.concept-insight {
  background: var(--bg-secondary); 
  border-left: 4px solid var(--accent-tertiary);
  padding: 20px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}

.cyber-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}

.cyber-form input,
.cyber-form textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.cyber-form input:focus,
.cyber-form textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-gold);
}

.cyber-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-meta);
  cursor: pointer;
}

footer {
  background-color: var(--bg-secondary);
  padding: var(--space-xl) 0 var(--space-md) 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.footer-quote {
  color: var(--text-secondary);
  font-style: var(--font-quote-style);
  font-family: var(--font-quote);
  margin-bottom: var(--space-md);
}

.footer-copy {
  color: var(--text-meta);
  font-size: 0.875rem;
  font-family: var(--font-body);
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.05); opacity: 0.6; }
}

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

@keyframes pulse-gentle {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 184, 109, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(232, 184, 109, 0); }
}
