body {
  margin: 0;
  background-color: #fdfdfd;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Minimalist Close Button */
.close-container {
  padding: 40px;
  display: flex;
  justify-content: flex-end;
}

.close-btn {
  text-decoration: none;
  color: #111;
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #888;
}

/* Main Container */
.about-container {
  margin: 0;
  padding: 120px 40px 20px 40px;
  flex: 1;
  display: flex;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

/* Grid Layout */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (min-width: 900px) {
  .about-grid {
    gap: 60px;
  }
}

/* Split Layout */
.about-content-split {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  width: 100%;
}

@media (min-width: 900px) {
  .about-content-split {
    flex-direction: row;
    align-items: stretch;
  }

  .about-text {
    flex: 0 0 40%;
    max-height: 65vh;
  }

  .about-image {
    flex: 0 0 60%;
    width: 100%;
  }
}

/* Image & Carousel Styling */
.about-image {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.bio-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-track img.profile-photo {
  min-width: 50%;
  /* Show 2 images at once */
  max-width: 50%;
  height: 65vh;
  /* Dynamic height based on screen size */
  object-fit: cover;
  border-radius: 0;
  transform: none;
  border-right: 2px solid #fff;
  /* Separator between images */
}

.carousel-track img.profile-photo:last-child {
  border-right: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  box-shadow: none;
  opacity: 0.6;
}

.carousel-btn:hover {
  background: transparent;
  opacity: 1;
}

.carousel-btn::after {
  content: '';
  display: inline-block;
  width: 25px;
  height: 25px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
}

.carousel-prev {
  left: 10px;
}

.carousel-prev::after {
  transform: rotate(-135deg);
  margin-left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-next::after {
  transform: rotate(45deg);
  margin-right: 10px;
}

/* Text Styling */
.about-text {
  font-family: 'Inter', sans-serif;
  color: #111;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 15px;
  height: 100%;
}

/* Hide scrollbar for cleaner look if scrolling */
.about-text::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.bio-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 25px;
  color: #111;
  font-style: normal;
  text-align: left;
  letter-spacing: 0;
  line-height: 1.1;
  flex-shrink: 0;
}

.hero_par {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 15px;
  color: #444;
  font-weight: 400;
  font-style: normal;
}

/* Contact Button */
.about-contact-wrapper {
  margin-top: 3rem;
}

.btn-contact {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: #111;
  border: 1px solid #111;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn-contact:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Scroll Arrow Indicator */
.scroll-arrow {
  position: sticky;
  bottom: 0px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 80px;
  background: linear-gradient(to bottom, rgba(253, 253, 253, 0) 0%, rgba(253, 253, 253, 1) 90%);
  padding-bottom: 15px;
  cursor: pointer;
  color: #111;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.scroll-arrow svg {
  animation: scrollBounce 2.5s infinite ease-in-out;
}

@keyframes scrollBounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-8px);
  }

  60% {
    transform: translateY(-4px);
  }
}

/* Animations */
.fade-in-left {
  opacity: 0;
  animation: fadeInLeft 1s ease-out forwards;
}

.fade-in-right {
  opacity: 0;
  animation: fadeInRight 1s ease-out forwards;
  animation-delay: 0.3s;
  /* Text comes in slightly after image */
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Footer Styling */
footer {
  text-align: center;
  padding: 10px 1rem;
  background-color: transparent;
  color: #888;
  font-size: 0.8rem;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .about-container {
    /* Override padding on mobile screens */
    padding: 100px 20px 40px 20px;
  }

  .bio-title {
    /* Prevent title from breaking into multiple cramped lines */
    font-size: 2.5rem;
  }

  .carousel-track img.profile-photo {
    /* Full width on mobile instead of triptych */
    min-width: 100%;
    max-width: 100%;
    height: 50vh;
    border-right: none;
  }

  .about-grid {
    gap: 20px;
  }
}