/* ================== RESET / BAZA ================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
  text-align: center;
  font-family: Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding-bottom: 100px;
}

/* ================== CZCIONKI ================== */
@font-face {
  font-family: 'Santo';
  src: url('../assets/fonts/SANTO.ttf') format('truetype');
}

@font-face {
  font-family: 'Bebas Neue';
  src: url('../assets/fonts/BebasNeue-Regular.ttf') format('truetype');
}

/* ================== TOP VIDEOS HOME ================== */
.top-videos {
  display: flex;                /* ułożenie filmów w jednej linii */
  justify-content: center;      /* centrowanie w poziomie */
  align-items: center;          /* wyrównanie w pionie */
  gap: 10px;                    /* odstęp między filmami */
  padding: 50px 10px 10px 10px;                /* wewnętrzny padding */
  background-color: #000;       /* tło czarne jak reszta strony */
}

.top-videos video {
  flex: 1 1 0;                  /* każdy film dzieli się równo miejscem */
  max-width: 15%;               /* max 20% szerokości */
  height: auto;                 /* zachowanie proporcji */
  border-radius: 6px;           /* zaokrąglone rogi */
  object-fit: cover;            /* wypełnia kafelek */
}

/* Mniejsze ekrany – zmniejszamy filmy, ale nadal 3 w linii */
@media (max-width: 900px) {
  .top-videos video {
    max-width:15%;             /* jeszcze trochę mniejsze */
  }
}

@media (max-width: 480px) {
  .top-videos {
    gap: 5px;                   /* mniejszy odstęp */
  }
  .top-videos video {
    max-width: 30%;             /* nadal 3 w linii, tylko mniejsze */
  }
}
/* ================== ODSTEP OD STOPKI ================== */
main {
  padding-bottom: 100px; /* odstęp 100px nad stopką */
}


/* ================== NAGŁÓWEK who is shema ================== */
.header-bg {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* lewy blok | h1 | prawy blok */
  align-items: center;
  width: 100%;
  padding: 20px 0;
  box-sizing: border-box;
  position: relative;
}

.header-bg h1 {
  font-family: 'Santo', sans-serif;
  font-size: clamp(32px, 6vw, 60px);
  margin: 0;
  color: #e96e36;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.header-bg h1:hover {
  transform: scale(1.05);
  color: #00f0d4;
}

.header-bg h1 a {
  text-decoration: none;
  color: inherit;
}

.header-left,
.header-right {
  display: flex;
  justify-content: center;
}

.header-left .header-logo,
.header-right .header-logo {
  max-height: clamp(80px, 10vw, 180px);
  width: auto;
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(18px, 4vw, 28px);
  margin: 0 0 30px 0;
  color: #00f0d4;
}





/* ================== MENU ================== */
.menu-links {
  display: flex; /* menu jako flexbox */
  flex-wrap: wrap; /* zawijanie linków na mniejszych ekranach */
  justify-content: center; /* centrowanie linków w poziomie */
  align-items: center; /* centrowanie w pionie */
  gap: 10px; /* odstęp między linkami */
  font-size: clamp(18px, 4vw, 28px); /* responsywny rozmiar fontu */
  margin-bottom: 20px; /* margines dolny */
  background-color: rgba(17,17,17,0.9); /* półprzezroczyste ciemne tło */
  padding: 10px 0; /* padding w pionie */
  border-radius: 8px; /* zaokrąglone rogi menu */
}

.menu-links a {
  font-family: 'Bebas Neue', sans-serif; /* font linków */
  letter-spacing: 1px; /* odstęp między literami */
  text-decoration: none; /* brak podkreślenia */
  color: #fff; /* kolor biały */
  transition: all 0.3s ease; /* animacja hover */
}

.menu-links a:hover {
  color: #00f0d4; /* kolor przy hover */
  transform: scale(1.2); /* powiększenie linku */
}

.menu-links a.active {
  text-decoration: underline;          /* podkreślenie */
  text-decoration-color: #e96e36;      /* pomarańczowe podkreślenie jak w submenu */
  text-underline-offset: 4px;          /* przesunięcie podkreślenia, opcjonalnie */
  color: #00f0d4;                      /* zachowujemy kolor tekstu */
}


