.accordion summary::after {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid rgba(12, 26, 57, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
  position: relative;
}

.accordion summary::after {
  content: "";
}

.accordion summary::after {
  background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 15%, transparent 16%);
  background-size: 6px 6px;
}

.accordion details[open] summary::after {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}
.accordion details {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 30px rgba(15, 28, 45, 0.08);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out both;
  opacity: 0;
}

.accordion details:nth-child(1) {
  animation-delay: 0.1s;
}

.accordion details:nth-child(2) {
  animation-delay: 0.2s;
}

.accordion details:nth-child(3) {
  animation-delay: 0.3s;
}

.accordion details:hover {
  transform: translateX(5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 15px 40px rgba(15, 28, 45, 0.12);
}

.accordion details[open] {
  background: #2f6cc6;
  color: var(--white);
}

.accordion details[open] summary {
  color: var(--white);
}

.accordion summary {
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.accordion summary::after {
  content: "✕";
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid rgba(15, 28, 45, 0.2);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 1.5rem;
  font-weight: 700;
  color: rgba(15, 28, 45, 0.6);
  transition: all 0.3s ease;
}

.accordion details[open] summary::after {
  content: "✔";
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.95);
  color: #2f6cc6;
  box-shadow: 0 10px 24px rgba(47, 108, 198, 0.3);
  transform: rotate(180deg);
}
:root {
  --blue-dark: #0b2c5f;
  --blue-mid: #194b9f;
  --blue-light: #4b83ff;
  --blue-soft: #f0f5ff;
  --text-dark: #0f1c2d;
  --text-body: #4a5568;
  --border: #d9e2ef;
  --white: #ffffff;
  --shadow-soft: 0 25px 60px rgba(15, 28, 45, 0.08);
  font-size: 16px;
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

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

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(74, 128, 213, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(74, 128, 213, 0.8), 0 0 30px rgba(74, 128, 213, 0.6);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 50% {
    border-color: transparent;
  }
  51%, 100% {
    border-color: currentColor;
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

@keyframes neonGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(74, 128, 213, 0.8),
                0 0 10px rgba(74, 128, 213, 0.6),
                0 0 15px rgba(74, 128, 213, 0.4),
                0 0 20px rgba(74, 128, 213, 0.2);
    border-color: rgba(74, 128, 213, 0.8);
  }
  25% {
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.8),
                0 0 10px rgba(0, 255, 255, 0.6),
                0 0 15px rgba(0, 255, 255, 0.4),
                0 0 20px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.8);
  }
  50% {
    box-shadow: 0 0 5px rgba(138, 43, 226, 0.8),
                0 0 10px rgba(138, 43, 226, 0.6),
                0 0 15px rgba(138, 43, 226, 0.4),
                0 0 20px rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.8);
  }
  75% {
    box-shadow: 0 0 5px rgba(255, 20, 147, 0.8),
                0 0 10px rgba(255, 20, 147, 0.6),
                0 0 15px rgba(255, 20, 147, 0.4),
                0 0 20px rgba(255, 20, 147, 0.2);
    border-color: rgba(255, 20, 147, 0.8);
  }
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 5px currentColor,
                0 0 10px currentColor,
                0 0 15px currentColor,
                0 0 20px currentColor;
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 10px currentColor,
                0 0 20px currentColor,
                0 0 30px currentColor,
                0 0 40px currentColor;
    opacity: 0.8;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

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

.bubble img {
  transition: opacity 0.4s ease, transform 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bubble.shuffling img {
  animation: shuffleFade 1.2s ease-in-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text-body);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  letter-spacing: 0.12em;
  font-weight: 500;
  color: #4a80d5;
  font-size: 1.9rem;
  margin-bottom: -0.1rem;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out;
}

.primary-btn {
  background: linear-gradient(120deg, #ffb347, #ff7c2d);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 140, 66, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  position: relative;
  overflow: hidden;
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.primary-btn:hover::before {
  left: 100%;
}

.primary-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(255, 140, 66, 0.5);
}

.primary-btn:active {
  transform: translateY(-1px) scale(1);
}

.primary-btn.outline {
  background: transparent;
  color: var(--blue-mid);
  border: 1px solid var(--border);
  box-shadow: none;
  padding: 0.85rem 2rem;
}

.primary-btn .btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.about-btn {
  background: #1d4ed8;
  box-shadow: 0 25px 45px rgba(29, 78, 216, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.about-btn .btn-icon {
  border-color: rgba(255, 255, 255, 0.4);
}

.ghost-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--blue-mid);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ghost-btn:hover {
  background: var(--blue-mid);
  color: var(--white);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 5px 15px rgba(25, 75, 159, 0.3);
}

.hero {
  background: #ffffff;
  padding: 2rem 8% 4rem;
  overflow: hidden;
  position: relative;
  border-top: 2px solid #4a80d5;
  max-width: 100vw;
  width: 100%;
}

.hero::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: none;
}

.hero__background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero__background::before {
  content: "";
  position: absolute;
  width: 1200px;
  height: 800px;
  background: linear-gradient(135deg, rgba(173, 216, 230, 0.4) 0%, rgba(135, 206, 250, 0.25) 50%, transparent 100%);
  border-radius: 50% 40% 60% 30%;
  bottom: -200px;
  right: -400px;
  filter: blur(40px);
  transform: rotate(-15deg);
}

.hero__background::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(135, 206, 250, 0.3), transparent 70%);
  border-radius: 50%;
  bottom: 50px;
  left: 50px;
  filter: blur(30px);
}

.hero__background .bg-orange-circle-1 {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 200, 150, 0.8), rgba(255, 180, 120, 0.6), transparent);
  border-radius: 50%;
  top: 15%;
  right: 25%;
  filter: blur(2px);
}

.hero__background .bg-orange-circle-2 {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 200, 150, 0.8), rgba(255, 180, 120, 0.6), transparent);
  border-radius: 50%;
  top: 45%;
  right: 15%;
  filter: blur(2px);
}

.hero__background .bg-orange-circle-3 {
  position: absolute;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(255, 200, 150, 0.8), rgba(255, 180, 120, 0.6), transparent);
  border-radius: 50%;
  bottom: 20%;
  right: 20%;
  filter: blur(2px);
}

.hero__background .bg-top-right {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(135, 206, 250, 0.25), transparent 70%);
  border-radius: 50%;
  top: -50px;
  right: -50px;
  filter: blur(25px);
}

.hero__background .bg-dashed-line {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 8px,
    rgba(200, 200, 200, 0.3) 8px,
    rgba(200, 200, 200, 0.3) 12px
  );
}

.hero > *:not(.hero__background) {
  position: relative;
  z-index: 1;
}

.bg-arc {
  position: absolute;
  border-radius: 50%;
  border: 70px solid rgba(218, 225, 245, 0.75);
}

.bg-arc--giant {
  width: 1500px;
  height: 1500px;
  border-width: 95px;
  top: -760px;
  left: -540px;
  opacity: 0.7;
}

.bg-arc--large {
  width: 1080px;
  height: 1080px;
  border-width: 85px;
  top: -540px;
  left: -340px;
  opacity: 0.7;
}

.bg-arc--small {
  width: 420px;
  height: 420px;
  border-width: 50px;
  top: 30px;
  left: -40px;
  opacity: 0.6;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
}

