/* GLOBAL RESET & FONTS */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #000;
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* BACKGROUND ANIMATIONS */
.stars {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://i.ibb.co.com/0jF9g5K/stars.png') repeat;
  animation: stars 300s linear infinite;
  z-index: -2;
  opacity: 0.7;
}

.nebula {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, #ff00aa11, transparent 50%),
    radial-gradient(circle at 80% 20%, #00ffff11, transparent 50%),
    radial-gradient(circle at 50% 50%, #00ff8811, transparent 60%);
  animation: nebula 20s ease infinite alternate;
  z-index: -1;
}

@keyframes stars { 0% { background-position: 0 0; } 100% { background-position: 1000px 1000px; } }
@keyframes nebula { 0% { transform: scale(1); } 100% { transform: scale(1.2); } }

/* HEADER */
.header { text-align: center; padding: 60px 20px; }

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(90deg, #00ff88, #00ffff, #ff00aa);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.year { font-size: 1.5rem; opacity: 0.8; color: #fff; -webkit-text-fill-color: #fff; }
.tagline { font-size: 1.1rem; color: #aaa; margin-top: 10px; letter-spacing: 1px; }

/* GRID LAYOUT */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto 50px;
}

/* CARD DESIGN */
.agent-card {
  background: rgba(15, 15, 35, 0.65);
  border-radius: 24px;
  padding: 30px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.agent-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.5);
}

/* GLOW EFFECTS */
.card-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
  animation: rotate 20s infinite linear;
}

.card-glow.cyan { background: radial-gradient(circle, #00ffff, transparent 70%); }
.card-glow.green { background: radial-gradient(circle, #00ff88, transparent 70%); }
.card-glow.purple { background: radial-gradient(circle, #ff00ff, transparent 70%); }
.card-glow.orange { background: radial-gradient(circle, #ff8800, transparent 70%); }

@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* TEXT & INPUTS */
h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 5px;
  color: #fff;
}

p { font-size: 0.9rem; color: #888; margin-bottom: 20px; }

textarea {
  width: 100%;
  height: 120px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #333;
  border-radius: 16px;
  padding: 15px;
  color: #00ff88;
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  resize: none;
  outline: none;
  transition: border 0.3s;
}

textarea:focus { border-color: #00ff88; box-shadow: 0 0 15px rgba(0, 255, 136, 0.2); }

/* BUTTONS */
.run {
  width: 100%;
  padding: 15px;
  margin-top: 15px;
  background: linear-gradient(135deg, #00ff88 0%, #00bcff 100%);
  border: none;
  border-radius: 50px;
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.run:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

.run:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* OUTPUT AREA */
.output {
  margin-top: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  min-height: 80px;
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  white-space: pre-wrap;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .logo { font-size: 2.5rem; }
  .grid { grid-template-columns: 1fr; }
}