/* ==========================================================
   CODEWORD PREMIUM FOOTER — isolated CSS
   Background artwork + animated logo watermark + 3D hover
========================================================== */
.cw-premium-footer {
  --cwf-navy: #08152b;
  --cwf-orange: #ff9f1c;
  --cwf-orange-light: #ffc46e;
  --cwf-text: #c7d3e6;
  --cwf-muted: #8798b3;
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: linear-gradient(90deg, rgba(7, 20, 43, .94), rgba(7, 20, 43, .72)), url("../images/footer-bg.png") center center / cover no-repeat;
  box-sizing: border-box;
}

.cw-premium-footer *,
.cw-premium-footer *::before,
.cw-premium-footer *::after {
  box-sizing: border-box;
}

.cw-premium-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cwf-orange) 25%, #fff0d8 50%, var(--cwf-orange) 75%, transparent);
  background-size: 200% 100%;
  animation: cwFooterTopGlow 7s linear infinite;
}

.cw-premium-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .10;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 80%, transparent);
}

.cw-premium-footer .cw-footer-artwork {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  perspective: 1200px;
}

.cw-premium-footer .cw-footer-orbit {
  position: absolute;
  top: 50%;
  width: clamp(240px, 32vw, 440px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 159, 28, .12);
  border-radius: 50%;
  transform-style: preserve-3d;
  will-change: transform;
}

.cw-premium-footer .cw-footer-orbit-one {
  right: -90px;
  box-shadow: 0 0 45px rgba(43, 99, 171, .06), inset 0 0 40px rgba(255, 255, 255, .015);
  animation: cwFooterOrbitOne 18s linear infinite;
}

.cw-premium-footer .cw-footer-orbit-two {
  right: -38px;
  border-color: rgba(255, 255, 255, .075);
  animation: cwFooterOrbitTwo 24s linear infinite;
}

.cw-premium-footer .cw-footer-orbit-three {
  right: 14px;
  width: clamp(140px, 21vw, 290px);
  border-color: rgba(255, 159, 28, .09);
  animation: cwFooterOrbitThree 20s ease-in-out infinite;
}

.cw-premium-footer .cw-footer-watermark {
  position: absolute;
  top: 50%;
  right: 7%;
  width: clamp(190px, 26vw, 350px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: .10;
  transform-style: preserve-3d;
  animation: cwFooterLogoFloat 7s ease-in-out infinite;
}

.cw-premium-footer .cw-footer-watermark-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-style: preserve-3d;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, .2)) drop-shadow(0 0 22px rgba(255, 159, 28, .18));
  animation: cwFooterLogoTilt 12s ease-in-out infinite;
}

.cw-premium-footer .cw-footer-glow {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  filter: blur(85px);
  opacity: .12;
}

.cw-premium-footer .cw-footer-glow-one {
  top: -130px;
  left: 18%;
  background: #2763b5;
  animation: cwFooterGlowFloat 10s ease-in-out infinite;
}

.cw-premium-footer .cw-footer-glow-two {
  right: 5%;
  bottom: -170px;
  background: #ff9f1c;
  animation: cwFooterGlowFloat 13s ease-in-out infinite reverse;
}

.cw-premium-footer .cw-footer-main {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 58px 32px 48px;
}

.cw-premium-footer .cw-footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.65fr) repeat(3, minmax(125px, 1fr));
  gap: 42px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.cw-premium-footer .cw-footer-brand,
.cw-premium-footer .cw-footer-column {
  min-width: 0;
}

.cw-premium-footer .cw-footer-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 220px;
  margin-bottom: 15px;
  text-decoration: none;
  transform-style: preserve-3d;
  transition: transform .35s ease;
}

.cw-premium-footer .cw-footer-brand-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 75px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .22));
  transition: filter .35s ease, transform .35s ease;
}

.cw-premium-footer .cw-footer-brand-link:hover {
  transform: translateY(-4px) rotateX(5deg);
}

.cw-premium-footer .cw-footer-brand-link:hover .cw-footer-brand-logo {
  transform: scale(1.035);
  filter: drop-shadow(0 8px 12px rgba(255, 159, 28, .18)) drop-shadow(0 0 8px rgba(255, 255, 255, .12));
}

.cw-premium-footer .cw-footer-brand-accent {
  width: 62px;
  height: 4px;
  margin: 0 0 22px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--cwf-orange), var(--cwf-orange-light));
  box-shadow: 0 3px 13px rgba(255, 159, 28, .28);
  transition: width .35s ease, box-shadow .35s ease;
}

.cw-premium-footer .cw-footer-brand:hover .cw-footer-brand-accent {
  width: 100px;
  box-shadow: 0 4px 20px rgba(255, 159, 28, .32);
}

.cw-premium-footer .cw-footer-brand p {
  max-width: 365px;
  margin: 0;
  color: var(--cwf-text);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 2;
}

