/* BIO PAGE */

/* Page wants transparent background + transparent navbar */
.contact-page,
.contact-page body {
  background: transparent !important;
}

.contact-page .navbar {
  background-color: transparent;
  box-shadow: none;
}

/* Page section adjustments */
.contact-page .page-section {
  padding-top: 0;
  padding-bottom: 0;
  background: transparent !important;
}

/* Layout wrapper */
.contact-full {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100vh;
  overflow: visible;
  background: transparent !important;
}

/* Background photo */
.bio-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("../images/photos/BIO_PHOTOS.jpg");
  background-size: cover !important;
  background-position: center !important;
  background-color: #000;
  z-index: 1;
  pointer-events: none;
}

/* Overlay */
.contact-page .bio-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: auto;
  opacity: 1 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0 60px 100px;
}

/* Bio box + text */
.bio-box {
  position: relative;
  z-index: 3;
  background: transparent;
  border: none;
  padding: 30px 35px;
  max-width: 450px;
  border-radius: 0;
  color: #fff;
  margin-left: 0;
}

.bio-box .bio-text {
  display: block;
}

.bio-box .bio-text p {
  color: #fff;
  margin-bottom: 20px;
}

/* Toggle button (opcjonalnie: usuń też z HTML) */
.bio-toggle {
  display: none;
}

/* Language select */
.bio-lang-select {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  padding: 4px 16px;
  background: transparent;
  color: #fff;
  border: none;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: auto;
  min-width: 120px;
  max-width: 200px;
  cursor: pointer;
  letter-spacing: 1px;
  transition:
    opacity 0.3s,
    transform 0.3s,
    color 0.3s;
  font-weight: 400;
}

.bio-lang-select:hover,
.bio-lang-select:focus {
  color: #ffd700;
  background: transparent;
  outline: none;
  opacity: 0.7;
  transform: scale(1.15);
}

/* Footer pinned */
.contact-page footer {
  position: fixed;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 6;
  pointer-events: none;
  border-top: none;
}

/* Responsive BIO */
@media (max-width: 768px) {
  .contact-page .bio-overlay {
    min-height: auto !important;
    padding: 0px 16px 24px 16px !important;
    align-items: center !important;
    z-index: 2 !important;
  }

  .contact-page .bio-box {
    padding: 16px 18px !important;
    margin-top: 0.3cm !important;
    background: transparent !important;
    width: 92vw;
    max-width: 640px;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
  }

  .contact-page .bio-box .bio-text p {
    font-size: 13px !important;
    line-height: 1.38 !important;
    margin-bottom: 8px !important;
    text-align: left !important;
  }

  .bio-lang-wrap {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 12px !important;
    z-index: 3 !important;
    pointer-events: auto !important;
  }

  .bio-lang-select {
    position: static !important;
    transform: none !important;
    font-size: 11px !important;
    padding: 6px 10px !important;
    min-width: 120px !important;
    max-width: 220px !important;
    background: rgba(0, 0, 0, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 8px !important;
    backdrop-filter: blur(6px);
  }
}

@media (max-width: 480px) {
  .contact-page .bio-box {
    width: 92vw !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: transparent !important;
    padding: clamp(10px, 3vw, 14px) !important;
    transform: none !important;
    text-align: left !important;
  }

  .contact-page .bio-box .bio-text p {
    font-size: clamp(11px, 3.3vw, 13.8px) !important;
    line-height: 1.35 !important;
    margin-bottom: clamp(4px, 1.3vw, 8px) !important;
    text-align: left !important;
  }

  .bio-lang-select {
    font-size: clamp(10px, 2.4vw, 12px) !important;
    padding: clamp(4px, 1.5vw, 8px) clamp(8px, 2vw, 12px) !important;
    min-width: 120px !important;
  }
}

@media (max-width: 375px) {
  .bio-lang-wrap {
    bottom: auto !important;
  }
}

.contact-page .bio-overlay {
  position: fixed;
  top: 60px;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 40px 0 40px 100px;
}

@media (max-width: 768px) {
  .contact-page .bio-overlay {
    top: 100px;
  }
}
