/* Terma Network - Sophisticated Tibetan Royal Color Palette */
:root {
  /* Deep Indigo - Sacred Night Sky */
  --indigo-10: #1e1b4b;
  --indigo-33: #312e81;
  --indigo-50: #4338ca;
  --indigo-66: #6366f1;
  --indigo-90: #e0e7ff;
  
  /* Maroon - Monastery Robes */
  --maroon-10: #451a03;
  --maroon-33: hsl(15, 100%, 18%);
  --maroon-50: hsl(0, 66%, 50%);
  --maroon-66: hsl(0, 91%, 66%);
  --maroon-90: #fef2f2;
  
  /* Gold - Sacred Metal */
  --gold-10: #451a03;
  --gold-33: #92400e;
  --gold-50: #d97706;
  --gold-66: #f59e0b;
  --gold-90: #fffbeb;
  
  /* Sage - Mountain Wisdom */
  --sage-10: #1f2937;
  --sage-33: #374151;
  --sage-50: #6b7280;
  --sage-66: #9ca3af;
  --sage-90: #f9fafb;
  
  /* Cream - Pure Silk */
  --cream-10: #fffef7;
  --cream-33: #fefce8;
  --cream-50: #fef3c7;
  --cream-66: #fde68a;
  --cream-90: #d97706;
  
  --cream-10-10: rgba(255, 254, 247, 0.1);

  /* Charcoal - Ink Calligraphy */
  --charcoal-10: #0f172a;
  --charcoal-33: #1e293b;
  --charcoal-50: #334155;
  --charcoal-66: #64748b;
  --charcoal-90: #e2e8f0;
  
  /* Prayer Flag Colors - Traditional Tibetan Five Elements */
  
  /* Blue - Space/Sky Element */
  --prayer-blue-10: #1e3a8a;
  --prayer-blue-33: #1d4ed8;
  --prayer-blue-50: #3b82f6;
  --prayer-blue-66: #60a5fa;
  --prayer-blue-90: #dbeafe;
  
  /* White - Air/Wind Element */
  --prayer-white-10: #f8fafc;
  --prayer-white-33: #f1f5f9;
  --prayer-white-50: #ffffff;
  --prayer-white-66: #f8fafc;
  --prayer-white-90: #f1f5f9;
  
  /* Red - Fire Element */
  --prayer-red-10: #7f1d1d;
  --prayer-red-33: #dc2626;
  --prayer-red-50: #ef4444;
  --prayer-red-66: #f87171;
  --prayer-red-90: #fecaca;
  
  /* Green - Water Element */
  --prayer-green-10: #14532d;
  --prayer-green-33: #16a34a;
  --prayer-green-50: #22c55e;
  --prayer-green-66: #4ade80;
  --prayer-green-90: hsl(141, 50%, 90%);
  
  /* Yellow - Earth Element */
  --prayer-yellow-10: #a16207;
  --prayer-yellow-33: #ca8a04;
  --prayer-yellow-50: #eab308;
  --prayer-yellow-66: #facc15;
  --prayer-yellow-90: #fef3c7;
  
  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-tibetan: 'Jomolhari', 'Noto Sans Tibetan', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  
  /* Spacing */
  --section-padding: 5rem;
  --container-max-width: 1400px;
  --border-radius: 0.375rem;
  --border-radius-lg: 0.75rem;
  
  /* Shadows - Subtle and sophisticated */
  --shadow-minimal: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-elegant: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-dramatic: 0 8px 24px rgba(0, 0, 0, 0.2);
  
  /* Sophisticated gradients */
  --gradient-royal: linear-gradient(135deg, var(--maroon-10), var(--maroon-33), var(--maroon-50), var(--maroon-50), var(--gold-50));
  --gradient-wisdom: linear-gradient(135deg, var(--indigo-50), var(--sage-50));
  --gradient-serenity: linear-gradient(135deg, var(--sage-50), var(--cream-50));
  --gradient-enlightenment: linear-gradient(135deg, var(--gold-50), var(--cream-50));
  --gradient-peace: linear-gradient(135deg, var(--cream-10), var(--sage-90));
  --gradient-green: linear-gradient(135deg, #065f46, #059669);

  --gradient-primary-button: linear-gradient(135deg, var(--maroon-33), var(--maroon-50));
  --gradient-primary-button-hover: linear-gradient(135deg, var(--maroon-50), var(--maroon-66));
  
  /* Prayer Flag Color Gradients */
  
  /* Blue - Space/Sky Element Gradients */
  --gradient-blue-button: linear-gradient(135deg, var(--prayer-blue-33), var(--prayer-blue-50));
  --gradient-blue-button-hover: linear-gradient(135deg, var(--prayer-blue-50), var(--prayer-blue-66));
  --gradient-blue-background: linear-gradient(135deg, var(--prayer-blue-10), var(--prayer-blue-33));
  --gradient-blue-subtle: linear-gradient(135deg, var(--prayer-blue-90), var(--prayer-blue-66));
  
  /* White - Air/Wind Element Gradients */
  --gradient-white-button: linear-gradient(135deg, var(--prayer-white-33), var(--prayer-white-50));
  --gradient-white-button-hover: linear-gradient(135deg, var(--prayer-white-50), var(--prayer-white-66));
  --gradient-white-background: linear-gradient(135deg, var(--prayer-white-10), var(--prayer-white-33));
  --gradient-white-subtle: linear-gradient(135deg, var(--prayer-white-90), var(--prayer-white-66));
  
  /* Red - Fire Element Gradients */
  --gradient-red-button: linear-gradient(135deg, var(--prayer-red-33), var(--prayer-red-50));
  --gradient-red-button-hover: linear-gradient(135deg, var(--prayer-red-50), var(--prayer-red-66));
  --gradient-red-background: linear-gradient(135deg, var(--prayer-red-10), var(--prayer-red-33));
  --gradient-red-subtle: linear-gradient(135deg, var(--prayer-red-90), var(--prayer-red-66));
  
  /* Green - Water Element Gradients */
  --gradient-green-button: linear-gradient(135deg, var(--prayer-green-33), var(--prayer-green-50));
  --gradient-green-button-hover: linear-gradient(135deg, var(--prayer-green-50), var(--prayer-green-66));
  --gradient-green-background: linear-gradient(135deg, var(--prayer-green-10), var(--prayer-green-33));
  --gradient-green-subtle: linear-gradient(135deg, var(--prayer-green-90), var(--prayer-green-66));
  
  /* Yellow - Earth Element Gradients */
  --gradient-yellow-button: linear-gradient(135deg, var(--prayer-yellow-33), var(--prayer-yellow-50));
  --gradient-yellow-button-hover: linear-gradient(135deg, var(--prayer-yellow-50), var(--prayer-yellow-66));
  --gradient-yellow-background: linear-gradient(135deg, var(--prayer-yellow-10), var(--prayer-yellow-33));
  --gradient-yellow-subtle: linear-gradient(135deg, var(--prayer-yellow-90), var(--prayer-yellow-66));

  
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.65;
  color: var(--charcoal-10);
  background: var(--cream-10);
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Text Color Utility Classes - Tailwind-style */

/* Indigo Text Colors */
.text-indigo-10 { color: var(--indigo-10); }
.text-indigo-33 { color: var(--indigo-33); }
.text-indigo-50 { color: var(--indigo-50); }
.text-indigo-66 { color: var(--indigo-66); }
.text-indigo-90 { color: var(--indigo-90); }

/* Maroon Text Colors */
.text-maroon-10 { color: var(--maroon-10); }
.text-maroon-33 { color: var(--maroon-33); }
.text-maroon-50 { color: var(--maroon-50); }
.text-maroon-66 { color: var(--maroon-66); }
.text-maroon-90 { color: var(--maroon-90); }

/* Gold Text Colors */
.text-gold-10 { color: var(--gold-10); }
.text-gold-33 { color: var(--gold-33); }
.text-gold-50 { color: var(--gold-50); }
.text-gold-66 { color: var(--gold-66); }
.text-gold-90 { color: var(--gold-90); }

/* Sage Text Colors */
.text-sage-10 { color: var(--sage-10); }
.text-sage-33 { color: var(--sage-33); }
.text-sage-50 { color: var(--sage-50); }
.text-sage-66 { color: var(--sage-66); }
.text-sage-90 { color: var(--sage-90); }

/* Cream Text Colors */
.text-cream-10 { color: var(--cream-10); }
.text-cream-33 { color: var(--cream-33); }
.text-cream-50 { color: var(--cream-50); }
.text-cream-66 { color: var(--cream-66); }
.text-cream-90 { color: var(--cream-90); }

/* Charcoal Text Colors */
.text-charcoal-10 { color: var(--charcoal-10); }
.text-charcoal-33 { color: var(--charcoal-33); }
.text-charcoal-50 { color: var(--charcoal-50); }
.text-charcoal-66 { color: var(--charcoal-66); }
.text-charcoal-90 { color: var(--charcoal-90); }

/* Prayer Flag Text Colors */

/* Prayer Blue Text Colors */
.text-prayer-blue-10 { color: var(--prayer-blue-10); }
.text-prayer-blue-33 { color: var(--prayer-blue-33); }
.text-prayer-blue-50 { color: var(--prayer-blue-50); }
.text-prayer-blue-66 { color: var(--prayer-blue-66); }
.text-prayer-blue-90 { color: var(--prayer-blue-90); }

/* Prayer White Text Colors */
.text-prayer-white-10 { color: var(--prayer-white-10); }
.text-prayer-white-33 { color: var(--prayer-white-33); }
.text-prayer-white-50 { color: var(--prayer-white-50); }
.text-prayer-white-66 { color: var(--prayer-white-66); }
.text-prayer-white-90 { color: var(--prayer-white-90); }

/* Prayer Red Text Colors */
.text-prayer-red-10 { color: var(--prayer-red-10); }
.text-prayer-red-33 { color: var(--prayer-red-33); }
.text-prayer-red-50 { color: var(--prayer-red-50); }
.text-prayer-red-66 { color: var(--prayer-red-66); }
.text-prayer-red-90 { color: var(--prayer-red-90); }

/* Prayer Green Text Colors */
.text-prayer-green-10 { color: var(--prayer-green-10); }
.text-prayer-green-33 { color: var(--prayer-green-33); }
.text-prayer-green-50 { color: var(--prayer-green-50); }
.text-prayer-green-66 { color: var(--prayer-green-66); }
.text-prayer-green-90 { color: var(--prayer-green-90); }

/* Prayer Yellow Text Colors */
.text-prayer-yellow-10 { color: var(--prayer-yellow-10); }
.text-prayer-yellow-33 { color: var(--prayer-yellow-33); }
.text-prayer-yellow-50 { color: var(--prayer-yellow-50); }
.text-prayer-yellow-66 { color: var(--prayer-yellow-66); }
.text-prayer-yellow-90 { color: var(--prayer-yellow-90); }

/* Background Color Utility Classes */

/* Indigo Background Colors */
.bg-indigo-10 { background-color: var(--indigo-10); }
.bg-indigo-33 { background-color: var(--indigo-33); }
.bg-indigo-50 { background-color: var(--indigo-50); }
.bg-indigo-66 { background-color: var(--indigo-66); }
.bg-indigo-90 { background-color: var(--indigo-90); }

/* Maroon Background Colors */
.bg-maroon-10 { background-color: var(--maroon-10); }
.bg-maroon-33 { background-color: var(--maroon-33); }
.bg-maroon-50 { background-color: var(--maroon-50); }
.bg-maroon-66 { background-color: var(--maroon-66); }
.bg-maroon-90 { background-color: var(--maroon-90); }

/* Gold Background Colors */
.bg-gold-10 { background-color: var(--gold-10); }
.bg-gold-33 { background-color: var(--gold-33); }
.bg-gold-50 { background-color: var(--gold-50); }
.bg-gold-66 { background-color: var(--gold-66); }
.bg-gold-90 { background-color: var(--gold-90); }

/* Sage Background Colors */
.bg-sage-10 { background-color: var(--sage-10); }
.bg-sage-33 { background-color: var(--sage-33); }
.bg-sage-50 { background-color: var(--sage-50); }
.bg-sage-66 { background-color: var(--sage-66); }
.bg-sage-90 { background-color: var(--sage-90); }

/* Cream Background Colors */
.bg-cream-10 { background-color: var(--cream-10); }
.bg-cream-33 { background-color: var(--cream-33); }
.bg-cream-50 { background-color: var(--cream-50); }
.bg-cream-66 { background-color: var(--cream-66); }
.bg-cream-90 { background-color: var(--cream-90); }

/* Charcoal Background Colors */
.bg-charcoal-10 { background-color: var(--charcoal-10); }
.bg-charcoal-33 { background-color: var(--charcoal-33); }
.bg-charcoal-50 { background-color: var(--charcoal-50); }
.bg-charcoal-66 { background-color: var(--charcoal-66); }
.bg-charcoal-90 { background-color: var(--charcoal-90); }

/* Prayer Flag Background Colors */

/* Prayer Blue Background Colors */
.bg-prayer-blue-10 { background-color: var(--prayer-blue-10); }
.bg-prayer-blue-33 { background-color: var(--prayer-blue-33); }
.bg-prayer-blue-50 { background-color: var(--prayer-blue-50); }
.bg-prayer-blue-66 { background-color: var(--prayer-blue-66); }
.bg-prayer-blue-90 { background-color: var(--prayer-blue-90); }

/* Prayer White Background Colors */
.bg-prayer-white-10 { background-color: var(--prayer-white-10); }
.bg-prayer-white-33 { background-color: var(--prayer-white-33); }
.bg-prayer-white-50 { background-color: var(--prayer-white-50); }
.bg-prayer-white-66 { background-color: var(--prayer-white-66); }
.bg-prayer-white-90 { background-color: var(--prayer-white-90); }

/* Prayer Red Background Colors */
.bg-prayer-red-10 { background-color: var(--prayer-red-10); }
.bg-prayer-red-33 { background-color: var(--prayer-red-33); }
.bg-prayer-red-50 { background-color: var(--prayer-red-50); }
.bg-prayer-red-66 { background-color: var(--prayer-red-66); }
.bg-prayer-red-90 { background-color: var(--prayer-red-90); }

/* Prayer Green Background Colors */
.bg-prayer-green-10 { background-color: var(--prayer-green-10); }
.bg-prayer-green-33 { background-color: var(--prayer-green-33); }
.bg-prayer-green-50 { background-color: var(--prayer-green-50); }
.bg-prayer-green-66 { background-color: var(--prayer-green-66); }
.bg-prayer-green-90 { background-color: var(--prayer-green-90); }

/* Prayer Yellow Background Colors */
.bg-prayer-yellow-10 { background-color: var(--prayer-yellow-10); }
.bg-prayer-yellow-33 { background-color: var(--prayer-yellow-33); }
.bg-prayer-yellow-50 { background-color: var(--prayer-yellow-50); }
.bg-prayer-yellow-66 { background-color: var(--prayer-yellow-66); }
.bg-prayer-yellow-90 { background-color: var(--prayer-yellow-90); }

/* Border Color Utility Classes */

/* Indigo Border Colors */
.border-indigo-10 { border-color: var(--indigo-10); }
.border-indigo-33 { border-color: var(--indigo-33); }
.border-indigo-50 { border-color: var(--indigo-50); }
.border-indigo-66 { border-color: var(--indigo-66); }
.border-indigo-90 { border-color: var(--indigo-90); }

/* Maroon Border Colors */
.border-maroon-10 { border-color: var(--maroon-10); }
.border-maroon-33 { border-color: var(--maroon-33); }
.border-maroon-50 { border-color: var(--maroon-50); }
.border-maroon-66 { border-color: var(--maroon-66); }
.border-maroon-90 { border-color: var(--maroon-90); }

/* Gold Border Colors */
.border-gold-10 { border-color: var(--gold-10); }
.border-gold-33 { border-color: var(--gold-33); }
.border-gold-50 { border-color: var(--gold-50); }
.border-gold-66 { border-color: var(--gold-66); }
.border-gold-90 { border-color: var(--gold-90); }

/* Sage Border Colors */
.border-sage-10 { border-color: var(--sage-10); }
.border-sage-33 { border-color: var(--sage-33); }
.border-sage-50 { border-color: var(--sage-50); }
.border-sage-66 { border-color: var(--sage-66); }
.border-sage-90 { border-color: var(--sage-90); }

/* Cream Border Colors */
.border-cream-10 { border-color: var(--cream-10); }
.border-cream-33 { border-color: var(--cream-33); }
.border-cream-50 { border-color: var(--cream-50); }
.border-cream-66 { border-color: var(--cream-66); }
.border-cream-90 { border-color: var(--cream-90); }

/* Charcoal Border Colors */
.border-charcoal-10 { border-color: var(--charcoal-10); }
.border-charcoal-33 { border-color: var(--charcoal-33); }
.border-charcoal-50 { border-color: var(--charcoal-50); }
.border-charcoal-66 { border-color: var(--charcoal-66); }
.border-charcoal-90 { border-color: var(--charcoal-90); }

/* Prayer Flag Border Colors */

/* Prayer Blue Border Colors */
.border-prayer-blue-10 { border-color: var(--prayer-blue-10); }
.border-prayer-blue-33 { border-color: var(--prayer-blue-33); }
.border-prayer-blue-50 { border-color: var(--prayer-blue-50); }
.border-prayer-blue-66 { border-color: var(--prayer-blue-66); }
.border-prayer-blue-90 { border-color: var(--prayer-blue-90); }

/* Prayer White Border Colors */
.border-prayer-white-10 { border-color: var(--prayer-white-10); }
.border-prayer-white-33 { border-color: var(--prayer-white-33); }
.border-prayer-white-50 { border-color: var(--prayer-white-50); }
.border-prayer-white-66 { border-color: var(--prayer-white-66); }
.border-prayer-white-90 { border-color: var(--prayer-white-90); }

/* Prayer Red Border Colors */
.border-prayer-red-10 { border-color: var(--prayer-red-10); }
.border-prayer-red-33 { border-color: var(--prayer-red-33); }
.border-prayer-red-50 { border-color: var(--prayer-red-50); }
.border-prayer-red-66 { border-color: var(--prayer-red-66); }
.border-prayer-red-90 { border-color: var(--prayer-red-90); }

/* Prayer Green Border Colors */
.border-prayer-green-10 { border-color: var(--prayer-green-10); }
.border-prayer-green-33 { border-color: var(--prayer-green-33); }
.border-prayer-green-50 { border-color: var(--prayer-green-50); }
.border-prayer-green-66 { border-color: var(--prayer-green-66); }
.border-prayer-green-90 { border-color: var(--prayer-green-90); }

/* Prayer Yellow Border Colors */
.border-prayer-yellow-10 { border-color: var(--prayer-yellow-10); }
.border-prayer-yellow-33 { border-color: var(--prayer-yellow-33); }
.border-prayer-yellow-50 { border-color: var(--prayer-yellow-50); }
.border-prayer-yellow-66 { border-color: var(--prayer-yellow-66); }
.border-prayer-yellow-90 { border-color: var(--prayer-yellow-90); }

/* Typography */
h2 {
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.33);
}

.display-text {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tibetan-text {
  font-family: var(--font-tibetan);
  font-weight: 500;
}

.literary-text {
  font-family: var(--font-serif);
  line-height: 1.7;
}

.italic-text {
  font-style: italic;
}

/* Tibetan Symbols */
.tibetan-symbol {
  font-family: var(--font-tibetan);
  font-size: 1.5em;
  /*color: var(--gold-50);*/
  margin: 0 0.5rem;
  font-weight: 400;
}

.section-divider {
  text-align: center;
  margin: 2rem 0 1rem 0;
  color: var(--gold-50);
  font-size: 2rem;
  font-family: var(--font-tibetan);
}

/* Tibetan Unicode Range - Use Jomolhari for all Tibetan characters */
@supports (font-variation-settings: normal) {
  [lang="bo"], 
  .tibetan-text,
  .tibetan-symbol,
  .section-divider {
    font-family: 'Jomolhari', 'Noto Sans Tibetan', sans-serif;
    font-feature-settings: "liga" 1, "clig" 1;
  }
}

/* Enhanced Tibetan Character Support */
/* Target any element containing Tibetan characters */
:lang(bo),
.tibetan-text,
.tibetan-symbol,
.section-divider,
[class*="tibetan"] {
  font-family: 'Jomolhari', 'Noto Sans Tibetan', 'Microsoft Himalaya', sans-serif !important;
  font-feature-settings: "liga" 1, "clig" 1;
  text-rendering: optimizeLegibility;
}

/* Bento Box Layout Styles */
.bento-container {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.bento-box {
  background: var(--cream-10);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-elegant);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--charcoal-90);
}

.bento-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-royal);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.bento-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-dramatic);
  border-color: var(--gold-66);
}

