/* ===================================
   CSS Variables
   =================================== */
:root {
  /* Colors */
  --color-primary: #0A1128;
  --color-accent: #0066FF;
  --color-highlight: #00D9FF;
  --color-white: #F8F9FA;
  --color-text: #2D3748;
  --color-text-light: #6C757D;
  --color-gray-light: #E9ECEF;
  --color-navy-light: #1E3A5F;

  /* Spacing */
  --spacing-section: 120px;
  --spacing-section-mobile: 60px;
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 18px;
  --font-size-base-mobile: 16px;
  --line-height-base: 1.7;

  /* Transitions */
  --transition-speed: 0.3s;
  --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base-mobile);
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-ease);
}

a:hover {
  color: var(--color-highlight);
}

/* ===================================
   Layout Components
   =================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.section-standard {
  padding: var(--spacing-section-mobile) 0;
}

.section-alt {
  padding: var(--spacing-section-mobile) 0;
  background: var(--color-gray-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

.section-description {
  text-align: center;
  max-width: 900px;
  margin: 3rem auto 0;
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===================================
   Hero Section
   =================================== */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary), var(--color-navy-light));
  color: white;
  text-align: center;
  overflow: hidden;
}

#network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.section-hero .container {
  position: relative;
  z-index: 10;
}

.section-hero h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.tagline {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-highlight);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0.95;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.7;
}

.scroll-indicator svg {
  color: white;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
  display: inline-block;
  padding: 16px 32px;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-speed) var(--transition-ease);
  border: 2px solid var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-highlight);
  border-color: var(--color-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===================================
   Grid Layouts
   =================================== */
.three-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 3rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 3rem;
}

/* ===================================
   Feature Cards
   =================================== */
.feature-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) var(--transition-ease);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
  border-radius: 12px;
  color: white;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.feature-card p {
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ===================================
   Etymology Section
   =================================== */
.etymology-breakdown {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.etymology-item h3 {
  margin-bottom: 0.5rem;
}

.etymology-prefix {
  color: var(--color-accent);
  font-size: 2rem;
}

.etymology-origin {
  font-style: italic;
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.etymology-connector {
  text-align: center;
  font-size: 2rem;
  color: var(--color-accent);
  font-weight: 700;
}

.etymology-visual {
  text-align: center;
}

.etymology-visual svg {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.visual-caption {
  margin-top: 1rem;
  font-style: italic;
  color: var(--color-text-light);
  text-align: center;
}

.philosophy-text {
  max-width: 900px;
  margin: 3rem auto 0;
  text-align: center;
}

.philosophy-text p {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===================================
   Value Cards
   =================================== */
.value-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) var(--transition-ease);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
  border-radius: 10px;
  color: white;
}

.value-card h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.value-card p {
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ===================================
   Mission Section
   =================================== */
.section-mission {
  padding: var(--spacing-section-mobile) 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-navy-light));
  color: white;
}

.mission-statement {
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 500;
  font-style: italic;
  border: none;
  margin: 0;
}

.mission-statement p {
  margin: 0;
  color: white;
}

/* ===================================
   Goals Timeline
   =================================== */
.goals-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 3rem;
}

.goal-item {
  position: relative;
  padding: 32px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) var(--transition-ease);
}

.goal-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--color-highlight);
}

.goal-label {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.goal-item h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.goal-item p {
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ===================================
   CTA Section
   =================================== */
.section-cta {
  padding: var(--spacing-section-mobile) 0;
  background: var(--color-gray-light);
  text-align: center;
}

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

.section-cta p {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
  background: var(--color-primary);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-info h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-email a {
  color: var(--color-highlight);
}

.footer-email a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  transition: all var(--transition-speed) var(--transition-ease);
}

.footer-social a:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

/* ===================================
   Animations
   =================================== */
.fade-in {
  animation: fadeIn 1s ease-out;
}

.fade-in-delay {
  animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
  animation: fadeIn 1s ease-out 0.6s both;
}

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

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

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===================================
   Responsive Design - Tablet
   =================================== */
@media (min-width: 768px) {
  html {
    font-size: 17px;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .section-hero h1 {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1.75rem;
  }

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

  .split-layout {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ===================================
   Responsive Design - Desktop
   =================================== */
@media (min-width: 1024px) {
  html {
    font-size: var(--font-size-base);
  }

  .section-standard,
  .section-alt,
  .section-cta {
    padding: var(--spacing-section) 0;
  }

  .section-mission {
    padding: var(--spacing-section) 0;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-hero h1 {
    font-size: 3.5rem;
  }

  .tagline {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }

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

  .mission-statement {
    font-size: 1.75rem;
  }

  .goals-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .goal-item {
    border-left: none;
    border-top: 4px solid var(--color-accent);
  }

  .goal-item:hover {
    transform: translateY(-8px);
  }
}

/* ===================================
   Accessibility
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-text: #000000;
    --color-text-light: #1a1a1a;
  }
}
