:root {
  --color-bg-dark: #031632;
  --color-bg-darker: #020b19;
  --color-bg-light: #f8faff;
  --color-primary: #0e53ff;
  --color-primary-dark: #0a3bb3;
  --color-accent: #00d1ff;
  --color-text: #e9f1ff;
  --color-text-muted: #9fb4d1;
  --color-text-dark: #1a2332;
  --color-text-dark-muted: #546685;
  --color-card-bg: rgba(14, 83, 255, 0.08);
  --shadow-soft: 0 18px 45px rgba(3, 22, 50, 0.35);
  --shadow-card: 0 22px 55px rgba(3, 22, 50, 0.2);
  --shadow-light: 0 18px 40px rgba(15, 35, 80, 0.12);
  --font-base: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: min(1120px, 92vw);
  --transition: 0.35s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg-darker);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.top-bar {
  background: rgba(2, 11, 25, 0.95);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  align-items: center;
}

.top-bar__contact a {
  color: var(--color-text);
  font-weight: 500;
  margin-left: 0.75rem;
}

.nav {
  position: sticky;
  top: 0;
  background: rgba(3, 22, 50, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 999;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav.is-sticky {
  background: rgba(3, 22, 50, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav__brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  text-transform: uppercase;
  pointer-events: auto !important;
  cursor: pointer;
}

.nav__links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav__links a {
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav__links a:hover::after {
  width: 100%;
}

/* Dropdown Menu Styles */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  pointer-events: auto !important;
}

.nav__dropdown-toggle:hover {
  color: var(--color-text);
}

.nav__dropdown-arrow {
  transition: transform 0.3s ease;
  color: currentColor;
}

.nav__dropdown[data-open] .nav__dropdown-arrow {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  max-width: 90vw;
  background: rgba(3, 22, 50, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 83, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  pointer-events: none;
}

.nav__dropdown[data-open] .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav__dropdown-column h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(14, 83, 255, 0.2);
}

.nav__dropdown-column a {
  display: block;
  padding: 0.65rem 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease, padding-left 0.2s ease;
  pointer-events: auto;
}

.nav__dropdown-column a:hover {
  color: var(--color-text);
  padding-left: 0.5rem;
}

/* Responsive dropdown - stack columns on smaller screens */
@media (max-width: 1200px) {
  .nav__dropdown-menu {
    width: 580px;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 960px) {
  .nav__dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    display: block;
    margin-top: 0.5rem;
    margin-left: 1rem;
    pointer-events: auto;
  }

  .nav__dropdown-column {
    margin-bottom: 1.5rem;
  }

  .nav__dropdown-column h4 {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
  }

  .nav__dropdown-column a {
    padding: 0.75rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav__dropdown-column a:hover {
    padding-left: 0.75rem;
  }

  .nav__dropdown-toggle {
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav__dropdown[data-open] .nav__dropdown-menu {
    transform: none;
  }
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
  transition: transform var(--transition);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}


.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 11, 25, 0.75), rgba(3, 22, 50, 0.65), rgba(14, 83, 255, 0.35));
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 3rem 0;
}

.hero__eyebrow {
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.4em;
  display: block;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.4rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stats {
  position: absolute;
  bottom: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  z-index: 2;
}

.stat__value {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
}

.stat__label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.section {
  padding: 4rem 0;
  background: var(--color-bg-dark);
}

.section--light {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

.section--light h2,
.section--light h3 {
  color: var(--color-text-dark);
}

.section--light p {
  color: var(--color-text-dark-muted);
}

.section--dark {
  background: linear-gradient(135deg, #041532 0%, #062453 60%, #031632 100%);
}

.section--highlight {
  position: relative;
  background: linear-gradient(130deg, rgba(2, 8, 20, 0.98), #031632 35%, rgba(10, 59, 179, 0.85));
  overflow: hidden;
}

.section--highlight::before,
.section--highlight::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.6;
}

.section--highlight::before {
  width: 420px;
  height: 420px;
  background: rgba(14, 83, 255, 0.35);
  top: -140px;
  right: -160px;
}

.section--highlight::after {
  width: 360px;
  height: 360px;
  background: rgba(0, 209, 255, 0.28);
  bottom: -120px;
  left: -80px;
}

.highlight {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.6rem;
  padding: 3.2rem;
  backdrop-filter: blur(24px);
  background: linear-gradient(135deg, rgba(3, 22, 50, 0.86), rgba(9, 46, 120, 0.86));
  box-shadow: 0 35px 80px rgba(2, 11, 25, 0.45);
}

.highlight__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: rgba(0, 209, 255, 0.16);
  color: var(--color-text);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  margin-bottom: 2rem;
}

.highlight__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.8rem;
  align-items: center;
}

.highlight__content h2 {
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  margin-bottom: 1.2rem;
}

.highlight__content p {
  color: rgba(233, 241, 255, 0.75);
  margin-bottom: 1.8rem;
}

.highlight__list {
  margin: 0 0 2.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.highlight__list li {
  position: relative;
  padding-left: 1.6rem;
  color: rgba(233, 241, 255, 0.85);
}

.highlight__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 14px rgba(0, 209, 255, 0.65);
}

.highlight__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.highlight__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.metric-card {
  background: rgba(2, 11, 25, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
  box-shadow: 0 22px 55px rgba(2, 11, 25, 0.4);
}

.metric-card__value {
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
}

.metric-card__label {
  color: rgba(233, 241, 255, 0.68);
  font-size: 0.9rem;
}

.section--split {
  padding: 6rem 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section__header p {
  color: var(--color-text-muted);
}

.section--light .section__header p {
  color: #5b6c85;
}

.grid {
  display: grid;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  justify-content: center;
  align-items: stretch;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
  justify-content: center;
  align-items: stretch;
}

.card {
  padding: 2rem 1.8rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.section--light .card {
  background: #ffffff;
  box-shadow: var(--shadow-light);
  color: var(--color-text-dark);
}

.section--light .card h3 {
  color: var(--color-text-dark);
}

.section--light .card p {
  color: var(--color-text-dark-muted);
}

.card--hover:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(3, 22, 50, 0.28);
}

.section--light .card--hover:hover {
  box-shadow: 0 30px 60px rgba(15, 35, 80, 0.2);
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .card--hover:hover,
  .tech-feature:hover,
  .metric-card:hover {
    transform: none;
    box-shadow: inherit;
  }
}

.card__eyebrow {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--color-text-muted);
  flex-grow: 0;
}

.card__features {
  flex-grow: 1;
}

.specialization-list {
  flex-grow: 1;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  pointer-events: auto !important;
  cursor: pointer;
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform var(--transition);
}

.link-arrow:hover::after {
  transform: translateX(6px);
}

.section--dark .link-arrow {
  color: var(--color-accent);
}

.split {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.split__text h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.split__text p {
  color: var(--color-text-muted);
  margin-bottom: 1.8rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag-list li {
  background: rgba(0, 209, 255, 0.12);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  color: var(--color-text);
}

.mini-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  transition: transform var(--transition);
}

.mini-card:hover {
  transform: translateY(-10px);
}

.insight-card {
  padding: 2.4rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.section--light .insight-card {
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 35, 80, 0.14);
}

.insight-card__tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-accent);
}

.insight-card time {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Full article styles */
.full-article {
  margin-top: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
  animation: fadeIn 0.3s ease-in-out;
}

.full-article h4 {
  color: var(--color-primary);
  margin: 20px 0 10px 0;
  font-size: 1.2em;
  font-weight: 600;
}

.full-article h5 {
  color: var(--color-text-dark);
  margin: 15px 0 8px 0;
  font-size: 1.1em;
  font-weight: 500;
}

.full-article p {
  margin: 10px 0;
  line-height: 1.7;
  color: var(--color-text-dark);
}

.full-article ul {
  margin: 10px 0 15px 20px;
  color: var(--color-text-dark);
}

.full-article li {
  margin: 5px 0;
  line-height: 1.6;
}

.full-article li strong {
  color: var(--color-primary);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill-grid span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
}

.section--light .pill-grid span {
  border-color: rgba(6, 16, 36, 0.15);
  color: #061024;
}

.award-card {
  background: rgba(14, 83, 255, 0.16);
  border-radius: 1rem;
  padding: 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.section--light .award-card {
  background: #0e53ff;
  color: #fff;
}

.careers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: center;
}

.careers__text h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.careers__slider {
  position: relative;
  min-height: 200px;
}

.careers__slide {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
  position: absolute;
  inset: 0;
  padding: 2rem;
  background: rgba(2, 11, 25, 0.45);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.careers__slide--active {
  opacity: 1;
  transform: translateY(0);
}

.cta {
  padding: 4.2rem 0;
  background: linear-gradient(110deg, #0a3bb3, #0e53ff, #00d1ff);
  color: #fff;
}

.cta__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: flex-start;
}

.cta__text h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.cta__text p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.form {
  background: rgba(2, 11, 25, 0.32);
  border-radius: 1.2rem;
  padding: 2.2rem;
  box-shadow: 0 25px 65px rgba(2, 11, 25, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem 1.6rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.form__field span {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  background: rgba(3, 22, 50, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-base);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: rgba(233, 241, 255, 0.55);
}

.form__field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1.1rem), calc(100% - 12px) calc(1.1rem);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.form__field--full {
  grid-column: 1 / -1;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: rgba(0, 209, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.2);
}

.form__checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.form__checkbox input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

.form__checkbox a {
  color: #fff;
  text-decoration: underline;
}

.form button {
  align-self: flex-start;
}

.footer {
  background: #020b19;
  color: var(--color-text-muted);
  padding: 3.5rem 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer h3 {
  color: var(--color-text);
}

.footer__brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.6rem;
}

.subscribe {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.subscribe input {
  flex: 1 1 200px;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.footer__bottom {
  margin-top: 2.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(14, 83, 255, 0.35);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: #031632;
}

@media (max-width: 960px) {
  /* ============================================
     MOBILE NAVIGATION - IMPROVED
     ============================================ */
  
  /* Navbar styling for mobile */
  .nav {
    position: sticky;
    top: 0;
    background: rgba(3, 22, 50, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav.is-sticky {
    background: rgba(3, 22, 50, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  /* Hide desktop nav links on mobile */
  .nav__links {
    display: none;
  }
  
  /* Hamburger menu button */
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    border-radius: 2px;
  }
  
  /* Hamburger to X animation */
  .nav--open .nav__toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav--open .nav__toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  
  .nav--open .nav__toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* ============================================
     MOBILE SIDEBAR - IMPROVED
     ============================================ */
  
  /* Sidebar overlay/backdrop - using body class */
  body.nav-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    pointer-events: auto;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  
  /* Sidebar container */
  .nav--open .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    z-index: 1001;
    
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    
    background: #1a2332;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(14, 83, 255, 0.2);
    
    transform: translateX(100%);
    animation: slideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  }
  
  @keyframes slideIn {
    to {
      transform: translateX(0);
    }
  }
  
  /* Sidebar scrollbar styling */
  .nav--open .nav__links::-webkit-scrollbar {
    width: 6px;
  }
  
  .nav--open .nav__links::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .nav--open .nav__links::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
  }
  
  .nav--open .nav__links::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  
  /* Sidebar Links */
  .nav--open .nav__links > a:not(.nav__dropdown-toggle):not(.btn) {
    display: block;
    width: 100%;
    padding: 1.25rem 0;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
  }
  
  .nav--open .nav__links > a:not(.nav__dropdown-toggle):not(.btn):hover,
  .nav--open .nav__links > a:not(.nav__dropdown-toggle):not(.btn):active {
    color: var(--color-accent);
    padding-left: 1rem;
    background: rgba(14, 83, 255, 0.08);
  }
  
  .nav--open .nav__links > a:last-child:not(.btn) {
    border-bottom: none;
  }
  
  /* Sidebar Button */
  .nav--open .nav__links .btn {
    display: flex;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--color-primary);
    color: #ffffff;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .nav--open .nav__links .btn:hover,
  .nav--open .nav__links .btn:active {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 83, 255, 0.4);
  }
  
  /* Mobile Dropdown Styles */
  .nav--open .nav__links .nav__dropdown {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav--open .nav__links .nav__dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 0;
    color: #ffffff !important;
    border-bottom: none;
    font-size: 1.1rem;
    font-weight: 500;
  }

  .nav--open .nav__links .nav__dropdown-toggle:hover {
    color: var(--color-accent) !important;
    padding-left: 0;
  }

  .nav--open .nav__links .nav__dropdown-arrow {
    transition: transform 0.3s ease;
  }

  .nav--open .nav__links .nav__dropdown[data-open] .nav__dropdown-arrow {
    transform: rotate(180deg);
  }

  .nav--open .nav__links .nav__dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0.5rem !important;
    margin-left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .nav--open .nav__links .nav__dropdown-column {
    margin-bottom: 1rem;
  }

  .nav--open .nav__links .nav__dropdown-column h4 {
    font-size: 0.85rem;
    color: var(--color-accent) !important;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(14, 83, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
  }

  .nav--open .nav__links .nav__dropdown-column a {
    display: block;
    padding: 0.75rem 0 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
  }

  .nav--open .nav__links .nav__dropdown-column a:hover {
    color: var(--color-accent) !important;
    padding-left: 1.5rem;
    background: rgba(14, 83, 255, 0.1);
  }

  .nav--open .nav__links .nav__dropdown-column:last-child {
    margin-bottom: 0;
  }

  /* Prevent body scroll when sidebar is open */
  body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  
  /* Overlay cursor */
  body.nav-open::before {
    cursor: pointer;
  }
  
  /* Smaller screens */
  @media (max-width: 480px) {
    .nav--open .nav__links {
      width: 280px;
      max-width: 90vw;
      padding: 4.5rem 1.5rem 2rem;
    }
    
    .nav__toggle {
      width: 40px;
      height: 40px;
    }
    
    .nav__toggle span {
      width: 20px;
      margin: 3px 0;
    }
    
    .nav--open .nav__links > a:not(.nav__dropdown-toggle):not(.btn) {
      padding: 1rem 0;
      font-size: 1rem;
    }
  }
}

@media (max-width: 480px) {

  .hero__stats {
    position: static;
    padding: 3rem 0;
    flex-wrap: wrap;
  }

  .top-bar .container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta__inner {
    grid-template-columns: 1fr;
  }
}

/* Form message styles */
.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

.form-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.btn-loading {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .card,
  .insight-card {
    padding: 2rem;
  }
}

/* Legal Pages Styles */
.legal-page {
  padding: 6rem 0 4rem;
  background: var(--color-bg-light);
  min-height: 100vh;
  color: var(--color-text-dark);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Detailed page styling - affects only content, not header */
.detailed-page {
  background: var(--color-bg-darker); /* Keep dark background for header */
}

.detailed-page main {
  background: var(--color-bg-light);
}

.detailed-page .legal-page {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

.detailed-page .legal-content {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

.detailed-page .legal-header h1,
.detailed-page .legal-section h2,
.detailed-page .legal-section h3,
.detailed-page .legal-section h4,
.detailed-page .legal-section h5,
.detailed-page .legal-section h6 {
  color: var(--color-text-dark) !important;
}

.detailed-page .legal-body,
.detailed-page .legal-section p,
.detailed-page .legal-section li {
  color: var(--color-text-dark-muted) !important;
}

.detailed-page .legal-updated {
  color: var(--color-text-dark-muted) !important;
}

.detailed-page .legal-section strong {
  color: var(--color-primary) !important;
}

.detailed-page .legal-section a {
  color: var(--color-primary) !important;
}

.detailed-page .legal-section a:hover {
  color: var(--color-primary-dark) !important;
}

.detailed-page .contact-info {
  background: rgba(14, 83, 255, 0.05);
  color: var(--color-text-dark);
}

.detailed-page .contact-info h3 {
  color: var(--color-text-dark) !important;
}

.detailed-page .contact-info p {
  color: var(--color-text-dark-muted) !important;
}

.detailed-page .contact-info a {
  color: var(--color-primary) !important;
}

/* Additional styling for new page content */
.insight-featured,
.case-study,
.report,
.event,
.thought-leadership,
.leadership-profile,
.award,
.job-category,
.job-listing {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(26, 35, 50, 0.1);
}

.job-listing:last-child {
  border-bottom: none;
}

.job-listing h4 {
  color: var(--color-primary) !important;
  margin-bottom: 0.5rem;
}

.newsletter-form {
  background: rgba(14, 83, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  margin-top: 1rem;
}

.newsletter-form .form-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(26, 35, 50, 0.2);
  border-radius: 0.5rem;
  font-size: 1rem;
}

.newsletter-form .form-note {
  font-size: 0.85rem;
  color: var(--color-text-dark-muted) !important;
  margin: 0;
}

@media (max-width: 768px) {
  .newsletter-form .form-group {
    flex-direction: column;
  }
  
  .newsletter-form {
    padding: 1.5rem;
  }
}

.legal-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(14, 83, 255, 0.2);
}

.legal-header h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.legal-updated {
  color: var(--color-text-dark-muted);
  font-size: 1rem;
  margin: 0;
}

.legal-body {
  color: var(--color-text-dark);
  line-height: 1.8;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

.legal-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 2rem 0 1rem 0;
}

.legal-section p {
  margin-bottom: 1rem;
}

.legal-section ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-section a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-section a:hover {
  color: var(--color-primary-dark);
}

.contact-info {
  background: rgba(14, 83, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

/* Enhanced Services Styles */
.card__features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.card__features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(14, 83, 255, 0.1);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  position: relative;
  padding-left: 1.2rem;
}

.section--light .card__features li {
  color: var(--color-text-dark-muted);
  border-bottom: 1px solid rgba(26, 35, 50, 0.15);
}

.card__features li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.card__features li:last-child {
  border-bottom: none;
}

.services-specialization {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(14, 83, 255, 0.2);
}

.section--light .services-specialization {
  border-top: 1px solid rgba(26, 35, 50, 0.2);
}


.specialization-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.specialization-list li {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.specialization-list li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.specialization-list strong {
  color: var(--color-primary);
  font-weight: 600;
}

.section--light .specialization-list strong {
  color: var(--color-primary);
}

.section--light .specialization-list li {
  color: var(--color-text-dark-muted);
}

.technology-integration {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(14, 83, 255, 0.2);
}

.section--light .technology-integration {
  border-top: 1px solid rgba(26, 35, 50, 0.2);
}

.tech-feature {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(14, 83, 255, 0.05);
  border-radius: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.section--light .tech-feature {
  background: rgba(14, 83, 255, 0.03);
  border: 1px solid rgba(14, 83, 255, 0.1);
}

.tech-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(14, 83, 255, 0.15);
}

.tech-feature h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.section--light .tech-feature h4 {
  color: var(--color-text-dark);
}

.tech-feature p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.section--light .tech-feature p {
  color: var(--color-text-dark-muted);
}


@media (max-width: 768px) {
  .legal-page {
    padding: 4rem 0 2rem;
  }
  
  .legal-header h1 {
    font-size: 2.2rem;
  }
  
  .legal-content {
    padding: 0 1rem;
  }
  
  .contact-info {
    padding: 1.5rem;
  }

  .services-specialization,
  .technology-integration {
    margin-top: 3rem;
    padding-top: 2rem;
  }


  .specialization-list li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }

  .tech-feature {
    padding: 1.5rem 1rem;
  }

  .tech-feature h4 {
    font-size: 1rem;
  }

  .tech-feature p {
    font-size: 0.85rem;
  }
}

/* Logistics Metrics Section */
.logistics-metrics {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(14, 83, 255, 0.2);
}

.section--light .logistics-metrics {
  border-top: 1px solid rgba(26, 35, 50, 0.2);
}

.metric-card {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(14, 83, 255, 0.05);
  border-radius: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.section--light .metric-card {
  background: rgba(14, 83, 255, 0.03);
  border: 1px solid rgba(14, 83, 255, 0.1);
}

.metric-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(14, 83, 255, 0.15);
}

.metric-card__value {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.metric-card__label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.section--light .metric-card__label {
  color: var(--color-text-dark-muted);
}

/* Comprehensive Responsive Design Fixes */

/* Large Desktop Screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .grid--4 {
    grid-template-columns: repeat(4, minmax(280px, 320px));
    justify-content: center;
  }
  
  .grid--3 {
    grid-template-columns: repeat(3, minmax(320px, 380px));
    justify-content: center;
  }
}

/* Desktop Screens */
@media (min-width: 1200px) and (max-width: 1399px) {
  .container {
    max-width: 1140px;
  }
  
  .grid--4 {
    grid-template-columns: repeat(4, minmax(280px, 300px));
    justify-content: center;
  }
  
  .grid--3 {
    grid-template-columns: repeat(3, minmax(320px, 360px));
    justify-content: center;
  }
}

/* Large Tablets */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  .grid--4 {
    grid-template-columns: repeat(3, minmax(280px, 300px));
    justify-content: center;
  }
  
  .grid--3 {
    grid-template-columns: repeat(3, minmax(280px, 300px));
    justify-content: center;
  }
  
  .card {
    padding: 2rem 1.8rem;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .grid--4,
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card {
    padding: 2rem 1.8rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero__stats {
    gap: 2rem;
  }
  
  .stat__value {
    font-size: 2rem;
  }
  
  .section__header h2 {
    font-size: 2.2rem;
  }
}

/* Mobile Landscape */
@media (min-width: 576px) and (max-width: 767px) {
  .container {
    max-width: 540px;
    padding: 0 1rem;
  }
  
  .grid--4,
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .card {
    padding: 1.8rem 1.5rem;
  }
  
  .card h3 {
    font-size: 1.2rem;
  }
  
  .hero {
    min-height: 85vh;
  }
  
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .hero__stats {
    flex-direction: row;
    gap: 1.5rem;
    bottom: 1.5rem;
  }
  
  .stat__value {
    font-size: 1.8rem;
  }
  
  .stat__label {
    font-size: 0.8rem;
  }
  
  .nav__inner {
    padding: 0.8rem 0;
  }
  
  .top-bar .container {
    padding: 0.5rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section__header {
    margin-bottom: 2.5rem;
  }
  
  .section__header h2 {
    font-size: 2rem;
  }
}

/* Mobile Portrait */
@media (max-width: 575px) {
  .container {
    width: 100%;
    padding: 0 1rem;
  }
  
  .grid--4,
  .grid--3 {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .card {
    padding: 1.5rem 1.2rem;
  }
  
  .card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  .card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .card__features {
    margin: 0.8rem 0;
  }
  
  .card__features li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    padding-left: 1rem;
  }
  
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero__content {
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  
  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .hero__stats {
    position: static;
    margin-top: 2rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .stat__value {
    font-size: 1.6rem;
  }
  
  .stat__label {
    font-size: 0.75rem;
  }
  
  .nav__inner {
    padding: 0.6rem 0;
  }
  
  .nav__brand {
    font-size: 1rem;
  }
  
  .top-bar {
    display: none; /* Hide top bar on mobile for space */
  }
  
  /* Ensure legal pages have proper spacing on mobile */
  .legal-page {
    padding: 2rem 0;
  }
  
  .legal-content {
    padding: 0 1rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section__header {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .section__header h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .section__header p {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  .btn--primary {
    margin-bottom: 0.5rem;
  }
  
  .specialization-list li {
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .tech-feature {
    padding: 1.2rem 1rem;
    text-align: center;
  }
  
  .tech-feature h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .tech-feature p {
    font-size: 0.8rem;
  }
  
  .services-specialization,
  .technology-integration {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }
  
  .logistics-metrics {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .metric-card {
    padding: 1.2rem 0.8rem;
    text-align: center;
  }

  .metric-card__value {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
  }

  .metric-card__label {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  /* Legal pages mobile optimization */
  .legal-page {
    padding: 2rem 0;
  }
  
  .legal-header h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .legal-updated {
    font-size: 0.9rem;
  }
  
  .legal-section h2 {
    font-size: 1.3rem;
  }
  
  .legal-section h3 {
    font-size: 1.1rem;
  }
  
  .legal-section p,
  .legal-section li {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .contact-info {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .contact-info h3 {
    font-size: 1.2rem;
  }
  
  .contact-info p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }
}

/* Extra Small Devices */
@media (max-width: 375px) {
  .container {
    padding: 0 0.8rem;
  }
  
  .card {
    padding: 1.2rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section__header h2 {
    font-size: 1.6rem;
  }
  
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .metric-card__value {
    font-size: 1.6rem;
  }
  
  .legal-header h1 {
    font-size: 1.6rem;
  }
}

/* Cross-browser compatibility fixes */
.grid {
  display: -ms-grid;
  display: grid;
}

.nav__inner,
.hero__actions,
.hero__stats,
.top-bar .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.hero {
  display: -ms-grid;
  display: grid;
}

/* Safari specific fixes */
@supports (-webkit-appearance: none) {
  .card--hover {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
  .grid {
    display: -moz-grid;
  }
}

/* Internet Explorer fixes */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .grid--4 {
    display: -ms-grid;
    -ms-grid-columns: 1fr 2rem 1fr 2rem 1fr 2rem 1fr;
  }
  
  .grid--3 {
    display: -ms-grid;
    -ms-grid-columns: 1fr 2rem 1fr 2rem 1fr;
  }
}

/* Print Styles */
@media print {
  .nav,
  .hero__overlay,
  .btn,
  .link-arrow {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section--light {
    background: white;
  }
  
  .card {
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid currentColor;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Additional color consistency fixes */
.section--light .section__header h2 {
  color: var(--color-text-dark);
}

.section--light .section__header p {
  color: var(--color-text-dark-muted);
}

.section--light .card__eyebrow {
  color: var(--color-accent);
}

.section--light .link-arrow {
  color: var(--color-primary);
}

.section--light .link-arrow:hover {
  color: var(--color-primary-dark);
}

/* Ensure consistent button colors */
.section--light .btn--primary {
  background: var(--color-primary);
  color: #ffffff;
}

.section--light .btn--primary:hover {
  background: var(--color-primary-dark);
}

.section--light .btn--ghost {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.section--light .btn--ghost:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Touch device optimizations */
@media (pointer: coarse) {
  .btn,
  .link-arrow,
  .nav__links a {
    min-height: 44px; /* Minimum touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .card {
    cursor: default; /* Remove pointer cursor on touch devices */
  }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  /* Already using dark theme, but ensure consistency */
  :root {
    color-scheme: dark;
  }
}

/* Light mode override for users who prefer light mode */
@media (prefers-color-scheme: light) {
  .section--light {
    background: var(--color-bg-light);
  }
  
  .section--light .card {
    background: #ffffff;
    box-shadow: var(--shadow-light);
  }
  
  .section--light .card h3,
  .section--light .card p,
  .section--light .card__features li {
    color: inherit;
  }
}

/* Prevent cards from getting too wide on ultra-wide screens */
@media (min-width: 1600px) {
  .grid--4 {
    grid-template-columns: repeat(4, 320px);
    justify-content: center;
  }
  
  .grid--3 {
    grid-template-columns: repeat(3, 380px);
    justify-content: center;
  }
  
  .card {
    max-width: 380px;
  }
  
  .container {
    max-width: 1400px;
  }
}

/* Cookie Consent Banner Styles */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 35, 50, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(14, 83, 255, 0.3);
  padding: 1.5rem 0;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-consent--visible {
  transform: translateY(0);
}

.cookie-consent__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-consent__text h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.cookie-consent__text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-consent__actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.btn--small {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

.btn--text {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  text-decoration: underline;
}

.btn--text:hover {
  color: #ffffff;
  background: transparent;
}

/* Cookie Modal Styles */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal--visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.cookie-modal__content {
  position: relative;
  background: #ffffff;
  max-width: 600px;
  margin: 5% auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cookie-modal__header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal__header h3 {
  color: var(--color-text-dark);
  font-size: 1.4rem;
  margin: 0;
}

.cookie-modal__close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.cookie-modal__close:hover {
  background: #f3f4f6;
  color: var(--color-text-dark);
}

.cookie-modal__body {
  padding: 1rem 2rem;
  overflow-y: auto;
  flex: 1;
}

.cookie-category {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cookie-category__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.cookie-category h4 {
  color: var(--color-text-dark);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

.cookie-category p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Cookie Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-toggle__slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background-color: var(--color-primary);
}

.cookie-toggle input:checked + .cookie-toggle__slider:before {
  transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  background-color: var(--color-primary);
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal__footer {
  padding: 1rem 2rem 2rem 2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Responsive Cookie Styles */
@media (max-width: 768px) {
  .cookie-consent__content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .cookie-consent__actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cookie-modal__content {
    margin: 2% auto;
    max-height: 95vh;
  }

  .cookie-modal__header,
  .cookie-modal__body,
  .cookie-modal__footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .cookie-modal__footer {
    flex-direction: column;
  }

  .cookie-category__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .cookie-consent {
    padding: 1rem 0;
  }

  .cookie-consent__content {
    padding: 0 1rem;
  }

  .cookie-consent__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn--small {
    width: 100%;
    justify-content: center;
  }
}

/* Job Inquiry Form Styles */
.job-inquiry-section {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
}

.areas-of-interest {
  margin: 2rem 0;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.interest-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.interest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.interest-card h5 {
  color: var(--color-primary);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.interest-card p {
  color: var(--color-text-dark);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.job-inquiry-form {
  margin-top: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.job-inquiry-form h4 {
  color: var(--color-primary);
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.form__field small {
  display: block;
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.8rem;
}

/* Responsive adjustments for job inquiry form */
@media (max-width: 768px) {
  .job-inquiry-section {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .interest-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .interest-card {
    padding: 1.2rem;
  }
  
  .job-inquiry-form {
    padding: 1.5rem;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .job-inquiry-section {
    padding: 1rem;
  }
  
  .job-inquiry-form {
    padding: 1rem;
  }
  
  .interest-card {
    padding: 1rem;
  }
}