/* Bento Box Masonry Layouts */
.bento-masonry {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-auto-rows: minmax(200px, auto);
}

.bento-item {

  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-elegant);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  /*border: 1px solid var(--charcoal-90);*/
  color: var(--charcoal-10);
}



.bento-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-dramatic);
  border-color: var(--gold-66);
}

.bento-item-large {
  grid-row: span 2;
}

.bento-item-wide {
  grid-column: span 2;
}

.bento-item-tall {
  grid-row: span 3;
}

/* Mobile-first responsive bento */
@media (max-width: 768px) {
  .bento-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  
  .bento-masonry {
    grid-template-columns: 1fr;
  }
  
  .bento-item-wide,
  .bento-item-large,
  .bento-item-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (min-width: 769px) {
  .bento-container {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .bento-masonry {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (min-width: 1024px) {
  .bento-container {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 2rem;
  }
  
  .bento-masonry {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Section-specific styling */
.section-hero {
  background: var(--gradient-royal);
  color: var(--cream-10);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.2;
  z-index: 1;
}

.section-gallery {
  background: var(--gradient-wisdom);
  color: var(--cream-10);
}

.section-gallery .bento-item {
  background: var(--cream-10-10);
  color: var(--charcoal-10);
}

.section-about {
  background: var(--gradient-enlightenment);
  color: var(--charcoal-10);
}

.section-about .bento-item {
  background: var(--cream-10);
  color: var(--charcoal-10);
}

.section-gpt {
  background: var(--gradient-green);
  color: var(--cream-10);
}

.section-gpt .bento-item {
  background: var(--cream-10);
  color: var(--charcoal-10);
}

.section-app {
  background: var(--gradient-serenity);
  color: var(--charcoal-10);
}

.section-app .bento-item {
  background: var(--cream-10);
  color: var(--charcoal-10);
}

.section-roadmap {
  background: var(--gradient-blue-background);
  color: var(--cream-10);
}

.section-roadmap .bento-item {
  background: var(--cream-10);
  color: var(--charcoal-10);
}

.section-support {
  background: var(--gradient-serenity);
  color: var(--charcoal-10);
}

.section-support .bento-item {
  background: var(--cream-10);
  color: var(--charcoal-10);
}

.section-footer {
  background: var(--charcoal-10);
  color: var(--cream-10);
}

/* Quote Styling */
.floating-quote {
  background: rgba(255, 166, 150, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  max-width: 400px;
  font-style: italic;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-left: auto;
  margin-right: auto;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--gradient-primary-button);
  color: var(--cream-10);
  box-shadow: var(--shadow-elegant);
  border: 1px solid var(--maroon-66);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-dramatic);
  background: var(--gradient-primary-button-hover);
}

.btn-secondary {
  background: var(--cream-10);
  color: var(--charcoal-10);
  border: 1px solid var(--charcoal-50);
}

.btn-secondary:hover {
  background: var(--charcoal-50);
  color: var(--cream-10);
  border-color: var(--charcoal-33);
}

/* Prayer Flag Button Classes */

.btn-blue {
  background: var(--gradient-blue-button);
  color: var(--cream-10);
  box-shadow: var(--shadow-elegant);
  border: 1px solid var(--prayer-blue-66);
}

.btn-blue:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-dramatic);
  background: var(--gradient-blue-button-hover);
  border-color: var(--prayer-blue-50);
}

.btn-white {
  background: var(--gradient-white-button);
  color: var(--charcoal-10);
  box-shadow: var(--shadow-elegant);
  border: 1px solid var(--prayer-white-66);
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-dramatic);
  background: var(--gradient-white-button-hover);
  border-color: var(--prayer-white-50);
}

.btn-red {
  background: var(--gradient-red-button);
  color: var(--cream-10);
  box-shadow: var(--shadow-elegant);
  border: 1px solid var(--prayer-red-66);
}

.btn-red:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-dramatic);
  background: var(--gradient-red-button-hover);
  border-color: var(--prayer-red-50);
}

