/* ================================
   ABOUT SECTION STYLES
   ================================ */

.about-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 25;
  /* Lower than overlay-header (30) so header stays visible */
  display: none;
  /* Hidden by default */
  background-color: var(--color-overlay);
  overflow: hidden;
}

.about-split-container {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: row;
}

/* Left Side - Image */
.about-image-side {
  width: 50%;
  height: 100%;
  background-image: url('./assets/Services/PrivateEvents.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Right Side - Text */
.about-text-side {
  width: 50%;
  height: 100%;
  padding: 2rem 4rem 6rem;
  /* Added bottom padding for fixed nav */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--color-overlay);
  /* Use overlay color as background */
  color: var(--color-text);
  position: relative;
}

.about-carousel-content {
  margin-bottom: 0;
  min-height: auto;
  /* Remove min-height */
  text-align: center;
  max-width: 700px;
}


.about-carousel-content h1 {
  font-family: var(--font-primary);
  /* Josefin Sans */
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  text-transform: none;
  color: #aacdbe;
}

.about-carousel-content .section-subtitle {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.about-carousel-content p {
  font-family: var(--font-primary);
  font-size: 1.35rem;
  line-height: 1.6;
  font-weight: 300;
  color: rgba(248, 220, 191, 0.9);
  /* Slightly transparent text */
  max-width: 600px;
  margin: 0 auto;
}

/* Navigation Buttons */
.about-nav-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--color-overlay);
  z-index: 10;
  justify-content: center;
  padding-bottom: 2rem;
}

.about-nav-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 0;
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.3s ease;
}

.about-nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.about-nav-btn:hover {
  color: var(--color-text);
}

.about-nav-btn.active {
  color: var(--color-text);
}

.about-nav-btn.active::after {
  width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .about-section {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    position: fixed;
  }

  .about-split-container {
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    display: flex;
  }

  .about-image-side {
    width: 100%;
    height: 35vh;
    /* Increased from 20vh */
    min-height: 250px;
    /* Increased minimum height */
    max-height: 400px;
    background-attachment: scroll;
    position: relative;
    flex-shrink: 0;
  }

  .about-image-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 81, 116, 0.3) 100%);
    pointer-events: none;
  }

  .about-text-side {
    width: 100%;
    height: auto;
    flex: 1;
    padding: 1rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Allow flex item to shrink */
    overflow: hidden;
  }

  .about-carousel-content {
    margin-bottom: 0;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    max-width: 100%;
    overflow-y: auto;
    padding: 1rem 0;
  }

  .about-carousel-content h1 {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
  }

  .about-carousel-content .section-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .about-carousel-content p {
    font-size: 1.0rem;
    line-height: 1.4;
    max-width: none;
    margin: 0 auto;
  }

  .about-nav-buttons {
    padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 1rem));
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0;
    flex-wrap: nowrap;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    width: 100%;
    background-color: var(--color-overlay);
    z-index: 10;
    display: flex;
  }

  .about-nav-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 0;
    min-width: 70px;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .about-image-side {
    height: 35vh;
    min-height: 250px;
    max-height: 400px;
  }

  .about-text-side {
    padding: 0.75rem 1rem 0;
  }

  .about-carousel-content {
    padding: 0.5rem 0;
  }

  .about-carousel-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .about-carousel-content .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .about-carousel-content p {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .about-nav-buttons {
    gap: 1rem;
    padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0.75rem));
  }

  .about-nav-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 60px;
    padding: 0.4rem 0;
  }
}

/* Extra small mobile adjustments for very small screens */
@media (max-width: 360px) {
  .about-image-side {
    height: 30vh;
    min-height: 200px;
    max-height: 350px;
  }

  .about-carousel-content h1 {
    font-size: 1.3rem;
  }

  .about-carousel-content p {
    font-size: 0.8rem;
  }

  .about-nav-btn {
    font-size: 0.85rem;
    min-width: 55px;
  }
}

/* Landscape mobile orientation */
@media (max-width: 900px) and (max-height: 500px) {
  .about-image-side {
    height: 40vh;
    min-height: 150px;
    max-height: none;
  }

  .about-carousel-content h1 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
  }

  .about-carousel-content .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .about-carousel-content p {
    font-size: 0.8rem;
    line-height: 1.3;
  }
}