.cw-premium-footer .cw-footer-brand-tagline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 23px;
  color: var(--cwf-orange-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.cw-premium-footer .cw-footer-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--cwf-orange);
  box-shadow: 0 0 12px rgba(255, 159, 28, .65);
  animation: cwFooterStatusPulse 2s ease-in-out infinite;
}

.cw-premium-footer .cw-footer-heading {
  position: relative;
  margin: 7px 0 25px;
  padding-bottom: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.cw-premium-footer .cw-footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 31px;
  height: 3px;
  border-radius: 5px;
  background: var(--cwf-orange);
  transition: width .35s ease, box-shadow .35s ease;
}

.cw-premium-footer .cw-footer-column:hover .cw-footer-heading::after {
  width: 64px;
  box-shadow: 0 0 12px rgba(255, 159, 28, .28);
}

.cw-premium-footer .cw-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cw-premium-footer .cw-footer-links li {
  margin: 0;
  padding: 0;
}

.cw-premium-footer .cw-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cwf-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
  text-decoration: none;
  transition: color .25s ease, transform .3s ease, text-shadow .3s ease;
}

.cw-premium-footer .cw-footer-links a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--cwf-orange);
  opacity: 0;
  transform: scale(.3);
  transition: opacity .25s ease, transform .25s ease;
}

.cw-premium-footer .cw-footer-links a:hover,
.cw-premium-footer .cw-footer-links a:focus-visible {
  color: var(--cwf-orange-light);
  transform: translate3d(5px, -2px, 0);
  text-shadow: 0 4px 14px rgba(255, 159, 28, .12);
}

.cw-premium-footer .cw-footer-links a:hover::before,
.cw-premium-footer .cw-footer-links a:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.cw-premium-footer .cw-footer-social-text {
  max-width: 210px;
  margin: -5px 0 20px;
  color: var(--cwf-text);
  font-size: 11.5px;
  line-height: 1.9;
}

.cw-premium-footer .cw-footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cw-premium-footer .cw-footer-social a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .025));
  box-shadow: 0 5px 0 rgba(0, 0, 0, .24), 0 10px 22px rgba(0, 0, 0, .12);
  text-decoration: none;
  transform-style: preserve-3d;
  transition: transform .3s ease, color .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.cw-premium-footer .cw-footer-social a i {
  font-size: 16px;
  transition: transform .3s ease;
}

.cw-premium-footer .cw-footer-social a:hover,
.cw-premium-footer .cw-footer-social a:focus-visible {
  color: #14233d;
  border-color: var(--cwf-orange);
  background: linear-gradient(135deg, #ffd18a, var(--cwf-orange));
  box-shadow: 0 3px 0 #b96a00, 0 12px 25px rgba(255, 159, 28, .2);
  transform: translateY(-5px) rotateX(8deg);
}

.cw-premium-footer .cw-footer-social a:hover i {
  transform: scale(1.13) rotate(-5deg);
}

.cw-premium-footer .cw-footer-social-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
  color: var(--cwf-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5px;
}

.cw-premium-footer .cw-footer-caption-line {
  width: 22px;
  height: 1px;
  background: var(--cwf-orange);
}

.cw-premium-footer .cw-footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, .11);
  background: rgba(3, 10, 23, .58);
  backdrop-filter: blur(8px);
}

.cw-premium-footer .cw-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px 25px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 0;
}

.cw-premium-footer .cw-footer-copyright {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--cwf-muted);
  font-size: 11px;
  line-height: 1.8;
}

.cw-premium-footer .cw-footer-admin-hidden {
  display: inline-block;
  margin-left: 4px;
  color: rgba(255, 255, 255, .07);
  font-size: 9px;
  cursor: default;
  user-select: none;
  transition: color .25s ease;
}

.cw-premium-footer .cw-footer-admin-hidden:hover {
  color: rgba(255, 159, 28, .6);
}

.cw-premium-footer .cw-footer-developer {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--cwf-text);
  font-size: 10.5px;
  line-height: 1.8;
  text-decoration: none;
  transition: color .3s ease, transform .3s ease;
}

.cw-premium-footer .cw-footer-developer strong {
  color: var(--cwf-orange);
  font-weight: 800;
  transition: color .3s ease, text-shadow .3s ease;
}

.cw-premium-footer .cw-footer-developer:hover {
  color: #fff;
  transform: translateY(-2px);
}

.cw-premium-footer .cw-footer-developer:hover strong {
  color: #ffd18a;
  text-shadow: 0 0 12px rgba(255, 159, 28, .25);
}

.cw-premium-footer .cw-footer-developer-arrow {
  color: var(--cwf-orange);
  font-size: 14px;
  transition: transform .3s ease;
}

.cw-premium-footer .cw-footer-developer:hover .cw-footer-developer-arrow {
  transform: translate(3px, -3px);
}

.cw-premium-footer a:focus-visible {
  outline: 2px solid var(--cwf-orange);
  outline-offset: 5px;
}