.bg-circle--left {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(100, 147, 220, 0.18), transparent 70%);
  bottom: -80px;
  left: 12%;
}

.bg-circle--right {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(73, 124, 210, 0.22), transparent 70%);
  top: -40px;
  right: -120px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(77, 137, 230, 0.32), transparent 65%);
  top: 0;
  right: 6%;
  opacity: 0.7;
}

.hero::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 153, 51, 0.7), rgba(255, 153, 51, 0));
  border-radius: 50%;
  top: 90px;
  right: 28%;
  filter: blur(4px);
  z-index: 1;
  opacity: 0.6;
}

.bg-wave {
  position: absolute;
  width: 120%;
  height: 420px;
  bottom: -160px;
  left: -10%;
  background: radial-gradient(circle at top, rgba(111, 146, 214, 0.3), transparent 55%),
    radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.9), transparent 55%);
  border-bottom-left-radius: 60% 100%;
  border-bottom-right-radius: 80% 120%;
  opacity: 0.7;
}

.hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--blue-dark);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.logo img {
  height: 86px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05) rotate(5deg);
  animation: wiggle 0.5s ease;
}
.logo__accent {
  color: var(--blue-light);
}

.logo small {
  font-size: 0.75rem;
  font-weight: 400;
}

.hero nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-body);
  position: static;
}

.hero nav a {
  position: relative;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  color: var(--text-body);
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInDown 0.5s ease-out forwards;
}

.hero nav a:nth-child(1) {
  animation-delay: 0.1s;
}

.hero nav a:nth-child(2) {
  animation-delay: 0.15s;
}

.hero nav a:nth-child(3) {
  animation-delay: 0.2s;
}

.hero nav a:nth-child(4) {
  animation-delay: 0.25s;
}

.hero nav a:nth-child(5) {
  animation-delay: 0.3s;
}

.hero nav a:nth-child(6) {
  animation-delay: 0.35s;
}

.hero nav a:nth-child(7) {
  animation-delay: 0.4s;
}

.hero nav a:nth-child(8) {
  animation-delay: 0.45s;
}

.hero nav a:nth-child(9) {
  animation-delay: 0.5s;
}

.hero nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-light));
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.hero nav a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 75, 159, 0.05);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
  border-radius: 8px;
}

.hero nav a:hover::before {
  width: 80%;
}

.hero nav a:hover::after {
  transform: scaleX(1);
}

.hero nav a:hover {
  color: var(--blue-mid);
  transform: translateY(-2px);
}

.hero nav a.active {
  color: var(--blue-mid);
  font-weight: 600;
}

.hero nav a.active::before {
  width: 80%;
  background: var(--blue-mid);
}

.hero nav a.active::after {
  background: rgba(25, 75, 159, 0.1);
  transform: scaleX(1);
}

@media (min-width: 993px) {
  .hero nav {
    display: flex !important;
    position: static;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    z-index: auto;
    max-height: none;
    overflow: visible;
  }
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
}

.nav-actions button[aria-label="Menu"] {
  display: none;
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  align-items: center;
}

.hero__text .eyebrow {
  margin-bottom: 0.75rem !important;
}

