/* Basic styles */
body {
  font-family: "Roboto Condensed", sans-serif;
  line-height: 1.6;
  color: #333;
}

.navbar {
  transition: all 0.3s ease-in-out;
}

.navbar-scrolled {
  background-color: rgba(0, 0, 0, 0.9) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cover {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.section-fade-in-out {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.section-fade-in-out.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Logo animation */
#logo {
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

/* Contact buttons */
.contact-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.contact-button {
  margin: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.contact-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background-color: #000;
  color: #fff;
  padding: 50px 0;
}

.soclink {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.soclink li {
  margin: 0 10px;
}

.soclink a {
  color: #fff;
  font-size: 24px;
  transition: color 0.3s ease-in-out;
}

.soclink a:hover {
  color: #ccc;
}

/* Cookie Consent Styles */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 0.5rem;
  z-index: 9999;
  border-radius: 4px;
  width: 90%;
  max-width: 400px;
  font-size: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  padding: 0.5rem;
  text-align: center;
}

.cookie-content p {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.3;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.cookie-buttons button {
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.7rem;
  border: none;
  min-width: 80px;
}

.cookie-buttons button:hover {
  opacity: 0.9;
}

#accept-cookies {
  background-color: #fff;
  color: #000;
}

#reject-cookies {
  background-color: transparent;
  border: 1px solid #fff !important;
  color: #fff;
}

@media (max-width: 576px) {
  .cookie-consent {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
}

/* Headings */
h2.display-3,
h2.display-4 {
  color: #fff;
}

h4 {
  color: #fff;
}

p {
  color: #fff;
}

/* Random Logos Section */
.random-logos {
  margin-top: 10rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  background-color: #000;
}

.random-logos .row {
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.logo-wrapper {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 5px;
}

.logo-img {
  height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 1.2s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.logo-img.blur-out {
  filter: grayscale(100%) blur(10px);
  opacity: 0;
  transition: all 1.2s ease;
}

.logo-img.blur-in {
  filter: grayscale(100%) blur(0);
  opacity: 0.7;
}

.logo-img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .random-logos .row {
    flex-wrap: nowrap;
    margin: 0 auto;
    max-width: 100%;
  }

  .random-logos .col-md-2 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 2px;
  }

  .random-logos .col-md-2:nth-child(n + 5) {
    display: none;
  }

  .logo-wrapper {
    height: 50px;
  }

  .logo-img {
    height: 35px;
  }
}

/* Portfolio Filter Buttons */
.filter-button {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
  background: #fff;
  color: #000;
}

#portfoliobox {
  margin-bottom: 2rem;
  text-align: center;
}

.welcome {
  margin-top: 2rem;
}

.toggle-button {
  border-radius: 100%;
  opacity: 0.8;
  background-color: rgba(255, 255, 255, 0.2);
}

.suntory-alo-phone.suntory-alo-green .suntory-alo-ph-circle {
  border-color: #bfebfc;
  border: 2px solid rgba(30, 30, 30, 0.1);
}

#tlo1 {
  margin-top: -5rem;
  background-color: #000;
  padding: 1rem;
  border-radius: 5px;
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

@keyframes glitch {
  0% {
    filter: blur(20px) brightness(0.5);
    transform: translate(0);
    opacity: 0.3;
  }
  15% {
    filter: blur(15px) brightness(0.7);
    transform: translate(-2px, 2px);
    opacity: 0.5;
  }
  30% {
    filter: blur(10px) brightness(0.9);
    transform: translate(2px, -2px);
    opacity: 0.7;
  }
  45% {
    filter: blur(5px) brightness(1.1);
    transform: translate(-2px, -2px);
    opacity: 0.8;
  }
  60% {
    filter: blur(2px) brightness(1.2);
    transform: translate(2px, 2px);
    opacity: 0.9;
  }
  75% {
    filter: blur(1px) brightness(1.1);
    transform: translate(-1px, 1px);
    opacity: 0.95;
  }
  100% {
    filter: blur(0px) brightness(1);
    transform: translate(0);
    opacity: 1;
  }
}

.logo-glitch {
  animation: glitch 2s infinite;
  transition: all 0.3s ease;
  position: relative;
}

.logo-glitch::before,
.logo-glitch::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  mix-blend-mode: overlay;
  animation: glitch 2s infinite;
}

.logo-glitch::before {
  animation-delay: 0.1s;
  filter: blur(15px);
  opacity: 0.4;
}

.logo-glitch::after {
  animation-delay: 0.2s;
  filter: blur(10px);
  opacity: 0.3;
}

.logo-glitch:hover {
  animation: none;
  filter: blur(0) brightness(1);
}

.logo-glitch:hover::before,
.logo-glitch:hover::after {
  animation: none;
  opacity: 0;
}

/* Podcast Section Styles */
#podcast {
  padding: 6rem 0;
  margin-top: 0px;
  top: 0px;
  background-color: var(--dark-bg);
  color: #fff;
  background-image: url("../images/podcast.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

#podcast::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85); /* Jeszcze ciemniejszy overlay */
  z-index: 1;
}

#podcast .smoke-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

#podcast .smoke-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

#podcast .container {
  position: relative;
  z-index: 2;
}

