/* BACKGROUND GRID */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,140,255,0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,140,255,0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* SCAN OVERLAY */
.scan-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 140, 255, 0.05),
    rgba(0, 140, 255, 0.05) 1px,
    transparent 3px,
    transparent 6px
  );
  animation: scanMove 6s linear infinite;
}

@keyframes scanMove {
  from { transform: translateY(0); }
  to { transform: translateY(60px); }
}

/* LOADER */
#loader {
  position: fixed;
  inset: 0;
  background: #050814;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
}

.scanline {
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(0,140,255,0.6);
  animation: scanlineMove 2s linear infinite;
}

@keyframes scanlineMove {
  from { top: 0; }
  to { top: 100%; }
}

/* GLITCH TEXT */
.glitch {
  position: relative;
  animation: glitch 1.5s infinite;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 0); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0); }
}

/* NAV BUTTON */
.nav-btn {
  font-size: 0.8rem;
  color: #7db7ff;
  transition: 0.3s;
}
.nav-btn:hover {
  color: white;
  text-shadow: 0 0 10px #2aa6ff;
}

/* SECTIONS */
.section {
  min-height: 100vh;
  padding: 120px 20px;
  max-width: 900px;
  margin: auto;
  position: relative;
}

/* HUD BOX */
.hud-box {
  margin-top: 30px;
  height: fit-content;
  border: 1px solid rgba(0,140,255,0.3);
  background: rgba(0,140,255,0.05);
  position: relative;
  overflow: hidden;
}

.hud-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,140,255,0.2), transparent);
  animation: sweep 2s infinite;
}

@keyframes sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* REVEAL ON SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* TITLES */
.section-title {
  font-size: 3rem;
  color: #7db7ff;
  margin-bottom: 10px;
}

.section-text {
  color: #bcd7ff;
  opacity: 0.9;
}

/* GLOW */
.glow {
  text-shadow: 0 0 15px rgba(0,140,255,0.5);
}

/* CTA BUTTON */
.cta-btn {
  padding: 12px 28px;
  border: 1px solid rgba(0,140,255,0.6);
  color: #7db7ff;
  background: rgba(0,140,255,0.05);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

/* glow hover */
.cta-btn:hover {
  color: white;
  box-shadow: 0 0 20px rgba(0,140,255,0.6);
  border-color: #2aa6ff;
}

/* scan effect inside button */
.cta-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(0,140,255,0.3), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.cta-btn:hover::after {
  transform: translateX(100%);
}

/* IMMAGINI */ 

/* CARD BASE */
.img-card {
  position: relative;
  height: 14rem;
  overflow: hidden;
  border: 1px solid rgba(0,140,255,0.3);
  background: rgba(0,140,255,0.05);

  opacity: 0;
  transform: scale(1.1);
  filter: blur(8px);
  transition: all 1s ease;
}

/* IMG */
.img-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* SCAN EFFECT */
.scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0,140,255,0.2),
    transparent
  );
  transform: translateX(-100%);
  pointer-events: none;
}

/* ACTIVE STATE (JS TRIGGER) */
.img-card.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* SCAN ANIMATION */
.img-card.active .scan {
  animation: scanMove 2s infinite;
}

@keyframes scanMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

[data-i18n] {
  white-space: pre-line;
}