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

:root {
  --red: #cc0000;
  --red-glow: rgba(204, 0, 0, 0.35);
  --white: #f0ece4;
  --black: #060606;
  --gray: #111;
  --mid: #1c1c1c;
  --mono: 'Share Tech Mono', monospace;
  --display: 'Oswald', sans-serif;
  --body: 'Barlow Condensed', sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(to bottom,
      transparent 0, transparent 2px,
      rgba(0, 0, 0, 0.06) 2px, rgba(0, 0, 0, 0.06) 3px);
  pointer-events: none;
  z-index: 1000;
}

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: all 0.3s ease;
}

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

.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; /* Spriječava lomljenje loga */
}

.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;
  position: relative;
}

.nav-links a:hover {
  color: var(--red);
}

/* ═══════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('metalgearsolid1.jpg') center/cover no-repeat;
  transform: scale(1.06);
  animation: slow-zoom 14s ease-in-out infinite alternate;
}

@keyframes slow-zoom {
  from { transform: scale(1.06) translateX(0); }
  to   { transform: scale(1.0) translateX(-1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(6, 6, 6, 0.0) 30%,
      rgba(6, 6, 6, 0.85) 100%),
    linear-gradient(to top,
      rgba(6, 6, 6, 1) 0%,
      rgba(6, 6, 6, 0.3) 40%,
      transparent 70%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(204, 0, 0, 0.03);
  animation: flicker 8s step-end infinite;
}

@keyframes flicker {
  0%, 94%, 96%, 100% { opacity: 0; }
  95% { opacity: 1; }
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 0 60px 70px;
  max-width: 900px;
}

.hero-micro {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: fade-up 0.7s 0.2s ease forwards;
}

.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fade-up 0.8s 0.4s ease forwards;
}

.hero-title .line2 {
  display: block;
  color: var(--red);
  padding-bottom: 30px;
}

.hero-title .line3 {
  display: block;
  font-weight: 300;
  font-size: 0.32em;
  letter-spacing: 0.5em;
  color: rgba(240, 236, 228, 0.55);
  margin-top: 14px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  opacity: 0;
  animation: fade-up 0.7s 0.7s ease forwards;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: rgba(240, 236, 228, 0.3);
  text-transform: uppercase;
}

.meta-val {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
}

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

/* ═══════════════════════════════════════
   GENERAL SECTIONS
═══════════════════════════════════════ */
section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 52px;
}

.section-header .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--red);
  text-transform: uppercase;
}

.section-header h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(204, 0, 0, 0.5), transparent);
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(204, 0, 0, 0.3), transparent);
  margin: 0;
}

/* ═══════════════════════════════════════
   SYNOPSIS
═══════════════════════════════════════ */
#synopsis {
  border-left: 3px solid var(--red);
  padding-left: 40px;
  position: relative;
}

#synopsis::before {
  content: '"';
  position: absolute;
  left: -24px;
  top: -10px;
  font-family: var(--display);
  font-size: 120px;
  color: var(--red);
  opacity: 0.15;
  line-height: 1;
}

.synopsis-lead {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.synopsis-lead em {
  color: var(--red);
  font-style: normal;
  font-weight: 600;
}

.synopsis-body {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(240, 236, 228, 0.68);
  letter-spacing: 0.03em;
  columns: 2;
  column-gap: 48px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px;
  background: rgba(204, 0, 0, 0.15);
  border: 1px solid rgba(204, 0, 0, 0.2);
  margin-top: 60px;
}

.info-cell {
  background: var(--gray);
  padding: 24px 28px;
  transition: background 0.2s;
}

.info-cell:hover {
  background: rgba(30, 5, 5, 1);
}

.info-cell .lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: rgba(240, 236, 228, 0.3);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.info-cell .val {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
}

.info-cell .val.red {
  color: var(--red);
}

/* ═══════════════════════════════════════
   CHARACTERS
═══════════════════════════════════════ */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
}

