/* ========================================
   ABOUT PAGE - Mobile First
   ======================================== */

/* Mobile Base (320px+) */
.about-page {
  color: #ffffff;
  font-family: "Eudoxus Sans", sans-serif;
}

.about-container {
  max-width: 100%;
  /* padding: 0 1rem; */
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.hero-section {
  display: grid;
  height: 80vh;
  padding-top: 6rem; /* inner padding + the top spacing */
  padding-bottom: 8rem;
  place-items: center;
  z-index: 1;
  position: relative;
}

.hero-title {
  font-family: "Unbounded", sans-serif;
  font-size: 2.25rem;
  line-height: 1.2;
  /* margin-bottom: 1rem; */
  text-align: center;
}

.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.6;
  margin-bottom: 1.5rem;
  text-transform: capitalize;
}

.hero-image {
  /* background-color: yellow; */
  z-index: -1;
  position: absolute;
  bottom: 0;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 1.5rem;
  border-radius: 4rem;
  border: 1px solid rgba(255, 241, 235, 0.2);
  background: transparent;
  color: #ffffff;
  font-size: 0.875rem;

  font-weight: 500;
  cursor: pointer;
}

.intro-section {
  display: grid;
  place-items: center;
  padding-block: 8rem;
}

.intro-title {
  font-family: "Unbounded", sans-serif;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.intro-text {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 760px;
  width: 100%;
  text-align: center;
}

.team-section {
  padding-block: 4rem;
}

.team-title {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 3rem;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.team-member {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-image {
  width: 100%;
  height: auto;
  margin-bottom: 1.25rem;
}

.member-name {
  font-family: "Unbounded", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  background-color: yellowgreen;
  line-height: 0;
}

.member-role {
  opacity: 0.5;
  font-size: 1rem;
  line-height: 0;
}

.member-bio {
  opacity: 0.5;
  font-size: 0.75rem;
  line-height: 0;
  padding-top: 12px;
  text-transform: capitalize;
}

.services-section {
  padding-block: 4rem;
}

.services-header {
  display: flex;
  flex-direction: row;
  /* align-content: center; */

  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.services-title {
  font-size: 2rem;
  font-weight: 500;
}

.services-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.service-card {
  padding: 2rem;
  width: 416px;
  height: 444px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 1rem;
  border: 1px solid rgba(255, 241, 235, 0.2);
  position: relative;
}

.service-card > img{
height: 100%;
object-fit: cover;
} 

.card-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.card-title {
  font-family: "Unbounded", sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
}

.card-text {
  opacity: 0.5;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ========================================
   CLIENTS SECTION - FIXED HORIZONTAL OVERFLOW & FULL BLEED
   ======================================== */

/* -------------------------------------------------
   1. SECTION – proper full-bleed centering (no scrollbar)
   ------------------------------------------------- */
.clients-section {
  width: 100vw; /* Full viewport width */
  margin-left: calc(50% - 50vw); /* Center to parent, ignore paddings */
  overflow: hidden; /* Clip everything, no scrollbar */
  padding-block: 4rem; /* Vertical padding only */
  position: relative; /* For relative positioning */
  box-sizing: border-box;
}

/* -------------------------------------------------
   2. HEADER – centered inside full section
   ------------------------------------------------- */
.clients-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.clients-title {
  font-size: 2rem;
  font-weight: 500;
}

/* -------------------------------------------------
   3. GRID – relative to full section
   ------------------------------------------------- */
.clients-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px; /* Minimal space between rows */
}

/* -------------------------------------------------
   4. ROWS – full width, no clipping
   ------------------------------------------------- */
.client-row {
  width: 100%;
  height: 140px; /* Buffer for buttons + hover */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

/* -------------------------------------------------
   5. WRAPPER – button gaps
   ------------------------------------------------- */
.logos-wrapper {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 200%;
  height: 100%;
  will-change: transform;
  box-sizing: border-box;
}

/* -------------------------------------------------
   6. BUTTONS – exact image size
   ------------------------------------------------- */
.client-logo {
  flex: 0 0 auto;
  padding: 32px;
  background: #1a1a1a;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
  box-sizing: border-box;
  min-width: 154px; /* 90px img + 32px L + 32px R */
  height: 108px; /* 44px img + 32px T + 32px B */
  border: none;
}

.client-logo img {
  width: 90px; /* Exact specified size */
  height: 44.06px; /* Exact specified height */
  object-fit: contain;
  pointer-events: none;
  position: relative;
}

.client-logo:hover {
  background: #2a2a2a;
  outline-color: #555;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------
   7. ANIMATIONS – infinite scroll
   ------------------------------------------------- */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes scroll-left-offset {
  0% {
    transform: translateX(-15%);
  }
  100% {
    transform: translateX(-65%);
  }
}

.client-row-1 .logos-wrapper {
  animation: scroll-left 30s linear infinite;
}
.client-row-2 .logos-wrapper {
  animation: scroll-left-offset 25s linear infinite;
}
.client-row-3 .logos-wrapper {
  animation: scroll-right 35s linear infinite;
}

.client-logo {
  flex: 0 0 auto;
  width: 150px; /* Adjust based on your logo size */
  height: 100px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px; /* Spacing between logos */
}

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

/* Animations */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes scroll-left-offset {
  0% {
    transform: translateX(
      -15%
    ); /* Offset by 15% to the left for staggered effect */
  }
  100% {
    transform: translateX(-65%);
  }
}

/* Apply to rows */
.client-row-1 .logos-wrapper {
  animation: scroll-left 30s linear infinite;
}

.client-row-2 .logos-wrapper {
  animation: scroll-left-offset 25s linear infinite;
  /* Using left direction but with offset; adjust duration for parallax feel */
}

.client-row-3 .logos-wrapper {
  animation: scroll-right 35s linear infinite; /* Reverse direction for variety */
}

.contact-section {
  text-align: center;
  padding: 8rem 0;
  display: inline-flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: #1d1d1d;
}

.contact-header {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 1rem;
}

.contact-title {
  font-size: 2rem;
  font-weight: 500;
}

.contact-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-inline: auto;
  max-width: 784px;
}

.contact-button {
  width: fit-content;
  margin-inline: auto;
}

.faq-section {
  text-align: center;
  padding: 4rem 0;
}

.faq-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.faq-title {
  font-size: 2rem;
  font-weight: 500;
}

.faq-text {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: auto;
  max-width: 784px;
}

.assessment-section {
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
}

.assessment-title {
  font-family: "Unbounded", sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.assessment-btn {
  padding: 1.25rem 2rem;
  background: #000000;
  border-radius: 0.625rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.assessment-image {
  width: 100%;
  height: auto;
  margin-top: 2rem;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

/* Small Mobile (480px+) */
@media (min-width: 480px) {
  .hero-title {
    font-size: 2.75rem;
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .about-container {
    /* padding: 0 4rem; */
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .intro-title {
    font-size: 2.25rem;
  }

  .team-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .team-member {
    width: 45%;
  }

  .services-grid {
    flex-direction: row;
  }

  .assessment-section {
    padding: 8rem 0;
  }

  .assessment-title {
    font-size: 3.75rem;
  }

  .assessment-image {
    position: absolute;
    left: 0;
    top: -4rem;
    width: 18rem;
    margin-top: 0;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .about-container {
    max-width: 100%;
    /* padding: 0 8rem; */
  }

  .hero-title {
    width: 100%;
    max-width: 600px;
    font-size: 64rem;
    /* margin-bottom: 1.25rem; */
  }

  .hero-subtitle {
    margin-bottom: 2.5rem;
    margin-top: -100px;
  }

  .team-member {
    width: 22%;
  }

  .hero-image {
    width: 100%;
    object-fit: contain;
  }

  .hero-buttons {
    margin-top: -180px;
  }

  .hero-image > img {
    width: 100px;
    height: 252.438px;
    object-fit: cover;
  }
}
