/* =========================================================
   ASCENDED INTELLIGENCE - MASTER STYLESHEET
   ========================================================= */

/* 1. DESIGN TOKENS
   ========================================================= */
:root {
  /* Brand Colors */
  --blue-deep: #0052A3;
  --blue-primary: #0066CC;
  --blue-bright: #0080FF;
  --teal-primary: #00B8A9;
  --teal-bright: #00D4C5;
  --green-primary: #00E5A0;
  --green-bright: #57FF92;

  /* Neutrals */
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0F172A;

  /* Dimensions */
  --header-height: 88px;
  --header-height-mobile: 76px;
  --field-radius: 16px;
  --field-height: 46px;
  --field-pad-x: 24px;

  /* Animation */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-smooth: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* 2. BASE & RESET
   ========================================================= */
html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--slate-50);
  color: var(--slate-900);
  position: relative;
  padding-top: var(--header-height);
  line-height: 1.6;
  font-size: 16px; /* Base font size for mobile */
}

/* Desktop font size increase */
@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }
}

/* Background Gradients */
body::before {
  content: ""; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 1400px 900px at 50% 10%, rgba(0, 102, 204, 0.06), transparent),
    radial-gradient(ellipse 1200px 700px at 30% 50%, rgba(0, 184, 169, 0.05), transparent),
    radial-gradient(ellipse 1000px 600px at 70% 75%, rgba(0, 229, 160, 0.04), transparent);
  pointer-events: none; z-index: -2;
}
body::after {
  content: ""; position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0, 102, 204, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 204, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none; z-index: -1; opacity: 0.5;
}

/* 3. TYPOGRAPHY
   ========================================================= */
.heading-hero {
  font-family: 'Lexend', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.heading-lg {
  font-family: 'Lexend', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.heading-md {
  font-family: 'Lexend', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.heading-sm {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.text-balance { text-wrap: balance; }
.gradient-ascend-text {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--teal-primary) 50%, var(--green-primary) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* 4. LAYOUT & SECTIONS
   ========================================================= */
.container {
  max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 10;
}

/* Standard Section Padding */
.section {
  padding: 6rem 0;
  position: relative;
  background: transparent;
}

@media (min-width: 768px) {
  .section { padding: 7rem 0; }
}

/* Hero Section Specifics - Increased top padding to prevent cut-off */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 3rem; /* Increased from 0.5rem */
  padding-bottom: 4rem;
}

/* Section Transitions */
.section::before, .section::after,
.section-white::before, .section-white::after,
.hero-section::before, .hero-section::after {
  content: ""; position: absolute; left: 0; right: 0; height: 200px; pointer-events: none; z-index: 0;
}

/* Standard Fade */
.section::before, .hero-section::before {
  top: 0; background: linear-gradient(to bottom, var(--slate-50), rgba(248, 250, 252, 0));
}
.section::after, .hero-section::after {
  bottom: 0; background: linear-gradient(to bottom, rgba(248, 250, 252, 0), var(--slate-50));
}

/* White Section Fade */
.section-white::before {
  top: 0; height: 250px; background: linear-gradient(to bottom, var(--slate-50), rgba(248, 250, 252, 0.2));
}
.section-white::after {
  bottom: 0; height: 250px; background: linear-gradient(to bottom, rgba(248, 250, 252, 0.2), var(--slate-50));
}

.section-from-white { background: linear-gradient(to bottom, white 0%, var(--slate-50) 100%); }
.section-to-white { background: linear-gradient(to bottom, var(--slate-50) 0%, white 100%); }

/* 5. COMPONENTS
   ========================================================= */

/* Feature Icons - Inline Version (no box) */
.feature-icon-inline {
  width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(0, 184, 169, 0.08));
  transition: all 340ms var(--ease-smooth); flex-shrink: 0;
}

/* Challenge Flow - Centered Symmetrical Layout */
.challenge-flow {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.challenge-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0, 102, 204, 0.08);
  transition: all 400ms var(--ease-smooth);
}

.challenge-item:last-child {
  border-bottom: none;
}

.challenge-item:hover {
  transform: translateY(-4px);
  padding-top: 2.5rem;
}

.challenge-content {
  flex: 1;
}

/* Process Flow - Horizontal Layout */
.process-flow-horizontal {
  position: relative;
  padding: 2rem 0;
}

.process-container-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.process-box {
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 400ms var(--ease-smooth);
  position: relative;
  border-bottom: 2px solid rgba(0, 102, 204, 0.08);
  border-radius: 16px;
}

.process-box:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--teal-primary);
}