#podcast h2,
#podcast h3,
#podcast h4,
#podcast p,
#podcast .lead,
#podcast .display-4 {
  color: #fff !important;
  position: relative;
  z-index: 2;
}

#podcast .feature-item {
  padding: 2rem;
  background: transparent;
  border-radius: 10px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  position: relative;
  z-index: 2;
  overflow: hidden;
  min-height: 200px;
  border: none;
  box-shadow: none;
}

#podcast .feature-item i,
#podcast .feature-item h4,
#podcast .feature-item p {
  position: relative;
  z-index: 3;
  color: #fff;
  transition: all 0.5s ease;
}

#podcast .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: none;
  background: transparent;
}

#podcast .feature-item:hover i {
  transform: scale(1.1);
}

#podcast .feature-item:hover h4 {
  transform: translateY(-2px);
}

#podcast .feature-item:hover p {
  transform: translateY(-2px);
}

.podcast-content {
  text-align: center;
}

.podcast-features {
  margin-top: 3rem;
}

.feature-item {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--accent-color);
}

.feature-item h4 {
  margin: 1rem 0;
  font-size: 1.25rem;
}

.podcast-cta {
  margin-top: 3rem;
}

.podcast-cta .btn {
  padding: 1rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.podcast-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  #podcast {
    padding: 4rem 0;
  }

  .feature-item {
    margin-bottom: 1.5rem;
  }
}

/* Expandable content styles */
.collapse-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s ease-in-out;
  opacity: 0;
}

.collapse-content.expanded {
  max-height: 5000px; /* Zwiększona wartość, aby pomieścić wszystkie filmy */
  opacity: 1;
  transition: max-height 0.8s ease-in-out, opacity 0.3s ease-in-out;
}

@keyframes subtle-pulse {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(0);
  }
}

#showMoreBtnTop,
#showMoreBtnBottom {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 100;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

#showMoreBtnTop:hover,
#showMoreBtnBottom:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: translateY(-2px);
}

#showMoreBtnTop i,
#showMoreBtnBottom i {
  transition: transform 0.3s ease;
  animation: subtle-pulse 1.5s ease-in-out infinite;
}

#showMoreBtnBottom i {
  animation: none;
}

/* Fade in animation for videos */
.videoplayer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  margin-bottom: 30px;
  width: 100%;
  height: 0;
  overflow: hidden;
}

.videoplayer video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.videoplayer.visible {
  opacity: 1;
  transform: translateY(0);
}

.videoplayer video[poster] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ensure consistent sizing for all videos in the expandable section */
#moreVideos .videoplayer {
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  position: relative;
  overflow: hidden;
}

#moreVideos .videoplayer video,
#moreVideos .videoplayer video[poster] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#showMoreBtnTop,
#showMoreBtnBottom,
#showMoreBtnTop:hover,
#showMoreBtnBottom:hover {
  background: transparent !important;
  box-shadow: none !important;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#back-to-top:hover {
  opacity: 0.8;
}

#back-to-top i {
  font-size: 2rem;
  transition: transform 0.3s ease;
}

#back-to-top:hover i {
  transform: translateY(-3px);
}
