/* === BASE STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background-color: #000;
  color: #0f0;
  overflow-x: hidden;
  overflow-y: hidden;
  position: relative;
  cursor: crosshair; /* Better than none for debugging/touch */
}

@media (max-width: 768px) {
  body {
    overflow-y: auto;
    cursor: default;
  }
}

/* Add TV static and noise effect for more realism */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AcPEgkodGYQtAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAACHSURBVGje7dixCgAgDERRY///k10UwYGOOrXaDUIO9FG5CpZZWiyZ72gwDMMwDMP+YU13bfd/e0ZYvZnJ92e95fIcn8ZrV+EDKSW01veU0i7Lkd7znh2gQ1DnHKV0eiStvfchm1Kqq2Cc8xhjTgHIsqxjjLtlnPNZAQzDMAzDsI/aA8X5DKjz+RhRAAAAAElFTkSuQmCC');
  opacity: 0.03;
  pointer-events: none;
  z-index: 9998;
  animation: staticNoise 0.2s infinite;
}

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

/* Custom Cursor */
body::before {
  content: "";
  position: fixed;
  width: 4px;
  height: 4px;
  background: #0f0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 5px #0f0, 0 0 10px rgba(0, 255, 0, 0.7);
}

.hidden {
  display: none !important;
}

/* === CUSTOM CURSOR === */
#cursor-container {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid #0f0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  box-shadow: 0 0 10px #0f0, 0 0 20px rgba(0, 255, 0, 0.5);
  animation: cursorPulse 2s infinite alternate;
  opacity: 0.7;
}

@keyframes cursorPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* === ENHANCED LANDING PAGE STYLES === */
#landing-page {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Space background with stars */
.stars, .twinkling, .clouds {
  position: absolute;
  width: 100%;
  height: 100%;
  display: block;
}

.stars {
  background: #000 url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsAQMAAABDsxw2AAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAACJJREFUaN7twTEBAAAAwiD7p14JT2AAAAAAAAAAAAAAAAAGHSgAAXRnXJsAAAAASUVORK5CYII=') repeat top center;
  z-index: 0;
}

.twinkling {
  background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsAQMAAABDsxw2AAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAACJJREFUaN7twTEBAAAAwiD7p14JT2AAAAAAAAAAAAAAAAAGHSgAAXRnXJsAAAAASUVORK5CYII=') repeat top center;
  z-index: 1;
  animation: twinkle 200s linear infinite;
}

.clouds {
  background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsAQMAAABDsxw2AAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAACJJREFUaN7twTEBAAAAwiD7p14JT2AAAAAAAAAAAAAAAAAGHSgAAXRnXJsAAAAASUVORK5CYII=') repeat top center;
  z-index: 2;
  opacity: .1;
  animation: clouds 200s linear infinite;
}

@keyframes twinkle {
  from { background-position: 0 0; }
  to { background-position: -10000px 5000px; }
}

@keyframes clouds {
  from { background-position: 0 0; }
  to { background-position: 10000px 0; }
}

/* New Landing Content Layout */
.landing-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

/* Terminal Panel Styles */
.terminal-panel {
  width: 25%;
  height: 80vh;
  background: rgba(0, 15, 0, 0.8);
  border: 1px solid #0f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 10px rgba(0, 255, 0, 0.1);
  transition: all 0.3s ease;
}

.terminal-panel:hover {
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.5), inset 0 0 15px rgba(0, 255, 0, 0.2);
}

.terminal-panel.left {
  margin-right: 1rem;
}

.terminal-panel.right {
  margin-left: 1rem;
}

.terminal-header {
  height: 40px;
  background: rgba(0, 20, 0, 0.9);
  border-bottom: 1px solid #0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}

.terminal-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #0f0;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #0f0;
  opacity: 0.7;
}

.terminal-dots span:nth-child(1) {
  animation: dotPulse 2s infinite;
}