.process-arrow-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-primary);
  opacity: 0.5;
  transition: all 300ms var(--ease-smooth);
  flex-shrink: 0;
}

.process-arrow-horizontal:hover {
  opacity: 0.8;
  transform: scale(1.15);
}

.iq-box-flow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.03), rgba(0, 184, 169, 0.06), rgba(0, 229, 160, 0.03));
  border: 2px solid rgba(0, 184, 169, 0.2) !important;
  box-shadow: 0 0 40px rgba(0, 184, 169, 0.15), 0 8px 32px rgba(0, 102, 204, 0.1) !important;
}

.iq-box-flow::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 184, 169, 0.12) 0%, rgba(0, 229, 160, 0.08) 30%, transparent 70%);
  animation: iqPulse 6s ease-in-out infinite;
  pointer-events: none;
}

.iq-box-flow:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 184, 169, 0.4) !important;
  box-shadow: 0 0 60px rgba(0, 184, 169, 0.25), 0 12px 48px rgba(0, 102, 204, 0.15) !important;
}

/* IQ Showcase - Reimagined without box */
.iq-showcase {
  position: relative;
  padding: 5rem 3rem;
  margin: 6rem 0;
  overflow: visible;
}

.iq-content-centered {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.iq-logo-container {
  position: relative;
  width: fit-content;
}

/* Capabilities Flow - Centered Grid */
.capabilities-flow-centered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.capability-item-centered {
  padding: 2rem;
  border-radius: 16px;
  transition: all 400ms var(--ease-smooth);
  border-bottom: 2px solid rgba(0, 184, 169, 0.1);
}

.capability-item-centered:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--teal-primary);
}

/* Testimonials Flow */
.testimonials-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.testimonial-item {
  padding: 2.5rem 0;
  border-left: 3px solid rgba(0, 184, 169, 0.2);
  padding-left: 2.5rem;
  transition: all 300ms var(--ease-smooth);
}

.testimonial-item:hover {
  border-left-color: var(--teal-primary);
  padding-left: 3rem;
}

/* Team Grid - Symmetrical Layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-member-centered {
  text-align: center;
  transition: all 400ms var(--ease-smooth);
}

.team-member-centered img {
  width: 100%;
  max-width: 280px;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 102, 204, 0.15);
  transition: all 400ms var(--ease-smooth);
}

.team-member-centered img[alt="Chris Chism"] {
  object-position: center 20%;
}

.team-member-centered:hover img {
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 102, 204, 0.25);
}

/* Video Container - Responsive YouTube Embed */
.video-container {
  max-width: 1000px;
  margin: 0 auto;
  transition: all 400ms var(--ease-smooth);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 102, 204, 0.15);
  border: 2px solid rgba(0, 102, 204, 0.1);
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.03), rgba(0, 184, 169, 0.03));
  transition: all 400ms var(--ease-smooth);
}

.video-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 102, 204, 0.25);
  border-color: rgba(0, 102, 204, 0.2);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
}

/* Contact Flow - Open Layout */
.contact-flow {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-header {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  background: linear-gradient(135deg, rgba(0, 184, 169, 0.04), rgba(0, 229, 160, 0.04));
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(0, 184, 169, 0.15);
  transition: all 400ms var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--blue-bright), var(--teal-bright), var(--green-bright));
  border-radius: 24px;
  opacity: 0;
  filter: blur(24px);
  transition: opacity 1200ms var(--ease-smooth);
  z-index: -1;
}

.contact-form:hover {
  border-color: rgba(0, 184, 169, 0.25);
  box-shadow: 0 12px 40px rgba(0, 184, 169, 0.08);
  transform: translateY(-6px);
}

.contact-form:hover::before {
  opacity: 0.5;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem;
  font-weight: 600; font-size: 0.9375rem; border-radius: 0.75rem;
  transition: all 220ms var(--ease-smooth); text-decoration: none; border: none; cursor: pointer; font-family: inherit;
}

@media (min-width: 1024px) {
  .btn {
    font-size: 1.0625rem;
  }
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary), var(--teal-primary));
  color: white; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35); }