.btn-red-action-item {
  background: linear-gradient(155deg, var(--prayer-red-33), var(--prayer-red-50) 50%, var(--prayer-yellow-50));
  color: var(--cream-10);
  box-shadow: var(--shadow-elegant);
  border: 1px solid var(--prayer-red-66);
  transition: all 0.3s ease;
}

.btn-red-action-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(220, 38, 38, 0.2);
  background: linear-gradient(135deg, var(--prayer-red-50), var(--prayer-red-66) 50%, var(--prayer-yellow-33));
  border-color: var(--prayer-red-50);
}

.btn-green {
  background: var(--gradient-green-button);
  color: var(--cream-10);
  box-shadow: var(--shadow-elegant);
  border: 1px solid var(--prayer-green-66);
}

.btn-green:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-dramatic);
  background: var(--gradient-green-button-hover);
  border-color: var(--prayer-green-50);
}

.btn-yellow {
  background: var(--gradient-yellow-button);
  color: var(--charcoal-10);
  box-shadow: var(--shadow-elegant);
  border: 1px solid var(--prayer-yellow-66);
}

.btn-yellow:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-dramatic);
  background: var(--gradient-yellow-button-hover);
  border-color: var(--prayer-yellow-50);
}

/* Mailing List Signup */
.mailing-signup {
  position: relative;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  padding: 4.5rem 2.5rem 2.5rem 2.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-elegant);
}