.terminal-dots span:nth-child(2) {
  animation: dotPulse 2s 0.5s infinite;
}

.terminal-dots span:nth-child(3) {
  animation: dotPulse 2s 1s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.terminal-body {
  flex: 1;
  padding: 15px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: #0f0;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 12px;
  opacity: 0.8;
  position: relative;
}

.terminal-line.active {
  opacity: 1;
  animation: blinkLine 1.5s infinite;
}

@keyframes blinkLine {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.typing-text {
  display: inline-block;
  width: fit-content;
  position: relative;
  white-space: nowrap;
}

.terminal-line:nth-child(1) .typing-text {
  animation: typing 2s steps(30, end);
}

.terminal-line:nth-child(2) .typing-text {
  animation: typing 2s 2s steps(30, end);
  opacity: 0;
  animation-fill-mode: forwards;
}

.terminal-line:nth-child(3) .typing-text {
  animation: typing 2s 4s steps(30, end);
  opacity: 0;
  animation-fill-mode: forwards;
}

.terminal-line:nth-child(4) .typing-text {
  animation: typing 2s 6s steps(30, end);
  opacity: 0;
  animation-fill-mode: forwards;
}

.terminal-line:nth-child(5) .typing-text {
  animation: typing 2s 8s steps(30, end);
  opacity: 0;
  animation-fill-mode: forwards;
}

.terminal-line:nth-child(6) .typing-text {
  animation: typing 2s 10s steps(30, end);
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes typing {
  from { width: 0; opacity: 0; }
  1% { opacity: 1; }
  to { width: 100%; opacity: 1; }
}

/* Signal Analysis Panel */
.signal-display {
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 20px;
}

.signal-label {
  font-size: 0.8rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.signal-bars {
  display: flex;
  justify-content: space-between;
  height: 100px;
  align-items: flex-end;
}

.signal-bar {
  flex: 1;
  margin: 0 2px;
  background: #0f0;
  box-shadow: 0 0 10px #0f0;
  animation: barAnimation 1.5s infinite alternate;
}

.signal-bar:nth-child(1) { height: 30%; animation-delay: 0.1s; }
.signal-bar:nth-child(2) { height: 75%; animation-delay: 0.2s; }
.signal-bar:nth-child(3) { height: 45%; animation-delay: 0.3s; }
.signal-bar:nth-child(4) { height: 65%; animation-delay: 0.4s; }
.signal-bar:nth-child(5) { height: 40%; animation-delay: 0.5s; }
.signal-bar:nth-child(6) { height: 80%; animation-delay: 0.6s; }
.signal-bar:nth-child(7) { height: 35%; animation-delay: 0.7s; }
.signal-bar:nth-child(8) { height: 60%; animation-delay: 0.8s; }

@keyframes barAnimation {
  0% { height: var(--height); }
  50% { height: calc(var(--height) * 0.8); }
  100% { height: calc(var(--height) * 1.2); }
}

.signal-coordinates {
  margin-top: 20px;
}

.coordinate-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px dotted rgba(0, 255, 0, 0.3);
  padding-bottom: 5px;
}

.coordinate-label {
  opacity: 0.8;
}

.coordinate-value {
  font-weight: 700;
  color: #0f0;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}

/* Central Panel Styles */
.central-panel {
  width: 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.logo-container {
  position: relative;
  margin-bottom: 3rem;
}

.logo-design {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 2px solid #0f0;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.logo-ring.outer {
  width: 250px;
  height: 250px;
  animation: rotate 20s linear infinite;
}

.logo-ring.middle {
  width: 180px;
  height: 180px;
  animation: rotate 15s linear infinite reverse;
}

.logo-ring.inner {
  width: 100px;
  height: 100px;
  animation: rotate 10s linear infinite;
}

.logo-core {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #0f0 10%, transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 30px #0f0;
  animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 20px #0f0; opacity: 0.8; }
  100% { box-shadow: 0 0 40px #0f0; opacity: 1; }
}

.jadoo-text {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 10px;
  text-align: center;
  background: linear-gradient(to right, #0f0, #00ff80, #0f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.7));
  position: relative;
  z-index: 2;
}

.tagline {
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #0f0;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.movie-reference {
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 3rem;
  color: rgba(0, 255, 0, 0.7);
  text-align: center;
}

.enter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

.enter-button {
  background: rgba(0, 50, 0, 0.5);
  border: 2px solid #0f0;
  border-radius: 5px;
  color: #0f0;
  padding: 15px 30px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.enter-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(0, 255, 0, 0.1);
  transform: rotate(45deg);
  animation: buttonShine 3s linear infinite;
  z-index: -1;
}

@keyframes buttonShine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.enter-button:hover {
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.7);
  transform: translateY(-3px);
  background: rgba(0, 70, 0, 0.7);
}

.enter-button:active {
  transform: translateY(0);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.enter-text {
  font-weight: 700;
}

.enter-icon {
  font-size: 1.5rem;
  animation: iconPulse 1.5s infinite alternate;
}

@keyframes iconPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 1; }
}

.keyboard-hint {
  margin-top: 15px;
  font-size: 0.9rem;
  color: rgba(0, 255, 0, 0.7);
}

.key-badge {
  background: rgba(0, 50, 0, 0.7);
  border: 1px solid #0f0;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  animation: badgePulse 2s infinite alternate;
}

@keyframes badgePulse {
  0% { box-shadow: 0 0 5px rgba(0, 255, 0, 0.3); }
  100% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.7); }
}

/* Particle effects */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.particle {
  position: absolute;
  background-color: #0f0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  box-shadow: 0 0 10px #0f0;
  opacity: 0.7;
  animation: float-particle 15s linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100vh) translateX(20vw);
    opacity: 0;
  }
}

/* UFO Animation */
.ufo-container {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 150px;
  height: 80px;
  z-index: 5;
  animation: ufoFloat 15s ease-in-out infinite alternate;
}

.ufo {
  position: relative;
  width: 100%;
  height: 100%;
}

.ufo-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(70, 70, 70, 0.8) 0%, rgba(30, 30, 30, 0.8) 70%, rgba(10, 10, 10, 0.8) 100%);
  border-radius: 50% 50% 20% 20% / 80% 80% 40% 40%;
  border-top: 2px solid rgba(100, 100, 100, 0.8);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
  overflow: hidden;
}