.btn-secondary {
  background: white; color: var(--slate-700); border: 1.5px solid rgba(0, 102, 204, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.btn-secondary:hover {
  border-color: var(--blue-primary); color: var(--blue-primary); box-shadow: 0 4px 12px rgba(0, 102, 204, 0.12);
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 102, 204, 0.12); border-radius: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 12px 36px rgba(0, 102, 204, 0.05);
  position: relative; transition: all 320ms var(--ease-smooth);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04), 0 24px 60px rgba(0, 102, 204, 0.10);
  border-color: rgba(0, 102, 204, 0.25);
}
.card-glow { position: relative; overflow: hidden; }
.card-glow::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 184, 169, 0.12), transparent);
  transition: left 700ms var(--ease-smooth);
}
.card-glow:hover::before { left: 100%; }

/* Feature Icons */
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(0, 184, 169, 0.12));
  border: 1.5px solid rgba(0, 102, 204, 0.2); transition: all 340ms var(--ease-smooth); flex-shrink: 0;
}
.feature-icon:hover, .card:hover .feature-icon {
  transform: scale(1.12) rotate(3deg);
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.18), rgba(0, 184, 169, 0.18));
  border-color: rgba(0, 102, 204, 0.35);
}

/* Contact Section Container */
.contact-section-box {
  background: linear-gradient(135deg, rgba(0, 184, 169, 0.08), rgba(0, 229, 160, 0.08));
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.02),
    0 12px 36px rgba(0, 102, 204, 0.05);
  border: 1.5px solid rgba(0, 184, 169, 0.2);
  position: relative;
  transition: all 320ms var(--ease-smooth);
  text-align: center;
  overflow: hidden;
}

.contact-section-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--blue-bright), var(--teal-bright), var(--green-bright));
  border-radius: 24px;
  opacity: 0;
  filter: blur(24px);
  transition: opacity 1200ms var(--ease-smooth);
  z-index: -1;
}

.contact-section-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04), 0 24px 60px rgba(0, 102, 204, 0.10);
  border-color: rgba(0, 184, 169, 0.35);
}

.contact-section-box:hover::before {
  opacity: 0.5;
}

/* Form Container */
#contactForm {
  position: relative;
  z-index: 1;
}

.contact-section-box > * {
  position: relative;
  z-index: 1;
}

/* Form Inputs */
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea,
#contactForm select,
form input[type="text"],
form input[type="email"],
form textarea,
form select {
  width: 100%;
  padding-left: 1.85rem;
  padding-right: 1.85rem;
  padding-top: 0;
  padding-bottom: 0;
  height: var(--field-height);
  line-height: var(--field-height);
  border: 1.5px solid rgba(0, 102, 204, 0.15);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--field-radius);
  font-size: 1.0625rem;
  color: var(--slate-900);
  transition: all 220ms var(--ease-smooth);
  font-family: inherit;
}
#contactForm textarea,
form textarea {
  min-height: 100px;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  padding-left: 1.85rem;
  padding-right: 1.85rem;
  line-height: 1.55;
  resize: vertical;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none; background: white; border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.08), 0 4px 12px rgba(0, 102, 204, 0.15);
  transform: translateY(-1px);
}
form input::placeholder, form textarea::placeholder { color: var(--slate-400); font-size: 1.0625rem; }
form label { display: block; font-weight: 500; color: var(--slate-700); margin-bottom: 0.25rem; font-size: 0.9375rem; }
form label .required { color: var(--blue-primary); }

@media (min-width: 1024px) {
  #contactForm input[type="text"],
  #contactForm input[type="email"],
  #contactForm textarea,
  #contactForm select,
  form input[type="text"],
  form input[type="email"],
  form textarea,
  form select {
    font-size: 1.125rem;
  }
  form input::placeholder, form textarea::placeholder {
    font-size: 1.125rem;
  }
  form label {
    font-size: 1rem;
  }
}

/* Contact Section Button - Solid Blue Style */
.contact-section-box .btn-primary {
  background: var(--blue-primary);
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
  position: relative;
  overflow: hidden;
}

.contact-section-box .btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-primary), var(--teal-primary));
  opacity: 0;
  transition: opacity 300ms var(--ease-smooth);
}

.contact-section-box .btn-primary:hover::before {
  opacity: 1;
}

.contact-section-box .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.45);
}

.contact-section-box .btn-primary span {
  position: relative;
  z-index: 1;
}

