@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@300;500;700&display=swap');

:root {
  --holo-cyan: #00f3ff;
  --holo-blue: #0066ff;
  --holo-bg: #050a14;
  --glass-border: rgba(0, 243, 255, 0.2);
  --glass-surface: rgba(5, 10, 20, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--holo-bg);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  
  /* Deep Space Gradient Base */
  background-image: radial-gradient(circle at center, #1a2a40 0%, #000 100%);
}

/* =========================================
   🌍 THE HOLOGRAPHIC GLOBE & NETWORK RAYS
   ========================================= */

/* 1. The Wireframe Globe (Spinning in background) */
body::before {
  content: "";
  position: absolute;
  width: 80vh;
  height: 80vh;
  border-radius: 50%;
  
  /* Creating the Grid/Globe look using gradients */
  background: 
    /* Longitude lines */
    repeating-linear-gradient(90deg, transparent 0, transparent 40px, rgba(0, 243, 255, 0.1) 40px, rgba(0, 243, 255, 0.1) 41px),
    /* Latitude lines */
    repeating-linear-gradient(0deg, transparent 0, transparent 40px, rgba(0, 243, 255, 0.1) 40px, rgba(0, 243, 255, 0.1) 41px),
    /* Glow */
    radial-gradient(circle, rgba(0, 102, 255, 0.2), transparent 70%);
    
  border: 1px solid rgba(0, 243, 255, 0.1);
  box-shadow: 0 0 50px rgba(0, 102, 255, 0.2);
  
  /* 3D tilt and spin */
  transform: perspective(1000px) rotateX(60deg);
  animation: spinGlobe 20s linear infinite;
  z-index: -2;
}

/* 2. The Scanning "Network Rays" (Radar Effect) */
body::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 150vw; height: 150vw;
  transform: translate(-50%, -50%);
  z-index: -1;
  
  /* Conic gradient acts like a lighthouse beam */
  background: conic-gradient(
    from 0deg, 
    transparent 0deg, 
    transparent 280deg, 
    rgba(0, 243, 255, 0.1) 320deg, 
    rgba(0, 243, 255, 0.4) 360deg
  );
  
  border-radius: 50%;
  animation: radarScan 8s linear infinite;
  opacity: 0.5;
  pointer-events: none;
}

@keyframes spinGlobe {
  0% { transform: perspective(1000px) rotateX(60deg) rotateZ(0deg); }
  100% { transform: perspective(1000px) rotateX(60deg) rotateZ(360deg); }
}

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

/* =========================================
   🛸 MAIN CONTAINER (The HUD)
   ========================================= */
.container {
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  z-index: 10;
}

.heading {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  
  /* Neon Text */
  color: #fff;
  text-shadow: 
    0 0 10px var(--holo-cyan),
    0 0 20px var(--holo-blue);
}

/* =========================================
   💽 TECH CARD (Glass Panels)
   ========================================= */
.card {
  width: 100%;
  /* Dark Tech Glass */
  background: var(--glass-surface);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  
  border: 1px solid var(--glass-border);
  border-radius: 4px; /* Sharper corners for tech look */
  
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Corner Accents (The "Viewfinder" look) */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 20px; height: 20px;
  border-top: 2px solid var(--holo-cyan);
  border-left: 2px solid var(--holo-cyan);
}
.card::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 20px; height: 20px;
  border-bottom: 2px solid var(--holo-cyan);
  border-right: 2px solid var(--holo-cyan);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 50px rgba(0, 243, 255, 0.15);
  border-color: var(--holo-cyan);
}

.card h2 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 0.5rem;
  color: var(--holo-cyan);
  font-size: 1.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #a0c0e0;
}

/* =========================================
   🎛️ INPUTS & BUTTONS
   ========================================= */
input[type="text"] {
  width: 100%;
  padding: 12px;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--holo-cyan);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  text-align: center;
  border-radius: 4px;
  outline: none;
  transition: 0.3s;
}

input[type="text"]:focus {
  background: rgba(0, 243, 255, 0.15);
  border-color: var(--holo-cyan);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.btn {
  background: transparent;
  color: var(--holo-cyan);
  border: 1px solid var(--holo-cyan);
  outline: none;
  padding: 10px 30px;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 1.5rem;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--holo-cyan);
  color: #000;
  box-shadow: 0 0 20px var(--holo-cyan);
}

/* Specific button colors */
.btn.upload {
  border-color: #0aff0a;
  color: #0aff0a;
}
.btn.upload:hover {
  background: #0aff0a;
  box-shadow: 0 0 20px #0aff0a;
  color: #000;
}

/* =========================================
   📂 FILE LIST & STATUS
   ========================================= */
#fileList {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #fff;
  width: 100%;
  text-align: center;
}

#fileList span {
  display: inline-block;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  margin: 5px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
}

#uploadStatus {
  margin-top: 1rem;
  color: #0aff0a;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(10, 255, 10, 0.5);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
}

#fileLinks {
  margin-top: 1rem;
  width: 100%;
}

#fileLinks a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  margin: 8px 0;
  padding: 12px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--holo-cyan);
  border-left: 2px solid transparent;
  transition: 0.3s;
}

#fileLinks a:hover {
  background: rgba(0, 243, 255, 0.1);
  border-left: 2px solid var(--holo-cyan);
  padding-left: 20px; /* Slight shift animation */
}