/* Website */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  font-family: "Arial", sans-serif;
  background: #0a0a0a;
  color: white;
}

/* Navbar */

nav {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 700;
  position: sticky;
  top: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(20, 20, 20, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 40px;
  position: relative;
  z-index: 100;
  gap: 30px;
}

.nav-left {
  left: 40px;
  display: flex;
  gap: 30px;
  align-items: center;
  font-weight: 700;
}

.nav-right {
  right: 80px;
  display: flex;
  gap: 20px;
  align-items: center;
  font-weight: 700;
}

.logo {
  z-index: 10;
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
  cursor: default;
  user-select: none;
}

.shop {
  filter: drop-shadow(0 0 10px orange);
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 10px;
  position: relative;
  transition: color 0.3s ease;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}

nav a:hover {
  color: orange;
}

/* Video Banner */

.video-banner {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
}

.video-banner__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  will-change: transform, opacity;
}

/* Projects Header */

.Projects-Header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 80px;
  background: rgba(20, 20, 20, 0.7);
  color: white;
  gap: 40px;
  overflow: hidden;
  opacity: 1;
}

.projects-text {
  flex: 1;
  max-width: 80%;
  opacity: 1;
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 23px;
}

.projects-text h2 {
  opacity: 1;
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 700;
  color: #ff8800;
  text-shadow: 0 0 8px rgba(255, 165, 0, 0.8), 0 0 15px rgba(255, 140, 0, 0.6);
}

.projects-text .highlight span {
  color: #ff8800;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 136, 0, 0.8);
}

.projects-img {
  flex: 1;
  max-width: 100%;
  display: flex;
  aspect-ratio: 16 / 9;
  justify-content: center;
  opacity: 1;
  transform: translateX(50px) rotateY(10deg);
  transition: transform 1s ease-out, opacity 1s ease-out;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 40px 5px rgba(255, 136, 0, 0.8);
  perspective: 1000px;
}

/* Projects Section */

.projects-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 20px;
}

.filters button {
  background: none;
  border: 2px solid #ff8800;
  color: #ff8800;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 700;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.filters button.active,
.filters button:hover {
  background: #ff8800;
  color: black;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.project {
  background: #1e1e1e;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  user-select: none;
}

.project:hover {
  transform: scale(1.05);
}

.project img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.project img:hover {
  transform: scale(1.05);
}

#seeMoreBtn {
  display: block;
  margin: 30px auto;
  padding: 12px 24px;
  font-weight: 700;
  background: #ff8800;
  color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}

#seeMoreBtn:hover {
  background: #ff8800;
}

/* Modal Styles */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  display: flex;
  gap: 30px;
  background: #1e1e1e;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  color: white;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#galleryModal .modal-content {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 1000px;
}

.modal-content::-webkit-scrollbar {
  display: none;
}

.modal-left,
.modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.modal-left {
  display: flex;
  flex-direction: column;
  width: 50%;
  height: 100%;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff8800;
  box-shadow: 0 0 10px orange;
  user-select: none;
}

.author-name {
  font-weight: 700;
  font-size: 18px;
  color: #ff8800;
  user-select: none;
}

.modal-right {
  max-width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  height: 100%;
}

.modal-left h2 {
  color: #ff8800;
  margin-bottom: 15px;
}

.modal-left p {
  margin-bottom: 15px;
}

#modal-params {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.modal-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.modal-gallery img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.modal-gallery img:hover {
  transform: scale(1.05);
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  font-weight: 700;
  color: #ff8800;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.close:hover {
  color: #cc6b00;
}

/* Gallery Modal Styles */

.main-image {
  text-align: center;
  margin-bottom: 20px;
  background: #000;
  border-radius: 10px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.main-image img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 10px;
  object-fit: contain;
}

.carousel-container {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
}

.carousel-btn {
  background: #ff8800;
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-weight: bold;
}

.carousel-btn.visible {
  display: flex;
}

.carousel-btn:hover {
  background: #cc6b00;
  transform: scale(1.1);
}

/* Lepsze pozycjonowanie miniatur */
.thumbnails-container {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 440px;
  max-width: 600px;
  overflow: hidden;
}

.gallery-thumbnail {
  width: 100px;
  height: 75px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
  flex-grow: 0;
  flex-basis: 100px;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  border-color: #ff8800;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 136, 0, 0.5);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #ff8800;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background: #cc6b00;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: #ff8800;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #cc6b00;
}

/* Buy Section */

.buy-section {
  max-width: 700px;
  margin: 50px auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  color: white;
}

.buy-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 30px;
  background-color: #ff8800;
  color: black;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

.buy-btn:hover {
  background-color: #ff9d2e;
}

.buy-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */

.footer {
  background-color: #111;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  margin-top: 60px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-text {
  margin-bottom: 20px;
  font-size: 14px;
  opacity: 0.7;
}

.modal-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.modal-socials a {
  display: inline-block;
  width: 28px;
  height: 28px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.modal-socials a:hover {
  opacity: 1;
}

.modal-socials img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Contact Modal */

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-btn {
  display: block;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.contact-btn.gmail {
  background: #ff8800;
  color: white;
}

.contact-btn.gmail:hover {
  background: #ff9a27;
}

.contact-btn.discord {
  background: #ff8800;
  color: white;
}

.contact-btn.discord:hover {
  background: #ff9a27;
}

.modal-content1 {
  background: #070707;
  margin: 40px auto;
  padding: 20px;
  width: 90%;
  max-width: 900px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

/* Responsive Design */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    flex-direction: column;
  }

  .modal-left {
    width: 100%;
  }

  .modal-right {
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
  }

  .thumbnails-container {
    gap: 5px;
  }

  .gallery-thumbnail {
    width: 60px;
    height: 45px;
  }
}
