/* Website */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  font-family: "Arial", sans-serif;
  background: #0f0f0f;
  color: white;
}

/* Preloader */

#preloader-logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: slideUp 2.5s ease-in-out forwards;
}

#preloader-logo-wrapper::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.5), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: glowPulse 3s infinite ease-in-out;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-120px);
    opacity: 1;
  }
}

#typed-text {
  font-family: "Orbitron", sans-serif;
  margin-top: 20px;
  font-size: 1.2rem;
  color: #ff8800;
  text-align: center;
  letter-spacing: 2px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #ffb35c;
  animation: blink 0.7s step-end infinite;
  text-shadow: 0 0 8px #ffb35c;
  width: auto;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 12ch;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

#preloader {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 1s ease-in-out 3s forwards;
}

#preloader-logo {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

#preloader h1 {
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#preloader h1 span {
  color: #ff8800;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
body.no-scroll {
  overflow: hidden;
}

/* 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;
  filter: drop-shadow(0 0 10px orange);
  transition: filter 0.3s ease;
  cursor: default;
  user-select: none;
}

.logo img:hover {
  filter: drop-shadow(0 0 15px 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: #ff9d2e;
}

/* About Us */

.about-us {
  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;
}

.about-text {
  flex: 1;
  max-width: 50%;
}

.about-text h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
  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);
}

.about-us.visible h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.about-text .line {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  font-size: 1.1rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.about-text .highlight span {
  color: #ff8800;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 136, 0, 0.8);
}

.about-video {
  flex: 1;
  max-width: 100%;
  display: flex;
  aspect-ratio: 16 / 9;
  justify-content: center;
  opacity: 0;
  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;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-us {
    flex-direction: column;
    padding: 40px 20px;
    gap: 20px;
  }

  .about-text,
  .about-video {
    max-width: 100%;
    flex: none;
  }

  .about-video {
    order: 2; /* upewnij się, że video jest pod tekstem */
    width: 100%;
    max-width: 100%;
  }

  .about-text {
    order: 1;
  }

  .about-video video {
    width: 100%;
    height: auto;
    object-fit: contain; /* żeby nie ucinało na telefonie */
    border-radius: 15px;
  }
}

@keyframes glowPulseVideo {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.6), 0 0 30px rgba(255, 136, 0, 0.3);
    transform: translateX(0) rotateY(0deg) scale(1);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 136, 0, 1), 0 0 40px rgba(255, 100, 0, 0.6);
    transform: translateX(0) rotateY(0deg) scale(1.02);
  }
}

.about-us.visible .line {
  opacity: 1;
  transform: translateY(0);
}

.about-us.visible .line:nth-of-type(1) {
  transition-delay: 0.4s;
}
.about-us.visible .line:nth-of-type(2) {
  transition-delay: 0.8s;
}
.about-us.visible .line:nth-of-type(3) {
  transition-delay: 1.2s;
}
.about-us.visible .line:nth-of-type(4) {
  transition-delay: 1.5s;
}
.about-us.visible .line:nth-of-type(5) {
  transition-delay: 2s;
}

.about-us.visible .about-video {
  opacity: 1;
  transform: translateX(0) rotateY(0deg);
  transition-delay: 1s;
  animation: glowPulseVideo 3.5s ease-in-out infinite;
}

/* Stats */

.stats {
  background: rgba(20, 20, 20, 0.7);
  padding: 60px 40px;
  display: flex;
  justify-content: center;
  gap: 12rem;
  flex-wrap: wrap;
  color: white;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle {
  width: 100px;
  height: 100px;
  background: #1e1e1e;
  border-radius: 50%;
  box-shadow: 0 0 25px #ff8800;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  padding: 10px;
  transition: transform 0.3s ease;
}

.circle:hover {
  transform: scale(1.08);
}

.number {
  font-size: 2.4rem;
  line-height: 1;
  text-align: center;
}

.label {
  margin-top: 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #ff8800;
  text-align: center;
}

.stat-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stats.visible .stat-item {
  opacity: 1;
  transform: translateY(0);
}

.stats.visible .stat-item:nth-of-type(1) {
  transition-delay: 0.3s;
}
.stats.visible .stat-item:nth-of-type(2) {
  transition-delay: 0.6s;
}
.stats.visible .stat-item:nth-of-type(3) {
  transition-delay: 0.9s;
}

@media (max-width: 768px) {
  .stats {
    gap: 2rem;
  }

  .circle {
    width: 80px;
    height: 80px;
  }

  .number {
    font-size: 1.8rem;
  }

  .label {
    font-size: 0.9rem;
  }
}

/* Squad Section */

.squad-section {
  padding: 80px 60px;
  background: #0f0f0f;
  color: white;
  text-align: center;
  align-items: center;
}

.squad-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #ff8800;
  text-shadow: 0 0 10px rgba(255, 136, 0, 0.8);
  animation: fadeInDown 1s ease-out;
}