/* 6. PAGE ELEMENTS
   ========================================================= */
.ascend-line {
  position: absolute; height: 2px; background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
  opacity: 0.2; transform-origin: bottom left;
}
.ascend-line-1 { bottom: 10%; left: 10%; width: 300px; transform: rotate(35deg); animation: flow-up 20s infinite ease-in-out; }
.ascend-line-2 { bottom: 20%; left: 40%; width: 250px; transform: rotate(40deg); animation: flow-up 18s infinite ease-in-out 3s; }
.ascend-line-3 { bottom: 15%; right: 20%; width: 280px; transform: rotate(45deg); animation: flow-up 22s infinite ease-in-out 7s; }
@keyframes flow-up { 0%, 100% { opacity: 0.2; transform: translateY(0) rotate(35deg); } 50% { opacity: 0.4; transform: translateY(-100px) rotate(38deg); } }

.brain-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: calc((100vw - 1320px) / 4);
}
.brain-container-mobile { position: relative; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }

.brain-container video,
.brain-container-mobile video {
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

/* Hero brain positioning - for desktop */
.hero-brain-desktop {
  margin-left: auto;
  margin-right: calc((100vw - 1320px) / 4);
}

/* Process flow with transition delay */
.process-flow-delayed {
  transition-delay: 200ms;
}

/* Fade in with transition delay */
.fade-in-delayed {
  transition-delay: 200ms;
}

/* Mission section feature borders */
.mission-feature-border-blue {
  transition: all 300ms var(--ease-smooth);
}

.mission-feature-border-teal {
  transition: all 300ms var(--ease-smooth);
}

/* Show more/less button visibility */
.show-more-hide-text {
  display: none;
}
.brain-glow { position: absolute; inset: -30px; background: radial-gradient(circle, var(--teal-bright) 0%, transparent 70%); opacity: 0.25; filter: blur(40px); animation: pulse-brain 5s infinite ease-in-out; }
@keyframes pulse-brain { 0%, 100% { opacity: 0.2; transform: scale(1); } 50% { opacity: 0.35; transform: scale(1.15); } }
@keyframes bounce-brain { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* IQ Box - Enhanced Intelligence Theme */
.iq-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.03), rgba(0, 184, 169, 0.06), rgba(0, 229, 160, 0.03));
  border: 2px solid rgba(0, 184, 169, 0.2) !important;
  box-shadow: 0 0 40px rgba(0, 184, 169, 0.15), 0 8px 32px rgba(0, 102, 204, 0.1) !important;
}

.iq-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 184, 169, 0.12) 0%, rgba(0, 229, 160, 0.08) 30%, transparent 70%);
  animation: iqPulse 6s ease-in-out infinite;
  pointer-events: none;
}

.iq-box:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 184, 169, 0.4) !important;
  box-shadow: 0 0 60px rgba(0, 184, 169, 0.25), 0 12px 48px rgba(0, 102, 204, 0.15) !important;
}

/* Neural Grid Background */
.iq-neural-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 184, 169, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 184, 169, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  pointer-events: none;
  animation: gridFloat 20s linear infinite;
}

/* Data Particles Effect */
.iq-data-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 184, 169, 0.4) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(0, 229, 160, 0.4) 2px, transparent 2px),
    radial-gradient(circle at 40% 60%, rgba(0, 184, 169, 0.3) 1.5px, transparent 1.5px),
    radial-gradient(circle at 70% 20%, rgba(0, 229, 160, 0.3) 1.5px, transparent 1.5px),
    radial-gradient(circle at 15% 80%, rgba(0, 184, 169, 0.2) 1px, transparent 1px),
    radial-gradient(circle at 90% 40%, rgba(0, 229, 160, 0.2) 1px, transparent 1px);
  background-size: 100% 100%;
  animation: particleFloat 8s ease-in-out infinite;
}

/* Data Flow Lines */
.iq-flow-line {
  position: absolute;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 184, 169, 0.6), transparent);
  filter: blur(1px);
  opacity: 0;
}

.iq-flow-1 {
  top: 15%;
  left: -100%;
  width: 100px;
  height: 2px;
  animation: flowRight 3s ease-in-out infinite;
}

.iq-flow-2 {
  top: 45%;
  right: -100%;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 160, 0.6), transparent);
  animation: flowLeft 3.5s ease-in-out infinite 0.5s;
}