.mailing-signup input {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.2);
  color: var(--cream-10);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mailing-signup input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.mailing-signup input:focus {
  outline: none;
  border-color: var(--gold-66);
  background: rgba(255, 255, 255, 0.25);
}

/* Roadmap Table */
.roadmap-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream-10);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--charcoal-90);
  box-shadow: var(--shadow-minimal);
}

.roadmap-table th,
.roadmap-table td {
  padding: 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--charcoal-90);
  vertical-align: top;
}

.roadmap-table th {
  background: var(--sage-90);
  font-weight: 600;
  color: var(--charcoal-10);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.roadmap-table tbody tr:hover {
  background: var(--cream-33);
}

/* Responsive Design */
@media (max-width: 768px) {
  .bento-container {
    padding: 1rem;
    gap: 1rem;
  }
  
  .bento-box {
    padding: 1.5rem;
  }
  
  .floating-quote {
    position: static;
    transform: none;
    margin-top: 2rem;
    max-width: 100%;
  }
  
  .section-hero {
    min-height: 70vh;
    text-align: center;
  }
  
  .display-text {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .bento-container {
    padding: 0.5rem;
  }
  
  .bento-box {
    padding: 1rem;
  }
  
  .display-text {
    font-size: 1.5rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

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

/* Section Border */
.section-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px; /* 0.5 in Tailwind = 2px = 0.125rem */
  background-color: white;
  opacity: 0.33;
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Compassion Animation */
@keyframes compassionFloat {
  0% {
    opacity: 0.9;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-60vh) rotate(180deg) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translateY(-120vh) rotate(360deg) scale(0.8);
  }
}

/* Floating Navigation */
.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(180, 180, 180, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 10px 20px;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  background: var(--maroon-50);
  color: white;
  border: 1px solid var(--maroon-50);
}
/* Section-specific navigation active and hover states */
.nav-link.active[href="#hero"],
.nav-link:hover[href="#hero"] {
  background: var(--maroon-50);
  color: white;
  border: 1px solid var(--maroon-50);
}

.nav-link.active[href="#gallery"],
.nav-link:hover[href="#gallery"] {
  background: var(--indigo-50);
  color: white;
  border: 1px solid var(--indigo-50);
}

.nav-link.active[href="#about"],
.nav-link:hover[href="#about"] {
  background: var(--gold-50);
  color: white;
  border: 1px solid var(--gold-50);
}

.nav-link.active[href="#gpt"],
.nav-link:hover[href="#gpt"] {
  background: var(--prayer-green-50);
  color: white;
  border: 1px solid var(--prayer-green-50);
}

.nav-link.active[href="#app"],
.nav-link:hover[href="#app"] {
  background: var(--sage-50);
  color: white;
  border: 1px solid var(--sage-50);
}

.nav-link.active[href="#roadmap"],
.nav-link:hover[href="#roadmap"] {
  background: var(--indigo-50);
  color: white;
  border: 1px solid var(--indigo-50);
}

.nav-link.active[href="#support"],
.nav-link:hover[href="#support"] {
  background: var(--sage-50);
  color: white;
  border: 1px solid var(--sage-50);
}

@media (max-width: 1159px) {
  .floating-nav {
    display: none;
  }
}

/* Parallax Portrait Effect */
.parallax-portrait {
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-portrait:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-1deg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* Dalai Lama Image Aspect Ratio Container */
.dalai-lama-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1200/630; /* Maintain 1200x630 aspect ratio */
  overflow: hidden;
  border-radius: 8px; /* Subtly rounded corners */
  background: linear-gradient(135deg, var(--sage-90), var(--cream-90));
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1200/630) {
  .dalai-lama-image-container {
    padding-bottom: 52.5%; /* 630/1200 * 100% = 52.5% */
    height: 0;
  }
}

.dalai-lama-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s ease;
  border-radius: 8px; /* Subtly rounded corners */
}

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

/* Loading placeholder for the image */
.dalai-lama-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--sage-90) 0%, var(--cream-90) 100%);
  opacity: 0.3;
  z-index: 1;
}

