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

:root {
  --red: #cc0000;
  --red-dark: #880000;
  --white: #f0ece4;
  --black: #080808;
  --gray: #1a1a1a;
  --mono: 'Share Tech Mono', monospace;
  --display: 'Oswald', sans-serif;
  --body: 'Barlow Condensed', sans-serif;
}

html {
  scroll-behavior: smooth;
}

.link {
  text-decoration: none;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  overflow-x: hidden;
}

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#loading-screen .bg {
  position: absolute;
  inset: 0;
  background: url('loadingg.jpg') center/cover no-repeat;
  opacity: 0.18;
  filter: grayscale(60%);
}

.radar-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 40px;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 80, 0.25);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radar-ring:nth-child(1) {
  width: 200px;
  height: 200px;
  border-color: rgba(0, 255, 80, 0.4);
}

.radar-ring:nth-child(2) {
  width: 140px;
  height: 140px;
}

.radar-ring:nth-child(3) {
  width: 80px;
  height: 80px;
}

.radar-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
}

.radar-crosshair::before,
.radar-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(0, 255, 80, 0.2);
}

.radar-crosshair::before {
  width: 1px;
  height: 100%;
  left: 50%;
}

.radar-crosshair::after {
  width: 100%;
  height: 1px;
  top: 50%;
}

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  transform-origin: 0% 0%;
  animation: sweep 2.5s linear infinite;
}

.radar-sweep::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: conic-gradient(from 0deg, transparent 270deg, rgba(0, 255, 80, 0.6) 360deg);
  border-radius: 0 100% 0 0;
  top: 0;
  left: 0;
}

@keyframes sweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.blip {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00ff50;
  box-shadow: 0 0 6px #00ff50;
  animation: blip-fade 2.5s ease-out infinite;
}

.blip:nth-child(1) {
  top: 30%;
  left: 60%;
  animation-delay: 0.3s;
}

.blip:nth-child(2) {
  top: 65%;
  left: 35%;
  animation-delay: 1.1s;
}

.blip:nth-child(3) {
  top: 45%;
  left: 75%;
  animation-delay: 1.8s;
}

@keyframes blip-fade {

  0%,
  100% {
    opacity: 0
  }

  20%,
  60% {
    opacity: 1
  }
}

.loading-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 38px);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  text-align: center;
  margin-bottom: 6px;
}

.loading-title span {
  color: var(--red);
}

.loading-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(240, 236, 228, 0.45);
  text-transform: uppercase;
  margin-bottom: 36px;
}

.progress-track {
  width: 320px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--red);
  width: 0%;
  animation: load-fill 2.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  box-shadow: 0 0 8px var(--red);
}

@keyframes load-fill {
  to {
    width: 100%;
  }
}

.progress-label {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(240, 236, 228, 0.35);
  letter-spacing: 0.2em;
  margin-top: 10px;
  animation: count-up 2.8s steps(100) forwards;
}

#loading-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom,
      transparent 0px,
      transparent 3px,
      rgba(0, 0, 0, 0.15) 3px,
      rgba(0, 0, 0, 0.15) 4px);
  pointer-events: none;
}

#loading-screen.fade-out {
  animation: screen-fade 0.9s ease forwards;
}

@keyframes screen-fade {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  60% {
    opacity: 1;
    transform: scale(1.03);
  }

  100% {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
  }
}

#site-content {
  opacity: 0;
  transition: opacity 0.6s ease;
}

#site-content.visible {
  opacity: 1;
}

#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero .hero-bg {
  position: absolute;
  inset: 0;
  background: url('pozadina.png') center/cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

#hero:hover .hero-bg {
  transform: scale(1.0);
}

#hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(8, 8, 8, 0.55) 0%,
      rgba(8, 8, 8, 0.2) 40%,
      rgba(8, 8, 8, 0.75) 100%);
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0;
  animation: fade-up 0.8s 0.3s ease forwards;
}

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(52px, 10vw, 120px);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fade-up 0.9s 0.5s ease forwards;
}

.hero-title .gear {
  color: var(--red);
  display: block;
}

.hero-title .solid {
  font-size: 0.38em;
  letter-spacing: 0.55em;
  color: rgba(240, 236, 228, 0.7);
  font-weight: 300;
  display: block;
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-tagline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(240, 236, 228, 0.4);
  margin-top: 28px;
  opacity: 0;
  animation: fade-up 0.8s 0.8s ease forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fade-up 0.8s 1.2s ease forwards;
  font-size: 14px;
}