.iq-flow-3 {
  top: 70%;
  left: -100%;
  width: 60px;
  height: 2px;
  animation: flowRight 4s ease-in-out infinite 1s;
}

.iq-flow-4 {
  top: 85%;
  right: -100%;
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 184, 169, 0.5), transparent);
  animation: flowLeft 3.2s ease-in-out infinite 1.5s;
}

/* Neural Nodes */
.iq-neural-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(0, 184, 169, 0.6);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 184, 169, 0.8);
  animation: nodePulse 3s ease-in-out infinite;
}

.iq-neural-node::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(0, 184, 169, 0.3);
  border-radius: 50%;
  animation: nodeRing 3s ease-in-out infinite;
}

.iq-node-1 { top: 20%; left: 12%; animation-delay: 0s; }
.iq-node-2 { top: 35%; right: 15%; animation-delay: 0.5s; }
.iq-node-3 { bottom: 25%; left: 18%; animation-delay: 1s; }
.iq-node-4 { bottom: 40%; right: 10%; animation-delay: 1.5s; }

/* Processing Ring */
.iq-processing-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(0, 184, 169, 0.2);
  border-radius: 50%;
  pointer-events: none;
  animation: processingRotate 10s linear infinite;
}

.iq-processing-ring::before,
.iq-processing-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.iq-processing-ring::before {
  inset: -15px;
  border: 1px solid rgba(0, 229, 160, 0.15);
  animation: processingRotate 15s linear infinite reverse;
}

.iq-processing-ring::after {
  inset: 15px;
  border: 1px solid rgba(0, 184, 169, 0.25);
  animation: processingRotate 8s linear infinite;
}

/* Logo Container */
.iq-logo-container {
  position: relative;
  width: fit-content;
}

.iq-logo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(0, 184, 169, 0.4) 0%, transparent 70%);
  filter: blur(20px);
  animation: logoGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

.iq-logo {
  background: linear-gradient(135deg, rgba(0, 184, 169, 0.2), rgba(0, 229, 160, 0.2)) !important;
  border: 2px solid rgba(0, 184, 169, 0.3);
  position: relative;
  transition: all 300ms var(--ease-smooth);
}

.iq-box:hover .iq-logo {
  transform: scale(1.1);
  border-color: rgba(0, 184, 169, 0.5);
  box-shadow: 0 0 30px rgba(0, 184, 169, 0.4);
}

/* Tagline */
.iq-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--teal-primary), var(--green-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.9;
}

/* Feature Items */
.iq-features-list {
  font-size: 0.9375rem;
  font-weight: 500;
}

.iq-feature-item {
  transition: all 250ms var(--ease-smooth);
  padding: 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 8px;
}

.iq-feature-item:hover {
  background: rgba(0, 184, 169, 0.05);
  transform: translateX(4px);
}

.iq-feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 184, 169, 0.1), rgba(0, 229, 160, 0.1));
  border-radius: 8px;
  flex-shrink: 0;
  transition: all 250ms var(--ease-smooth);
}

.iq-feature-item:hover .iq-feature-icon {
  background: linear-gradient(135deg, rgba(0, 184, 169, 0.2), rgba(0, 229, 160, 0.2));
  transform: scale(1.1);
}

/* Animations */
@keyframes iqPulse {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.4; }
  50% { transform: scale(1.15) translateY(-15px); opacity: 0.6; }
}

@keyframes gridFloat {
  0% { background-position: 0 0; }
  100% { background-position: 30px 30px; }
}

@keyframes particleFloat {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(-10px); }
}

@keyframes flowRight {
  0% { left: -100%; opacity: 0; }
  50% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes flowLeft {
  0% { right: -100%; opacity: 0; }
  50% { opacity: 1; }
  100% { right: 100%; opacity: 0; }
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

@keyframes nodeRing {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.8); }
}

@keyframes processingRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes logoGlowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.process-container { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 2rem; align-items: center; }
.process-arrow { display: flex; align-items: center; justify-content: center; color: var(--teal-primary); opacity: 0.4; flex-shrink: 0; }

.team-member-card { text-align: left; display: flex; flex-direction: column; }
.team-member-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center; border-radius: 20px; margin-bottom: 1.5rem; box-shadow: 0 8px 24px rgba(0, 102, 204, 0.12); }
.team-member-card img[alt="Chris Chism"] { object-position: center 20%; }
.team-member-card .linkedin-link { margin-top: auto; align-self: flex-end; }