.hero__text h1 {
  font-size: clamp(3.6rem, 7.2vw, 5.2rem);
  margin: 0.5rem 0 1rem;
  line-height: 1.1;
  color: #2d5eae;
  letter-spacing: 0.03em;
  font-weight: 700;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__text .lead {
  max-width: 380px;
  margin-top: 0;
  margin-bottom: 2rem;
  line-height: 1.4;
  color: #7b8798;
  font-size: 1.05rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__text .primary-btn {
  margin-top: 1rem;
}

.hero__people {
  position: relative;
  min-height: 400px;
  padding: 2rem 0;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(25, 75, 159, 0.15);
}

.orbit--1 {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.orbit--2 {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
}

.orbit--3 {
  width: 45%;
  height: 45%;
  top: 28%;
  left: 28%;
}

.bubble {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: 0 10px 35px rgba(15, 28, 45, 0.15);
  position: absolute;
  animation: float 3s ease-in-out infinite;
  transition: transform 0.3s ease;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Bubble positioning - arranged in orbital pattern around orbits */
.bubble:nth-child(4) {
  animation-delay: 0s;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bubble:nth-child(5) {
  animation-delay: 0.5s;
  top: 5%;
  left: 12%;
}

.bubble:nth-child(6) {
  animation-delay: 1s;
  top: 8%;
  right: 10%;
}

.bubble:nth-child(7) {
  animation-delay: 1.5s;
  bottom: 25%;
  left: 8%;
}

.bubble:nth-child(8) {
  animation-delay: 2s;
  bottom: 15%;
  right: 12%;
}

.bubble:hover {
  transform: scale(1.1);
  z-index: 10;
}

.bubble:nth-child(4):hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.section {
  padding: 5rem 8%;
  animation: fadeIn 0.8s ease-out;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Override section padding for team section - MUST come after .section */
.section.team,
section.team.section,
section.section.team,
.team.section {
  padding: 6rem 8% !important;
}

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

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: 2.2rem;
  color: var(--text-dark);
  transition: transform 0.3s ease, color 0.3s ease;
}

.section-heading h2:hover {
  transform: scale(1.05);
  color: var(--blue-mid);
}

.section-heading span {
  color: var(--blue-dark);
}

.team {
  background: #eef3ff;
  position: relative;
  overflow: visible;
}

.team .section,
section.team.section,
section.section.team,
.section.team {
  overflow: visible;
  position: relative;
  padding: 6rem 8% !important;
  margin: 0 !important;
}

/* Ensure carousel buttons are always visible */
.team-carousel .carousel-btn {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.team-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem;
  margin: 0 auto;
  padding: 3rem 2rem !important;
  overflow: visible;
  max-width: 100%;
  width: 100%;
}

.team-grid article {
  display: block !important;
  opacity: 1;
  transform: scale(1) translateX(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
  min-width: 0;
  cursor: pointer;
}

.team-grid article a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.team-grid article .team-bio {
  display: none !important;
}

.team-grid article:hover {
  transform: translateY(-8px);
}

.team-grid article:hover img {
  transform: scale(1.05);
}

.team-grid article img {
  transition: transform 0.3s ease;
}

.team-grid article.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.95) translateX(20px);
}

/* Keep grid on desktop, use flexbox on tablet/mobile for carousel */
@media (max-width: 992px) {
  .team-grid {
    display: flex !important;
    grid-template-columns: none !important;
    padding: 1.5rem 0.5rem !important;
  }
  
  .team-grid article.hidden {
    display: none !important;
  }
}

.team-carousel,
section.team .team-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

.carousel-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border-color: rgba(45, 94, 174, 0.2);
  color: var(--blue-mid);
  background: var(--white);
  box-shadow: 0 20px 45px rgba(45, 94, 174, 0.1);
  display: grid !important;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  flex-shrink: 0;
  visibility: visible !important;
  opacity: 1 !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.carousel-btn:hover {
  background: var(--blue-mid);
  color: var(--white);
  border-color: var(--blue-mid);
  transform: scale(1.1);
  box-shadow: 0 25px 50px rgba(45, 94, 174, 0.2);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
  touch-action: none;
}

.carousel-btn:disabled:hover {
  background: var(--white);
  color: var(--blue-mid);
  transform: none;
}

.carousel-btn i {
  font-size: 1.1rem;
}

.team-grid article {
  background: var(--white);
  border-radius: 36px;
  padding: 3rem 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 30px 60px rgba(15, 28, 45, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  animation: fadeInUp 0.6s ease-out both;
  opacity: 0;
  width: 100%;
  margin: 0;
}

.team-grid article:nth-child(1) {
  animation-delay: 0.1s;
}

.team-grid article:nth-child(2) {
  animation-delay: 0.2s;
  border-color: transparent;
}

.team-grid article:nth-child(3) {
  animation-delay: 0.3s;
}

.team-grid img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 28px;
  margin: 0 auto 1.25rem;
  transition: transform 0.3s ease;
}

.team-grid h3 {
  margin: 0 0 0.5rem;
  color: var(--blue-dark);
  font-size: 1.3rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.team-grid p {
  margin: 0;
  color: #7b8798;
  transition: color 0.3s ease;
}

.team-position {
  font-weight: 600;
  color: var(--blue-mid) !important;
  margin: 0 0 1rem !important;
  font-size: 0.95rem;
}

.team-bio {
  color: #555 !important;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 !important;
  text-align: left;
}

.team-grid article:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 40px 70px rgba(15, 28, 45, 0.15);
  border-color: rgba(63, 108, 216, 0.5);
}

.team-grid article:hover img {
  transform: scale(1.05);
}

.team-grid article:hover h3 {
  color: var(--blue-mid);
}

.team-grid article:nth-child(2):hover {
  border-color: rgba(63, 108, 216, 0.5) !important;
}

.team .section-heading,
section.team .section-heading,
.section.team .section-heading {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4.5rem !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

.team .section-heading.center,
section.team .section-heading.center,
.section.team .section-heading.center {
  position: relative;
  padding: 0 !important;
  margin-bottom: 2rem !important;
  margin-top: 0 !important;
  flex-direction: column;
  align-items: center;
}

.team .section-heading.center h2 {
  font-size: 3rem;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 0;
}

.team .section-heading.center p {
  margin-top: 0.25rem;
  margin-bottom: 0;
  color: #64748b;
  font-size: 0.95rem;
  max-width: 800px;
  text-align: center;
  line-height: 1.6;
}

.about {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 3.5rem;
  align-items: center;
}

.experience-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  min-height: 350px;
}

.experience-stack {
  position: relative;
  width: 100%;
  display: block;
}

.experience-plate {
  display: none;
}

.experience-panel {
  width: 100%;
  height: 350px;
  background: #e7f0ff;
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 38px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: block;
  visibility: visible;
  opacity: 1;
  z-index: 0;
}

.experience-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(231, 240, 255, 0.85) 0%, rgba(231, 240, 255, 0.6) 50%, rgba(231, 240, 255, 0.8) 100%);
  border-radius: 38px;
  z-index: 1;
  transition: opacity 0.3s ease;
  opacity: 0.7;
}

.experience-panel:hover::before {
  opacity: 0.8;
}

.experience-badge {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-22px, -22px);
  background: #316bc4;
  color: #fff;
  padding: 1.75rem 2.25rem;
  border-radius: 24px;
  text-align: center;
  width: 185px;
  height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: zoomIn 0.8s ease-out 0.3s both;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(49, 107, 196, 0.3);
  visibility: visible;
  opacity: 1;
}

.experience-badge:hover {
  transform: translate(-22px, -22px) scale(1.1) rotate(5deg);
  box-shadow: 0 20px 40px rgba(49, 107, 196, 0.4);
  animation: bounce 0.6s ease;
}

.experience-badge span {
  display: block;
  font-size: 2.8rem;
  font-weight: 600;
}

.experience-badge p {
  margin: 0.75rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  line-height: 1.6;
}

.about-content .eyebrow {
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  color: #4d7ed0;
  margin-bottom: 1rem;
}

.about-content h2 {
  color: #0f172a;
  margin-top: 0;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.2;
  font-weight: 600;
  transition: transform 0.3s ease, color 0.3s ease;
  animation: slideInFromLeft 0.8s ease-out;
}

.about-content h2:hover {
  transform: translateX(10px);
  color: var(--blue-mid);
}

.about-content p {
  color: #808aa2;
  margin-bottom: 1.5rem;
  max-width: 620px;
}

.about-content ul {
  padding-left: 1.5rem;
  color: #111827;
  font-weight: 500;
  margin-bottom: 2rem;
}

.about-content ul li {
  margin-bottom: 0.6rem;
}

.about-content ul li::marker {
  color: #2b5cb7;
  font-size: 1.2rem;
}

.about-content .about-btn {
  margin-top: 0.5rem;
}

.about .primary-btn.outline {
  border-radius: 999px;
  border: 1px solid rgba(43, 92, 183, 0.3);
  color: #2b5cb7;
  padding: 0.9rem 2.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.services {
  background: var(--blue-dark);
  color: var(--white);
  text-align: center;
}

.services h2 {
  color: var(--white);
  max-width: 720px;
  margin: 0 auto 3rem;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 3rem;
}

.service-card-hidden {
  display: none !important;
  opacity: 0 !important;
  transform: translateY(20px) !important;
  transition: opacity 0.6s ease, transform 0.6s ease, display 0.6s ease;
  visibility: hidden !important;
}

.service-card-hidden.show {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: fadeInUp 0.6s ease-out forwards;
  visibility: visible !important;
}

.service-card.animated {
  animation: fadeInUp 0.6s ease-out both;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  margin: 0;
  padding: 1.75rem;
  box-sizing: border-box;
}

.service-card {
  opacity: 1 !important;
}

.services-cta {
  text-align: center;
  margin-top: 2rem;
}

.services-btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUpButton 0.8s ease-out 1.5s forwards;
  visibility: visible;
  display: inline-flex;
}

@keyframes fadeInUpButton {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.services-btn i {
  transition: transform 0.3s ease;
}

.services-btn:hover i {
  transform: translateX(5px);
}

/* Only show articles without service-card-hidden class by default */
.services-grid article:not(.service-card-hidden) {
  background: transparent;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Hide service-card-hidden articles by default */
.services-grid article.service-card-hidden:not(.show),
.services-grid article[data-is-hidden="1"]:not(.show) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: transparent;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Show service-card-hidden articles when .show class is added */
.services-grid article.service-card-hidden.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
  animation: fadeInUp 0.6s ease-out forwards !important;
}

/* Ensure service-card inside hidden articles are properly styled when shown */
.services-grid article.service-card-hidden.show .service-card,
.services-grid article.service-card-hidden.show .service-card.animated {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 1.75rem !important;
  box-sizing: border-box !important;
  animation: fadeInUp 0.6s ease-out forwards !important;
}

.service-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 1.75rem;
  margin: 0;
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  animation: fadeInUp 0.6s ease-out both;
  opacity: 1 !important;
  cursor: pointer;
  visibility: visible !important;
  box-sizing: border-box;
  width: 100%;
}

/* Ensure service-card.animated are visible for visible articles */
.services-grid article:not(.service-card-hidden) .service-card.animated {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure service-card.animated are visible when parent has .show class */
.services-grid article.service-card-hidden.show .service-card.animated {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure ALL articles without service-card-hidden are visible (regardless of position) */
.services-grid article:not(.service-card-hidden),
.services-grid article[data-is-hidden="0"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
}

/* Force visibility for all non-hidden service cards - override any position-based rules */
.services-grid article:not(.service-card-hidden) .service-card,
.services-grid article:not(.service-card-hidden) .service-card.animated,
.services-grid article[data-is-hidden="0"] .service-card,
.services-grid article[data-is-hidden="0"] .service-card.animated {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Animation delays for visible cards */
.services-grid article:not(.service-card-hidden):nth-of-type(1) .service-card {
  animation-delay: 0.1s;
}

.services-grid article:not(.service-card-hidden):nth-of-type(2) .service-card {
  animation-delay: 0.2s;
}

.services-grid article:not(.service-card-hidden):nth-of-type(3) .service-card {
  animation-delay: 0.3s;
}

/* Animation delays for hidden cards (they'll be visible when .show is added) */
.services-grid article.service-card-hidden:nth-child(4) .service-card {
  animation-delay: 0.4s;
}

.services-grid article.service-card-hidden:nth-child(5) .service-card {
  animation-delay: 0.5s;
}

.services-grid article.service-card-hidden:nth-child(6) .service-card {
  animation-delay: 0.6s;
}

.service-card:hover {
  transform: translateX(10px) scale(1.02) !important;
  background: rgba(255, 255, 255, 0.2) !important;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Image holder panel */
.service-card__image {
  position: relative;
  width: 280px;
  height: 200px;
  min-width: 280px;
  background: #d4c5b0;
  border-radius: 24px;
  overflow: visible;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  z-index: 1;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.service-card:hover .service-card__image {
  transform: scale(1.05);
}

/* White rounded square - half in image holder, half out on the left */
.service-card__icon {
  position: absolute;
  top: 50%;
  left: -40px;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2e5fb5;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
  transition: all 0.3s ease;
}

.service-card:hover .service-card__icon {
  transform: translateY(-50%) rotate(360deg) scale(1.1) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.6s ease, box-shadow 0.3s ease;
}

.service-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.service-card__body h3 {
  margin: 0 0 0.5rem 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
}

.service-card__body .service-index {
  display: block;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 0.25rem;
  line-height: 1;
  text-align: left;
}

.services-grid article.highlight .service-card__body .service-index {
  color: rgba(255, 255, 255, 0.7);
}

.service-card .pill-btn,
.service-card a.pill-btn {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #2e5fb5;
  color: var(--white);
  border-radius: 999px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pill-btn:hover {
  transform: translateX(5px) scale(1.05);
  background: #3d77c6;
  box-shadow: 0 5px 15px rgba(46, 95, 181, 0.4);
}

.pill-btn i {
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.pill-btn .btn-hover-icon {
  display: none;
}

.pill-btn:hover i:not(.btn-hover-icon) {
  display: none;
}

.pill-btn:hover .btn-hover-icon {
  display: inline-block;
}

.services-grid article:not(.highlight) .pill-btn {
  background: #2e5fb5;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--white);
}

.services-grid article:not(.highlight) .pill-btn i {
  color: var(--white);
}

.services-grid article:not(.highlight) .service-card {
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, color 0.3s ease !important;
}

.services-grid article.highlight .service-card {
  background: #3d77c6;
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, color 0.3s ease !important;
}

.services-grid article.highlight .service-card__body .service-index {
  color: rgba(255, 255, 255, 0.6);
}

.services-grid article.highlight .pill-btn {
  background: var(--white);
  color: #316bc4;
}

/* Hover effect to apply highlight color */
.services-grid article:hover .service-card {
  background: #3d77c6 !important;
  transform: translateX(10px) scale(1.02) !important;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.services-grid article:hover .service-card__body .service-index {
  color: rgba(255, 255, 255, 0.6) !important;
  transition: color 0.3s ease !important;
}

.services-grid article:hover .pill-btn {
  background: #2e5fb5 !important;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--white) !important;
  transition: all 0.3s ease;
  transform: translateX(5px) scale(1.05);
}

.services-grid article:hover .pill-btn i {
  color: var(--white) !important;
}

.services-grid article:hover .service-card__image {
  transform: scale(1.05) !important;
}

.services-grid article:hover .service-card__icon {
  transform: translateY(-50%) rotate(360deg) scale(1.1) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

.services-grid article:hover .service-card__body h3 {
  color: rgba(255, 255, 255, 0.95) !important;
  transition: color 0.3s ease !important;
}

/* Click effect - keep highlight after click */
.services-grid article.highlight .service-card {
  background: #3d77c6 !important;
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, color 0.3s ease !important;
}

.services-grid article.highlight .service-card__body .service-index {
  color: rgba(255, 255, 255, 0.6) !important;
  transition: color 0.3s ease !important;
}

.services-grid article.highlight .pill-btn {
  background: #2e5fb5 !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  color: var(--white) !important;
  transition: all 0.3s ease !important;
}

.services-grid article.highlight .pill-btn i {
  color: var(--white) !important;
  transition: color 0.3s ease !important;
}

.services-grid article.highlight .service-card__body h3 {
  color: rgba(255, 255, 255, 0.95) !important;
  transition: color 0.3s ease !important;
}

/* Smooth transition back when not highlighted and not hovered */
.services-grid article:not(.highlight):not(:hover) .service-card {
  background: rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, color 0.3s ease !important;
}

.services-grid article:not(.highlight):not(:hover) .service-card__body .service-index {
  transition: color 0.3s ease !important;
}

.services-grid article:not(.highlight):not(:hover) .service-card__body h3 {
  transition: color 0.3s ease !important;
}

.services-grid article:not(.highlight):not(:hover) .pill-btn {
  transition: all 0.3s ease !important;
}

.services-grid article:not(.highlight):not(:hover) .pill-btn i {
  transition: color 0.3s ease !important;
}

.stats {
  text-align: center;
}

.stats h2 {
  max-width: 620px;
  margin: 0 auto 1rem;
  color: #111827;
}

.stats p.eyebrow {
  margin-bottom: 0.4rem;
  color: #9aa2b5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stats-grid article {
  border: 2px solid #2b64bb;
  border-radius: 48px;
  padding: 2.5rem 1.25rem;
  color: #2b64bb;
  min-height: 190px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: scaleIn 0.6s ease-out both;
  opacity: 0;
  overflow: hidden;
  position: relative;
}

.stats-grid article.animated {
  animation: none;
}

.stats-grid article::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.stats-grid article.animate-in::before {
  left: 100%;
}

.stats-grid article:nth-child(1) {
  animation-delay: 0.1s;
}

.stats-grid article:nth-child(2) {
  animation-delay: 0.2s;
}

.stats-grid article:nth-child(3) {
  animation-delay: 0.3s;
}

.stats-grid article:nth-child(4) {
  animation-delay: 0.4s;
}

.stats-grid article:nth-child(5) {
  animation-delay: 0.5s;
}

.stats-grid article:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(43, 100, 187, 0.2);
}

.stats-grid h3 {
  margin: 0;
  font-size: 2.8rem;
  color: currentColor;
  transition: transform 0.3s ease, color 0.3s ease;
  position: relative;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  display: inline-block;
  min-width: 1ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-grid h3.counting {
  animation: pulse 0.5s ease-in-out infinite;
  color: #1e40af;
  will-change: transform, opacity;
}

.stats-grid h3.counted {
  animation: none !important;
  will-change: auto;
}

.stats-grid article:hover h3 {
  transform: scale(1.1);
  animation: bounce 0.6s ease;
}

.stats-grid p {
  margin: 0.75rem 0 0;
  color: #4c6da8;
  font-weight: 500;
}

.appointment {
  text-align: center;
  padding: 6rem 8%;
  background: linear-gradient(#ffffff, #f7f7f7);
}

.appointment h2 {
  font-size: 2.8rem;
  color: #1d2433;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease-out;
  transition: transform 0.3s ease;
}

.appointment h2:hover {
  transform: scale(1.02);
}

.appointment > p {
  max-width: 640px;
  margin: 0 auto 2.25rem;
  color: #7b8799;
  font-weight: 500;
  line-height: 1.5;
}

.appointment-form {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 3rem 3.5rem 4rem;
  border-radius: 44px;
  background: var(--white);
  box-shadow: 0 40px 120px rgba(15, 28, 45, 0.12);
  border: 1px solid rgba(15, 28, 45, 0.04);
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

.appointment-form label {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
}

.appointment-form input,
.appointment-form textarea {
  margin-top: 0.5rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 28, 45, 0.08);
  padding: 1rem 1.25rem;
  background: #eef4f6;
  font-weight: 500;
  color: #2d3748;
  box-shadow: inset 0 2px 4px rgba(15, 28, 45, 0.04);
  transition: all 0.3s ease;
}

.appointment-form input:focus,
.appointment-form textarea:focus {
  outline: none;
  border-color: #4a80d5;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(74, 128, 213, 0.1), inset 0 2px 4px rgba(15, 28, 45, 0.04);
  transform: translateY(-2px);
}

.appointment-form textarea {
  resize: none;
  min-height: 160px;
}

.appointment-form input::placeholder,
.appointment-form textarea::placeholder {
  color: #8c9aa6;
  font-weight: 400;
}

.appointment-form .wide {
  grid-column: 1 / -1;
}

.appointment-form .primary-btn {
  grid-column: 1 / -1;
  justify-self: center;
  background: #2a2a2a;
  color: var(--white);
  text-transform: none;
  letter-spacing: 0.05em;
  padding: 1.1rem 3.75rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 8px 8px 20px rgba(139, 90, 50, 0.4), 4px 4px 10px rgba(139, 90, 50, 0.3);
  border: none;
}

.subscribe {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 0.5rem;
  justify-content: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  text-align: left;
}

.subscribe input {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  appearance: none;
  border-radius: 100%;
  border: 2px solid #d0d0d0;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  order: 1;
  box-sizing: border-box;
  box-shadow: none !important;
}

.subscribe span {
  order: 2;
}

.subscribe input:checked {
  border-color: #4a83d8;
  background: #4a83d8;
}

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
}

.faq__media {
  background: #bab7be;
  min-height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  padding: 4rem;
  order: 1;
}

.faq__content {
  background: #dfe9ff;
  padding: 4rem 5rem;
  order: 2;
}

.faq__content h2 {
  font-size: 3rem;
  color: #111;
}

.faq__content .eyebrow {
  color: #1d4ed8;
  font-size: 1rem;
  letter-spacing: 0.25em;
}

.play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: #0d2441;
  font-size: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse 2s ease-in-out infinite;
}

.play-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  background: #f0f5ff;
}

.accordion details {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 30px rgba(15, 28, 45, 0.08);
  transition: all 0.3s ease;
}

.accordion details:hover {
  transform: translateX(5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 15px 40px rgba(15, 28, 45, 0.12);
}

.accordion details[open] {
  background: #2f6cc6;
  color: var(--white);
}

.accordion details[open] summary {
  color: var(--white);
}

.accordion summary {
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.accordion summary::after {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(15, 28, 45, 0.2);
  transition: all 0.3s ease;
}

.accordion details[open] summary::after {
  border-color: rgba(255, 255, 255, 0.6);
  transform: rotate(180deg);
}

.footer,
footer.footer {
  background: #061b3a;
  color: #cbd5f5;
  padding: 6rem 8% 5rem !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 !important;
}

.footer__links,
.footer__brand,
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInUp 0.6s ease-out both;
}

.footer__brand p {
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer__links h4,
.footer__social h4 {
  margin-bottom: 0.25rem;
}

.footer__links {
  animation-delay: 0.1s;
}

.footer__brand {
  animation-delay: 0.2s;
  max-width: 320px;
}

.footer__social {
  animation-delay: 0.3s;
}

.footer__brand .logo {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer__brand .logo img {
  max-width: 150px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #c4cfe6;
  transition: all 0.3s ease;
  cursor: pointer;
}

.footer-contact li:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer-contact li:hover i {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.2) rotate(5deg);
  animation: neonPulse 1s ease-in-out infinite;
  border-color: rgba(0, 255, 255, 1);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.8),
              0 0 20px rgba(0, 255, 255, 0.6),
              0 0 30px rgba(0, 255, 255, 0.4),
              inset 0 0 10px rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-size: 1rem !important;
  z-index: 3;
}

.footer-contact i {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: rgba(15, 28, 45, 0.95);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  transition: all 0.3s ease;
  border: 2px solid rgba(74, 128, 213, 0.6);
  animation: neonGlow 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* Ensure Font Awesome icon (::before) is visible and properly positioned */
.footer-contact i::before {
  position: relative;
  z-index: 3;
  color: inherit;
}

/* Font Awesome icons use ::before, so we use ::after for glow effect */
.footer-contact i::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(45deg, 
    rgba(74, 128, 213, 0.8),
    rgba(0, 255, 255, 0.8),
    rgba(138, 43, 226, 0.8),
    rgba(255, 20, 147, 0.8)
  );
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0.5;
  filter: blur(10px);
  animation: neonRotate 3s linear infinite;
  transition: opacity 0.3s ease;
}

.footer-contact li:hover i::after {
  opacity: 0.8;
}

@keyframes neonRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.footer__links h4,
.footer__social h4 {
  margin: 0;
  color: var(--white);
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer__links h4:hover,
.footer__social h4:hover {
  transform: translateX(5px);
  color: var(--blue-light);
}

.footer__links a {
  color: #cbd5f5;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding: 0.25rem 0;
  opacity: 0;
  transform: translateX(-10px);
  animation: slideInFromLeft 0.5s ease-out forwards;
}

.footer__links a:nth-child(1) {
  animation-delay: 0.1s;
}

.footer__links a:nth-child(2) {
  animation-delay: 0.2s;
}

.footer__links a:nth-child(3) {
  animation-delay: 0.3s;
}

.footer__links a:nth-child(4) {
  animation-delay: 0.4s;
}

.footer__links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-light);
  transition: width 0.3s ease;
}

.footer__links a::after {
  content: '→';
  position: absolute;
  right: -20px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--blue-light);
}

.footer__links a:hover::before {
  width: 100%;
}

.footer__links a:hover::after {
  opacity: 1;
  transform: translateX(0);
  right: -15px;
}

.footer__links a:hover {
  color: var(--white);
  transform: translateX(8px);
  padding-left: 5px;
}

.social-row {
  display: flex;
  gap: 0.75rem;
}

.social-row a {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(74, 128, 213, 0.6);
  display: grid;
  place-items: center;
  color: #0d2c55 !important;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  animation: neonGlow 3s ease-in-out infinite;
  z-index: 1;
  font-size: 1rem;
}

.social-row a::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(45deg, 
    rgba(74, 128, 213, 0.8),
    rgba(0, 255, 255, 0.8),
    rgba(138, 43, 226, 0.8),
    rgba(255, 20, 147, 0.8)
  );
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  filter: blur(10px);
  animation: neonRotate 3s linear infinite;
  transition: opacity 0.3s ease;
}

.social-row a:hover::after {
  opacity: 0.8;
}

.social-row a:nth-child(1) {
  animation-delay: 0s;
}

.social-row a:nth-child(2) {
  animation-delay: 0.5s;
}

.social-row a:nth-child(3) {
  animation-delay: 1s;
}

.social-row a:nth-child(4) {
  animation-delay: 1.5s;
}

.social-row a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(13, 44, 85, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.social-row a:hover::before {
  width: 100px;
  height: 100px;
}

.social-row a:hover {
  transform: translateY(-5px) scale(1.1);
  animation: neonPulse 1s ease-in-out infinite, bounce 0.6s ease;
  border-color: rgba(0, 255, 255, 1);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.9),
              0 0 25px rgba(0, 255, 255, 0.7),
              0 0 35px rgba(0, 255, 255, 0.5),
              0 15px 25px rgba(0, 0, 0, 0.3);
  color: #0d2c55;
}

.social-row a:active {
  transform: translateY(-2px) scale(1.05);
}

.footer__bottom {
  text-align: center;
  background: #031127;
  color: #9fb3e6;
  padding: 1rem;
  font-size: 0.9rem;
}

.footer__bottom a {
  color: #4a98ff;
  text-decoration: none;
  font-weight: 600;
}

.footer__bottom a:hover {
  text-decoration: underline;
}

/* Tablet Styles (max-width: 992px) */
@media (max-width: 992px) {
  .hero {
    padding: 1.5rem 5% 3rem;
  }

  .hero__nav {
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
  }

  .logo img {
    max-height: 70px;
    width: auto;
  }

  .hero nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    width: 100%;
    order: 3;
    margin-top: 0;
    background: #ffffff;
    padding: 1.5rem 5%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 16px 16px;
    z-index: 10000;
    flex-direction: column;
    gap: 0.5rem;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
  }

  .hero nav.mobile-open {
    display: flex !important;
  }

  .hero nav a {
    padding: 1rem 1.25rem;
    font-weight: 500;
    font-size: 1rem;
    color: #1a1a1a;
    background: transparent;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    border-radius: 8px;
    text-align: left;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInFromLeft 0.4s ease-out forwards;
  }

  .hero nav a:nth-child(1) {
    animation-delay: 0.1s;
  }

  .hero nav a:nth-child(2) {
    animation-delay: 0.15s;
  }

  .hero nav a:nth-child(3) {
    animation-delay: 0.2s;
  }

  .hero nav a:nth-child(4) {
    animation-delay: 0.25s;
  }

  .hero nav a:nth-child(5) {
    animation-delay: 0.3s;
  }

  .hero nav a:nth-child(6) {
    animation-delay: 0.35s;
  }

  .hero nav a:nth-child(7) {
    animation-delay: 0.4s;
  }

  .hero nav a:nth-child(8) {
    animation-delay: 0.45s;
  }

  .hero nav a:nth-child(9) {
    animation-delay: 0.5s;
  }

  .hero nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--blue-mid);
    transform: scaleY(0);
    transition: transform 0.3s ease;
  }

  .hero nav a::after {
    content: '→';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--blue-mid);
    font-weight: bold;
  }

  .hero nav a:hover::before {
    transform: scaleY(1);
  }

  .hero nav a:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  .hero nav a:hover {
    color: #1a1a1a;
    background: rgba(25, 75, 159, 0.1);
    padding-left: 1.5rem;
    transform: translateX(8px);
  }

  .hero nav a.active {
    color: #ffffff;
    background: #194b9f;
    padding-left: 1.5rem;
  }

  .hero nav a.active::before {
    transform: scaleY(1);
    width: 4px;
  }

  .hero nav a.active::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  .hero.menu-open .hero__content {
    filter: blur(5px);
    transition: filter 0.3s ease;
    pointer-events: none;
  }

  .nav-actions {
    order: 2;
  }

  .nav-actions button[aria-label="Menu"] {
    display: grid;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
  }

  .hero__text {
    text-align: center;
    max-width: 100%;
  }

  .hero__text .lead {
    max-width: 100%;
    margin: 0 auto 2rem;
  }

  .hero__text h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .hero__people {
    min-height: 300px;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem 0;
    overflow: visible;
  }

  .bubble {
    width: 70px;
    height: 70px;
    border-width: 5px;
    margin: 0;
    padding: 0;
  }

  .bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Adjust bubble positions for tablet */
  .bubble:nth-child(4) {
    top: 45%;
    left: 50%;
  }
  
  .bubble:nth-child(5) {
    top: 8%;
    left: 10%;
  }
  
  .bubble:nth-child(6) {
    top: 10%;
    right: 8%;
  }
  
  .bubble:nth-child(7) {
    bottom: 20%;
    left: 5%;
  }
  
  .bubble:nth-child(8) {
    bottom: 12%;
    right: 10%;
  }

  .section {
    padding: 4rem 5%;
  }

  .team .section,
  section.team.section {
    padding: 6rem 5% 6rem !important;
  }

  .team .section-heading {
    margin-bottom: 1.5rem !important;
  }
  
  .footer,
  footer.footer {
    padding: 5rem 5% 4rem !important;
    gap: 3rem !important;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .experience-stack {
    max-width: 100%;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .services-grid article {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Hide service-card-hidden by default on tablet */
  .services-grid article.service-card-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Show service-card-hidden when .show class is added */
  .services-grid article.service-card-hidden.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure service-card inside visible articles are properly styled */
  .services-grid article:not(.service-card-hidden) .service-card,
  .services-grid article:not(.service-card-hidden) .service-card.animated {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure service-card inside service-card-hidden are visible when shown */
  .services-grid article.service-card-hidden.show .service-card,
  .services-grid article.service-card-hidden.show .service-card.animated {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .service-card {
    padding: 2rem 1.5rem;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .service-card.animated {
    padding: 2rem 1.5rem !important;
    margin: 0 !important;
    visibility: visible !important;
    display: flex !important;
    opacity: 1 !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stats-grid article {
    padding: 2rem 1.5rem;
  }

  .team-carousel {
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .team-grid {
    gap: 1.5rem;
    padding: 1.5rem 0.5rem !important;
  }

  .team-grid article {
    padding: 2.5rem 2rem;
  }

  .footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

  .appointment-form {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .faq {
    grid-template-columns: 1fr;
  }

  .faq__media {
    min-height: 250px;
    padding: 2rem;
  }

  .faq__content {
    padding: 3rem 2rem;
  }

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

  .team-carousel {
    display: grid !important;
    grid-template-columns: 50px 1fr 50px;
    gap: 1rem;
    align-items: center;
    position: relative;
    width: 100%;
    overflow: visible;
    margin: 0 auto;
    padding: 0 0.75rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .carousel-btn {
    display: grid !important;
    width: 50px !important;
    height: 50px !important;
    position: relative;
    z-index: 10;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  
  .carousel-btn.prev {
    grid-column: 1;
    grid-row: 1;
  }
  
  .team-grid {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    grid-template-columns: none;
    gap: 1.5rem;
    overflow: hidden;
    margin: 0;
    padding: 1.5rem 0.5rem !important;
    width: 100%;
  }
  
  .team-grid article {
    min-width: calc(50% - 0.75rem);
    flex-shrink: 0;
  }
  
  .carousel-btn.next {
    grid-column: 3;
    grid-row: 1;
  }
  
  /* Ensure buttons are visible on tablet */
  .team-carousel .carousel-btn.prev,
  .team-carousel .carousel-btn.next {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  .team-carousel .carousel-btn.prev:disabled,
  .team-carousel .carousel-btn.next:disabled {
    pointer-events: none !important;
    touch-action: none !important;
  }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
  /* Hide service-card-hidden by default on mobile */
  .service-card-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Show service-card-hidden when .show class is added */
  .service-card-hidden.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  /* Ensure service-card.animated inside service-card-hidden are visible when shown */
  .service-card-hidden.show .service-card,
  .service-card-hidden.show .service-card.animated {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure ALL articles without service-card-hidden are visible (regardless of position) */
  .services-grid article:not(.service-card-hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure service-card inside visible articles are properly styled */
  .services-grid article:not(.service-card-hidden) .service-card,
  .services-grid article:not(.service-card-hidden) .service-card.animated {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure ALL service-card-hidden articles are hidden by default */
  .services-grid article.service-card-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  .hero {
    padding: 1rem 4% 2rem;
  }

  .hero__nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .logo img {
    height: 60px;
  }

  .hero__nav {
    position: relative;
  }

  .hero nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1.5rem 4%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 16px 16px;
    z-index: 10000;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .hero nav.mobile-open {
    display: flex !important;
  }

  .hero nav a {
    padding: 1rem 1.25rem;
    font-weight: 500;
    font-size: 1rem;
    color: #1a1a1a;
    background: transparent;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    border-radius: 8px;
    text-align: left;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInFromLeft 0.4s ease-out forwards;
  }

  .hero nav a:nth-child(1) {
    animation-delay: 0.1s;
  }

  .hero nav a:nth-child(2) {
    animation-delay: 0.15s;
  }

  .hero nav a:nth-child(3) {
    animation-delay: 0.2s;
  }

  .hero nav a:nth-child(4) {
    animation-delay: 0.25s;
  }

  .hero nav a:nth-child(5) {
    animation-delay: 0.3s;
  }

  .hero nav a:nth-child(6) {
    animation-delay: 0.35s;
  }

  .hero nav a:nth-child(7) {
    animation-delay: 0.4s;
  }

  .hero nav a:nth-child(8) {
    animation-delay: 0.45s;
  }

  .hero nav a:nth-child(9) {
    animation-delay: 0.5s;
  }

  .hero nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--blue-mid);
    transform: scaleY(0);
    transition: transform 0.3s ease;
  }

  .hero nav a::after {
    content: '→';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--blue-mid);
    font-weight: bold;
  }

  .hero nav a:hover::before {
    transform: scaleY(1);
  }

  .hero nav a:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  .hero nav a:hover {
    color: #1a1a1a;
    background: rgba(25, 75, 159, 0.1);
    padding-left: 1.5rem;
    transform: translateX(8px);
  }

  .hero nav a.active {
    color: #ffffff;
    background: #194b9f;
    padding-left: 1.5rem;
  }

  .hero nav a.active::before {
    transform: scaleY(1);
    width: 4px;
  }

  .hero nav a.active::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  .hero.menu-open .hero__content {
    filter: blur(5px);
    transition: filter 0.3s ease;
    pointer-events: none;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
  }

  .hero__text {
    text-align: center;
  }

  .hero__text .lead {
    max-width: 100%;
    margin: 0 auto 2rem;
  }

  .hero__text h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero__text .lead {
    font-size: 0.95rem;
  }

  .hero__people {
    min-height: 250px;
    padding: 1rem 0;
    margin: 0;
    overflow: visible;
  }

  .bubble {
    width: 60px;
    height: 60px;
    border-width: 4px;
    margin: 0;
    padding: 0;
  }

  .bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Adjust bubble positions for mobile */
  .bubble:nth-child(4) {
    top: 45%;
    left: 50%;
  }
  
  .bubble:nth-child(5) {
    top: 5%;
    left: 8%;
  }
  
  .bubble:nth-child(6) {
    top: 8%;
    right: 5%;
  }
  
  .bubble:nth-child(7) {
    bottom: 18%;
    left: 3%;
  }
  
  .bubble:nth-child(8) {
    bottom: 10%;
    right: 8%;
  }

  .eyebrow {
    font-size: 0.85rem;
  }

  .section {
    padding: 3rem 4%;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .team .section-heading.center h2 {
    font-size: 2rem;
  }

  .team-grid {
    display: flex;
    grid-template-columns: none;
    gap: 1.5rem;
    overflow: hidden;
    padding: 1.5rem 0.5rem !important;
  }
  
  .team-grid article {
    min-width: 100%;
    flex-shrink: 0;
  }

  .team-grid img {
    width: 150px;
    height: 150px;
  }

  .experience-card {
    padding: 2rem 1.5rem;
  }

  .experience-card span {
    font-size: 3rem;
  }

  .about-content h2 {
    font-size: 1.5rem;
  }

  .services {
    padding: 3rem 4%;
  }

  .services h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    display: grid !important;
  }

  /* Show ALL articles without service-card-hidden (regardless of position) */
  .services-grid article:not(.service-card-hidden) {
    padding: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  
  /* Hide ALL service-card-hidden articles by default */
  .services-grid article.service-card-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    padding: 0;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  
  /* Show service-card-hidden when .show class is added */
  .services-grid article.service-card-hidden.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  
  /* Ensure service-card inside visible articles are properly styled */
  .services-grid article:not(.service-card-hidden) .service-card,
  .services-grid article:not(.service-card-hidden) .service-card.animated {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Ensure service-card inside service-card-hidden are visible when shown */
  .services-grid article.service-card-hidden.show .service-card,
  .services-grid article.service-card-hidden.show .service-card.animated {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .service-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .service-card.animated {
    padding: 1.5rem !important;
    margin: 0 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
  }

  .service-card__image {
    width: 100%;
    height: 180px;
    min-width: 100%;
  }

  .service-card__body h3 {
    font-size: 1.2rem;
  }

  .service-card__body .service-index {
    font-size: 3rem;
  }

  .service-card .pill-btn {
    width: 100%;
    justify-content: center;
  }

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

  .stats-grid article {
    padding: 2rem 1rem;
  }

  .appointment {
    padding: 3rem 4%;
  }

  .appointment h2 {
    font-size: 2rem;
  }

  .appointment-form {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .faq__content {
    padding: 2rem 1.5rem;
  }

  .faq__content h2 {
    font-size: 2rem;
  }

  .faq__media {
    min-height: 200px;
    padding: 1.5rem;
  }

  .play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .footer {
    grid-template-columns: 1fr;
    padding: 4rem 4% 3rem !important;
    gap: 2.5rem;
  }

  .footer__brand,
  .footer__links,
  .footer__social {
    text-align: center;
  }

  .footer-contact {
    align-items: center;
    text-align: center;
  }

  .footer-contact li {
    justify-content: center;
    text-align: center;
  }

  .footer__social {
    order: -1;
  }

  .footer-contact {
    margin-top: 0.5rem;
  }

  .primary-btn {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
  }

  .team-carousel {
    display: grid !important;
    grid-template-columns: 45px 1fr 45px;
    gap: 0.75rem;
    align-items: center;
    position: relative;
    width: 100%;
    overflow: visible;
    margin: 0 auto;
    padding: 0 0.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .carousel-btn {
    display: grid !important;
    width: 45px !important;
    height: 45px !important;
    position: relative;
    z-index: 10;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 45px !important;
    min-height: 45px !important;
    margin: 0 !important;
    padding: 0 !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    flex-shrink: 0;
  }
  
  .carousel-btn.prev {
    grid-column: 1;
    grid-row: 1;
  }
  
  .team-grid {
    grid-column: 2;
    grid-row: 1;
    display: flex !important;
    grid-template-columns: none !important;
    overflow: hidden;
    gap: 0;
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem 0.5rem !important;
  }
  
  .team-grid article {
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
    padding: 2rem 1.5rem !important;
  }
  
  .team-grid article img {
    width: 150px !important;
    height: 150px !important;
    max-width: 100%;
  }
  
  .carousel-btn.next {
    grid-column: 3;
    grid-row: 1;
  }
  
  /* Ensure buttons are visible on mobile */
  .team-carousel .carousel-btn.prev,
  .team-carousel .carousel-btn.next {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  .team-carousel .carousel-btn.prev:disabled,
  .team-carousel .carousel-btn.next:disabled {
    pointer-events: none !important;
    touch-action: none !important;
  }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
  /* Hide service-card-hidden by default on small mobile */
  .service-card-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Show service-card-hidden when .show class is added */
  .service-card-hidden.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  /* Ensure service-card.animated inside service-card-hidden are visible when shown */
  .service-card-hidden.show .service-card,
  .service-card-hidden.show .service-card.animated {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure ALL articles without service-card-hidden are visible */
  .services-grid article:not(.service-card-hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .services-grid article:not(.service-card-hidden) .service-card.animated {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure ALL service-card-hidden articles are hidden by default */
  .services-grid article.service-card-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  .hero {
    padding: 1rem 3% 1.5rem;
  }
  
  .team-carousel {
    grid-template-columns: 40px 1fr 40px;
    gap: 0.5rem;
    margin: 0 auto;
    padding: 0 0.25rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .carousel-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
  
  .team-grid {
    padding: 1.5rem 0.5rem !important;
  }
  
  .team-grid article {
    padding: 1.5rem 1rem !important;
  }
  
  .team-grid article img {
    width: 120px !important;
    height: 120px !important;
  }
  
  .team-grid h3 {
    font-size: 1.1rem !important;
  }
  
  .team-grid p {
    font-size: 0.85rem !important;
  }
  
  /* ===== SERVICES SECTION - MOBILE REBUILD ===== */
  /* Force grid to single column */
  .services-grid {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }
  
  /* Show ALL articles without service-card-hidden (regardless of position) */
  .services-grid article:not(.service-card-hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  
  /* Hide ALL service-card-hidden articles by default */
  .services-grid article.service-card-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  
  /* Show service-card-hidden when .show class is added */
  .services-grid article.service-card-hidden.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  
  /* Ensure service-card inside visible articles are properly styled */
  .services-grid article:not(.service-card-hidden) .service-card,
  .services-grid article:not(.service-card-hidden) .service-card.animated {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Ensure service-card inside service-card-hidden are visible when shown */
  .services-grid article.service-card-hidden.show .service-card,
  .services-grid article.service-card-hidden.show .service-card.animated {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .service-card {
    padding: 1.25rem !important;
    margin: 0 !important;
    gap: 1rem !important;
    box-sizing: border-box;
    width: 100%;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column !important;
  }
  
  .service-card.animated {
    padding: 1.25rem !important;
    margin: 0 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    opacity: 1 !important;
  }
  
  .service-card__image {
    height: 150px !important;
  }
  
  .service-card__body h3 {
    font-size: 1.1rem !important;
  }
  
  .service-card__body .service-index {
    font-size: 2.5rem !important;
  }

  .hero__background::before {
    width: 600px;
    height: 400px;
    bottom: -100px;
    right: -200px;
  }

  .hero__background::after {
    width: 150px;
    height: 150px;
  }

  .hero__background .bg-orange-circle-1,
  .hero__background .bg-orange-circle-2,
  .hero__background .bg-orange-circle-3 {
    width: 60px;
    height: 60px;
  }

  .hero__background .bg-top-right {
    width: 100px;
    height: 100px;
  }

  .hero__text h1 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .hero__text .lead {
    font-size: 0.9rem;
  }

  .section {
    padding: 2.5rem 3%;
  }

  .section-heading h2 {
    font-size: clamp(1.4rem, 5vw, 1.7rem);
  }

  .section-heading.center h2 {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
  }

  .appointment-form {
    padding: 1.25rem;
  }

  .services-grid article {
    padding: 1.25rem;
  }

  .stats-grid h3 {
    font-size: 2.2rem;
  }

  .faq__content h2 {
    font-size: 1.75rem;
  }

  .hero__people {
    min-height: 200px;
    padding: 0.75rem 0;
    margin: 0;
    overflow: visible;
  }

  .bubble {
    width: 55px;
    height: 55px;
    border-width: 4px;
    margin: 0;
    padding: 0;
  }
  
  /* Adjust bubble positions for small mobile */
  .bubble:nth-child(4) {
    top: 45%;
    left: 50%;
  }
  
  .bubble:nth-child(5) {
    top: 3%;
    left: 5%;
  }
  
  .bubble:nth-child(6) {
    top: 6%;
    right: 3%;
  }
  
  .bubble:nth-child(7) {
    bottom: 15%;
    left: 2%;
  }
  
  .bubble:nth-child(8) {
    bottom: 8%;
    right: 5%;
  }

  .primary-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }

  .primary-btn .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

/* Full Screen Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  z-index: 999999;
  padding: 80px 25px;
  display: none;
  overflow-y: auto;
}

body.menu-open .mobile-menu {
  display: block;
}

/* Menu links */
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu a {
  text-decoration: none;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  display: block;
  padding: 0.75rem 0;
  transition: all 0.2s ease;
}

.mobile-menu a:hover {
  color: #194b9f;
}

.mobile-menu a.active {
  color: #194b9f;
  font-weight: 600;
}

/* Close button */
.close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #000;
  cursor: pointer;
  padding: 10px;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.close-btn i {
  font-size: 24px;
}

/* Prevent background scrolling when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Hide mobile menu on desktop */
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Overflow Prevention Fixes for Mobile and Tablet */
@media (max-width: 992px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  .section {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .hero {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  .hero__background::before {
    width: 150vw !important;
    max-width: none !important;
    right: -50% !important;
  }

}

@media (max-width: 480px) {
  .hero__background::before {
    width: 200vw !important;
    right: -100% !important;
  }

}