.dalai-lama-image-container img[src] {
  z-index: 2;
} 


.status-message {
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  display: none;
}

.status-message.success {
  background: linear-gradient(135deg, var(--prayer-green-33), var(--prayer-green-50));
  color: white;
  border: 2px solid var(--prayer-green-33);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3), 0 0 0 4px rgba(34, 197, 94, 0.1);
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  animation: successPulse 0.6s ease-out, successGlow 2s ease-in-out infinite alternate;
}

.status-message.success::before {
  content: "༄༅༎ ☸️ ༄༅༎";
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  animation: symbolFloat 3s ease-in-out infinite;
}

.status-message.success::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: successShine 2s ease-in-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes successGlow {
  0% {
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3), 0 0 0 4px rgba(34, 197, 94, 0.1);
  }
  100% {
    box-shadow: 0 12px 48px rgba(34, 197, 94, 0.5), 0 0 0 6px rgba(34, 197, 94, 0.2);
  }
}

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

@keyframes successShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(30deg);
  }
}

/* Success message components */
.success-main-message {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: white;
}

.submitted-act-display {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.submitted-act-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submitted-act-text {
  font-size: 1rem;
  line-height: 1.5;
  color: white;
  font-style: italic;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  padding-left: 1rem;
}

.submitted-act-attribution {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
  font-weight: 500;
}

.status-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Prayer Flag Footer Styles */
.tibetan-pattern-border-1 {
  background-image: url('/images/patterns/tibetan-pattern-1.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
  opacity: 0.5;
  margin-top: 0.25rem;
}

/* Prayer Flag Footer Styles */
.tibetan-pattern-border-2 {
  background-image: url('/images/patterns/tibetan-pattern-2.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
  opacity: 0.5;
}

/* Mailing signup pattern strip */
.mailing-signup-pattern {
  background-image: url('/images/patterns/tibetan-pattern-2-red.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
  opacity: 0.7;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

/* Compassion form placeholder styling */
#compassion-form input::placeholder,
#compassion-form textarea::placeholder {
  color: rgba(255, 100, 100, 0.9) !important;
}

/* Compassion form text color when typing */
#compassion-form input[type="text"],
#compassion-form input[type="email"],
#compassion-form textarea {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  transition: background-color 0.3s ease !important;
}

/* Compassion form fields turn white when filled (dirty) */
#compassion-form input[type="text"]:not(:placeholder-shown),
#compassion-form input[type="email"]:not(:placeholder-shown),
#compassion-form textarea:not(:placeholder-shown) {
  background-color: white !important;
  color: var(--charcoal-10) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Custom checkbox styling */
#subscribe-newsletter:checked + .checkbox-custom {
  background: linear-gradient(135deg, var(--gold-50), var(--gold-66)) !important;
  border-color: var(--gold-50) !important;
}

#subscribe-newsletter:checked + .checkbox-custom .checkmark {
  opacity: 1 !important;
}

#subscribe-newsletter:focus + .checkbox-custom {
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.5) !important;
}