.bio-preview.hidden { display: none; }
.bio-full { display: none; }
.bio-full.expanded { display: block; }
.show-more-btn { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--blue-primary); font-size: 0.9375rem; font-weight: 500; background: none; border: none; padding: 0; margin-top: 0.75rem; cursor: pointer; }
.show-more-btn svg { transition: transform 200ms var(--ease-smooth); }
.show-more-btn.expanded svg { transform: rotate(180deg); }
.linkedin-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--blue-primary); font-size: 0.9375rem; font-weight: 500; margin-top: 1rem; text-decoration: none; }
.linkedin-link:hover, .show-more-btn:hover { color: var(--teal-primary); gap: 0.75rem; }

/* 7. PRIVACY & CONTENT
   ========================================================= */
.content-section { padding: 5rem 0 6rem 0; max-width: 800px; }
.content-section h1 { font-size: 2.5rem; font-weight: 700; color: var(--slate-900); margin-bottom: 1.5rem; line-height: 1.2; }
.content-section h2 { font-size: 1.75rem; font-weight: 600; color: var(--slate-900); margin-top: 3rem; margin-bottom: 1rem; }
.content-section h3 { font-size: 1.25rem; font-weight: 600; color: var(--slate-800); margin-top: 2rem; margin-bottom: 0.75rem; }
.content-section p { color: var(--slate-600); line-height: 1.8; margin-bottom: 1.25rem; }
.content-section ul, .content-section ol { margin-left: 1.5rem; margin-bottom: 1.25rem; color: var(--slate-600); list-style-type: disc; }
.content-section li { margin-bottom: 0.5rem; line-height: 1.8; }
.content-section a {
  color: var(--blue-primary);
}
.last-updated { color: var(--slate-500); font-size: 0.875rem; margin-bottom: 2rem; }

/* Privacy/Accessibility specific styles */
.privacy-contact-info {
  margin-top: 1.5rem;
}

.privacy-notice-box,
.accessibility-notice-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--slate-50);
  border-left: 4px solid var(--blue-primary);
  border-radius: 0.5rem;
}

.accessibility-section-margin {
  margin-top: 1rem;
}

.accessibility-contact-margin {
  margin-top: 2rem;
}

/* 8. HEADER
   ========================================================= */
#header {
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: box-shadow 300ms var(--ease-smooth);
}

#header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 102, 204, 0.08);
}

.header-brand-text {
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}

.nav-link { color: var(--slate-700); font-weight: 500; font-size: 0.9375rem; position: relative; display: inline-block; text-decoration: none; transition: color 220ms var(--ease-smooth); }
.nav-link::before { content: ""; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: linear-gradient(135deg, var(--blue-primary), var(--teal-primary), var(--green-primary)); border-radius: 6px; transition: width 280ms var(--ease-smooth); }
.nav-link:hover { color: var(--blue-primary); }
.nav-link:hover::before { width: calc(100% - 16px); }

@media (min-width: 1024px) {
  .nav-link {
    font-size: 1.0625rem;
  }
}
.skip-link { position: absolute; top: -40px; left: 0; background: var(--blue-primary); color: white; padding: 0.5rem 1rem; z-index: 101; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* 9. FOOTER
   ========================================================= */
footer a { text-decoration: none; transition: color 200ms var(--ease-smooth); }

.footer-logo {
  filter: brightness(0) invert(1);
}

.footer-brand-text {
  font-size: 1.0625rem;
}

/* 10. 404 ERROR PAGE
   ========================================================= */
.error-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(to bottom, #f8fafc 0%, white 100%);
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0066CC, #00B8A9, #00E5A0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .error-code {
    font-size: 5rem;
  }
}

/* 11. ANIMATIONS & UTILS
   ========================================================= */
.gradient-ascend { background: linear-gradient(135deg, var(--blue-primary) 0%, var(--teal-primary) 50%, var(--green-primary) 100%); }
.gradient-glow { position: relative; }
.gradient-glow::before { content: ""; position: absolute; inset: -2px; background: linear-gradient(135deg, var(--blue-bright), var(--teal-bright), var(--green-bright)); border-radius: inherit; opacity: 0; filter: blur(24px); transition: opacity 400ms var(--ease-smooth); z-index: -1; }
.gradient-glow:hover::before { opacity: 0.5; }

