@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Pacifico&display=swap");

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

body {
  background: #0a0a0a;
  min-height: 100vh;
  overflow: hidden;
  font-family: "Inter", -apple-system, sans-serif;
}

.header-text {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 100;
}

.header-text h1 {
  font-family: "Pacifico", cursive;
  font-size: 48px;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.header-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: lowercase;
}

.footer-text {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 100;
}

.footer-text p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
  letter-spacing: 1px;
}

.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-stream {
  position: absolute;
  width: 100vw;
  height: 220px;
  display: flex;
  align-items: center;
  overflow: visible;
}

.card-line {
  display: flex;
  align-items: center;
  gap: 50px;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  will-change: transform;
}

.card-line:active {
  cursor: grabbing;
}

.card-line.dragging {
  cursor: grabbing;
}

.card-wrapper {
  position: relative;
  width: 320px;
  height: 200px;
  flex-shrink: 0;
}

.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
}

.card-normal {
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: white;
  z-index: 2;
  position: relative;
  overflow: hidden;
  clip-path: inset(0 0 0 var(--clip-right, 0%));
}

.card-emoji {
  font-size: 44px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.card-title {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.card-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.card-ascii {
  background: transparent;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--clip-left, 0%)) 0 0);
}

.ascii-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 10px;
  line-height: 12px;
  overflow: hidden;
  white-space: pre;
  animation: glitch 0.1s infinite linear alternate-reverse;
  margin: 0;
  padding: 0;
  text-align: left;
  vertical-align: top;
  box-sizing: border-box;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.4) 80%,
    rgba(0, 0, 0, 0.2) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.4) 80%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

@keyframes glitch {
  0% { opacity: 1; }
  15% { opacity: 0.9; }
  16% { opacity: 1; }
  49% { opacity: 0.8; }
  50% { opacity: 1; }
  99% { opacity: 0.9; }
  100% { opacity: 1; }
}

.scanner {
  display: none;
}

.scan-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: scanEffect 0.6s ease-out;
  pointer-events: none;
  z-index: 5;
}

@keyframes scanEffect {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

#particleCanvas {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100vw;
  height: 250px;
  z-index: 0;
  pointer-events: none;
}

#scannerCanvas {
  position: absolute;
  top: 50%;
  left: -3px;
  transform: translateY(-50%);
  width: 100vw;
  height: 300px;
  z-index: 15;
  pointer-events: none;
}

/* floating words */
.floating-words {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}

.floating-word {
  position: absolute;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.5px;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.floating-word.accent {
  color: rgba(255, 180, 190, 0.35);
  font-style: italic;
  font-family: "Pacifico", cursive;
  font-size: 22px;
  text-shadow: 0 0 40px rgba(255, 180, 190, 0.2);
}

.floating-word.large {
  font-size: 24px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

.floating-word.lucca {
  font-size: 26px;
  font-weight: 700;
  font-family: "Pacifico", cursive;
  text-shadow: 0 0 40px currentColor, 0 0 80px currentColor;
}

.floating-word.lucca.color-1 {
  color: rgba(255, 100, 150, 0.9);
}

.floating-word.lucca.color-2 {
  color: rgba(255, 150, 200, 0.9);
}

.floating-word.lucca.color-3 {
  color: rgba(200, 150, 255, 0.9);
}

.floating-word.lucca.color-4 {
  color: rgba(255, 200, 100, 0.85);
}

.floating-word.lucca.color-5 {
  color: rgba(100, 220, 255, 0.85);
}

/* floating decorations */
.floating-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

.float-item {
  position: absolute;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.15);
  animation: floatBob 4s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.float-item:nth-child(odd) {
  animation-delay: -2s;
}

.float-item:nth-child(3n) {
  animation-duration: 5s;
}

.float-item:nth-child(4n) {
  animation-duration: 3.5s;
}

.float-item.small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.1);
}

.float-item.tiny {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.08);
}

@keyframes floatBob {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.15;
  }
  50% {
    transform: translateY(-12px) rotate(5deg);
    opacity: 0.25;
  }
}

/* corner decorations */
.corner-deco {
  position: fixed;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: 4px;
  z-index: 50;
  pointer-events: none;
}

.corner-deco.top-left {
  top: 20px;
  left: 20px;
}

.corner-deco.top-right {
  top: 20px;
  right: 20px;
}

.corner-deco.bottom-left {
  bottom: 20px;
  left: 20px;
}

.corner-deco.bottom-right {
  bottom: 20px;
  right: 20px;
}

/* header decorations */
.header-deco {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 6px;
  margin: 8px 0;
}

.header-text h1 {
  animation: gentleGlow 3s ease-in-out infinite;
}

@keyframes gentleGlow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.2), 0 0 60px rgba(255, 255, 255, 0.1);
  }
}
