/* =========================
   RESET
========================= */

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

/* =========================
   VARIJABLE
========================= */

:root {
  --bg: #0a0a0a;
  --primary: #5c0b00;
  --text: #ffffff;
  --muted: #d1d1d1;

  --h1-font: 'Cinzel', serif;
}

/* =========================
   BODY
========================= */

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* =========================
   HEADER
========================= */

.cd-main-header {
  position: relative;
  min-height: 70vh;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: url("assets/img/gg15.avif") center/cover no-repeat;
}

.cd-main-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.cd-main-header h1 {
  position: relative;
  font-family: var(--h1-font);
  font-size: 4rem;
  z-index: 2;
}

/* =========================
   SUBTITLE
========================= */

.subtitle {
  font-size: 1.5rem;
  color: #fff;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

/* =========================
   GUMBI
========================= */

.samurai-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  padding: 30px 50px;
}

.samurai-btn {
  padding: 12px 30px;
  border: 2px solid var(--primary);
  color: white;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  transition: 0.3s ease;
}

.samurai-btn:hover {
  background: var(--primary);
}

/* =========================
   GRID (2 STUPCA KARTICE)
========================= */

.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;

  padding: 60px 100px;
}

/* kartice */
.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(156, 0, 0, 0.87);

  padding: 30px;
  border-radius: 14px;

  transition: 0.3s;
}

.card:nth-child(odd) {
  transform: translateX(-20px);
}

.card:nth-child(even) {
  transform: translateX(20px);
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
}

/* =========================
   TEKST
========================= */

.card h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.3rem;
  color: #c0392b;
  margin-top: 15px;
}

.card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

/* =========================
   SLIKE (GRID ROW - RADNO)
========================= */

.image-row {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  flex-wrap: nowrap;
}

.image-row img {
  width: 600px;
  height: 450px;
  object-fit: cover;

  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);

  transition: 0.3s ease;
}

.image-row img:hover {
  transform: scale(1.05);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .container {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .card {
    transform: none !important;
  }

  .image-row {
    flex-wrap: wrap;
  }

  .image-row img {
    width: 100%;
    height: auto;
  }
}



footer {
  text-align: center;
  padding: 20px;
  color: #777;
  background: #050505;
}





/* =========================
   TABLET (<= 900px)
========================= */

@media (max-width: 900px) {

  .container {
    grid-template-columns: 1fr; /* 1 stupac */
    padding: 30px;
  }

  .cd-main-header h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }
}

/* =========================
   MOBITEL (<= 600px)
========================= */

@media (max-width: 600px) {

  .container {
    padding: 20px;
  }

  .samurai-buttons {
    flex-direction: column;
    align-items: center;
  }

  .samurai-btn {
    width: 100%;
    text-align: center;
  }

  /* SLIKE – NE NESTAJU, SAMO SE SLAGU */
  .image-row {
    flex-direction: column;
  }

  .image-row img {
    width: 100%;
    height: auto;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .card p {
    font-size: 1rem;
  }
}

/* =========================
   EXTRA SMALL (<= 400px)
========================= */

@media (max-width: 400px) {

  .cd-main-header h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }
}