﻿/* =======================
   BASE STYLES (Mobile First)
   ======================= */

.about-page-wrapper {
  padding: 1rem;
}

.about {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* =====================
   LIGHT THEME
   ===================== */

.light .about-section {
  background: #ffffff;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.light .about-section p,
.light .about-section li {
  color: #333;
}

/* =====================
   DARK THEME
   ===================== */

.dark .about-section {
  background: #121212;
  color: #f2f2f2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark .about-section p,
.dark .about-section li {
  color: #d0d0d0;
}

/* =====================
   COMMON STYLES
   ===================== */

.about-section {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.about-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.about-section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.about-section strong {
  font-weight: 600;
}

/* Smooth transitions */
.about,
.about-section,
.about-section p {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* =====================
   CLIENTS SIDEBAR LOGIC
   ===================== */

.clients-sidebar {
  display: none;
  /* Hide on small screens to save space */
  position: relative;
  height: 70vh;
  /* Viewport relative height */
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
}

.clients-fade-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, #ced8ff 0%, transparent 100%);
  z-index: 2;
}

.dark .clients-fade-top {
  background: linear-gradient(to bottom, #222 0%, transparent 100%);
}

.clients-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, #ced8ff 0%, transparent 100%);
  z-index: 2;
}

.dark .clients-fade-bottom {
  background: linear-gradient(to top, #222 0%, transparent 100%);
}

.clients-marquee {
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Allows the track to grow to its full content height */
}

.marquee-track {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 0;
  animation: scrollVertical 25s linear infinite;
}

/* Pause animation on hover */
.clients-sidebar:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollVertical {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }

  /* Scrolls precisely half of the duplicated list */
}

.client-logo-wrapper {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 200px;
  height: 120px;
}

.dark .client-logo-wrapper {
  background: #f5f5f5;
  /* Keep logos on white backgrounds for visibility */
}

.client-logo {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}


/* =======================
   TABLET (481px - 768px)
   ======================= */

@media (min-width: 481px) {
  .about-page-wrapper {
    padding: 1.5rem;
  }

  .about-section {
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .about-section h2 {
    font-size: 2rem;
  }

  .about-section p {
    font-size: 1.05rem;
  }
}

/* =======================
   TABLET LANDSCAPE (769px - 1024px)
   ======================= */

@media (min-width: 769px) {
  .about-page-wrapper {
    padding: 2rem;
  }

  .about-section {
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 12px;
  }

  .about-section h2 {
    font-size: 2.25rem;
  }
}

/* =======================
   DESKTOP (1025px and up)
   ======================= */

@media (min-width: 1025px) {
  .about-page-wrapper {
    padding: 2.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  /* SPLIT LAYOUT */
  .about {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
  }

  .about-content {
    flex: 1;
    /* Takes up remaining space */
  }

  .clients-sidebar {
    display: block;
    /* Show the sidebar */
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    /* Sticks as user scrolls down the text */
  }

  .about-section {
    padding: 2.5rem;
    border-radius: 14px;
    /* max-width not needed now since flex: 1 constrains it */
  }

  .about-section h2 {
    font-size: 2.5rem;
  }

  .about-section p {
    font-size: 1.1rem;
  }
}

/* =======================
   LARGE DESKTOP (1400px and up)
   ======================= */

@media (min-width: 1400px) {
  .about-page-wrapper {
    max-width: 1600px;
    padding: 3rem 3rem;
  }

  .about-section {
    padding: 3.5rem;
  }

  .clients-sidebar {
    width: 280px;
  }
}
