/*
  Leah Cortez Studio Art - Bio Page Stylesheet
  ---
  This file contains the specific styles for the Bio page (bio/index.html),
  primarily focusing on the two-column layout for the artist's photo and statement.
*/

/* --------------------
   1. BIO PAGE CONTAINER
   -------------------- */

.bio-page {
  /*
    Adds padding to the top and bottom of the main content area to give it space
    from the header and footer.
  */
  padding: 4rem 0;
  min-height: 60vh;
  width: 100%;
  box-sizing: border-box;
}

.bio-container {
  /*
    This container uses CSS Flexbox to create the side-by-side layout.
  */
  display: flex !important;
  position: relative;
  z-index: 10;
  /*
    'align-items: stretch' makes both columns have the same height,
    stretching them to match the tallest column.
  */
  align-items: stretch;
  /*
    Sets the gap between the flex items (the image and text columns).
  */
  gap: 3rem;
  /*
    Limits the maximum width of the container to maintain readability on large screens.
  */
  max-width: 1200px;
  /*
    Centers the container horizontally within the page.
  */
  margin: 0 auto;
  /*
    Adds padding on the left and right, which is especially important on smaller screens.
  */
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* --------------------
   2. BIO COLUMNS
   -------------------- */

.bio-image-column {
  /*
    The 'flex' property is a shorthand. 'flex: 1' would make each column
    take up equal space. Here, we are defining a specific width for the image column.
    It will take up 40% of the available width in the flex container.
  */
  flex: 0 0 40%; /* flex-grow, flex-shrink, flex-basis */
  /*
    Ensures the column takes the full height available (matches the text column height)
  */
  display: flex;
  flex-direction: column;
}

.bio-image-column img {
  /*
    Ensures the image scales to fill the entire width of its container.
  */
  width: 100%;
  /*
    Sets a maximum height to prevent the image from becoming too tall
  */
  max-height: 600px;
  /*
    Maintains aspect ratio while filling the container, but won't stretch beyond natural proportions
  */
  object-fit: cover;
  /*
    'display: block' removes any extra space below the image that can sometimes
    be added by the browser for inline elements.
  */
  display: block;
  /*
    Adds a decorative border using one of the site's accent colors.
  */
  border: 4px solid var(--color-secondary-accent);
}

.bio-text-column {
  /*
    This column will take up 60% of the available width.
  */
  flex: 0 0 60%;
}

.bio-text-column h1 {
  /*
    Sets a specific font size for the main heading on this page.
  */
  font-size: 2.5rem;
  /*
    Adds margin below the heading to push the paragraph text down.
  */
  margin-bottom: 1.5rem;
  text-align: left;
}

.bio-text-column p {
  /*
    Sets the font size for the artist statement paragraphs for readability.
  */
  font-family: var(--font-body), 'IM Fell English', serif;
  font-size: 1rem;
  /*
    Improved line height for better readability and more compact text.
  */
  line-height: 1.6;
  /*
    Reduced vertical space between paragraphs for more compact layout.
  */
  margin-bottom: 1rem;
  font-weight: 400;
}

/* --------------------
   2.5. BIO SECTIONS STYLING
   -------------------- */

.bio-section {
  /*
    Individual bio section styling for better organization
  */
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(248, 200, 208, 0.15);
}

.bio-section:last-of-type {
  /*
    Remove border from last section
  */
  border-bottom: none;
  margin-bottom: 1.5rem;
}

.bio-section h2 {
  /*
    Section heading styles
  */
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--color-primary-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  font-weight: 600;
  position: relative;
}

.bio-section h2::before {
  /*
    Decorative element before section headings
  */
  content: '✦';
  color: var(--color-secondary-accent);
  margin-right: 0.75rem;
  font-size: 0.9em;
}

.bio-section p {
  /*
    Section paragraph styling
  */
  font-family: var(--font-body), 'IM Fell English', serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
  color: #e8e8e8;
  text-align: justify;
}


/* --------------------
   3. BIO LINKS SECTION
   -------------------- */

.bio-links {
  /*
    Creates a horizontal centered layout for the links under the image
  */
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  padding: 0;
}

/* Hide mobile links on desktop */
.bio-links-mobile {
  display: none !important;
}

.bio-link {
  /*
    Individual link styling with flower SVG on top and text below
  */
  /* Complete reset of any button-like styling */
  all: unset !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0.75rem !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  
  /* Clean design with flower icon */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  
  /* Text styling - better sizing for mobile */
  color: var(--color-primary-accent) !important;
  font-family: var(--font-accent) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

.bio-link::before {
  /* Use actual flower SVG - larger size with pink color */
  content: '' !important;
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  margin-bottom: 0.5rem !important;
  background-image: url('../icons/flower.svg') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: brightness(0) invert(86%) sepia(10%) saturate(500%) hue-rotate(310deg) brightness(1.1) !important;
  transition: all 0.3s ease !important;
}

.bio-link:hover {
  /*
    Hover effects
  */
  color: #ffffff !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  transform: translateY(-2px) !important;
  box-shadow: none !important;
}

.bio-link:hover::before {
  filter: brightness(0) invert(100%) !important;
  transform: scale(1.15) !important;
}


/* --------------------
   4. MODAL LIGHTBOX STYLES
   -------------------- */

.modal {
  /*
    Modal overlay styling
  */
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  /*
    Modal content box styling
  */
  background-color: var(--color-background);
  margin: 10% auto;
  padding: 2rem;
  border: 2px solid var(--color-primary-accent);
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
  animation: slideIn 0.3s ease;
}

.modal-content h2 {
  /*
    Modal heading styling
  */
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary-accent);
}

.modal-content p {
  /*
    Modal text styling
  */
  font-family: var(--font-body), 'IM Fell English', serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 400;
}

.close {
  /*
    Close button styling
  */
  color: var(--color-text);
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: var(--color-primary-accent);
}

/* Accordion Styling */
.accordion-container {
  margin-top: 1.5rem;
}

.accordion-item {
  border: 1px solid var(--color-primary-accent);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: rgba(126, 28, 46, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: rgba(126, 28, 46, 0.2);
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-text);
  font-weight: 600;
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary-accent);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: var(--color-background);
}

