:root {
  --neon-blue: #00f2ff;
  --neon-green: #39ff14;
  --dark-bg: #0a0a0c;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 242, 255, 0.3);
}

.text-gradient {
  background: linear-gradient(to right, var(--neon-blue), var(--neon-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glow-btn:hover {
  box-shadow: 0 0 20px var(--neon-blue);
  transform: scale(1.05);
}

.animate-pulse-slow {
  animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

/* AI Background Container */
.ai-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at center, #0a0a0c 0%, #000 100%);
}

/* Perspective Grid */
.ai-grid {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(0, 242, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg);
  animation: grid-move 20s linear infinite;
  opacity: 0.8;
}

@keyframes grid-move {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0);
  }

  100% {
    transform: perspective(500px) rotateX(60deg) translateY(50px);
  }
}

/* Breathing Glow ("The AI") */
.ai-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, rgba(57, 255, 20, 0.05) 30%, transparent 70%);
  filter: blur(60px);
  animation: ai-breathe 8s ease-in-out infinite alternate;
}

@keyframes ai-breathe {
  0% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8);
  }

  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

#ai-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: 1;
  /* Above grid, below content */
}

/* Terminal Input Styles */
.terminal-input {
  font-family: 'Courier New', Courier, monospace;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  color: var(--neon-green);
  transition: all 0.3s ease;
}

.terminal-input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
  outline: none;
}

.terminal-input::placeholder {
  color: rgba(57, 255, 20, 0.3);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot-red {
  background-color: #ff5f56;
}

.dot-yellow {
  background-color: #ffbd2e;
}

.dot-green {
  background-color: #27c93f;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}