.ufo-body::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 15px;
  background: radial-gradient(ellipse at center, rgba(0, 255, 0, 0.8) 0%, rgba(0, 100, 0, 0.5) 70%, rgba(0, 50, 0, 0.3) 100%);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
  animation: ufoGlow 2s infinite alternate;
}

.ufo-light {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0, 255, 0, 1) 0%, rgba(0, 255, 0, 0.7) 30%, rgba(0, 255, 0, 0) 70%);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
  animation: ufoLightPulse 2s infinite alternate;
}

.beam {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(0, 255, 0, 0.5) 0%, rgba(0, 255, 0, 0) 100%);
  border-radius: 50% 50% 10% 10%;
  opacity: 0.5;
  animation: beamPulse 3s infinite alternate;
}

@keyframes ufoFloat {
  0% { transform: translate(0, 0) rotate(5deg); }
  25% { transform: translate(20px, -20px) rotate(-3deg); }
  50% { transform: translate(0, -40px) rotate(2deg); }
  75% { transform: translate(-20px, -20px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(3deg); }
}

@keyframes ufoGlow {
  0% { opacity: 0.5; box-shadow: 0 0 15px rgba(0, 255, 0, 0.5); }
  100% { opacity: 1; box-shadow: 0 0 25px rgba(0, 255, 0, 0.9); }
}

@keyframes ufoLightPulse {
  0% { opacity: 0.7; box-shadow: 0 0 20px rgba(0, 255, 0, 0.7); }
  100% { opacity: 1; box-shadow: 0 0 30px rgba(0, 255, 0, 1); }
}

@keyframes beamPulse {
  0% { opacity: 0.3; width: 20px; }
  100% { opacity: 0.7; width: 40px; }
}

/* Bottom credit line */
.credit-line {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(0, 255, 0, 0.7);
  letter-spacing: 1px;
}

.dev-name {
  font-weight: 700;
  color: #0f0;
  margin: 0 10px;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}

.version-number {
  opacity: 0.5;
  font-size: 0.8rem;
  margin-left: 20px;
}

/* === ALIEN DASHBOARD ENHANCED STYLES === */
#alien-dashboard {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #000;
  font-family: 'Orbitron', sans-serif;
}