.footer-logo-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  height: 160px;
  width: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

.footer-logo-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 208px;
  height: 208px;
  background: radial-gradient(circle,
    transparent 0%, 
    hsla(221, 96%, 58%, 0) 56%, 
    hsla(180, 96%, 58%, 1) 60%, 
    hsla(130, 97%, 56%, 1) 62%, 
    hsla(50, 93%, 51%, 1) 65%, 
    rgb(249, 142, 21) 66%, 
    hsla(0, 87%, 55%, 1) 68%, 
    transparent 70%);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.5;
}

.footer-link {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
  text-decoration: none;
}

.footer-link:hover {
  transform: translateY(-2px);
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #FFFFFF;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 80%;
}

/* Prayer Flag Colors for Navigation Links */
.footer-nav a:nth-child(1) { color: #4F46E5; } /* Privacy - Blue (Space) */
.footer-nav a:nth-child(2) { color: #FFFFFF; } /* Terms - White (Air) */
.footer-nav a:nth-child(3) { color: #DC2626; } /* Press Kit - Red (Fire) */
.footer-nav a:nth-child(4) { color: #16A34A; } /* Instagram - Green (Water) */
.footer-nav a:nth-child(5) { color: #FACC15; } /* dalailama.com - Yellow (Earth) */

.footer-nav a:nth-child(1):hover { 
  color: #4F46E5; 
  background: rgba(79, 70, 229, 0.1);
}
.footer-nav a:nth-child(2):hover { 
  color: #FFFFFF; 
  background: rgba(255, 255, 255, 0.1);
}
.footer-nav a:nth-child(3):hover { 
  color: #DC2626; 
  background: rgba(220, 38, 38, 0.1);
}
.footer-nav a:nth-child(4):hover { 
  color: #16A34A; 
  background: rgba(22, 163, 74, 0.1);
}
.footer-nav a:nth-child(5):hover { 
  color: #FACC15; 
  background: rgba(250, 204, 21, 0.1);
}

.footer-divider {
  margin: 2rem 0;
  position: relative;
}

.footer-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 20%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0.1) 80%,
      transparent 100%
  );
}

.footer-copyright {
  position: relative;
  padding: 1.5rem 0;
}

.footer-copyright::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-logo {
      height: 100px;
  }
  
  .footer-logo-container::before {
      width: 140px;
      height: 140px;
  }
  
  .footer-link {
      padding: 0.375rem 0.75rem;
      font-size: 0.875rem;
  }
}

/* Tibetan text enhancement */
.tibetan-text {
  font-family: 'Jomolhari', 'Noto Sans Tibetan', serif;
  letter-spacing: 0.05em;
}

/* Vertical Timeline Styles */
.timeline-line {
  opacity: 0.6;
  z-index: 1;
}

.timeline-items {
  position: relative;
  z-index: 2;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem 0;
  justify-content: center;
}

.timeline-node {
  display: none;
  position: absolute;
  top: 50%;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  z-index: 10;
  border: 3px solid white;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  z-index: 20;
}

/* Position node on the left edge for text-left items (image on right) */
.timeline-item.text-left .timeline-node {
  left: 0.5rem;
}

/* Position node on the right edge for image-left items (image on left) */
.timeline-item.image-left .timeline-node {
  right: 0.5rem;
}

.timeline-split-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-split-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.timeline-text-section {
  flex: 1;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
  background: rgba(0, 0, 0, 0.25);
}

.timeline-image-section {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.timeline-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.timeline-image-section:hover .timeline-image {
  transform: scale(1.05);
}

.timeline-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.timeline-badge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
}

/* Position badge next to node for text-left items (image on right) */
.timeline-item.text-left .timeline-badge {
  left: 0.5rem;
}

/* Position badge next to node for image-left items (image on left) */
.timeline-item.image-left .timeline-badge {
  right: 0.5rem;
}

.timeline-age {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-family: var(--font-display);
}

.timeline-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.95;
  flex-grow: 1;
}