.char-card {
  background: var(--gray);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.char-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.char-card:hover {
  background: rgba(20, 4, 4, 0.95);
}

.char-card:hover::before {
  transform: scaleX(1);
}

.char-codename {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.5em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.char-name {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.char-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(240, 236, 228, 0.55);
  font-style: italic;
}

.char-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--display);
  font-size: 60px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  line-height: 1;
  user-select: none;
}

/* ═══════════════════════════════════════
   AWARDS, QUOTES, VIDEO, SCORE
═══════════════════════════════════════ */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.award-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 24px;
  transition: border-color 0.25s, background 0.25s;
}

.award-card:hover {
  border-color: rgba(204, 0, 0, 0.4);
  background: rgba(20, 5, 5, 0.95);
}

.award-org {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.award-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.award-year {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(240, 236, 228, 0.3);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.video-item {
  position: relative;
  background: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color 0.25s;
}

.video-item:hover {
  border-color: rgba(204, 0, 0, 0.5);
}

.video-item iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}

.video-meta {
  padding: 14px 18px;
}

.video-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.video-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(240, 236, 228, 0.85);
}

.quote-block {
  border: 1px solid rgba(204, 0, 0, 0.25);
  background: var(--gray);
  padding: 40px 48px;
  position: relative;
  margin-bottom: 20px;
}

.quote-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
}

.quote-text {
  font-family: var(--display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.quote-attr {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--red);
  text-transform: uppercase;
}

.score-banner {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--gray);
  border: 1px solid rgba(204, 0, 0, 0.25);
  padding: 36px 48px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.score-num {
  font-family: var(--display);
  font-size: 100px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.04em;
}

.score-divider {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
}

.score-info {
  flex: 1;
  min-width: 200px;
}

.score-source {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: rgba(240, 236, 228, 0.3);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.score-label {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-sub {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 300;
  color: rgba(240, 236, 228, 0.45);
  margin-top: 6px;
  font-style: italic;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.page-footer {
  background: #030303;
  border-top: 1px solid rgba(204, 0, 0, 0.15);
  padding: 48px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

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

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 1024px) {
  nav {
    padding: 16px 30px;
  }
  
  section {
    padding: 80px 40px;
  }
  
  .hero-text {
    padding: 0 40px 50px;
  }
}

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

  #hero {
    min-height: 500px;
    align-items: center;
    justify-content: center;
  }

  .hero-text {
    padding: 0 20px;
    text-align: left;
    max-width: 100%;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(36px, 12vw, 56px); 
  }
  
  .hero-title .line2 {
    padding-bottom: 15px;
  }
  
  .hero-title .line3 {
    font-size: 0.35em;
    margin-top: 8px;
  }

  .hero-meta {
    flex-direction: column; 
    gap: 15px;
    margin-top: 20px;
  }
  
  .meta-val {
    font-size: 16px;
  }

  section {
    padding: 60px 20px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 30px;
  }
  
  .section-header .line {
    width: 40px; 
    margin-top: 5px;
  }

  #synopsis {
    border-left-width: 2px;
    padding-left: 20px;
  }
  
  #synopsis::before {
    font-size: 80px;
    left: -15px;
    top: -5px;
  }

  .synopsis-lead {
    font-size: 18px;
  }

  .synopsis-body {
    columns: 1; 
    font-size: 15px;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr; 
    margin-top: 30px;
  }
  
  .info-cell {
    padding: 15px;
  }

  .char-grid, .awards-grid, .video-grid {
    grid-template-columns: 1fr; /
  }

  .score-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 20px;
    gap: 20px;
  }
  
  .score-num {
    font-size: 60px;
  }
  
  .score-divider {
    display: none;
  }

  .quote-block {
    padding: 25px 20px;
    margin-bottom: 15px;
  }
  
  .quote-text {
    font-size: 16px;
  }

  .video-meta {
    padding: 12px 15px;
  }
  
  .page-footer {
    padding: 30px 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-meta {
    gap: 12px;
  }
  
  .info-grid {
    grid-template-columns: 1fr; 
  }
  
  .nav-links a {
    padding: 4px 8px;
  }
}