/* =================================================================== */
/* COMPONENT: Bio Modal                                                 */
/* FILE:      bio-modal.css                                             */
/* =================================================================== */

/* * TABLE OF CONTENTS
 * -------------------------------------------------------------------
 * 1. DIALOG CONTAINER (.bio-modal)
 * 2. CARD & WRAPPERS (.bio-card-inner, .bio-card-inner-wrapper-*)
 * 3. CLOSE BUTTON & BIOWAVE (.close-modal-btn, .bio-wave-bg)
 * 4. LAYERED IMAGE ELEMENTS (.bio-modal .c-layered-image , .bio-modal .c-layered-image__bg
 *      .bio-modal .c-layered-image__frame, .bio-profile-pic)
 * 5. BIO CONTENT & TYPOGRAPHY (.bio-content, h2, .title, .bio-text)
 * 6. MEMBER TRIGGER INTERACTION (.member-trigger)
 */

/* =========================================
   1. DIALOG CONTAINER
   ========================================= */
dialog.bio-modal[open] {
  margin: auto;
  inset: 0;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 264px;
  max-height: 85vh;
  height: auto;
  overflow-y: auto;
  scroll-behavior: smooth;
}

dialog.bio-modal[open]::-webkit-scrollbar {
  width: 6px;
}

dialog.bio-modal[open]::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

dialog.bio-modal[open]::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

@media (min-width: 576px) {
  dialog.bio-modal[open] {
    max-width: 437px;
  }
}
@media (min-width: 768px) {
  dialog.bio-modal[open] {
    max-width: 532px;
  }
}
@media (min-width: 992px) {
  dialog.bio-modal[open] {
    max-width: 608px;
  }
}
@media (min-width: 1200px) {
  dialog.bio-modal[open] {
    max-width: 710px;
  }
}
@media (min-width: 1400px) {
  dialog.bio-modal[open] {
    max-width: 797px;
  }
}
@media (min-width: 1920px) {
  dialog.bio-modal[open] {
    max-width: 966px;
  }
}

/* =========================================
   2. CARD & WRAPPERS
   ========================================= */
.bio-card-inner {
  background: #fff;
  position: relative;
  text-align: center;
  border-radius: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  gap: 2rem;
  justify-content: flex-start;
  align-items: flex-start;
}

.bio-card-content {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========================================
   3. CLOSE BUTTON & BIOWAVE
   ========================================= */
/* --- CLOSE BUTTON --- */
.close-modal-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 8px;
  background: none;
  border: none;
  /* font-size: 12px; */
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--Neutral-Indigo-1000);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  /* z-index: 10; */
}

.close-modal-btn svg {
  width: 12px;
  height: 15px;
  display: block;
}

.close-modal-btn:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

/* --- THE WAVE HEADER --- */
.bio-wave-bg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 193px;
  background-image: url(/assets/images/about-us/about-us-wave.svg);
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
  transform: rotate(96deg) scale(1.5);
  z-index: 0;
}

@media (min-width: 576px) {
  .bio-wave-bg {
    height: 346px;
    margin-top: -89px;
  }
}
@media (min-width: 768px) {
  .bio-wave-bg {
    height: 384px;
    margin-top: -103px;
  }
}
@media (min-width: 992px) {
  .bio-wave-bg {
    height: 435px;
    margin-top: -118px;
  }
}
@media (min-width: 1200px) {
  .bio-wave-bg {
    height: 509px;
    margin-top: -139px;
  }
}
@media (min-width: 1400px) {
  .bio-wave-bg {
    height: 568px;
    margin-top: -155px;
  }
}
@media (min-width: 1920px) {
  .bio-wave-bg {
    height: 685px;
    margin-top: -188px;
  }
}

/* =========================================
   4. LAYERED IMAGE ELEMENTS
   ========================================= */
.bio-modal .c-layered-image {
  top: 5px;
  --bg-size: 112.779px;
}