.squad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.member {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.member img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 20px; /* zamiast 50% dla kwadratów z zaokrągleniami */
  border: 3px solid #ff8800;
  box-shadow: 0 0 20px rgba(255, 136, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 136, 0, 0.8);
}

.nick {
  margin-top: 15px;
  font-weight: bold;
  color: #ff8800;
  font-size: 1.1rem;
}

.role {
  font-size: 0.95rem;
  color: #ccc;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .squad-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .squad-grid {
    grid-template-columns: 1fr;
  }
}

.squad-section.visible .member {
  animation: fadeInUp 0.8s ease-out forwards;
}

.squad-section.visible .member:nth-child(1) {
  animation-delay: 0.1s;
}
.squad-section.visible .member:nth-child(2) {
  animation-delay: 0.2s;
}
.squad-section.visible .member:nth-child(3) {
  animation-delay: 0.3s;
}
.squad-section.visible .member:nth-child(4) {
  animation-delay: 0.4s;
}
.squad-section.visible .member:nth-child(5) {
  animation-delay: 0.5s;
}
.squad-section.visible .member:nth-child(6) {
  animation-delay: 0.6s;
}
.squad-section.visible .member:nth-child(7) {
  animation-delay: 0.7s;
}
.squad-section.visible .member:nth-child(8) {
  animation-delay: 0.8s;
}

/* Portfolio */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}

.modal-content {
  background: #070707;
  margin: 40px auto;
  padding: 20px;
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 30px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.modal-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  overflow: hidden;
}

.left-panel {
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.left-panel img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 15px;
}

.left-panel h2 {
  margin: 10px 0 5px;
}

.left-panel p {
  font-weight: 600;
  color: #d4d4d4;
  margin-bottom: 15px;
}

#player-stats {
  text-align: left;
  font-size: 14px;
  color: #ffffff;
}

.right-panel {
  flex: 2;
  overflow-y: auto;
}

.right-panel h3 {
  border-bottom: 2px solid #333;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

#player-projects {
  padding: 0;
  margin: 0;
  list-style: none;
}

.player-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 10px;
  margin-left: 5px;
  margin-right: 5px;
}

.player-projects-grid .project-card {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.player-projects-grid .project-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.player-projects-grid .project-card:hover {
  transform: scale(1.002);
  box-shadow: 0 0 15px rgba(255, 136, 0, 0.8);
}

.player-projects-grid.scrollable {
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
  overflow-x: auto;
}

.player-projects-grid.scrollable .project-card {
  flex: 0 0 auto;
  width: 120px;
  height: 100px;
}

#player-role {
  color: #ff8800;
  font-weight: 700;
}

.modal-socials {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.modal-socials a {
  display: inline-block;
  width: 26px;
  height: 26px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.modal-socials a:hover {
  opacity: 1;
}

.modal-socials img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-card-image {
  width: 100%;
  max-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.main-card-image img {
  max-width: 100%;
  max-height: 500px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

.main-card-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.thumbnail {
  width: 100px;
  height: 70px;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.close-button {
  font-size: 30px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  z-index: 10;
}

.close-button:hover {
  color: #ff8800;
}
/* 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;
}

/* Opinions Section */

.opinions-title {
  font-size: 2.5rem;
  text-align: center;
  color: #ff8800;
  text-shadow: 0 0 10px rgba(255, 136, 0, 0.8);
  animation: fadeInDown 1s ease-out;
}
.neon-testimonials {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.stars {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ff8800;
  font-weight: bold;
}

.quote {
  text-align: center;
  margin-top: 2px;
}

.client-details {
  color: #ffb400;
  margin-bottom: 10px;
  text-align: center;
}
.neon-card {
  width: 300px;
  background: rgba(31, 31, 31, 0.9);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.neon-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff8800, #ffb560, #ffe2c1);
  border-radius: 17px;
  z-index: -1;
  animation: neonPulse 3s ease-in-out infinite;
}

.neon-card:hover::before {
  animation: neonGlow 0.5s ease-in-out;
}

@keyframes neonPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes neonGlow {
  0% {
    filter: blur(5px);
  }
  100% {
    filter: blur(0px);
  }
}

/* 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;
}

/* Banner */

.banner {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.banner img {
  width: 100%;
  height: 600px;
  display: block;
  object-fit: cover;
}

.banner-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: #ff8800;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.banner-button:hover {
  background-color: #ff9d2e;
}

.banner-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ff8800;
  font-size: 5rem;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.banner:hover .banner-title {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}