.dashboard-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

/* Background elements with enhanced alien tech feel */
.space-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/space.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.4;
  z-index: -3;
  animation: pulseBg 8s infinite alternate;
}

@keyframes pulseBg {
  0%, 100% { opacity: 0.3; filter: hue-rotate(0deg); }
  50% { opacity: 0.4; filter: hue-rotate(15deg); }
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 95%, rgba(0, 255, 0, 0.1) 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  z-index: -2;
  transform: perspective(500px) rotateX(45deg);
  transform-origin: top;
  height: 70%;
  opacity: 0.5;
  animation: gridPulse 15s infinite linear;
}

@keyframes gridPulse {
  0%, 100% { background-size: 40px 40px, 40px 40px, 100% 100%; }
  50% { background-size: 45px 45px, 45px 45px, 100% 100%; }
}

/* Enhanced scan line effect for alien tech feel */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 255, 0, 0.03) 50%,
    rgba(0, 0, 0, 0) 100%);
  background-size: 100% 4px;
  z-index: 20;
  pointer-events: none;
  animation: scanlines 10s linear infinite;
  mix-blend-mode: screen;
}

/* Add hexagonal cell background for alien tech aesthetic */
.hex-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpolygon points='50,3 97,25 97,75 50,97 3,75 3,25' stroke='rgba(0,255,0,0.1)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  z-index: -1;
  opacity: 0.3;
  animation: hexRotate 60s infinite linear;
}

@keyframes hexRotate {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

/* Glowing border effect for panels */
.panel-section {
  flex: 1;
  background-color: rgba(0, 10, 0, 0.7);
  border: 1px solid #0f0;
  border-radius: 0;
  padding: 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
  margin: 0 10px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0% 10px, 
    10px 0%, 
    calc(100% - 10px) 0%, 
    100% 10px, 
    100% calc(100% - 10px), 
    calc(100% - 10px) 100%, 
    10px 100%, 
    0% calc(100% - 10px)
  );
  transition: box-shadow 0.5s;
}

.panel-section:hover {
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
}

/* Add corner accents to panels for alien tech aesthetic */
.panel-section::before,
.panel-section::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 1;
}

.panel-section::before {
  top: 0;
  left: 0;
  border-top: 2px solid #0f0;
  border-left: 2px solid #0f0;
}

.panel-section::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid #0f0;
  border-right: 2px solid #0f0;
}

/* Enhanced panel headers with alien tech design */
.panel-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  position: relative;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 255, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  width: 15%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 255, 0, 0.7));
}

.panel-title::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10%;
  width: 15%;
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(0, 255, 0, 0.7));
}

/* Enhanced radar design with alien tech aesthetic */
.radar-screen {
  width: 250px;
  height: 250px;
  background-color: rgba(0, 20, 0, 0.7);
  border: 2px solid #0f0;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 30px rgba(0, 255, 0, 0.1);
  overflow: hidden;
  transform: rotate(45deg);
  transition: transform 1.2s ease-in-out;
}

.radar-screen:hover {
  transform: rotate(0deg);
}

.radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 50%;
  background: linear-gradient(45deg, rgba(0, 255, 0, 0) 0%, rgba(0, 255, 0, 0.7) 100%);
  border-radius: 0 0 0 100%;
  transform-origin: bottom right;
  animation: radarSweep 4s infinite linear;
  filter: blur(5px);
}

.radar-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-45deg);
}

.radar-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 255, 0, 0.5);
  border-radius: 50%;
}

.radar-circle:nth-child(1) {
  width: 80%;
  height: 80%;
  border-style: dashed;
}

.radar-circle:nth-child(2) {
  width: 50%;
  height: 50%;
  animation: circlePulse 4s infinite alternate;
}

.radar-circle:nth-child(3) {
  width: 20%;
  height: 20%;
  background: rgba(0, 255, 0, 0.1);
  animation: centerPulse 2s infinite alternate;
}

@keyframes centerPulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

@keyframes circlePulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

/* Enhanced transmission UI elements */
.frequency-meters {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.meter {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.meter-label {
  width: 60px;
  font-size: 0.9rem;
  text-align: right;
}

.meter-bar {
  flex: 1;
  height: 8px;
  background-color: rgba(0, 50, 0, 0.4);
  border: 1px solid rgba(0, 255, 0, 0.5);
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0% 0%, 
    100% 0%, 
    100% 100%, 
    0% 100%,
    3px 50%
  );
}

.meter-level {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, rgba(0, 100, 0, 0.8), #0f0, rgba(0, 255, 0, 0.8));
  box-shadow: 0 0 10px #0f0;
  transition: width 0.1s ease-in;
}

/* Alien dashboard header with more unique styling */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #0f0;
  background-color: rgba(0, 15, 0, 0.7);
  box-shadow: 0 3px 15px rgba(0, 255, 0, 0.15);
  z-index: 10;
  position: relative;
  overflow: hidden;
}

.dashboard-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
  transform: translateX(-100%);
  animation: headerScan 8s infinite;
}

@keyframes headerScan {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Enhanced status indicator */
.status-indicator {
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 5px 15px 5px 25px;
  border-radius: 0;
  background-color: rgba(255, 0, 0, 0.2);
  color: #ff0000;
  border-left: 3px solid #ff0000;
  clip-path: polygon(
    15px 0%, 
    100% 0%, 
    100% 100%, 
    15px 100%,
    0% 50%
  );
}

.status-indicator.active {
  background-color: rgba(0, 255, 0, 0.2);
  color: #0f0;
  border-left: 3px solid #0f0;
  animation: statusPulse 2s infinite alternate;
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 5px rgba(0, 255, 0, 0.5); }
  100% { box-shadow: 0 0 15px rgba(0, 255, 0, 0.8); }
}

/* Key styling for alien aesthetic */
.key {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 20, 0, 0.6);
  border: 2px solid #0f0;
  border-radius: 0;
  font-size: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 70%,
    70% 100%,
    0% 100%
  );
}

.key::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #0f0;
  opacity: 0.7;
  clip-path: polygon(100% 0%, 0% 100%, 100% 100%);
}

.key:hover, .key.active {
  background-color: rgba(0, 80, 0, 0.6);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5), inset 0 0 10px rgba(0, 255, 0, 0.5);
  transform: translateY(-2px);
}

.key.pressed {
  transform: scale(0.95);
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.7), inset 0 0 15px rgba(0, 255, 0, 0.7);
  background-color: rgba(0, 100, 0, 0.7);
  transition: all 0.1s ease-in;
}

.key.hint-flash {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(0, 255, 0, 1), inset 0 0 15px rgba(0, 255, 0, 0.8) !important;
  background-color: rgba(0, 200, 0, 0.8) !important;
  color: #fff !important;
  border-color: #fff !important;
  transition: all 0.2s ease-in-out !important;
}

.instruction-box {
  margin-top: 20px;
  background: rgba(0, 40, 0, 0.4);
  border: 1px solid #0f0;
  padding: 15px;
  border-radius: 4px;
  box-shadow: inset 0 0 15px rgba(0, 255, 0, 0.1);
}

