.uwt-project-tabs-premium {
  position: relative;
  padding: 58px 20px;
  background:
    radial-gradient(circle at 12% 10%, rgba(15, 111, 164, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
  overflow: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.uwt-project-tabs-premium.uwt-is-visible {
  opacity: 1;
  transform: translateY(0);
}

.uwt-project-tabs-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(15, 111, 164, 0.08), transparent 26%),
    radial-gradient(circle at 86% 30%, rgba(8, 44, 94, 0.06), transparent 28%),
    radial-gradient(circle at 52% 86%, rgba(15, 111, 164, 0.055), transparent 30%);
  pointer-events: none;
  z-index: 0;
  animation: uwtProjectBgFloat 11s ease-in-out infinite;
}

.uwt-project-tabs-premium__wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
}

.uwt-project-mobile-filter {
  display: none;
}

.uwt-project-tabs-premium__nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 8%, rgba(15, 111, 164, 0.24), transparent 34%),
    linear-gradient(135deg, #082c5e 0%, #0a3d70 54%, #0f6fa4 100%);
  box-shadow: 0 22px 58px rgba(8, 44, 94, 0.16);
  overflow: hidden;
}

.uwt-project-tabs-premium__nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.18;
  pointer-events: none;
}

.uwt-project-tabs-premium__nav::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 28%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: rotate(18deg);
  animation: uwtProjectNavSweep 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.uwt-project-tab-card {
  position: relative;
  z-index: 2;
  appearance: none;
  width: calc(20% - 11px);
  min-width: 185px;
  min-height: 58px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.105);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  opacity: 1;
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 10px 24px rgba(0,0,0,0.05);
  transition:
    transform 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease;
}

.uwt-is-visible .uwt-project-tab-card {
  opacity: 1;
  transform: translateY(0);
  animation: uwtProjectTabIn 0.55s ease forwards;
}

.uwt-is-visible .uwt-project-tab-card:nth-child(1) { animation-delay: 0.04s; }
.uwt-is-visible .uwt-project-tab-card:nth-child(2) { animation-delay: 0.08s; }
.uwt-is-visible .uwt-project-tab-card:nth-child(3) { animation-delay: 0.12s; }
.uwt-is-visible .uwt-project-tab-card:nth-child(4) { animation-delay: 0.16s; }
.uwt-is-visible .uwt-project-tab-card:nth-child(5) { animation-delay: 0.20s; }
.uwt-is-visible .uwt-project-tab-card:nth-child(6) { animation-delay: 0.24s; }
.uwt-is-visible .uwt-project-tab-card:nth-child(7) { animation-delay: 0.28s; }
.uwt-is-visible .uwt-project-tab-card:nth-child(8) { animation-delay: 0.32s; }
.uwt-is-visible .uwt-project-tab-card:nth-child(9) { animation-delay: 0.36s; }

.uwt-project-tab-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.uwt-project-tab-card:hover {
  transform: translateY(-4px) scale(1.012);
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 14px 34px rgba(0,0,0,0.11);
}

.uwt-project-tab-card.active {
  background: #ffffff;
  color: #082c5e;
  border-color: #ffffff;
  box-shadow: 0 14px 34px rgba(0,0,0,0.16);
  overflow: hidden;
}

.uwt-project-tab-card.active::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(15,111,164,0.16), transparent 42%);
  opacity: 0.9;
  animation: uwtProjectActiveGlow 4s ease-in-out infinite;
  pointer-events: none;
}

.uwt-project-tab-card.active::after {
  background: linear-gradient(90deg, #082c5e, #0f6fa4);
  transform: scaleX(1);
}

.uwt-project-tab-card__icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  transition: all 0.28s ease;
  position: relative;
  z-index: 2;
}

.uwt-project-tab-card.active .uwt-project-tab-card__icon {
  background: rgba(15, 111, 164, 0.10);
  color: #0f6fa4;
  animation: uwtProjectIconPulse 3s ease-in-out infinite;
}