.timeline-detail {
  font-size: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.9;
}

.timeline-highlight {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

/* Center timeline items (for quotes) */
.timeline-item.center {
  justify-content: center;
}

.timeline-quote-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.timeline-quote {
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Special positioning for quote node */
.timeline-quote .timeline-node {
  left: 50%;
  top: -0.5rem;
  transform: translateX(-50%);
}

.timeline-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .timeline-line {
    left: 2rem;
  }
  
  .timeline-node {
    width: 0.75rem;
    height: 0.75rem;
  }
  
  .timeline-item {
    justify-content: flex-start;
  }
  
  .timeline-split-container {
    flex-direction: column;
    max-width: none;
    margin-left: 0;
  }
  
  .timeline-text-section {
    order: 1;
    padding: 1.5rem;
    min-height: auto;
  }
  
  .timeline-image-section {
    order: 2;
    min-height: 200px;
  }
  
  /* For image-left items on mobile, put image first */
  .timeline-item.image-left .timeline-text-section {
    order: 2;
  }
  
  .timeline-item.image-left .timeline-image-section {
    order: 1;
  }
  
  /* Mobile node positioning - always on left edge */
  .timeline-item.text-left .timeline-node,
  .timeline-item.image-left .timeline-node {
    left: -0.375rem;
    right: auto;
  }
  
  /* Mobile badge positioning - always on left side */
  .timeline-item.text-left .timeline-badge,
  .timeline-item.image-left .timeline-badge {
    left: 0.75rem;
    right: auto;
  }
  
  .timeline-title {
    font-size: 1.25rem;
  }
  
  .timeline-text {
    font-size: 0.9rem;
  }
  
  .timeline-detail {
    font-size: 0.7rem;
  }
  
  .timeline-quote-wrapper {
    margin-left: 0;
    max-width: none;
  }
  
  .timeline-quote {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .timeline-node {
    width: 0.5rem;
    height: 0.5rem;
  }
  
  .timeline-line {
    left: 1.25rem;
  }
  
  .timeline-item {
    justify-content: flex-start;
  }
  
  .timeline-image-section {
    min-height: 160px;
  }
  
  .timeline-text-section {
    padding: 1rem;
  }
  
  .timeline-title {
    font-size: 1.125rem;
  }
  
  /* Mobile badge positioning for smaller screens */
  .timeline-item.text-left .timeline-badge,
  .timeline-item.image-left .timeline-badge {
    left: 0.5rem;
    right: auto;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
  }
  
  /* Mobile node positioning for smaller screens */
  .timeline-item.text-left .timeline-node,
  .timeline-item.image-left .timeline-node {
    left: -0.25rem;
    right: auto;
  }
  
  .timeline-quote {
    padding: 1rem;
  }
}

/* Modal Styles */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content:focus {
  outline: none;
}

/* Custom scrollbar for modal content */
.modal-scroll::-webkit-scrollbar {
  width: 6px;
}

.modal-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: var(--charcoal-66);
  border-radius: 3px;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--charcoal-50);
}

/* Accessibility */
.modal-hidden {
  visibility: hidden;
}

.modal-visible {
  visibility: visible;
}

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

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .modal-responsive {
    max-width: 95vw;
    margin: 1rem;
    max-height: 85vh;
  }
  
  .modal-responsive .modal-header {
    padding: 1.5rem;
  }
  
  .modal-responsive .modal-body {
    padding: 1.5rem;
    max-height: 60vh;
  }
}

@media (max-width: 480px) {
  .modal-responsive {
    max-width: 98vw;
    margin: 0.5rem;
  }
  
  .modal-responsive .modal-header {
    padding: 1rem;
  }
  
  .modal-responsive .modal-body {
    padding: 1rem;
  }
  
  .modal-responsive .modal-title {
    font-size: 1.5rem;
  }
}