.scroll-hint span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: rgba(240, 236, 228, 0.3);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(204, 0, 0, 0.8), transparent);
  animation: scroll-pulse 2s ease infinite;
}

@keyframes scroll-pulse {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.8;
  }

  50% {
    transform: scaleY(0.6);
    opacity: 0.4;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.9), transparent);
  transition: background 0.3s;
}

nav.scrolled {
  background: rgba(8, 8, 8, 0.97);
  border-bottom: 1px solid rgba(204, 0, 0, 0.2);
}

.nav-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.nav-logo span {
  color: var(--red);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #6B1311;
}

.game-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-section .section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease, opacity 0.5s ease;
  transform: scale(1.08);
}

.game-section.in-view .section-bg {
  transform: scale(1.0);
}

.section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.68);
}

.game-section:nth-child(odd) .section-overlay {
  background: linear-gradient(135deg, rgba(8, 8, 8, 0.82) 0%, rgba(8, 8, 8, 0.5) 100%);
}

.game-section:nth-child(even) .section-overlay {
  background: linear-gradient(225deg, rgba(8, 8, 8, 0.82) 0%, rgba(8, 8, 8, 0.5) 100%);
}

.game-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom,
      transparent 0px,
      transparent 2px,
      rgba(0, 0, 0, 0.07) 2px,
      rgba(0, 0, 0, 0.07) 3px);
  pointer-events: none;
  z-index: 2;
}

.section-content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  width: 90%;
  display: flex;
  align-items: center;
  gap: 80px;
}

.game-section:nth-child(even) .section-content {
  flex-direction: row-reverse;
}

.section-number {
  font-family: var(--display);
  font-size: clamp(100px, 18vw, 200px);
  font-weight: 900;
  line-height: 1;
  color: #6B1311;
  -webkit-text-stroke: 1px rgba(204, 0, 0, 0.2);
  user-select: none;
  flex-shrink: 0;
  transition: -webkit-text-stroke 0.4s;
}

.game-section.in-view .section-number {
  -webkit-text-stroke: 1px rgba(204, 0, 0, 0.5);
}

.section-info {
  flex: 1;
}

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s 0.1s ease;
}

.game-section.in-view .section-label {
  opacity: 1;
  transform: translateX(0);
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s 0.2s ease;
}

.game-section.in-view .section-title {
  opacity: 1;
  transform: translateY(0);
}

.section-title .red {
  color: var(--red);
}

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--red);
  margin-bottom: 20px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.5s 0.35s ease;
}

.game-section.in-view .section-divider {
  opacity: 1;
  transform: scaleX(1);
}

.info-box {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(204, 0, 0, 0.35);
  background: rgba(8, 8, 8, 0.75);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s 0.45s ease, border-color 0.25s, background 0.25s;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.game-section.in-view .info-box {
  opacity: 1;
  transform: translateY(0);
}

.info-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.info-box:hover {
  border-color: rgba(204, 0, 0, 0.8);
  background: rgba(20, 4, 4, 0.9);
}

.info-box:hover::before {
  transform: scaleY(1);
}

.info-box p {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(240, 236, 228, 0.75);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.info-box-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-box .cta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--red);
  text-transform: uppercase;
  text-decoration: none;
}

.info-box .arrow {
  width: 28px;
  height: 1px;
  background: var(--red);
  position: relative;
  transition: width 0.3s ease;
}

.info-box:hover .arrow {
  width: 42px;
}

.info-box .arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid var(--red);
}

.year-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(240, 236, 228, 0.3);
  background: rgba(8, 8, 8, 0.9);
  padding: 4px 10px;
  border: 1px solid rgba(204, 0, 0, 0.2);
  border-top: none;
}

#cookie-popup {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 500;
  background: rgba(8, 8, 8, 0.97);
  border: 1px solid rgba(204, 0, 0, 0.4);
  padding: 20px 24px;
  max-width: 340px;
  animation: slide-in-left 0.6s 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slide-in-left {
  from {
    transform: translateX(-120%);
    opacity: 0;
  }

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

#cookie-popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--red), transparent);
}

.cookie-header {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cookie-text {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 300;
  color: rgba(240, 236, 228, 0.6);
  line-height: 1.5;
  margin-bottom: 16px;
}

.cookie-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.cookie-btn:hover {
  background: var(--red-dark);
}

#cookie-popup.hidden {
  animation: slide-out-left 0.4s ease forwards;
}

