@theme {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-headline: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --color-primary: #003c90;
  --color-primary-dark: #001945;
  --color-primary-container: #0f52ba;
  --color-accent-cyan: #00d4ff;
  --color-surface: #f8f9fa;
  --color-surface-low: #f3f4f5;
  --color-surface-high: #e7e8e9;
  --color-on-surface: #191c1d;
  --color-on-surface-variant: #434653;
  --color-outline-variant: #c3c6d5;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

[id] {
  scroll-margin-top: 1.5rem;
}

body {
  font-family: var(--font-sans);
  background-color: #f8f9fa;
  color: #191c1d;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-headline {
  font-family: 'Hanken Grotesk', sans-serif;
}

.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 20px rgba(10, 31, 68, 0.06);
}

.glass-panel-dark {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #0f52ba 0%, #00b4d8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 82, 186, 0.35);
}

/* Carousel Slide Display Controls */
.carousel-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
}

.carousel-slide.active {
  display: block;
  opacity: 1;
}

/* Mobile First Slide Ordering: Image on Top, Content Below */
@media (max-width: 1023px) {
  .slide-text-col {
    order: 2 !important;
  }

  .slide-image-col {
    order: 1 !important;
  }
}

@media (min-width: 1024px) {
  .slide-text-col {
    order: 1 !important;
  }

  .slide-image-col {
    order: 2 !important;
  }
}

/* Nav Pills Active States */
.nav-pill {
  transition: all 0.25s ease;
  background-color: #f1f3f5;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.nav-pill:hover {
  background-color: #ffffff;
  border-color: #cbd5e1;
}

.nav-pill.active {
  background-color: #ffffff;
  border-color: #00d4ff;
  box-shadow: 0 4px 16px rgba(15, 82, 186, 0.12);
}

.nav-pill.active .nav-pill-title {
  color: #003c90;
  font-weight: 700;
}

.tab-indicator-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #0f52ba, #00d4ff);
  width: 0%;
}

@keyframes pulseSubtle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.animate-float {
  animation: pulseSubtle 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: pulseSubtle 4s ease-in-out 2s infinite;
}

/* Ensure all form inputs and textareas have dark visible text and clean focus state */
input,
textarea,
select,
.form-control {
  color: #191c1d !important;
  background-color: #ffffff !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  color: #191c1d !important;
  background-color: #ffffff !important;
  border-color: #003c90 !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 60, 144, 0.2) !important;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: #64748b !important;
  opacity: 1;
}

/* Fix Tailwind CSS utility 'collapse' override on Bootstrap 5 Collapse & Accordions */
.accordion-collapse,
.accordion-collapse.collapse,
.accordion-collapse.collapsing,
.accordion-collapse.collapse.show,
.collapse.show {
  visibility: visible !important;
}

/* Ensure accordion header button has rich styling and clear contrast */
.accordion-button:not(.collapsed) {
  background-color: #f0f7ff !important;
  color: #003c90 !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: none !important;
  border-color: rgba(0, 60, 144, 0.25) !important;
}

/* ========================================================
   HEADING SPECIFICITY RESETS (PROTECT AGAINST BOOTSTRAP 5)
   ======================================================== */
h3.text-sm,
h4.text-sm,
.text-sm > h3,
.industry-card-title {
  font-size: 0.875rem !important; /* 14px */
  line-height: 1.25rem !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

@media (max-width: 639px) {
  .industry-card-title,
  .grid-cols-2 h3.industry-card-title {
    font-size: 0.8125rem !important; /* 13px on mobile */
    line-height: 1.15rem !important;
  }
}

h3.text-base,
h4.text-base,
.text-base > h3 {
  font-size: 1rem !important; /* 16px */
  line-height: 1.5rem !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

h3.text-xs,
h4.text-xs {
  font-size: 0.75rem !important; /* 12px */
  line-height: 1rem !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

/* Ensure card titles and long words never overflow containers */
.break-words,
.card h3,
.card h4 {
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto;
}