/* === NEON DREAMS === */
/* A cyberpunk CSS art piece showcasing text-shadow neon effects and keyframe animations */

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

:root {
  /* Neon color palette */
  --neon-pink: #ff2a6d;
  --neon-pink-glow: #ff2a6d, #ff2a6d, #ff6b9d, #ffd9e8;
  --neon-cyan: #05d9e8;
  --neon-cyan-glow: #05d9e8, #05d9e8, #65f0ff, #d1fbff;
  --neon-purple: #d300c5;
  --neon-purple-glow: #d300c5, #d300c5, #e96bdf, #ffd6fc;

  /* Background colors */
  --bg-dark: #0a0a0f;
  --bg-card: rgba(15, 15, 25, 0.8);
  --text-dim: #4a4a5a;
  --text-body: #8a8a9a;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* === RAIN EFFECT === */
.rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      transparent,
      transparent 3px,
      rgba(5, 217, 232, 0.03) 3px,
      rgba(5, 217, 232, 0.03) 4px
    );
  animation: rain-fall 0.5s linear infinite;
  z-index: 1;
}

@keyframes rain-fall {
  0% { background-position: 0 0; }
  100% { background-position: 0 20px; }
}

/* === CONTAINER === */
.container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* === HERO SECTION === */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.neon-title {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 1.5rem;
}

/* === NEON TEXT EFFECTS === */
.neon-pink {
  color: #fff;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px var(--neon-pink),
    0 0 40px var(--neon-pink),
    0 0 80px var(--neon-pink),
    0 0 120px var(--neon-pink);
}

.neon-cyan {
  color: #fff;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px var(--neon-cyan),
    0 0 40px var(--neon-cyan),
    0 0 80px var(--neon-cyan),
    0 0 120px var(--neon-cyan);
}

.neon-purple {
  color: #fff;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px var(--neon-purple),
    0 0 40px var(--neon-purple),
    0 0 80px var(--neon-purple),
    0 0 120px var(--neon-purple);
}

/* === FLICKER ANIMATIONS === */
.flicker-1 {
  animation: flicker-1 4s infinite;
}

.flicker-2 {
  animation: flicker-2 3s infinite;
}

.flicker-3 {
  animation: flicker-3 5s infinite;
}

@keyframes flicker-1 {
  0%, 100% { opacity: 1; }
  3% { opacity: 0.8; }
  6% { opacity: 1; }
  7% { opacity: 0.6; }
  9% { opacity: 1; }
  50% { opacity: 1; }
  52% { opacity: 0.9; }
  54% { opacity: 1; }
}

@keyframes flicker-2 {
  0%, 100% { opacity: 1; }
  20% { opacity: 1; }
  21% { opacity: 0.7; }
  22% { opacity: 1; }
  23% { opacity: 0.5; }
  25% { opacity: 1; }
  70% { opacity: 1; }
  72% { opacity: 0.8; }
  74% { opacity: 1; }
}

@keyframes flicker-3 {
  0%, 100% { opacity: 1; }
  40% { opacity: 1; }
  41% { opacity: 0.6; }
  42% { opacity: 0.9; }
  43% { opacity: 0.4; }
  44% { opacity: 1; }
  80% { opacity: 1; }
  82% { opacity: 0.7; }
  83% { opacity: 1; }
}

/* === CONTENT CARDS === */
.content {
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(5, 217, 232, 0.2);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--neon-cyan),
    var(--neon-pink),
    var(--neon-purple),
    transparent
  );
  opacity: 0.5;
}

.card:hover {
  border-color: rgba(5, 217, 232, 0.5);
  box-shadow:
    0 0 30px rgba(5, 217, 232, 0.1),
    inset 0 0 30px rgba(5, 217, 232, 0.02);
}

.card h2 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.card p {
  color: var(--text-body);
  line-height: 1.8;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

/* === FOOTER === */
.footer {
  text-align: center;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.neon-sign {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.footer-text {
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* === AMBIENT GLOW BACKGROUND === */
body::before {
  content: '';
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 42, 109, 0.08) 0%,
    rgba(5, 217, 232, 0.05) 30%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* === SCANLINES OVERLAY === */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1) 0px,
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 1000;
  opacity: 0.3;
}

/* === RESPONSIVE DESIGN === */
@media (min-width: 600px) {
  .neon-title {
    flex-direction: row;
    justify-content: center;
    gap: 0.3em;
  }

  .content {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (min-width: 900px) {
  .container {
    padding: 3rem 2rem;
  }

  .hero {
    padding: 6rem 0 4rem;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .flicker-1,
  .flicker-2,
  .flicker-3 {
    animation: none;
  }

  .rain {
    animation: none;
  }
}
