* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #fff;
  background-color: #181a1b;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 50px;
  background-color: #2c2f33;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar-name {
  font-size: 38px;
  font-weight: bold;
  color: #5865f2;
  text-shadow: 0 0 6px #5865f2, 0 0 12px #5865f2, 0 0 18px #5865f2;
  letter-spacing: 2px;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
}


.navbar-name:hover {
  transform: translateY(-3px);
  text-shadow: 0 0 12px #5865f2, 0 0 24px #5865f2, 0 0 36px #5865f2;
}

/* Navbar links */
.navbar__links {
  list-style: none;
  display: flex;
}

.navbar__links li {
  margin: 0 15px;
}

.navbar__links a {
  text-decoration: none;
  color: #5865f2;
  font-size: 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: color 0.3s, transform 0.3s, padding 0.3s ease;
  position: relative;
}

.navbar__links a:hover {
  color: #ac04ff;
  transform: translateY(-3px);
}

.navbar__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: #ac04ff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar__links a:hover::after {
  opacity: 1;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0; /* to też pod contentem */
}

.hero-logo {
  max-width: 150px;
}

.hero-title {
  font-size: 60px;
  color: #fff;
  margin: 20px 0;
}

.hero-subtitle {
  font-size: 24px;
  color: #a1a1a1;
  margin-bottom: 40px;
}

.hero-buttons .btn {
  font-weight: bold;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.btn-primary {
  background-color: #5865f2;
  color: white;
}

.btn-outline-light {
  border: 1px solid #5865f2;
  color: #5865f2;
}

.btn-primary:hover {
  background-color: #4752c4;
}

.btn-outline-light:hover {
  background-color: #5865f2;
  color: white;
}

/* Features */
.features {
  padding: 80px 40px;
  text-align: center;
  background-color: #23272a;
}

.features h2 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 40px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature {
  background-color: #2f353b;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}

.feature i {
  font-size: 40px;
  color: #5865f2;
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}

.feature p {
  color: #bbb;
  font-size: 16px;
}

/* Stats */
.stats {
  background-color: #2c2f33;
  padding: 80px 40px;
  text-align: center;
}

.stats h2 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 40px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

/* Statystyki */
.stat {
  background-color: #23272a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Efekt hover na statystyce */
.stat:hover {
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}

.stat i {
  font-size: 40px;
  color: #5865f2;
  margin-bottom: 20px;
}

.stat-number {
  font-size: 36px;
  color: #fff;
  font-weight: bold;
  margin-top: 10px;
}

.stat h3 {
  font-size: 24px;
  color: #fff;
}

/* Footer Section */
footer {
  background-color: #23272a;
  padding: 40px;
  text-align: center;
}

footer h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 20px;
}

footer p {
  font-size: 14px;
  color: #777;
  margin-bottom: 30px;
}

.footer-buttons .btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  border: 1px solid #5865f2;
  color: #5865f2;
  background-color: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 14px;
}

.footer-buttons .btn:hover {
  background-color: #5865f2;
  color: white;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* wyśrodkowanie tekstu i obrazka */
  gap: 8px;
  background-color: #7289da;
  color: white;
  padding: 0.5rem 1.4rem;
  /* trochę mniej pionowo, żeby lepiej pasował */
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 8px rgb(114 137 218 / 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  line-height: 1;
  /* żeby nie rozjeżdżał się pionowo */
  vertical-align: middle;
  /* wyrównanie względem tekstu obok */
  font-size: 18px;
  /* dopasuj do reszty linków */
}

.navbar__links li {
  display: flex;
  /* wymusz flex na li, żeby łatwiej wyrównać */
  align-items: center;
  /* pionowe wyśrodkowanie */
}

.btn-login:hover,
.btn-login:focus {
  background-color: #5b6eae;
  box-shadow: 0 6px 12px rgb(91 110 174 / 0.6);
  outline: none;
}

.btn-login:active {
  background-color: #4a5a8a;
  box-shadow: 0 2px 6px rgb(74 90 138 / 0.8);
  transform: translateY(1px);
}

.btn-login img {
  height: 20px;
  display: block;
}


/* === Hamburger Icon === */
.hamburger {
  margin-left: auto;
  display: none;
  /* pokaże się dopiero na mobilkach */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Standardowe linki (desktop) === */
.navbar__links {
  display: flex;
  list-style: none;
  margin-left: auto;
}

.navbar__links li {
  margin: 0 15px;
}

/* Responsive design */
@media screen and (max-width: 768px) {
  /* Hamburger */
  .hamburger {
    display: flex !important;
  }

  /* Domyślnie chowamy linki */
  .navbar__links {
    display: none !important;
    flex-direction: column;
    background: #2c2f33;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
  }

  /* Gdy mamy klasę active – pokazujemy */
  .navbar__links.active {
    display: flex !important;
  }

  .navbar__links li {
    margin: 10px 0;
    text-align: center;
  }



  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }

  .features__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    max-width: 90%;
  }

  footer {
    padding: 30px 20px;
  }

}

/* Responsive design - telefon (<= 480px) */
@media screen and (max-width: 480px) {
  /* Hamburger */
  .hamburger {
    display: flex !important;
  }

  /* Domyślnie chowamy linki */
  .navbar__links {
    display: none !important;
    flex-direction: column;
    background: #2c2f33;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
  }

  /* Gdy mamy klasę active – pokazujemy */
  .navbar__links.active {
    display: flex !important;
  }

  .navbar__links li {
    margin: 10px 0;
    text-align: center;
  }

  .navbar {
    padding: 15px 20px;
  }

  .navbar-name {
    font-size: 28px;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .features {
    padding: 60px 20px;
  }

  .features h2,
  .stats h2 {
    font-size: 28px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .feature h3,
  .stat h3 {
    font-size: 20px;
  }

  .feature p {
    font-size: 14px;
  }

  .stat-number {
    font-size: 28px;
  }

  footer h3 {
    font-size: 22px;
  }

  footer p {
    font-size: 12px;
  }

  .footer-buttons .btn {
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  main {
    padding-top: 120px;
  }
}