.menu-links a.active {
  text-decoration: underline; /* podkreślenie aktywnego linku */
  color: #00f0d4; /* kolor aktywnego linku */
}


/* ================== Podmenu kategorii Photo ================== */
.category-submenu {
  display: flex;
  gap: 30px; /* odstępy między kategoriami */
  flex-wrap: nowrap; /* wszystkie na jednej linii, nie zawijają się */
  justify-content: center; /* wyśrodkowane */
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(14px, 2.5vw, 24px);
  margin: 20px 0;
}

.category-submenu .submenu-link {
  text-decoration: none;
  color: #00f0d4;
  position: relative;
  padding-bottom: 5px; /* miejsce na podkreślenie */
  transition: transform 0.3s ease, color 0.3s ease;
}

.category-submenu .submenu-link:hover {
  transform: scale(1.05);
  color: #e96e36;
}

.category-submenu .submenu-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px; /* grubość podkreślenia */
  background-color: #e96e36;
}


/* ================== Podmenu kategorii Video ================== */
.video-submenu {
   display: flex;
  gap: 30px; /* odstępy między kategoriami */
  flex-wrap: nowrap; /* wszystkie na jednej linii, nie zawijają się */
  justify-content: center; /* wyśrodkowane */
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(14px, 2.5vw, 24px);
  margin: 20px 0;
}

.video-submenu a {
  text-decoration: none;
  color: #00f0d4;
  position: relative;
  padding-bottom: 5px; /* miejsce na podkreślenie */
  transition: transform 0.3s ease, color 0.3s ease;
}

.video-submenu a:hover,
.video-submenu a.active:hover {
  transform: scale(1.05);
  color: #e96e36; /* kolor przy hover dla wszystkich, nawet aktywnego */
}


.video-submenu a.active {
  text-decoration: underline;
  text-decoration-color: #e96e36; /* pomarańczowe podkreślenie */
  text-underline-offset: 4px;
  color: #00f0d4; /* kolor tekstu aktywnego */
}



/* ================== Testimonials ================== */
.testimonials-section {
  position: relative;
  display: flex;
  justify-content: center; /* centrowanie chmurek */
  align-items: flex-start;
  padding: 50px 20px 150px 20px; /* dolny padding żeby stopka nie nachodziła */
  flex-wrap: wrap;
  overflow: visible;
  z-index: 0;
}

/* Tło zdjęcia */
.testimonials-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.testimonials-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) brightness(0.5);
  pointer-events: none;
}

/* Chmurki testimoniali na pierwszym planie */
.testimonials-center {
  display: flex;
  justify-content: center;
  gap: 40px;
  position: relative; /* nad tłem */
  z-index: 1;
  flex-wrap: wrap;
}

.testimonial-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.testimonial-column img {
  width: 350px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  background-color: transparent; /* upewniamy się że nie ma tła */
}


/* Animacje wobble */
@keyframes wobble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-1deg); }
  50% { transform: translateY(3px) rotate(1deg); }
  75% { transform: translateY(-2px) rotate(-0.5deg); }
}

.wobble-1 { animation: wobble 5s ease-in-out infinite; }
.wobble-2 { animation: wobble 4.5s ease-in-out infinite; }
.wobble-3 { animation: wobble 5.5s ease-in-out infinite; }

/* Responsywność */
@media (max-width: 1200px) {
  .testimonial-column img { width: 300px; }
}

@media (max-width: 768px) {
  .testimonials-center {
    flex-direction: column;
    align-items: center;
  }
  .testimonial-column img { width: 260px; }
}

@media (max-width: 480px) {
  .testimonial-column img { width: 200px; }
}




/* Upewniamy się, że stopka nie przykrywa testimoniali */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main, .testimonials {
  flex-shrink: 0;
}




/* ================== BACK BUTTON ================== */
.category-main {
  position: relative;
  padding-left: 20px; /* odstęp od lewej krawędzi */
}

