@import url("https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@400;700&display=swap");

:root {
  --bg: #05070a;
  --fg: #e6f3ff;
  --acc: #00e0ff;
  --acc-dim: #00a8cc;
  --glow: 0 0 24px rgba(0, 224, 255, 0.35);
  --glow-strong: 0 0 40px rgba(0, 224, 255, 0.6);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Ubuntu Mono", monospace;
  font-size: 16px;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  animation: crtFlicker 1.7s infinite steps(1);
  padding: 2rem;
}

/* Video Background */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(1.1) contrast(1.05) brightness(0.9);
  transform: scale(1.02);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(1200px 600px at 60% 40%, rgba(0, 224, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(60% 50% at 50% 40%, rgba(0, 20, 30, 0.15), transparent 60%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75) 70%),
              repeating-linear-gradient(0deg, rgba(0, 255, 200, 0.03) 0 1px, transparent 1px 3px);
  pointer-events: none;
  animation: scan 8s linear infinite;
}

.scan {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.08;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, #00e0ff 0 1px, transparent 1px 3px);
  animation: drift 7s linear infinite;
  z-index: 2;
}

.pulse {
  position: absolute;
  inset: auto auto 20% 50%;
  width: 80vmin;
  height: 80vmin;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 224, 255, 0.18), transparent 60%);
  filter: blur(18px);
  animation: breathe 4.1s ease-in-out infinite;
  z-index: 3;
}

.container {
  max-width: 900px;
  width: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  animation: fadeInUp 1s ease-out;
  margin-top: 30vh;
}

/* Header Section */
.header {
  text-align: center;
  margin-bottom: 0;
}

.status-badge {
  display: inline-block;
  margin-top: 0;
  padding: 0.5rem 1.2rem;
  background: rgba(0, 224, 255, 0.1);
  border: 1px solid var(--acc);
  border-radius: 20px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--glow);
  animation: statusPulse 2s ease-in-out infinite;
}

.status-badge::before {
  content: "●";
  color: var(--acc);
  margin-right: 0.5rem;
  animation: blink 2s infinite;
}

/* Terminal Section */
.terminal-wrapper {
  background: rgba(0, 20, 30, 0.4);
  border: 1px solid rgba(0, 224, 255, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 20px rgba(0, 255, 200, 0.05), var(--glow);
  transition: all 0.3s ease;
}

.terminal-wrapper:hover {
  border-color: var(--acc);
  box-shadow: inset 0 0 20px rgba(0, 255, 200, 0.1), var(--glow-strong);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 224, 255, 0.2);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 224, 255, 0.6);
  box-shadow: 0 0 8px rgba(0, 224, 255, 0.8);
}

.terminal-title {
  font-size: 0.85rem;
  color: rgba(230, 243, 255, 0.6);
  margin-left: auto;
}

.terminal-line {
  color: #00ffcc;
  font-family: "Ubuntu Mono", monospace;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  text-align: left;
  white-space: pre-wrap;
  line-height: 1.8;
  min-height: 200px;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: #00ffaa;
  margin-left: 2px;
  animation: blink 0.8s infinite;
  vertical-align: text-bottom;
}

.progress-section {
  margin-top: 0.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(230, 243, 255, 0.6);
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 224, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 224, 255, 0.3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--acc-dim), var(--acc));
  box-shadow: 0 0 10px var(--acc);
  animation: progressGrow 2s ease-out forwards;
  width: 0;
}

footer {
  margin-top: auto;
  padding: 2rem 1rem 1rem;
  text-align: center;
  opacity: 0.5;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-link {
  color: rgba(230, 243, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.social-link:hover {
  color: var(--acc);
  text-shadow: var(--glow);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.5);
  }
}

@keyframes progressGrow {
  to {
    width: 13%;
  }
}

@keyframes crtFlicker {
  0%, 100% { opacity: 1; }
  98% { opacity: 0.92; }
}

@keyframes slowPan {
  to { transform: scale(1.06) translateY(-1.2%); }
}

@keyframes drift {
  to { background-position: 0 -120px; }
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.04);
  }
}

@keyframes scan {
  from { background-position: 0 0; }
  to { background-position: 0 100%; }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 1rem;
  }

  .container {
    margin-top: 27vh;
  }

  .hero-video {
    transform: scale(1) translateY(-15%);
    /* ili više gore: */
    /* transform: scale(1.02) translateY(-20%); */
    /* transform: scale(1.02) translateY(-25%); */
  }
}