/* === RESET + OGÓLNE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: "Poppins", sans-serif;
  color: white;
  background: linear-gradient(120deg, #05060a, #0b1226, #1b1440, #070a18);
  background-size: 300% 300%;
  animation: gradientShift 15s ease infinite;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === NAWIGACJA === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: rgba(10, 10, 25, 0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: #9c6bff;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #7a5fff, #4acaff);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #7a5fff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* === RESPONSYWNE MENU === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    background: rgba(15, 15, 35, 0.95);
    padding: 1rem;
    border-radius: 10px;
    display: none;
    animation: fadeIn 0.3s ease;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.5rem 1rem;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === LOGIN BUTTON === */
.login-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  background: linear-gradient(90deg, #7a5fff, #4acaff);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.login-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(100, 80, 255, 0.4);
}

/* === HERO === */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero canvas#particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  padding: 2rem;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.hero-title span {
  background: linear-gradient(90deg, #7a5fff, #4acaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}

/* === KARUZELA === */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.carousel-frame {
  width: 70vw;
  max-width: 900px;
  height: 400px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 30px rgba(100, 80, 255, 0.3);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 25, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-overlay h2 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(90deg, #9c6bff, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

/* === KARUZELA - PRZYCISKI === */
.carousel-btn {
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, transform 0.2s ease;
}

#carousel-btn-left,
#carousel-btn-right {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}


.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.material-symbols-outlined {
  background: none !important;
  color: white; /* lub inny kolor Twoich ikon */
  border: none;
  border-radius: 0;
  padding: 0;
}

/* === MODAL LOGOWANIA === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: rgba(25, 25, 55, 0.7);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 25px rgba(80, 60, 200, 0.4);
  animation: modalIn 0.4s ease;
  position: relative;
}

@keyframes modalIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: #9c6bff;
}

.modal-content label {
  display: block;
  text-align: left;
  margin-top: 0.8rem;
  font-weight: 500;
  color: #ccc;
}

.modal-content input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem;
  border: none;
  border-radius: 10px;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: white;
}

.modal-content input:focus {
  box-shadow: 0 0 0 2px rgba(140,100,255,0.4);
}

.modal-content button {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  color: white;
  background: linear-gradient(90deg, #7a5fff, #4acaff);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-content button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(100,80,255,0.4);
}

.modal .close {
  position: absolute;
  top: 15px;
  right: 25px;
  cursor: pointer;
  font-size: 1.6rem;
  color: white;
  transition: color 0.2s ease;
}

.modal .close:hover {
  color: #9c6bff;
}

/* === STOPKA === */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #b0b0b0;
  position: relative;
  bottom: 0;
  width: 100%;
  background: rgba(10, 10, 25, 0.4);
  backdrop-filter: blur(8px);
}

footer p {
  margin: 0;
}
/* === KOŁA I FLAGI === */
.top-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.circle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  background: none; 
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.circle-btn:hover {
  transform: scale(1.1);
}

.circle-btn .material-symbols-outlined {
  font-size: 2.2rem;
  color: #ffffffcc;
  transition: color 0.3s ease, transform 0.2s ease;
}

.circle-btn:hover .material-symbols-outlined {
  color: #9c6bff;
  transform: rotate(30deg);
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-selector img.flag {
  width: 30px;
  height: 20px;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border 0.2s ease;
}

.language-selector img.flag:hover {
  transform: scale(1.1);
}

.language-selector img.flag.active {
  border: 2px solid #9c6bff;
}

/* === STRZAŁKI KARUZELI === */
.carousel-btn {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.carousel-btn:hover {
  background: none;
  transform: scale(1.1);
}

.carousel-btn .material-symbols-outlined {
  font-size: 2.5rem;
  color: #ffffffcc;
  transition: color 0.3s ease;
}

.carousel-btn:hover .material-symbols-outlined {
  color: #9c6bff;
}


/* === DROPDOWN JĘZYKA === */
.language-selector-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.5rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  color: white;
  font-weight: 500;
  transition: background 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.2);
}

.lang-btn img.flag {
  width: 25px;
  height: 16px;
  border-radius: 3px;
}

.lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 10, 25, 0.95);
  backdrop-filter: blur(10px);
  list-style: none;
  padding: 0.5rem 0;
  border-radius: 10px;
  display: none;
  margin-top: 5px;
  z-index: 500;
  width: max-content;
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lang-menu li:hover {
  background: rgba(255,255,255,0.1);
}

.lang-menu li img.flag {
  width: 25px;
  height: 16px;
  border-radius: 3px;
}

.lang-btn .arrow {
  transition: transform 0.3s ease;
}

.lang-btn.active .arrow {
  transform: rotate(180deg);
}

/* === FOOTER BEZ SCROLLA === */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #b0b0b0;
  background: rgba(10, 10, 25, 0.4);
  backdrop-filter: blur(8px);
  position: relative;
  bottom: 0;
  width: 100%;
}
.language-selector-dropdown {
  position: relative;
}

.lang-btn {
  display: block;      
  width: 30px;          
  height: 20px;         
  border: none;
  border-radius: 5px;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;     
  padding: 0;           
}

.lang-btn img.flag {
  width: 100%;
  height: 100%;
  object-fit: cover;    
  display: block;
  border-radius: 3;     
}

.lang-btn:hover {
  background: rgba(255,255,255,0.2);
}

.lang-btn .arrow {
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
}

.lang-btn.active .arrow {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10,10,25,0.95);
  backdrop-filter: blur(10px);
  list-style: none;
  padding: 0.3rem 0;
  border-radius: 10px;
  display: none;
  margin-top: 5px;
  z-index: 500;
}

.lang-menu li {
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}

.lang-menu li img.flag {
  width: 100%;
  height: 20px;
  border-radius: 3px;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.logo-img {
  width: 40px; 
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(90deg, #7a5fff, #4acaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}
