:root {
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
html {
  scroll-behavior: smooth;
}
body {
  font-feature-settings: "liga" 1;
}
.hero-bg {
  background: linear-gradient(180deg, #091e3f 0%, #489ac0 100%);
}

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

#site-nav {
  transition: background 0.3s ease, border-bottom 0.3s ease,
    box-shadow 0.3s ease;
}
#site-nav.nav-transparent {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
#site-nav.nav-solid {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb !important;
}
#site-nav .logo {
  transition: color 0.3s ease;
}
#site-nav.nav-transparent .logo {
  color: #fff !important;
}
#site-nav.nav-solid .logo {
  color: #4b5563 !important;
}
#site-nav a {
  transition: color 0.3s ease;
}
#site-nav a span {
  transition: background-color 0.3s ease, transform 0.25s ease;
}
#site-nav.nav-transparent .md\:flex a:not(.logo) {
  color: #fff !important;
}
#site-nav.nav-solid .md\:flex a:not(.logo) {
  color: #4b5563 !important;
}
#site-nav.nav-transparent .md\:flex a:not(.logo) span {
  background-color: #fff !important;
}
#site-nav.nav-solid .md\:flex a:not(.logo) span {
  background-color: #2563eb !important;
}
#site-nav.nav-transparent .md\:hidden a {
  color: #fff !important;
}
#site-nav.nav-solid .md\:hidden a {
  color: #4b5563 !important;
}

.slide-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.slide-card.in {
  opacity: 1;
  transform: translateY(0);
}
.slide-card.service-card {
  transition: opacity 0.5s ease-out, transform 0.5s ease-out,
    box-shadow 0.2s ease;
  will-change: opacity, transform;
}
.slide-card:hover,
.slide-card:focus-within {
  transition-delay: 0s !important;
}
.service-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
}
.service-card:has(.decorative-svg.text-green-500, svg.text-green-500)::before {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.service-card:has(
    .decorative-svg.text-yellow-500,
    svg.text-yellow-500
  )::before {
  background: linear-gradient(135deg, #eab308, #ca8a04);
}
.service-card:has(
    .decorative-svg.text-indigo-500,
    svg.text-indigo-500
  )::before {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.service-card:has(
    .decorative-svg.text-purple-500,
    svg.text-purple-500
  )::before {
  background: linear-gradient(135deg, #a855f7, #9333ea);
}
.service-card:has(.decorative-svg.text-pink-500, svg.text-pink-500)::before {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.decorative-svg {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  opacity: 0.1;
  pointer-events: none;
}
.team-member {
  min-height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: 24px 20px 20px;
  margin-inline: auto;
  max-width: 28rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-member:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}
.team-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(135deg, #2563eb, #1f4fc1);
}
.team-member img {
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px rgba(37, 99, 235, 0.18);
}
#team .grid:last-of-type {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  justify-items: center;
  align-items: stretch;
}
@media (min-width: 768px) {
  #team .grid:last-of-type {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
#team .grid:last-of-type > .team-member {
  width: 100%;
}
#team a[aria-label="Email"],
#team a[aria-label="LinkedIn"],
#team .team-member a[href^="mailto:"],
#team .team-member a[href*="linkedin"] {
  background: linear-gradient(135deg, #2563eb, #1f4fc1);
  color: #fff !important;
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
}
#team a[aria-label="Email"]:hover,
#team a[aria-label="LinkedIn"]:hover,
#team .team-member a[href^="mailto:"]:hover,
#team .team-member a[href*="linkedin"]:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
#team a[aria-label="Email"] svg,
#team a[aria-label="LinkedIn"] svg,
#team .team-member a[href^="mailto:"] svg,
#team .team-member a[href*="linkedin"] svg {
  color: #fff;
}
#team .mb-16.grid {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: 24px;
  align-items: center;
  overflow: hidden;
}
#team .mb-16.grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #2563eb, #1f4fc1);
}
@media (min-width: 768px) {
  #team .mb-16.grid {
    padding: 28px 32px;
  }
}
#team .mb-16.grid img {
  border: 0;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px rgba(37, 99, 235, 0.18);
  border-radius: 9999px;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1f4fc1);
  color: #fff;
  font-weight: 600;
  transition: filter var(--transition);
}
.btn-primary:hover {
  filter: brightness(1.07);
}

.decorative-wave-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  height: 120px;
  pointer-events: none;
}

.section-wave {
  background-color: rgb(243, 244, 246);
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.wave-svg {
  display: block;
  width: 200%;
  max-width: none;
  height: 120px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: wave-slide 12s linear infinite;
}
.wave-svg:nth-child(2) {
  animation-duration: 18s;
  opacity: 0.6;
  transform: translate3d(0, 0, 0) scaleY(1.5);
}
@keyframes wave-slide {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(-25%) translateY(3px);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}
@keyframes wave-slide-x {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(0);
  }
}
.section-wave .wave-svg {
  animation: wave-slide-x 12s linear infinite;
}
.decorative-wave-wrapper .wave-svg path,
.section-wave .wave-svg path {
  stroke: #fff;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}
.decorative-wave-wrapper .wave-svg path {
  transform: translateY(0.5px);
}
.section-wave.top-fill .wave-svg path {
  transform: translateY(-1.25px);
}
.section-wave.to-white .wave-svg path {
  transform: translateY(1px);
}
.section-wave.cap-top::before,
.section-wave.cap-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
  pointer-events: none;
  z-index: 2;
}
.section-wave.cap-top::before {
  top: 0;
}
.section-wave.cap-bottom::after {
  bottom: 0;
}

.hero-logo .s0 {
  fill: #fff;
  stroke: #fff;
  stroke-miterlimit: 10;
}
.hero-logo .s1 {
  fill: #fff;
}

#services-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) {
  #services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #services-grid > * {
    grid-column: span 2 / span 2;
  }
  #services-grid > :last-child {
    grid-column: 2 / span 2;
  }
}
@media (min-width: 1024px) {
  #services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  #services-grid > * {
    grid-column: span 2 / span 2;
  }
  #services-grid > :nth-last-child(2) {
    grid-column-start: 2;
  }
  #services-grid > :last-child {
    grid-column-start: 4;
  }
}

.logo svg .s0,
.logo svg .s1 {
  fill: currentColor !important;
  stroke: currentColor !important;
}

#team .grid:last-of-type {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

#team .grid:last-of-type > .team-member {
  width: auto !important;
  max-width: 28rem;
  flex: 0 1 18rem;
}