.back-button {
  display: inline-block;
  position: absolute; /* przyklejony do lewej strony kontenera */
  top: -20px; /* odstęp od góry ekranu przy przewijaniu */
  left: 40px;
  margin-bottom: 20px;
  padding: 4px 6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(16px, 3vw, 20px);
  color: #fff;
  background: #00000022;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s, color 0.3s;
  z-index: 100;
}

.back-button:hover {
  background: #00f0d4;
  color: #000;
  transform: scale(1.05);
}

/* Responsywność */
@media (max-width: 768px) {
  .back-button { font-size: clamp(14px, 4vw, 18px); }
}
@media (max-width: 480px) {
  .back-button { font-size: clamp(12px, 5vw, 16px); }
}


/* ================== GALERIA KATEGORII PHOTO ================== */
.photo-categories-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: nowrap; /* wszystko w jednej linii */
  padding: 20px;
}

.category-tile {
  flex: 1 1 0; /* automatycznie skalowanie */
  max-width: 200px; /* maksymalny rozmiar */
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.category-tile span {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 5px #000;
}

.category-tile:hover {
  transform: scale(1.1);
  filter: brightness(0.5);
}


/* ================== RESPONSYWNE DOPASOWANIE ================== */
@media (max-width: 1200px) {
  .category-tile { height: 360px; }
}
@media (max-width: 992px) {
  .category-tile { height: 300px; }
}
@media (max-width: 768px) {
  .category-tile { height: 240px; }
}
@media (max-width: 480px) {
  .category-tile { height: 180px; }
}


/* ================== Back to categories ================== */
.back-button {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 15px;
  padding: 0px 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(14px, 3vw, 20px);
  color: #fff;
  background: rgba(17,17,17,0.4);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s, color 0.3s;
  text-align: left;
}

.back-button:hover {
  background: #00f0d4;
  color: #000;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .back-button {
    padding: 5px 10px;
    font-size: clamp(12px, 3vw, 18px);
  }
}

@media (max-width: 480px) {
  .back-button {
    padding: 4px 8px;
    font-size: clamp(10px, 4vw, 16px);
  }
}


/* ================== Photo Gallery grid ================== */
.gallery-all {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 20px;
}
.gallery-all a {
  overflow: hidden;
  display: block;
  border-radius: 6px;
}
.gallery-all img {
  width: 100%;
  max-width: 150px; /* aby nie rozciągało się za bardzo */
  height: 200px;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-all img.loaded {
  opacity: 1;
  transform: translateY(0);
}
/* Hover effect */
.gallery-all a:hover img {
  opacity: 0.5;
  transform: scale(1.1);
}

/* ================== Responsive adjustments ================== */
@media (max-width: 768px) {
  .gallery-all img {
    height: 120px;
  }
}
@media (max-width: 480px) {
  .gallery-all img {
    height: 100px;
  }
}



/* ================== VIDEO CATEGORIES GRID ================== */
.video-categories-grid {
display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: nowrap; /* wszystko w jednej linii */
  padding: 20px;
}

.video-category-tile {
  display: block;              /* link blokowy */
  position: relative;
  width: 100%;
  max-width: 200px;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;        /* brak podkreślenia */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.video-category-tile video {
  pointer-events: none;         /* ← najważniejsze */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-category-tile span {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 5px #000;
}

.video-category-tile:hover {
  transform: scale(1.1);
  filter: brightness(0.5);
}

/* ================== RESPONSYWNE DOPASOWANIE ================== */
@media (max-width: 1200px) {
  .video-category-tile { height: 360px; }
}
@media (max-width: 992px) {
  .video-category-tile { height: 300px; }
}
@media (max-width: 768px) {
  .video-category-tile { height: 240px; }
}
@media (max-width: 480px) {
  .video-category-tile { height: 180px; }
}


/* ================== VIDEO GALLERY GRID ================== */
.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 20px;
  justify-items: center; /* wyśrodkowanie kafelków w kolumnach */
  justify-items: center;   /* centrowanie elementów w kolumnach */
}

.video-gallery-grid video {
  width: 100%;
  max-width: 150px; /* aby nie rozciągało się za bardzo */
  height: 200px;
  object-fit: cover;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
}

.video-gallery-grid video.loaded {
  opacity: 1;
  transform: translateY(0);
}

.video-gallery-grid video:hover {
  opacity: 0.5;
  transform: scale(1.1);
}


@media (max-width: 768px) {
  .video-gallery-grid video {
    height: 120px;
  }
}
@media (max-width: 480px) {
  .video-gallery-grid video {
    height: 100px;
  }
}

/* =================== MODAL / PEŁNE VIDEO =================== */
#videoModal {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#videoModal.show {
  display: flex;
}

#videoModal video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* X do zamykania */
#videoModal .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1010;
}



