:root {
  --bg: #0e0e0e;
  --bg-soft: #141414;
  --text: #eaeaea;
  --muted: #9a9a9a;
  --accent: #e67e22;
  --border: #1f1f1f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Geist', sans-serif;
  background: linear-gradient(45deg, #131927 0%, rgb(48, 57, 79, 100%));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #eaeaea;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* malo slabije */
  z-index: -1;
}


.navbar {
  padding: 28px 40px 18px; /* povučen malo dole */
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.nav-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.nav-logo {
  height: 48px;
  width: auto;

}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 15px;
  padding-bottom: 6px;
  position: relative;
  cursor: pointer; /* dodaj ovo */
}

.nav-links a.active {
  color: #e67e22;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: #e67e22;
  border-radius: 2px;
}

.navbar {
  padding: 20px 32px;
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1400px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap:28px;
}

.nav-logo {
  height: 42px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ask-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
}

.welcome-box{
	text-align: center;
}

.rules h2 {
  font-size: 32px;
  line-height: 1.2;
}

.rules p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
}

.rules {
  grid-template-columns: 1fr 1.2fr;
}

.rules img {
  order: -1;
}

.grid h2 {
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 24px;
}

.grid p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
  max-width: 720px;
}

.grid strong {
  color: #ffffff;
  font-weight: 600;
}

.grid p + p {
  margin-top: 20px;
}

.subtitle {
  font-size: 20px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 100px;
}

.logo {
  font-weight: 700;
  color: var(--accent);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 24px;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 80px;
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.card {
  background: rgb(230, 126, 34, 10%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  border-color: #e67e22;
  animation: float 3s ease-in-out infinite;
}

.badge {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  
}

.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  background: rgb(230, 126, 34, 10%);
  color: #eaeaea;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--border);
  border-color: #e67e22;
}

.nav-links a:hover {
  color: var(--accent); /* boja naglaska */
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* Button hover */
.btn:hover {
  background: rgb(230, 126, 34, 10%); /* tamnija/naglašena boja za hover */
  transform: translateY(-1px); /* blagi "lift" efekt */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
}

.card:hover, .community-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.btn {
  background: rgb(230, 126, 34, 30%);;
}
.btn:hover {
  background: rgb(230, 126, 34, 50%);;
}

.btn:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.rules {
  margin-top: 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.rules img {
  width: 100%;
  border-radius: 12px;
  opacity: .9;
  background: linear-gradient(
    135deg,
    rgba(20, 24, 36, 0.7) 0%,
    rgba(30, 34, 46, 0.7) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.09);

  /* animacija */
  transition: all 0.35s ease;
}

/* HOVER */
.rules img:hover {
  opacity: 1;
  transform: translateY(-6px) scale(1.01);

  border-color: rgba(230, 126, 34, 0.7);

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(230, 126, 34, 0.25);
}



footer {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

.community {
  margin-top: 140px;
  text-align: center;
}

.community h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.community-subtitle {
  color: var(--muted);
  margin-bottom: 60px;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.community-card {
  background: linear-gradient(
    135deg,
    rgba(20, 24, 36, 0.7) 0%,
    rgba(30, 34, 46, 0.7) 100%
  );
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.09);

  transition: all 0.35s ease;
}

/* HOVER */
.community-card:hover {
  transform: translateY(-6px);

  border-color: rgba(230, 126, 34, 0.6);

  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(230, 126, 34, 0.25);
}



.community-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  opacity: 0.9;
}

.community-content {
  padding: 24px;
}

.community-content h3 {
  margin: 0 0 10px;
}

.community-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.brand img {
  height: 48px;      /* idealno za navbar */
  width: auto;
  object-fit: contain;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: #131927;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 149, 0, 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 149, 0, 0.7);
}

.new-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 16px;

  font-size: 14px;
  font-weight: 600;
  color: #d2d2d2;

  border-radius: 999px;

  background: linear-gradient(
    135deg,
    rgba(230, 126, 34, 0.10),
    rgba(243, 156, 18, 0.10)
  );

  border: 1px solid rgba(243, 156, 18, 0.35);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(243, 156, 18, 0.15);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  white-space: nowrap;
}


.new-badge:hover {
 
    background: rgba(255, 149, 0, 0.2);


}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {

  /* Global spacing */
  body {
    font-size: 15px;
  }

  .container {
    padding: 40px 16px;
  }

  /* NAVBAR */
  .navbar {
    padding: 16px 18px;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-left {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    width: 100%;
    gap: 18px;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 13px;
  }

  /* HERO / TITLES */
  h1 {
    font-size: 32px;
    line-height: 1.2;
    text-align: left;
  }

  h2 {
    font-size: 26px;
  }

  .subtitle {
    font-size: 16px;
    margin-bottom: 48px;
    text-align: left;
  }
  
  .welcome-box {
    text-align: center !important;
  }
  .welcome-box > * {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }


  /* MAIN GRID (About section) */
  .grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* RULES SECTION */
  .rules {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 80px;
  }

  .rules img {
    order: 0;
  }

  .rules h2 {
    font-size: 26px;
  }

  .rules p {
    font-size: 16px;
  }

  /* CARDS */
  .card {
    padding: 20px;
  }

  /* COMMUNITY */
  .community {
    margin-top: 100px;
  }

  .community-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .community-card img {
    height: 200px;
  }

  /* BUTTONS */
  .btn {
    width: 100%;
    text-align: center;
  }

  /* BADGES */
  .new-badge {
    font-size: 13px;
    padding: 6px 14px;
  }

  /* FOOTER */
  footer {
    padding: 28px 16px;
    font-size: 13px;
  }
  
}

@keyframes float {
    0%, 100% {
        transform: perspective(1000px) rotateY(-12deg) translateY(0px);
    }
    50% {
        transform: perspective(1000px) rotateY(-12deg) translateY(-10px);
    }
}
