
/**
 * XSUS STUDIO — GLOBI V4.3
 * Official Neon Emblem
 * THE X IDENTITY
 *
 * Compatible with:
 * index-v2.html
 * assets/js/globe-engine.js
 */

:root {
  --xsus-bg: #050a18;
  --xsus-cyan: #20e8ff;
  --xsus-blue: #3478ff;
  --xsus-violet: #a26cff;
}

/* GLOBE CONTAINER */

.globe-wrap,
.xsus-globe-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 400px;
  perspective: 1000px;
  isolation: isolate;
}

/* BACKGROUND GLOW */

.globe-wrap::before,
.xsus-globe-scene::before {
  content: "";
  position: absolute;
  width: min(90%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(32, 232, 255, 0.15) 0%,
    rgba(162, 108, 255, 0.08) 45%,
    transparent 70%
  );

  filter: blur(25px);
  z-index: -1;
  pointer-events: none;
}

/* MAIN INTERACTIVE GLOBE */

.xsus-globe {
  --globe-x: -18deg;
  --globe-y: 0deg;

  position: relative;
  display: block;
  width: min(75vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;

  border: 1px solid rgba(32, 232, 255, 0.6);

  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(53, 234, 255, 0.47),
      transparent 35%
    ),
    radial-gradient(
      circle at 75% 80%,
      rgba(162, 108, 255, 0.4),
      transparent 45%
    ),
    radial-gradient(
      circle at center,
      #12376a 0%,
      #050a18 75%
    );

  box-shadow:
    inset -35px -25px 70px #020512,
    inset 20px 20px 45px rgba(32, 232, 255, 0.13),
    0 0 50px rgba(32, 232, 255, 0.27),
    0 0 110px rgba(162, 108, 255, 0.2);

  cursor: grab;
  touch-action: none;

  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;

  animation: xsusFloat 7s ease-in-out infinite;
}

.xsus-globe.dragging {
  cursor: grabbing;
}

/* INTERACTIVE ROTATING GRID */

.xsus-globe::before {
  content: "";
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  pointer-events: none;

  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 32px,
      rgba(32, 232, 255, 0.22) 33px,
      transparent 34px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 43px,
      rgba(32, 232, 255, 0.18) 44px,
      transparent 45px
    );

  transform:
    perspective(600px)
    rotateX(var(--globe-x))
    rotateY(var(--globe-y))
    rotateZ(-18deg);

  will-change: transform;
}

/* OFFICIAL XSUS NEON EMBLEM */

.xsus-globe::after {
  content: "";
  position: absolute;
  z-index: 2;

  inset: 15%;
  border-radius: 0;

  background-image:
    url("../images/xsus-globe-emblem.png");

  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;

  pointer-events: none;

  filter:
    drop-shadow(0 0 12px rgba(32, 232, 255, 0.25))
    drop-shadow(0 0 22px rgba(162, 108, 255, 0.15));
}

/* FLOAT ANIMATION */

@keyframes xsusFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

/* TABLET */

@media (max-width: 800px) {
  .globe-wrap,
  .xsus-globe-scene {
    min-height: 320px;
  }

  .xsus-globe {
    width: min(70vw, 290px);
  }
}

/* MOBILE */

@media (max-width: 520px) {
  .globe-wrap,
  .xsus-globe-scene {
    min-height: 300px;
  }

  .xsus-globe {
    width: min(75vw, 290px);
  }

  .xsus-globe::after {
    inset: 13%;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .xsus-globe {
    animation: none;
  }

  .xsus-globe::before {
    will-change: auto;
  }
}