.accordion-item.active .accordion-content {
  max-height: 300px;
}

.accordion-content ul {
  margin: 0;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  list-style: none;
}

.accordion-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--color-text);
  line-height: 1.4;
}

.accordion-content li::before {
  content: "•";
  color: var(--color-primary-accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.accordion-content li:last-child {
  margin-bottom: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    transform: translateY(-50px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}


/* --------------------
   5. MEDIA QUERIES (for Responsiveness)
   -------------------- */

/*
  This media query targets tablet and mobile screen sizes (768px and below).
*/
@media (max-width: 768px) {
  .bio-container {
    /*
      Changes the flex direction from horizontal ('row') to vertical ('column').
      This stacks the image on top of the text on smaller screens.
    */
    flex-direction: column;
  }

  .bio-image-column,
  .bio-text-column {
    /*
      Resets the flex-basis for both columns. By default, they will now take up
      the full width of the container.
    */
    flex-basis: 100%;
  }

  .bio-text-column h1 {
    /*
      Reduces the font size of the heading on smaller screens to save space.
    */
    font-size: 2.5rem;
    text-align: center;
  }
  
  .modal-content {
    /*
      Adjust modal for mobile screens
    */
    width: 90%;
    margin: 20% auto;
    padding: 1.5rem;
  }
  
  .modal-content h2 {
    /*
      Smaller heading on mobile
    */
    font-size: 1.5rem;
  }
  
  .accordion-header {
    /*
      Adjust accordion header padding for mobile
    */
    padding: 0.8rem 1rem;
  }
  
  .accordion-header h3 {
    /*
      Smaller accordion titles on mobile
    */
    font-size: 1rem;
  }
  
  .accordion-content ul {
    /*
      Adjust padding for mobile
    */
    padding: 1rem;
  }
  
  .accordion-content li {
    /*
      Smaller text on mobile
    */
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }
}

/* --------------------
   CV SECTION
   -------------------- */

.cv-section-container {
  max-width: 800px;
  margin: 4rem auto 0;
  padding: 0 2rem;
}

.cv-content {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-content h1 {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  color: var(--color-primary-accent);
  text-align: center;
  margin-bottom: 2rem;
}

.cv-download-top, .cv-download-bottom {
  text-align: center;
  margin: 2rem 0;
}

.cv-download-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-section {
  margin-bottom: 2.5rem;
}

.cv-section h2 {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--color-primary-accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-accent);
}

.cv-entry {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(214, 51, 132, 0.3);
}

.cv-entry h3 {
  font-size: 1.1rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.cv-entry p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.skills-list, .tools-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li, .tools-list li {
  background: rgba(214, 51, 132, 0.1);
  color: var(--color-text-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--color-primary-accent);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.skills-list li:hover, .tools-list li:hover {
  background: rgba(214, 51, 132, 0.2);
  transform: translateX(5px);
}

.cv-download-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--color-primary-accent);
  color: var(--color-background);
  font-family: var(--font-accent);
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--color-primary-accent);
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.cv-download-btn:hover {
  background-color: #7e1c2e;
  color: #f5c6d6;
  border-color: #7e1c2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.download-icon {
  font-size: 1.1rem;
}

/* Mobile responsiveness for CV section */
@media (max-width: 768px) {
  .cv-section-container {
    margin-top: 2rem;
    padding: 0 1rem;
  }
  
  .cv-content {
    padding: 2rem 1.5rem;
  }
  
  .cv-content h1 {
    font-size: 2rem;
  }
  
  .cv-section h2 {
    font-size: 1.3rem;
  }
  
  .skills-list, .tools-list {
    grid-template-columns: 1fr;
  }
  
  .cv-download-btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}

/* --------------------
   MODAL CONTENT STYLING
   -------------------- */

/* Modal content styling for new modals */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.service-category h3 {
  color: var(--color-primary-accent);
  margin-bottom: 0.75rem;
  font-family: var(--font-headings);
  font-size: 1.2rem;
}

.service-category ul {
  list-style: none;
  padding: 0;
}

.service-category li {
  padding: 0.25rem 0;
  color: var(--color-text);
  border-bottom: 1px solid rgba(248, 200, 208, 0.1);
  font-family: var(--font-body), 'IM Fell English', serif;
  font-weight: 400;
}

.service-category li:last-child {
  border-bottom: none;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.process-step h3 {
  color: var(--color-primary-accent);
  margin-bottom: 0.5rem;
  font-family: var(--font-headings);
}

.process-step p {
  color: var(--color-text);
  line-height: 1.6;
  font-family: var(--font-body), 'IM Fell English', serif;
  font-weight: 400;
}

.working-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.working-section h3 {
  color: var(--color-primary-accent);
  margin-bottom: 0.5rem;
  font-family: var(--font-headings);
}

.working-section p {
  color: var(--color-text);
  line-height: 1.6;
  font-family: var(--font-body), 'IM Fell English', serif;
  font-weight: 400;
}

.working-section a {
  color: var(--color-primary-accent);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.working-section a:hover {
  color: var(--color-secondary-accent);
}

@media (max-width: 768px) {
  /* Remove bottom padding since links aren't fixed anymore */
  .bio-page {
    padding-bottom: 4rem;
  }
  
  /* Hide the desktop links (in image column) on mobile */
  .bio-image-column .bio-links {
    display: none !important;
  }
  
  /* Show and style the mobile links (in text column) */
  .bio-links-mobile {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1.5rem 0.25rem;
    background: transparent;
  }
  
  .bio-links-mobile .bio-link {
    /* Mobile styling with flower SVG on top and text below - inherit from desktop but ensure mobile layout */
    all: unset !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    
    /* No button styling - clean design */
    background: none !important;
    border: none !important;
    padding: 0.75rem !important;
    min-width: auto !important;
    
    /* Text styling - better sizing for mobile */
    color: var(--color-primary-accent) !important;
    font-family: var(--font-accent) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
  }
  
  .bio-links-mobile .bio-link::before {
    /* Use actual flower SVG - pink color, good size for mobile */
    content: '' !important;
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    margin-bottom: 0.5rem !important;
    background-image: url('../icons/flower.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    filter: brightness(0) invert(86%) sepia(10%) saturate(500%) hue-rotate(310deg) brightness(1.1) !important;
    transition: all 0.3s ease !important;
  }
  
  .bio-links-mobile .bio-link:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    transform: translateY(-2px) !important;
    box-shadow: none !important;
  }
  
  .bio-links-mobile .bio-link:hover::before {
    filter: brightness(0) invert(100%) !important;
    transform: scale(1.15) !important;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