@keyframes slide-out-left {
  to {
    transform: translateX(-120%);
    opacity: 0;
  }
}

.cookie-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #ff3333;
  font-size: 18px;
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
  line-height: 1;
  transition: color 0.2s;
}

.cookie-close:hover {
  color: #fff;
}

#cookie-gif {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 150px;
  border-radius: 8px;
  overflow: hidden;
}

#cookie-gif img {
  width: 100%;
  display: block;
}

#decline-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

#decline-modal.visible {
  display: flex;
}

.decline-box {
  background: #0a0a0a;
  border: 1px solid #ff3333;
  padding: 36px 40px;
  max-width: 400px;
  width: 90%;
  font-family: 'Share Tech Mono', monospace;
  text-align: center;
}

.decline-title {
  color: #ff3333;
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.decline-text {
  color: #aaa;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.decline-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.decline-confirm {
  background: transparent;
  border: 1px solid #ff3333;
  color: #ff3333;
  padding: 10px 22px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: background 0.2s, color 0.2s;
}

.decline-confirm:hover {
  background: #ff3333;
  color: #000;
}

.decline-cancel {
  background: transparent;
  border: 1px solid #555;
  color: #aaa;
  padding: 10px 22px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.decline-cancel:hover {
  border-color: #fff;
  color: #fff;
}

footer {
  background: #050505;
  border-top: 1px solid rgba(204, 0, 0, 0.15);
  padding: 40px;
  text-align: center;
}

.footer-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.15);
  margin-bottom: 12px;
}

.footer-logo span {
  color: rgba(204, 0, 0, 0.3);
}

.footer-copy {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.3em;
  color: rgba(240, 236, 228, 0.2);
  text-transform: uppercase;
}

.povecat {
  width: 50px;
  height: 100px;
}

@media (max-width: 1024px) {
  nav {
    padding: 16px 30px;
  }

  .section-content {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 12px 16px;
    background: rgba(8, 8, 8, 0.95);
  }
  
  .nav-logo {
    font-size: 14px;
    letter-spacing: 0.1em;
  }
  
  .nav-links {
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    margin-left: 15px; 
  }
  
  .nav-links::-webkit-scrollbar { display: none; }
  
  .nav-links a {
    font-size: 9px;
    letter-spacing: 0.15em;
    white-space: nowrap;
  }

  .radar-wrap {
    width: 140px;
    height: 140px;
    margin-bottom: 30px;
  }
  .radar-ring:nth-child(1) { width: 140px; height: 140px; }
  .radar-ring:nth-child(2) { width: 100px; height: 100px; }
  .radar-ring:nth-child(3) { width: 60px; height: 60px; }
  .radar-crosshair { width: 140px; height: 140px; }
  .radar-sweep { width: 70px; height: 70px; }
  .radar-sweep::before { width: 70px; height: 70px; }
  
  .loading-title { font-size: 18px; letter-spacing: 0.2em; }
  .loading-sub { font-size: 9px; margin-bottom: 24px; }
  .progress-track { width: 260px; }

  #hero {
    min-height: 500px;
    justify-content: center;
  }
  
  .hero-content {
    padding: 0 16px;
  }
  
  .hero-title {
    font-size: clamp(36px, 12vw, 56px);
  }
  
  .hero-title .solid {
    font-size: 0.4em;
    letter-spacing: 0.3em;
  }

  .hero-eyebrow, .hero-tagline {
    font-size: 9px;
    letter-spacing: 0.3em;
  }
  
  .scroll-hint { display: none; }

  .section-content {
    flex-direction: column !important;
    gap: 20px;
    width: 94%;
    padding: 60px 0;
  }

  .section-number {
    font-size: 60px;
    text-align: center;
    width: 100%;
  }

  .section-title {
    font-size: clamp(28px, 6vw, 36px);
    text-align: center;
  }

  .section-label {
    text-align: center;
    transform: translateX(0);
  }

  .section-divider {
    margin: 0 auto 20px auto;
  }
  
  .info-box {
    padding: 20px;
  }
  
  .info-box p {
    font-size: 14px;
  }

  #cookie-popup {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    padding: 16px 18px;
  }

  .cookie-text {
    font-size: 12px;
  }

  footer {
    padding: 30px 20px;
  }
  
  .footer-logo {
    font-size: 20px;
    letter-spacing: 0.15em;
  }
  
  .footer-copy {
    font-size: 12px;
  }
}