#dynamic-instruction {
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  white-space: normal;
  line-height: 1.4;
  text-shadow: 0 0 5px #0f0;
}

.next-key {
  color: #fff;
  background: #0f0;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  display: inline-block;
  box-shadow: 0 0 10px #0f0;
  animation: keyHintGlow 1.5s infinite alternate;
}

@keyframes keyHintGlow {
  0% { box-shadow: 0 0 5px #0f0; transform: scale(1); }
  100% { box-shadow: 0 0 20px #0f0; transform: scale(1.1); }
}

.sequence-progress {
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: right;
  letter-spacing: 2px;
}

/* Enhanced transmission log */
.transmission-log-container {
  border: 1px solid #0f0;
  margin-top: 10px;
}

.log-header {
  display: flex;
  justify-content: space-between;
  background-color: rgba(0, 30, 0, 0.8);
  padding: 5px 10px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 255, 0, 0.5);
}

.log-button {
  background: none;
  border: 1px solid rgba(0, 255, 0, 0.5);
  color: #0f0;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Share Tech Mono', monospace;
}

.log-button:hover {
  background-color: rgba(0, 255, 0, 0.2);
}

.transmission-log {
  height: 120px;
  overflow-y: auto;
  background-color: rgba(0, 10, 0, 0.8);
  padding: 10px;
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
}

.log-entry {
  margin-bottom: 5px;
  padding: 2px 5px;
  line-height: 1.3;
  border-left: 3px solid rgba(0, 255, 0, 0.5);
  animation: fadeIn 0.5s;
}

/* Connection strength indicator with alien design */
.connection-strength {
  margin-top: 15px;
}

.strength-label {
  margin-bottom: 5px;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 1px;
}

.strength-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.strength-bar {
  width: 20px;
  height: 25px;
  background-color: rgba(0, 30, 0, 0.6);
  position: relative;
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 100%,
    50% 85%,
    0% 100%
  );
}

.strength-bar.active {
  background-color: #0f0;
  box-shadow: 0 0 10px #0f0;
  animation: barPulse 1s infinite alternate;
}

.strength-bar:nth-child(1) { height: 15px; }
.strength-bar:nth-child(2) { height: 20px; }
.strength-bar:nth-child(3) { height: 25px; }
.strength-bar:nth-child(4) { height: 30px; }
.strength-bar:nth-child(5) { height: 35px; }

/* Alien response panel enhancement */
.response-screen {
  flex: 1;
  background-color: rgba(0, 15, 0, 0.7);
  border: 1px solid #0f0;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.2);
  clip-path: polygon(
    15px 0%, 
    100% 0%, 
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    0% 100%,
    0% 15px
  );
}

.response-screen::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  top: -15px;
  right: -15px;
  background-color: #0f0;
  opacity: 0.3;
  border-radius: 50%;
  filter: blur(10px);
  animation: glowPulse 2s infinite alternate;
}

.response-placeholder {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: rgba(0, 255, 0, 0.6);
  letter-spacing: 1px;
  animation: pulseFade 2s infinite alternate;
  text-align: center;
  padding: 20px;
  background: rgba(0, 20, 0, 0.3);
  border-radius: 5px;
  border: 1px dashed rgba(0, 255, 0, 0.3);
}

.response-image img {
  max-width: 90%;
  max-height: 80%;
  height: auto;
  border: 1px solid #0f0;
  box-shadow: 0 0 10px #0f0;
  object-fit: contain;
}

/* Footer styling */
.dashboard-footer {
  padding: 10px 20px;
  border-top: 1px solid #0f0;
  background-color: rgba(0, 15, 0, 0.7);
  box-shadow: 0 -3px 15px rgba(0, 255, 0, 0.15);
  position: relative;
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    0 100%
  );
}

.dashboard-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background-color: rgba(0, 15, 0, 0.7);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