@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity: 0; transform: translateY(40px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
  .fade-in.visible { opacity: 1; transform: translateY(0); }
  .stagger-children > * { opacity: 0; transform: translateY(30px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .stagger-children.visible > * { opacity: 1; transform: translateY(0); }
  .stagger-children.visible > *:nth-child(1) { transition-delay: 100ms; }
  .stagger-children.visible > *:nth-child(2) { transition-delay: 200ms; }
  .stagger-children.visible > *:nth-child(3) { transition-delay: 300ms; }
  .stagger-children.visible > *:nth-child(4) { transition-delay: 400ms; }
  .stagger-children.visible > *:nth-child(5) { transition-delay: 500ms; }
  .stagger-children.visible > *:nth-child(6) { transition-delay: 600ms; }
}

@media (max-width: 1400px) {
  .brain-container { margin-right: 0; }
  .container { padding: 0 2rem; }
}

@media (max-width: 1200px) {
  .process-container { grid-template-columns: 1fr !important; gap: 2rem; }
  .process-arrow { transform: rotate(90deg); }

  /* Horizontal Process Flow - Stack on mobile */
  .process-container-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-arrow-horizontal {
    transform: rotate(90deg);
    margin: -1rem 0;
  }

  /* IQ Box Mobile Optimizations */
  .iq-processing-ring {
    width: 140px;
    height: 140px;
  }

  .iq-neural-grid {
    background-size: 25px 25px;
  }
}

@media (max-width: 1023px) {
  body { padding-top: var(--header-height-mobile); }
  .section { padding: 4rem 0; }
  .hero-section { padding-top: 2rem !important; padding-bottom: 3rem; min-height: auto; }
  h1, .heading-hero { font-size: 2rem; line-height: 1.2; }
  h2, .heading-lg { font-size: 1.75rem; line-height: 1.3; }
  h3, .heading-md { font-size: 1.5rem; }
  .team-member-card { text-align: center; }
  .team-member-card img { margin-left: auto; margin-right: auto; }
  .team-member-card .linkedin-link { align-self: flex-end; }
  .content-section { padding: 3rem 0 4rem 0; }
  .contact-section-box.scroll-active::before { opacity: 0.5; }
  #mobileMenu .nav-link::before { display: none; }

  /* Video responsive adjustments */
  .video-wrapper {
    border-radius: 16px;
  }

  .video-wrapper iframe {
    border-radius: 14px;
  }

  /* Mobile: Center align mission bullets on about page */
  .lg\:grid-cols-2 .space-y-6 .flex.items-start {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Mobile: Optimize symmetrical layouts */
  .challenge-flow { gap: 2.5rem; }
  .challenge-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0;
  }

  .process-flow-centered { gap: 3rem; }

  .iq-showcase {
    padding: 3rem 1.5rem;
    margin: 4rem 0;
  }

  .capabilities-flow-centered {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .capability-item-centered {
    padding: 1.5rem;
  }

  .testimonial-item {
    border-left: none;
    border-top: 3px solid rgba(0, 184, 169, 0.2);
    padding-left: 0;
    padding-top: 2rem;
  }

  .testimonial-item:hover {
    border-top-color: var(--teal-primary);
    padding-left: 0;
    padding-top: 2.5rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .team-member-centered img {
    max-width: 280px;
    height: 280px;
  }

  .contact-flow { gap: 2rem; }
  .contact-form { padding: 2rem; }

  /* Center mission statement text on mobile */
  .grid.lg\:grid-cols-2 .fade-in:first-child { text-align: center; }

  /* Mission section features - adjust for mobile */
  .grid.lg\:grid-cols-2 .fade-in .flex.items-start {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* Keep feature card text left-aligned on mobile */
  .grid.lg\:grid-cols-2 .card { text-align: left; }

  /* Testimonial Carousel for Mobile */
  #testimonials .testimonial-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 3rem;
  }

  #testimonials .testimonial-carousel {
    display: flex;
    transition: transform 500ms var(--ease-smooth);
  }

  #testimonials .testimonial-carousel .testimonial-item {
    flex: 0 0 100%;
    margin: 0 !important;
  }

  #testimonials .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  #testimonials .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--slate-300);
    border: none;
    cursor: pointer;
    transition: all 300ms var(--ease-smooth);
    padding: 0;
  }

  #testimonials .carousel-dot.active {
    background: var(--blue-primary);
    width: 24px;
    border-radius: 5px;
  }
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .container { padding: 0 1.5rem; }
  .contact-form-wrapper { padding: 1.25rem 1rem; max-width: 100%; }
  .contact-form-wrapper .heading-lg { font-size: 1.875rem; margin-bottom: 0.625rem; }
  .contact-form-wrapper .text-lg { font-size: 1rem; margin-bottom: 0.875rem; }
}
@media (max-width: 640px) {
  body { padding-top: 80px; }
  .container { padding-left: 1rem; padding-right: 1rem; }
  .section { padding: 2rem 0; }
  h1, .heading-hero { font-size: 1.75rem; }
  .contact-form-wrapper { padding: 1rem 0.875rem; }
  .contact-form-wrapper .heading-lg { font-size: 1.5rem; margin-bottom: 0.5rem; }
  .contact-form-wrapper .text-lg { font-size: 0.9375rem; margin-bottom: 0.75rem; }
  textarea { min-height: 65px; }
  #contactForm .grid.gap-2\.5 { gap: 0.5rem; }
  #contactForm .mb-3\.5 { margin-bottom: 0.75rem; }

  /* Video mobile optimizations */
  .video-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.12);
  }

  .video-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.18);
  }

  .video-wrapper iframe {
    border-radius: 10px;
  }

  /* Mobile-specific: stack name fields and district/role fields side by side */
  #contactForm .grid.md\:grid-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  /* Mobile-specific: reduce padding inside form fields */
  #contactForm input[type="text"],
  #contactForm input[type="email"],
  #contactForm textarea,
  #contactForm select {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    font-size: 0.9375rem;
  }

  #contactForm textarea {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  form input::placeholder,
  form textarea::placeholder {
    font-size: 0.9375rem;
  }

  /* Mobile-specific: reduce button width */
  .contact-section-box .btn-primary,
  .contact-form .btn-primary {
    padding-left: 2rem;
    padding-right: 2rem;
    width: auto;
  }

  /* Mobile-specific: reduce contact form padding */
  .contact-form {
    padding: 1.5rem;
  }

  /* Mobile-specific: ensure contact form gradient still works on scroll/tap */
  .contact-form.scroll-active::before {
    opacity: 0.5;
  }

  /* IQ Box Mobile Optimizations */
  .iq-box {
    box-shadow: 0 0 30px rgba(0, 184, 169, 0.12), 0 6px 24px rgba(0, 102, 204, 0.08) !important;
  }

  .iq-box:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 0 40px rgba(0, 184, 169, 0.18), 0 8px 32px rgba(0, 102, 204, 0.12) !important;
  }

  .iq-processing-ring {
    width: 120px;
    height: 120px;
  }

  .iq-logo-container .iq-logo img {
    width: 2rem;
    height: 2rem;
  }

  .iq-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }

  .iq-features-list {
    font-size: 0.875rem;
  }

  .iq-feature-icon {
    width: 28px;
    height: 28px;
  }

  .iq-feature-icon svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  /* Reduce neural node sizes on mobile */
  .iq-neural-node {
    width: 6px;
    height: 6px;
  }

  .iq-neural-node::before {
    inset: -4px;
  }

  /* Simplify flow lines on mobile */
  .iq-flow-line {
    height: 1.5px;
  }

  .iq-flow-1 { width: 70px; }
  .iq-flow-2 { width: 60px; }
  .iq-flow-3 { width: 50px; }
  .iq-flow-4 { width: 65px; }
}

@media (max-width: 640px) {
  /* Further optimize IQ Box for small mobile screens */
  .iq-processing-ring {
    width: 100px;
    height: 100px;
  }

  .iq-processing-ring::before {
    inset: -10px;
  }

  .iq-processing-ring::after {
    inset: 10px;
  }

  .iq-neural-grid {
    background-size: 20px 20px;
    opacity: 0.2;
  }

  /* Reduce data particles on small screens for cleaner look */
  .iq-data-particles {
    opacity: 0.6;
  }

  /* Adjust neural node positions for smaller space */
  .iq-node-1 { top: 18%; left: 10%; }
  .iq-node-2 { top: 32%; right: 12%; }
  .iq-node-3 { bottom: 22%; left: 15%; }
  .iq-node-4 { bottom: 35%; right: 8%; }
}