.bio-modal .c-layered-image__bg {
  width: 112.779px;
  height: 110.71px;
}
.bio-modal .c-layered-image__frame {
  top: 1%;
  left: 53%;
  right: auto;
  transform: translateX(-50%);
  width: 106.514px;
  height: 104.559px;
}
.bio-profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
@media (min-width: 576px) {
  .bio-modal .c-layered-image {
    top: 5px;
    --bg-size: 160px;
  }
  .bio-modal .c-layered-image__bg {
    width: 159.824px;
    height: 156.892px;
  }
  .bio-modal .c-layered-image__frame {
    width: 150.945px;
    height: 148.175px;
  }
}
@media (min-width: 768px) {
  .bio-modal .c-layered-image {
    top: 5px;
    --bg-size: 206px;
  }
  .bio-modal .c-layered-image__bg {
    width: 205.395px;
    height: 201.626px;
  }
  .bio-modal .c-layered-image__frame {
    width: 193.984px;
    height: 190.425px;
  }
}
@media (min-width: 992px) {
  .bio-modal .c-layered-image {
    top: 5px;
    --bg-size: 235px;
  }
  .bio-modal .c-layered-image__bg {
    width: 234.63px;
    height: 230.325px;
  }
  .bio-modal .c-layered-image__frame {
    width: 221.595px;
    height: 217.529px;
  }
}
@media (min-width: 1200px) {
  .bio-modal .c-layered-image {
    top: 5px;
    --bg-size: 275px;
  }
  .bio-modal .c-layered-image__bg {
    width: 273.5px;
    height: 268.482px;
  }
  .bio-modal .c-layered-image__frame {
    width: 258.305px;
    height: 253.566px;
  }
}
@media (min-width: 1400px) {
  .bio-modal .c-layered-image {
    top: 5px;
    --bg-size: 323px;
  }
  .bio-modal .c-layered-image__bg {
    width: 322.624px;
    height: 316.704px;
  }
  .bio-modal .c-layered-image__frame {
    width: 304.7px;
    height: 299.11px;
  }
}
@media (min-width: 1920px) {
  .bio-modal .c-layered-image {
    top: 5px;
    --bg-size: 392px;
  }
  .bio-modal .c-layered-image__bg {
    width: 391px;
    height: 383.826px;
  }
  .bio-modal .c-layered-image__frame {
    width: 369.278px;
    height: 362.502px;
  }
}

/* =========================================
   5. BIO CONTENT & TYPOGRAPHY
   ========================================= */
.bio-content {
  position: relative;
  z-index: 5;
  padding: 0 40px 30px 40px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin: 0 auto;
  gap: 10px;
}

/* --- H2 (NAME) --- */
.bio-content h2 {
  font-weight: 700;
  letter-spacing: 0.85px;
  color: var(--Neutral-Indigo-1000);
  text-align: center;
  line-height: normal;
  width: 100%;
  max-width: 181px;
  margin: 0 auto 4px auto;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .bio-content h2 {
    max-width: 248px;
    font-size: 19.6px;
  }
}
@media (min-width: 1200px) {
  .bio-content h2 {
    max-width: 273px;
    font-size: 22.4px;
  }
}
@media (min-width: 1920px) {
  .bio-content h2 {
    max-width: 500px;
    font-size: 34px;
  }
}

/* --- TITLE --- */
.bio-content .title {
  /* font-family: var(--font-primary), sans-serif;
  font-size: 14px; */
  font-weight: 500;
  letter-spacing: 0.7px;
  color: var(--Neutral-Indigo-1000);
  text-align: center;
  line-height: normal;
  display: block;
  width: 100%;
  max-width: 181px;
  margin: 0 auto 20px auto;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .bio-content .title {
    max-width: 220px;
    font-size: 16.8px;
  }
}
@media (min-width: 1200px) {
  .bio-content .title {
    max-width: 233px;
    font-size: 19.2px;
  }
}
@media (min-width: 1920px) {
  .bio-content .title {
    max-width: 331px;
    font-size: 28px;
  }
}

/* --- BIO TEXT --- */
.bio-content .bio-text {
  font-weight: 400;
  letter-spacing: 0.6px;
  color: #000000;
  line-height: 1.6;
  text-align: left;
  margin: 0;
  width: 100%;
  overflow-y: auto;
  padding-right: 10px;

  /* Smooth scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

/* =========================================
   6. MEMBER TRIGGER INTERACTION
   ========================================= */
.member-trigger {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.member-trigger:hover {
  transform: translateY(-5px);
  filter: brightness(1.05);
}

.member-trigger:active {
  transform: translateY(-2px);
}
