/* CSS Custom Properties for Consistency */
:root {
    --container-max-width: 1440px;
    --container-padding: clamp(1rem, 5vw, 3rem);
    --header-height: clamp(50px, 10vh, 80px);
    
    /* Typography Scale */
    --text-xs: clamp(0.75rem, 1vw, 0.875rem);
    --text-sm: clamp(0.875rem, 1.2vw, 1rem);
    --text-base: clamp(1rem, 1.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 2vw, 1.5rem);
    --text-xl: clamp(1.5rem, 3vw, 2rem);
    --text-2xl: clamp(2rem, 4vw, 3rem);
    --text-hero: clamp(2.5rem, 8vw, 6rem);
    
    /* Spacing Scale */
    --space-xs: clamp(0.25rem, 1vw, 0.5rem);
    --space-sm: clamp(0.5rem, 2vw, 1rem);
    --space-md: clamp(1rem, 3vw, 1.5rem);
    --space-lg: clamp(1.5rem, 4vw, 2rem);
    --space-xl: clamp(2rem, 5vw, 3rem);
    --space-2xl: clamp(3rem, 8vw, 5rem);
}

@font-face {
    font-family: 'Alerion';
    src: url('https://243122109.fs1.hubspotusercontent-na2.net/hubfs/243122109/Aileron-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.bio-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(2rem, 4vw, 6rem); /* More predictable gap */
  padding: 4vh clamp(5vw, 8vw, 12vw);
/*   max-width: 1200px; */
  margin: 0 auto;  
}

/* Image Card - Fixed dimensions */
.bio-image-container {
  width: clamp(200px, 20vw, 300px);
  height: clamp(200px, 20vw, 300px);
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid grey;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text Container - Two vertical cards */
.bio-content {
  flex: 1;
  max-width: 70%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(0.5rem, 1vh, 1.5rem);
}

.bio-text {
  font-size: clamp(14px, 1.2vw, 22px);
  font-family: 'Alerion', Arial, sans-serif;
  line-height: 1.4;
  color: black;
  margin: 0;
  padding: 1vh 1.5vh;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: justify;
  height: auto; /* Use min-height instead of height */
  display: flex;
  box-sizing: border-box;
}

/* First text card - aligns with top of image */
.bio-text:first-child {
  align-self: flex-start;
}

/* Second text card - aligns with bottom of image */
.bio-text:last-child {
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
}


/* Responsive breakpoints */
@media (max-width: 1024px) and (min-width: 700px) {
  .bio-container {
    flex-direction: column; /* Stack vertically */
    align-items: center; /* Center horizontally */
    gap: 3vh;
    padding: 3vh 8vw;
    min-height: auto;
  }
  
  .bio-image-container {
    width: clamp(180px, 25vw, 280px);
    height: clamp(180px, 25vw, 280px);
    order: 1; /* Image first */
  }
  
  .bio-content {
    max-width: 90%; /* Increase from 80% for better centering */
    height: auto;
    min-height: 200px;
    order: 2; /* Text second */
  }
  
  .bio-text {
    font-size: clamp(14px, 2vw, 18px); /* Proper font size */
    height: auto;
    min-height: 80px;
    text-align: center; /* Center the text content */
  }
}

@media (max-width: 768px) {
  .bio-container {
    flex-direction: column;
    align-items: center;
    gap: 3vh;
    padding: 3vh 5vw;
    min-height: auto;
  }
  
  .bio-image-container {
    width: clamp(150px, 40vw, 250px);
    height: clamp(150px, 40vw, 250px);
    order: 1;
  }
  
  .bio-content {
    max-width: 100%;
    height: auto;
    min-height: 150px;
    gap: 2vh;
    order: 2;
  }
  
  .bio-text {
    height: auto;
    min-height: 60px;
    text-align: center;
    padding: 1vh 1.5vh;
  }
}

/*uncomment to change text and bio positions  */
 @media (min-width: 1025px) {
  .bio-container {
    flex-direction: row-reverse; /* Reverses entire container order 
  }
} 