@keyframes cwFooterTopGlow {
  from {
    background-position: 100% 0;
  }

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

@keyframes cwFooterLogoFloat {

  0%,
  100% {
    transform: translate3d(0, -45%, 0);
  }

  50% {
    transform: translate3d(0, calc(-45% - 17px), 0);
  }
}

@keyframes cwFooterLogoTilt {

  0%,
  100% {
    transform: rotateY(-16deg) rotateX(7deg) rotateZ(-3deg);
  }

  50% {
    transform: rotateY(16deg) rotateX(-5deg) rotateZ(3deg);
  }
}

@keyframes cwFooterOrbitOne {
  from {
    transform: translateY(-50%) rotateX(12deg) rotateZ(0deg);
  }

  to {
    transform: translateY(-50%) rotateX(12deg) rotateZ(360deg);
  }
}

@keyframes cwFooterOrbitTwo {
  from {
    transform: translateY(-50%) rotateY(18deg) rotateZ(360deg);
  }

  to {
    transform: translateY(-50%) rotateY(18deg) rotateZ(0deg);
  }
}

@keyframes cwFooterOrbitThree {

  0%,
  100% {
    transform: translateY(-50%) scale(.96);
  }

  50% {
    transform: translateY(calc(-50% - 8px)) scale(1.04);
  }
}

@keyframes cwFooterGlowFloat {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-25px, 18px, 0);
  }
}

@keyframes cwFooterStatusPulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(255, 159, 28, .65);
  }

  50% {
    opacity: .55;
    box-shadow: 0 0 4px rgba(255, 159, 28, .3);
  }
}

@media (max-width: 950px) {
  .cw-premium-footer .cw-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 32px;
  }

  .cw-premium-footer .cw-footer-brand {
    padding-right: 10px;
  }

  .cw-premium-footer .cw-footer-watermark {
    right: -3%;
    width: 290px;
    opacity: .075;
  }

  .cw-premium-footer .cw-footer-bottom-inner {
    padding-right: 32px;
    padding-left: 32px;
  }
}

@media (max-width: 560px) {
  .cw-premium-footer .cw-footer-main {
    padding: 42px 20px 32px;
  }

  .cw-premium-footer .cw-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .cw-premium-footer .cw-footer-brand {
    grid-column: 1 / -1;
  }

  .cw-premium-footer .cw-footer-brand-logo {
    max-width: 180px;
    max-height: 62px;
  }

  .cw-premium-footer .cw-footer-brand-link {
    max-width: 180px;
    margin-bottom: 13px;
  }

  .cw-premium-footer .cw-footer-brand-accent {
    margin-bottom: 17px;
  }

  .cw-premium-footer .cw-footer-brand p {
    font-size: 12px;
    line-height: 1.9;
  }

  .cw-premium-footer .cw-footer-brand-tagline {
    margin-top: 17px;
    font-size: 8px;
  }

  .cw-premium-footer .cw-footer-heading {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 13px;
  }

  .cw-premium-footer .cw-footer-links {
    gap: 11px;
  }

  .cw-premium-footer .cw-footer-links a {
    font-size: 11px;
  }

  .cw-premium-footer .cw-footer-social {
    gap: 9px;
  }

  .cw-premium-footer .cw-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .cw-premium-footer .cw-footer-social-text {
    font-size: 10.5px;
  }

  .cw-premium-footer .cw-footer-social-caption {
    gap: 6px;
    font-size: 8px;
  }

  .cw-premium-footer .cw-footer-watermark {
    top: 37%;
    right: -75px;
    width: 225px;
    opacity: .055;
  }

  .cw-premium-footer .cw-footer-orbit-one {
    right: -150px;
  }

  .cw-premium-footer .cw-footer-orbit-two {
    right: -110px;
  }

  .cw-premium-footer .cw-footer-orbit-three {
    right: -65px;
  }

  .cw-premium-footer .cw-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 18px 20px;
  }

  .cw-premium-footer .cw-footer-copyright {
    font-size: 10px;
  }

  .cw-premium-footer .cw-footer-developer {
    font-size: 9.5px;
  }

  .cw-premium-footer {
    background-position: 65% center;
  }
}

@media (max-width: 360px) {
  .cw-premium-footer .cw-footer-main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .cw-premium-footer .cw-footer-grid {
    gap: 28px 14px;
  }

  .cw-premium-footer .cw-footer-links a {
    font-size: 10px;
  }

  .cw-premium-footer .cw-footer-heading {
    font-size: 12px;
  }

  .cw-premium-footer .cw-footer-bottom-inner {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .cw-premium-footer::before,
  .cw-premium-footer .cw-footer-orbit,
  .cw-premium-footer .cw-footer-watermark,
  .cw-premium-footer .cw-footer-watermark-image,
  .cw-premium-footer .cw-footer-glow,
  .cw-premium-footer .cw-footer-status-dot {
    animation: none !important;
  }

  .cw-premium-footer *,
  .cw-premium-footer *::before,
  .cw-premium-footer *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}