.nav-chevron {
  font-size: 18px;
  transition: transform 200ms ease;
}

.nav-item-services:hover .nav-chevron {
  transform: rotate(180deg);
}

.mega-menu-icon .material-symbols-rounded {
  font-size: 21px;
}

.site-header {
  position: relative;
  width: 100%;
  padding: 12px 24px;
  z-index: 1000;
}

.navbar {
  position: sticky;

  top: 16px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 18px;
  position: relative;
  z-index: 1001;

  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(17, 17, 17, 0.07);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);

  transition:
    width 350ms ease,
    padding 350ms ease,
    background 350ms ease,
    box-shadow 350ms ease,
    backdrop-filter 350ms ease,
    max-width 350ms ease,
    border 350ms ease;
}

/* Pill navbar scrolled state */

.navbar.scrolled {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1100px;

  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.navbar.scrolled .navbar-logo img {
  height: auto;
  width: 100px;
}

.navbar.scrolled .navbar-links {
  gap: 2px;
}

.navbar-logo img {
  display: block;
  width: 110px;
  height: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-links a {
  display: inline-flex;
  align-items: center;

  padding: 8px 12px;
  border-radius: var(--radius-pill);

  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}

.navbar-links a:hover {
  background-color: rgba(37, 99, 235, 0.07);
  color: var(--color-primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;

  transition:
    background-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--color-text);
  background: transparent;
}

.btn-secondary:hover {
  color: var(--color-primary);
}

.btn-primary {
  color: var(--color-white);
  background: var(--color-primary);
}

.btn-primary:hover {
  background: #1d4ed8;
}

/* MEGA Menu */

.nav-item-services {
  position: relative;
}

.nav-item-services::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);

  width: min(760px, 90vw);

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;

  padding: 28px;

  /* Appearance */
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 22px;

  box-shadow: 0 20px 50px rgba(17, 17, 17, 0.1);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity var(--transition) transform var(--transition) visibility
    var(--transition);

  z-index: 1000;
}

/* Open mega menu */

.nav-item-services:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateX(-50%) translateY(0);
}

.mega-menu-heading {
  margin-bottom: 14px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Mega Menu Item */

.mega-menu-item,
.mega-menu-support {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;

  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.mega-menu-item:hover,
.mega-menu-support:hover {
  background: rgba(37, 99, 235, 0.06);
  transform: translateX(3px);
}

/* mega menu item icon */

.mega-menu-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);

  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
}

.mega-menu-item-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mega-menu-item-content strong {
  font-size: 14px;
  font-weight: 600;
}

.mega-menu-item-content small {
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.4;
}

/* mega menu footer */

.mega-menu-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;

  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.mega-menu-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.mega-menu-all span {
  transition: transform var(--transition);
}

.mega-menu-all:hover {
  transform: translateX(4px);
}

/* Footer */

.site-footer {
  position: relative;
  background: #f8f8f5;
  color: var(--color-text);
  overflow: hidden;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.site-footer::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -200px;
  top: -250px;
  background: radial-gradient(circle, rgb(37 99 235 / 0.14), transparent 70%);
  pointer-events: none;
}

.footer-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 90px 24px 80px;

  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.9fr 1.5fr;
  gap: 45px;
}

.footer-brand {
  max-width: 260px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
}

.footer-logo img {
  display: block;
  width: 130px;
  height: auto;
  /* filter: brightness(0) invert(1); */
}

.footer-brand p {
  max-width: 250px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column h3,
.footer-cta h3 {
  margin: 0 0 25px;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.footer-column a {
  margin-bottom: 16px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 200ms ease,
    transform 200ms ease;
}

.footer-column a:hover {
  color: var(--color-primary);
  transform: translateX(2px);
}

.footer-cta {
  max-width: 260px;
}

.footer-cta h3 {
  max-width: 240px;
  margin-bottom: 14px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.footer-cta p {
  margin-bottom: 25px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-cta-button {
  width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  transition:
    background 200ms ease,
    box-shadow 200ms ease;
}

.footer-cta-button:hover {
  transform: translateY(-2px);
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.25);
}

.footer-cta-button .material-symnbols-rounded {
  font-size: 18px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-bottom-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 22px 24px;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-bottom p {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-legal a {
  color: var(--color-muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-legal a:hover {
  color: var(--color-primary);
}

.footer-credit {
  text-align: right;
}

/* Backtotop */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 50px;
  z-index: 900;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgb(17 17 17 / 0.08);
  border-radius: 50%;

  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.1);

  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);

  transition:
    opacity 250ms ease,
    visibility 250ms ease,
    transform 250ms ease,
    background 200ms ease,
    color 200ms ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.back-to-top .material-symbols-rounded {
  font-size: 20px;
}

.section-tag {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
}

/* Animated gradient text */

.animate-gradient-text {
  display: inline-block;
  padding: 0.05em 0.08em;
  margin: -0.05em -0.08em;

  background: linear-gradient(90deg, #2563eb, #60a5fa, #2563eb);

  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: gradientMove 6s ease-in-out infinite;
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeLeft 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeRight 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-scale {
  opacity: 0;
  transform: scale(0.94);
  animation: scaleIn 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-blur {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(15px);
  animation: blurIn 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes glowMove {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translateX(-50%) scale(1.08);
    opacity: 1;
  }
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  animation-delay: 100ms;
}

.delay-2 {
  animation-delay: 200ms;
}

.delay-3 {
  animation-delay: 300ms;
}

.delay-4 {
  animation-delay: 400ms;
}

.delay-5 {
  animation-delay: 500ms;
}

/* ANNOUNCEMENT BAR */

.announcement-bar {
  height: 40px;
  overflow: hidden;
  position: relative;
  background-color: #2563eb;
}

.announcement-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  will-change: transform;
}

.announcement-item {
  height: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.announcement-item p {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: #f8f8f5;
}

.announcement-tag {
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  padding: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-white);
  font-style: italic;
}

.announcement-item .material-symbols-rounded {
  display: none;
  font-size: 15px;
  color: #f8f8f5;
}
