* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(0, 185, 210, 0.18) 0%, rgba(3, 25, 35, 0.5) 28%, rgba(0, 4, 10, 1) 72%),
    #000;
  color: #83f9ff;
  font-family: Arial, Helvetica, sans-serif;
}

.jarvis-screen {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.jarvis-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(125, 249, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 249, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
}

.jarvis-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, transparent 48%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 236, 255, 0.18), transparent 68%);
  filter: blur(20px);
  animation: ambientPulse 5s ease-in-out infinite;
}

.jarvis-core {
  position: relative;
  width: 520px;
  height: 520px;
  transform: rotateX(8deg);
  filter: drop-shadow(0 0 18px rgba(73, 236, 255, 0.65));
}

.hud-ring,
.tick-ring,
.arc,
.center-core {
  position: absolute;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.outer-ring {
  width: 500px;
  height: 500px;
  border: 2px solid rgba(131, 249, 255, 0.25);
  box-shadow:
    0 0 20px rgba(75, 236, 255, 0.25),
    inset 0 0 20px rgba(75, 236, 255, 0.12);
  animation: spin 28s linear infinite;
}

.ring-large {
  width: 430px;
  height: 430px;
  border: 1px solid rgba(131, 249, 255, 0.38);
  border-top-color: rgba(131, 249, 255, 0.95);
  border-right-color: transparent;
  animation: spinReverse 18s linear infinite;
}

.ring-mid {
  width: 325px;
  height: 325px;
  border: 2px solid rgba(131, 249, 255, 0.28);
  border-left-color: rgba(131, 249, 255, 0.9);
  border-bottom-color: transparent;
  animation: spin 12s linear infinite;
}

.ring-small {
  width: 210px;
  height: 210px;
  border: 2px solid rgba(131, 249, 255, 0.55);
  box-shadow: 0 0 22px rgba(95, 244, 255, 0.45);
  animation: pulseRing 2.4s ease-in-out infinite;
}

.tick-ring-one {
  width: 380px;
  height: 380px;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(131, 249, 255, 0.72) 0deg 1.3deg,
      transparent 1.3deg 5.8deg
    );
  mask: radial-gradient(circle, transparent 61%, #000 62%, #000 66%, transparent 67%);
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%, #000 66%, transparent 67%);
  opacity: 0.5;
  animation: spin 35s linear infinite;
}

.tick-ring-two {
  width: 270px;
  height: 270px;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(131, 249, 255, 0.72) 0deg 2deg,
      transparent 2deg 8deg
    );
  mask: radial-gradient(circle, transparent 57%, #000 58%, #000 65%, transparent 66%);
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%, #000 65%, transparent 66%);
  opacity: 0.65;
  animation: spinReverse 24s linear infinite;
}

.arc {
  border-style: solid;
  border-color: transparent;
}

.arc-one {
  width: 490px;
  height: 490px;
  border-width: 11px;
  border-top-color: rgba(84, 244, 255, 0.9);
  border-right-color: rgba(84, 244, 255, 0.35);
  animation: spin 10s linear infinite;
}

.arc-two {
  width: 395px;
  height: 395px;
  border-width: 8px;
  border-left-color: rgba(84, 244, 255, 0.75);
  border-bottom-color: rgba(84, 244, 255, 0.28);
  animation: spinReverse 8s linear infinite;
}

.arc-three {
  width: 300px;
  height: 300px;
  border-width: 7px;
  border-right-color: rgba(84, 244, 255, 0.85);
  animation: spin 6s linear infinite;
}

.arc-four {
  width: 190px;
  height: 190px;
  border-width: 5px;
  border-top-color: rgba(84, 244, 255, 0.95);
  border-left-color: rgba(84, 244, 255, 0.45);
  animation: spinReverse 5s linear infinite;
}

.center-core {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(95, 244, 255, 0.95);
  background: radial-gradient(circle, rgba(0, 25, 40, 0.95), rgba(0, 10, 18, 0.95));
  box-shadow:
    0 0 28px rgba(95, 244, 255, 0.8),
    inset 0 0 35px rgba(95, 244, 255, 0.24);
}

.center-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 249, 255, 0.25), transparent 70%);
  animation: centerPulse 2s ease-in-out infinite;
}

.jarvis-title {
  position: relative;
  z-index: 2;
  font-size: 18px;
  letter-spacing: 5px;
  color: rgba(220, 254, 255, 0.95);
  text-shadow: 0 0 12px rgba(125, 249, 255, 0.95);
}

.status-line {
  position: absolute;
  bottom: 70px;
  font-size: 13px;
  letter-spacing: 4px;
  opacity: 0.78;
  text-shadow: 0 0 12px rgba(125, 249, 255, 0.75);
}

.clock {
  position: absolute;
  top: 30px;
  right: 38px;
  font-size: 14px;
  letter-spacing: 3px;
  opacity: 0.65;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes pulseRing {
  0%, 100% {
    opacity: 0.55;
    box-shadow: 0 0 18px rgba(95, 244, 255, 0.45);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 38px rgba(95, 244, 255, 0.95);
  }
}

@keyframes centerPulse {
  0%, 100% {
    transform: scale(0.88);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

@keyframes ambientPulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

body.jarvis-active .center-core {
  box-shadow:
    0 0 45px rgba(125, 249, 255, 1),
    0 0 120px rgba(125, 249, 255, 0.75),
    inset 0 0 45px rgba(125, 249, 255, 0.45);
}

body.jarvis-active .jarvis-title {
  color: #ffffff;
  text-shadow:
    0 0 14px #ffffff,
    0 0 30px rgba(125, 249, 255, 1);
}

body.jarvis-active .ambient-glow {
  animation-duration: 1s;
}

.jarvis-response {
  position: absolute;
  width: 520px;
  top: 205px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1px;
  color: #bffcff;
  text-shadow: 0 0 12px rgba(125, 249, 255, 0.75);
  pointer-events: none;
}