/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Raleway", sans-serif;
  background: #fff;
  color: #212529;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh; /* pridaj */
  display: flex; /* pridaj */
  flex-direction: column; /* pridaj */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #2ab53a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #158c15;
}

/* Selection */
::selection {
  background: #2ab53a;
  color: #fff;
}

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

.nav--sticky {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  transition: color 0.3s;
}

.nav--sticky .nav__logo {
  color: #212529;
}

.nav__logo-img {
  width: 40px;
  height: 40px;
  background: url("/public/images/logo.webp") center/cover;
  border-radius: 8px;
  filter: invert(1);
  transition: filter 0.3s;
}

.nav--sticky .nav__logo-img {
  filter: invert(0);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__link {
  padding: 0.5rem 1rem;
  color: #fff;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav--sticky .nav__link {
  color: #212529;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav--sticky .nav__link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav__link--discord {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #5865f2;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
}

.nav__link--discord img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.nav__link--discord:hover {
  background: #4752c4;
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav--sticky .nav__toggle span {
  background: #212529;
}

.nav__toggle--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.nav__toggle--open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #151515;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: left 0.3s ease;
  }

  .nav__menu--open {
    left: 0;
  }

  .nav__link {
    width: 100%;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
  }

  .nav__link:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("/public/images/header.webp") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

.hero__content {
  z-index: 10;
  max-width: 800px;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero__cta img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(190px, 33vh, 400px);
  background: url("/public/images/wave.svg") center bottom/cover no-repeat;
}

@media (max-width: 768px) {
  .hero__wave {
    height: 80px;
  }
}

/* ==================== ABOUT / CARDS ==================== */
.about {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  margin-bottom: 4rem;
}

.card {
  /*background: linear-gradient(45deg, #306b1b 10%, #66a64e 50%, #bfc0bf 98%);*/
  background: linear-gradient(45deg, #63ab4d 75%, #a6c39d 99%);
  color: #fff;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

/* Zigzag positioning */
.card:nth-child(odd) {
  transform: translateX(-100px);
  opacity: 0;
}

.card:nth-child(even) {
  transform: translateX(100px);
  opacity: 0;
}

/* Stagger animation delays */
.card:nth-child(1) {
  transition-delay: 0s;
}
.card:nth-child(2) {
  transition-delay: 0.1s;
}
.card:nth-child(3) {
  transition-delay: 0.2s;
}
.card:nth-child(4) {
  transition-delay: 0.3s;
}
.card:nth-child(5) {
  transition-delay: 0.4s;
}
.card:nth-child(6) {
  transition-delay: 0.5s;
}

.card.visible {
  transform: translateX(0);
  opacity: 1;
  transition-delay: 0s;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(71, 72, 71, 0.3);
}

.card__icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 4rem;
  opacity: 0.55;
  line-height: 1;
  pointer-events: none;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.card__text {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card:nth-child(odd),
  .card:nth-child(even) {
    transform: translateY(40px);
  }

  .card.visible {
    transform: translateY(0);
  }
}

/* ==================== HIGHLIGHT SECTION ==================== */
.highlight {
  margin-top: 3rem;
}

.highlight__content {
  background: linear-gradient(135deg, #63ab4d, #158c15);
  border-radius: 20px;
  padding: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
  box-shadow: 0 10px 40px rgba(42, 181, 58, 0.2);
}

.highlight__left {
  color: #fff;
}

.highlight__right {
  color: #fff;
  text-align: center;
}

.highlight__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.highlight__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight__list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.05rem;
}

.highlight__list li:last-child {
  border-bottom: none;
}

.highlight__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.highlight__text {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.highlight__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #000;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.highlight__button img {
  width: 22px;
  height: 22px;
  filter: brightness(0);
}

.highlight__button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 968px) {
  .highlight__content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .highlight__right {
    text-align: center;
  }
}

/* ==================== VOTE ==================== */
.vote {
  background: linear-gradient(135deg, #2ab53a, #158c15);
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
  background-image: url("../../public/images/vote.png");
}

.vote__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.vote__subtitle {
  opacity: 0.9;
  margin-bottom: 2rem;
}

.vote__form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.vote__input {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-family: inherit;
}

.vote__input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.vote__button {
  padding: 1rem 2rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
}

.vote__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== FOOTER ==================== */
.footer {
  background: #151515;
  color: #fff;
  padding: 3rem 2rem;
  margin-top: auto; /* pridaj toto */
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__left p {
  color: #888;
  margin-bottom: 0.25rem;
}

.footer__label {
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
}

.footer__social {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer__social img {
  width: 24px;
  height: 24px;
}

.footer__social--discord {
  background: #5865f2;
}
.footer__social--instagram {
  background: #c13584;
}
.footer__social--tiktok {
  background: #fff;
}

.footer__social:hover {
  transform: translateY(-3px) rotate(5deg);
}

@media (max-width: 640px) {
  .footer__container {
    flex-direction: column;
    text-align: center;
  }

  .footer__socials {
    justify-content: center;
  }
}
/*server sttatus*/
.server-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #fff;
}

.server-status__dot {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.server-status__dot.offline {
  background: #ff4444;
  animation: none;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}
/* ==================== PARTICLES ==================== */
.particles-js-canvas-el {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
}
/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2ab53a, #158c15);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(42, 181, 58, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(42, 181, 58, 0.4);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
  }
}