/* Enhanced data stream */
.data-stream {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.data-stream::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50px;
  background: linear-gradient(to right, rgba(0, 15, 0, 0.7), transparent);
  z-index: 1;
}

.data-stream::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50px;
  background: linear-gradient(to left, rgba(0, 15, 0, 0.7), transparent);
  z-index: 1;
}

.data-text {
  display: inline-block;
  animation: dataStream 20s linear infinite;
  font-family: 'VT323', monospace;
}

/* Additional padding for control panel to space elements better */
.control-panel {
  display: flex;
  flex: 1;
  padding: 20px;
  gap: 20px;
}

/* Add hexagonal pattern background to the dashboard */
#alien-dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M0,100 L50,0 L150,0 L200,100 L150,200 L50,200 Z' stroke='rgba(0,255,0,0.05)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  z-index: -1;
  opacity: 0.2;
  animation: hexBackground 30s linear infinite;
}

@keyframes hexBackground {
  0% { background-position: 0 0; }
  100% { background-position: 200px 200px; }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .landing-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    padding-top: 50px;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
  
  .terminal-panel {
    width: 95%;
    height: auto;
    min-height: 200px;
    margin: 0 !important;
  }
  
  .central-panel {
    width: 80%;
    order: -1;
  }
  
  .jadoo-text {
    font-size: 3.5rem;
  }
  
  .logo-design {
    width: 200px;
    height: 200px;
  }
  
  .logo-ring.outer {
    width: 180px;
    height: 180px;
  }
  
  .logo-ring.middle {
    width: 130px;
    height: 130px;
  }
  
  .logo-ring.inner {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  #alien-dashboard {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .dashboard-container {
    height: auto;
    padding-bottom: 50px;
  }

  .control-panel {
    flex-direction: column;
    padding: 10px;
    gap: 15px;
  }
  
  .panel-section {
    width: 100%;
    min-height: auto;
  }

  .dashboard-header {
    flex-direction: column;
    height: auto;
    padding: 10px;
    gap: 5px;
    text-align: center;
  }

  .coordinates, .mission-time {
    font-size: 0.7rem;
  }

  .jadoo-text {
    font-size: 2.5rem;
    letter-spacing: 5px;
  }
  
  .central-panel {
    width: 100%;
    padding: 1rem;
  }
  
  .key {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .keyboard-hint {
    display: none; /* Physical keyboard hint not needed on mobile */
  }

  .enter-button {
    width: 90%;
    justify-content: center;
    font-size: 1rem;
    padding: 12px;
  }

  .ufo-container {
    width: 100px;
    height: 50px;
    top: 5%;
    right: 5%;
  }

  .status-indicator {
    font-size: 0.7rem;
    padding: 2px 8px;
  }

  .data-stream {
    display: none; /* Hide overflow data on mobile footers */
  }
  
  .radar-container {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .instruction-box {
    padding: 10px;
  }

  #dynamic-instruction {
    font-size: 0.9rem;
  }
}

/* Small mobile devices */
@media (max-width: 400px) {
  .jadoo-text {
    font-size: 1.8rem;
    letter-spacing: 3px;
  }
  
  .next-key {
    font-size: 0.8rem;
    padding: 1px 4px;
  }
  
  .instruction-box {
    padding: 8px;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .control-panel {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .panel-section {
    width: calc(50% - 20px);
  }

  .panel-section:last-child {
    width: 100%;
  }
}

/* Keep existing animations */
@keyframes alienGlitch {
  0% { transform: translate(0, 0); filter: hue-rotate(0deg); }
  20% { transform: translate(-5px, 2px); filter: hue-rotate(90deg); }
  40% { transform: translate(3px, -5px); filter: hue-rotate(180deg); }
  60% { transform: translate(0, 0); filter: hue-rotate(270deg); }
  80% { transform: translate(5px, 2px); filter: hue-rotate(360deg); }
  100% { transform: translate(0, 0); filter: hue-rotate(0deg); }
}