/* ================== CONTACT PAGE ================== */
.contact-container {
  max-width: 800px;
  margin: 20px auto 100px auto;
  padding: 20px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-container.loaded { opacity: 1; transform: translateY(0); }

.contact-container h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(24px, 5vw, 36px);
  color: #00f0d4;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-container h2.loaded { opacity: 1; transform: translateY(0); }

.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-container input:not([name="instagram"]),
.contact-container textarea,
.contact-container button {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-container input:not([name="instagram"]).loaded,
.contact-container textarea.loaded,
.contact-container button.loaded { opacity: 1; transform: translateY(0); }

.contact-container input,
.contact-container textarea {
  padding: 12px;
  border-radius: 4px;
  border: none;
  font-size: 16px;
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  transition: background-color 0.3s ease;
}

.contact-container input:focus,
.contact-container textarea:focus { background-color: rgba(255,255,255,0.2); outline: none; }

.contact-container button {
  padding: 12px;
  border-radius: 4px;
  border: none;
  font-size: 18px;
  font-family: 'Bebas Neue', sans-serif;
  background-color: #00f0d4;
  color: #000;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-container button:hover { background-color: #e3c400; transform: scale(1.05); }

/* Instagram field */
.instagram-input-wrapper {
  position: relative;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.instagram-input-wrapper.loaded { opacity: 1; transform: translateY(0); }

.instagram-input-wrapper input {
  width: 100%;
  box-sizing: border-box;
  padding-left: 25px;
  font-size: 16px;
  height: 40px;
  border-radius: 4px;
  border: none;
  background-color: rgba(255,255,255,0.1);
  color: #fff;
}

.instagram-input-wrapper::before {
  content: "@";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #888;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.instagram-input-wrapper.loaded::before { opacity: 1; }

/* ================== STOPKA ================== */
footer {
  position: fixed; /* przyklejona do dołu ekranu */
  bottom: 0; left: 0;
  width: 100%; /* pełna szerokość */
  background-color: rgba(17, 17, 17, 0.5); /* półprzezroczyste tło */
  color: #fff; /* kolor tekstu */
  font-size: clamp(8px, 2vw, 12px); /* 🔹 Responsywny rozmiar czcionki:
   - 8px → minimalny rozmiar czcionki (nie mniejszy niż 8px na bardzo małych ekranach)
   - 2vw → dynamiczna wartość zależna od szerokości ekranu (2% szerokości widoku)
   - 12px → maksymalny rozmiar czcionki (nie większy niż 12px na dużych ekranach) */
  text-align: center;
  padding: 8px 0; /* padding góra-dół */
  z-index: 9999; /* nad resztą strony */
}

footer .social-icons {
  display: flex; /* flexbox dla ikon */
  justify-content: center; /* centrowanie */
  gap: 30px; /* odstęp między ikonami */
  font-size: clamp(20px, 8vw, 30px); /* responsywny rozmiar ikon */
  margin-bottom: 10px;
}

footer .social-icons a {
  color: #fff; /* kolor ikon */
  transition: all 0.3s ease; /* animacja hover */
}

footer .social-icons a:hover {
  transform: scale(1.3); /* powiększenie przy hover */
}

footer .social-icons a:hover .fa-instagram { color: #E4405F; } /* kolor Instagram przy hover */
footer .social-icons a:hover .fa-facebook-f { color: #1877F2; } /* kolor Facebook przy hover */
footer .social-icons a:hover .fa-envelope { color: #ffcc00; } /* kolor mail przy hover */
footer .social-icons a:hover .fa-tiktok { color: #50ba26; }
footer .social-icons a:hover .fa-x-twitter { color: #1DA1F2; } /* kolor X przy hover */