.uwt-project-tab-card__icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.uwt-project-tab-card__text {
  position: relative;
  z-index: 2;
  color: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.uwt-project-tabs-premium__content {
  margin-top: 38px;
}

.uwt-project-panel {
  display: none;
}

.uwt-project-panel.active {
  display: block;
  animation: uwtProjectPanelPremiumReveal 0.55s cubic-bezier(.2,.75,.2,1) forwards;
}

.uwt-all-projects-group {
  margin-bottom: 76px;
  opacity: 1;
  transform: none;
}

.uwt-all-projects-group:last-child {
  margin-bottom: 0;
}

.uwt-project-panel.active .uwt-all-projects-group {
  animation: uwtProjectGroupReveal 0.55s ease forwards;
}

.uwt-project-panel.active .uwt-all-projects-group:nth-child(1) { animation-delay: 0.04s; }
.uwt-project-panel.active .uwt-all-projects-group:nth-child(2) { animation-delay: 0.10s; }
.uwt-project-panel.active .uwt-all-projects-group:nth-child(3) { animation-delay: 0.16s; }
.uwt-project-panel.active .uwt-all-projects-group:nth-child(4) { animation-delay: 0.22s; }
.uwt-project-panel.active .uwt-all-projects-group:nth-child(5) { animation-delay: 0.28s; }
.uwt-project-panel.active .uwt-all-projects-group:nth-child(6) { animation-delay: 0.34s; }
.uwt-project-panel.active .uwt-all-projects-group:nth-child(7) { animation-delay: 0.40s; }
.uwt-project-panel.active .uwt-all-projects-group:nth-child(8) { animation-delay: 0.46s; }

.uwt-project-panel-heading {
  --accent: #0f6fa4;
  --accent-soft: rgba(15, 111, 164, 0.14);
  --accent-mid: rgba(15, 111, 164, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin: 0 auto 36px;
  position: relative;
  text-align: center;
  opacity: 1;
  transform: none;
}

.uwt-project-panel.active .uwt-project-panel-heading {
  animation: uwtProjectHeadingReveal 0.55s ease forwards;
}

.uwt-project-panel-heading__line {
  flex: 1;
  height: 1px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-soft) 18%,
    var(--accent-mid) 50%,
    var(--accent-soft) 82%,
    transparent 100%
  );
}

.uwt-project-panel-heading__line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80px;
  width: 80px;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.95) 50%, transparent 100%);
  animation: uwtProjectDividerSweep 4.8s ease-in-out infinite;
  opacity: 0.9;
}

.uwt-project-panel-heading__line:last-child::after {
  animation-delay: 0.35s;
}

.uwt-project-panel-heading__title {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0 18px 12px;
  white-space: nowrap;
  transition: transform 0.28s ease;
}

.uwt-project-panel-heading:hover .uwt-project-panel-heading__title {
  transform: translateY(-1px);
}

.uwt-project-panel-heading__title::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15,111,164,0) 0%, rgba(15,111,164,0.95) 50%, rgba(15,111,164,0) 100%);
  transform: scaleX(0.78);
  transform-origin: center;
  animation: uwtProjectUnderlinePulse 3.6s ease-in-out infinite;
}

.uwt-project-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  border: 1px solid rgba(15, 111, 164, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  color: #0f6fa4;
  box-shadow:
    0 10px 24px rgba(15, 111, 164, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.95);
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

.uwt-project-panel-icon::after {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 180deg, transparent, rgba(15,111,164,0.18), transparent);
  animation: uwtProjectIconOrbit 5s linear infinite;
  opacity: 0.55;
}

.uwt-project-panel-icon svg {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.uwt-project-panel-heading__title > span:last-child {
  position: relative;
  display: inline-block;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #0f6fa4;
}

.uwt-project-panel-heading:hover .uwt-project-panel-icon {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(15, 111, 164, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.98);
}

.uwt-project-panel-heading:hover .uwt-project-panel-heading__title::after {
  transform: scaleX(1);
}

@keyframes uwtProjectBgFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -10px, 0) scale(1.025); }
}

@keyframes uwtProjectNavSweep {
  0%, 56%, 100% { left: -35%; opacity: 0; }
  64% { opacity: 0.75; }
  82% { left: 110%; opacity: 0; }
}

@keyframes uwtProjectTabIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes uwtProjectActiveGlow {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 1; }
}

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

@keyframes uwtProjectPanelPremiumReveal {
  from { opacity: 0; transform: translateY(18px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes uwtProjectGroupReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes uwtProjectHeadingReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes uwtProjectDividerSweep {
  0% { left: -80px; opacity: 0; }
  12% { opacity: 0.9; }
  48% { left: 100%; opacity: 0.9; }
  60%, 100% { left: 100%; opacity: 0; }
}

@keyframes uwtProjectUnderlinePulse {
  0%, 100% { opacity: 0.7; transform: scaleX(0.78); }
  50% { opacity: 1; transform: scaleX(0.96); }
}

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

@keyframes uwtProjectMobileFilterIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .uwt-project-tab-card {
    width: calc(33.333% - 10px);
    min-width: 0;
  }
}

@media (max-width: 991px) {
  .uwt-project-panel-heading__title > span:last-child {
    font-size: clamp(20px, 3vw, 24px);
  }

  .uwt-project-panel-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  .uwt-project-panel-icon svg {
    width: 16px;
    height: 16px;
  }

  .uwt-all-projects-group {
    margin-bottom: 62px;
  }
}

@media (max-width: 760px) {
  .uwt-project-tab-card {
    width: calc(50% - 8px);
  }
}

@media (max-width: 560px) {
  .uwt-project-tabs-premium {
    padding: 34px 16px 52px;
  }

  .uwt-project-tabs-premium__nav {
    display: none;
  }

  .uwt-project-mobile-filter {
    position: relative;
    display: block;
    padding: 18px;
    border-radius: 24px;
    background:
      radial-gradient(circle at 92% 0%, rgba(15, 111, 164, 0.24), transparent 34%),
      linear-gradient(135deg, #082c5e 0%, #0a3d70 58%, #0f6fa4 100%);
    box-shadow: 0 22px 58px rgba(8, 44, 94, 0.18);
    z-index: 30;
    opacity: 1;
    transform: none;
  }

  .uwt-is-visible .uwt-project-mobile-filter {
    animation: uwtProjectMobileFilterIn 0.55s ease forwards;
  }

  .uwt-project-mobile-filter__label {
    display: block;
    margin-bottom: 11px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .uwt-project-mobile-filter__button {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 17px;
    background: #ffffff;
    color: #082c5e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  }

  .uwt-project-mobile-filter__current {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .uwt-project-mobile-filter__arrow {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 10px;
    background: rgba(15, 111, 164, 0.10);
    color: #0f6fa4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 1;
    transition: transform 0.25s ease;
    position: relative;
  }

  .uwt-project-mobile-filter__arrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #0f6fa4;
    border-bottom: 2px solid #0f6fa4;
    transform: rotate(45deg) translate(-1px, -1px);
    transform-origin: center;
  }

  .uwt-project-mobile-filter.is-open .uwt-project-mobile-filter__arrow {
    transform: rotate(180deg);
  }

  .uwt-project-mobile-filter__menu {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% - 8px);
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(8, 44, 94, 0.10);
    box-shadow: 0 24px 58px rgba(8, 44, 94, 0.22);
    display: grid;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 60;
  }

  .uwt-project-mobile-filter.is-open .uwt-project-mobile-filter__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .uwt-project-mobile-filter__menu button {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #082c5e;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
  }

  .uwt-project-mobile-filter__menu button:hover {
    background: #f0f7fb;
    color: #0f6fa4;
  }

  .uwt-project-mobile-filter__menu button.active {
    background: linear-gradient(135deg, #082c5e, #0f6fa4);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(8, 44, 94, 0.18);
  }

  .uwt-project-tabs-premium__content {
    margin-top: 30px;
  }

  .uwt-project-panel-heading {
    gap: 10px;
    margin-bottom: 26px;
  }

  .uwt-project-panel-heading__line {
    max-width: 70px;
  }

  .uwt-project-panel-heading__title {
    gap: 8px;
    padding: 0 10px 8px;
    white-space: normal;
  }

  .uwt-project-panel-heading__title::after {
    left: 10px;
    right: 10px;
  }

  .uwt-project-panel-heading__title > span:last-child {
    font-size: 21px;
    letter-spacing: 0;
  }

  .uwt-project-panel-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
  }

  .uwt-project-panel-icon svg {
    width: 14px;
    height: 14px;
  }

  .uwt-all-projects-group {
    margin-bottom: 50px;
  }
}

@media (max-width: 480px) {
  .uwt-project-panel-heading__line {
    max-width: 38px;
  }

  .uwt-project-panel-heading__title > span:last-child {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uwt-project-tabs-premium,
  .uwt-project-tabs-premium::before,
  .uwt-project-tabs-premium__nav::after,
  .uwt-project-tab-card,
  .uwt-project-tab-card.active::before,
  .uwt-project-tab-card.active .uwt-project-tab-card__icon,
  .uwt-project-panel.active,
  .uwt-all-projects-group,
  .uwt-project-panel-heading,
  .uwt-project-panel-icon::after,
  .uwt-project-mobile-filter,
  .uwt-project-panel-heading__line::after,
  .uwt-project-panel-heading__title::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Fallback: never allow this section to stay invisible if JS/IntersectionObserver is blocked. */
.uwt-project-tabs-premium.uwt-no-js-fallback,
.uwt-project-tabs-premium.uwt-is-visible {
  opacity: 1;
  transform: none;
}

.uwt-project-tabs-premium.uwt-no-js-fallback .uwt-project-tab-card,
.uwt-project-tabs-premium.uwt-is-visible .uwt-project-tab-card,
.uwt-project-tabs-premium.uwt-no-js-fallback .uwt-all-projects-group,
.uwt-project-tabs-premium.uwt-no-js-fallback .uwt-project-panel-heading {
  opacity: 1;
}
