.about,
.about * {
  box-sizing: border-box;
}

.about {
  font-family: "Vazirmatn", Tahoma, sans-serif;
}

.about p {
  line-height: 1.7;
}

.about-container {
  width: 85%;
  max-width: 1200px;
  margin: auto;
}

.about-container p {
  line-height: 1.7;
}

.about-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: auto;
  color: white;
  max-width: 2000px;
  margin-bottom: 100px;
}

.about-hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.about-hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px);
}

.about-descriptin {
  padding: 125px 50px 50px;
  margin: auto;
  background-color: rgba(0, 0, 0, 0.589);
}

.about-hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.about-hero-logo {
  width: 120px;
  height: 120px;
  animation: rotateYimg 5s linear infinite;
  transform-style: preserve-3d;
}

@keyframes rotateYimg {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.about-section {
  padding: 60px;
  display: flex;
  justify-content: center;
  gap: 75px;
  border-radius: 20px;
  align-items: center;
  margin-top: 100px;
  background-color: #997ed325;
  box-shadow: rgba(0, 0, 0, 0.208) 0px 3px 8px;
  border: 2px solid lightgray;
  transition: 0.5s;
}

.about-section:hover {
  border: 2px solid #665290;
}

.about-card-text {
  position: relative;
  width: 50%;
}

.about-badge {
  background: #665290;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 35px;
}

.about-card-text p {
  text-align: justify;
  font-weight: 500;
}

.about-card-text h2 {
  font-size: 30px;
  margin-bottom: 15px;
}

.about-card-text p {
  font-size: 18px;
}

.about-card-img {
  background-color: #665290;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.726) 0px 3px 8px;
}

.about-card-img img {
  width: 100%;
  height: 100%;
}

.values {
  width: 100%;
  max-width: 2000px;
  padding: 0 30px;
  margin: auto;
  color: white;
  text-align: right;
  margin-top: 160px;
  color: black;
  transition: 0.3s;
}

.values-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.values img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.value-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(350px, 1fr));
  justify-content: space-evenly;
  gap: 60px;
  flex-wrap: wrap;
  border-radius: 30px;
  max-width: 1400px;
  margin: auto;
}

.value-3 {
  grid-column: 1/3;
}

.value {
  padding: 150px 65px;
  border-radius: 20px;
  box-shadow: rgba(149, 157, 165, 0.088) 0px 8px 24px;
  border: 1px solid lightgray;
  background-color: #ffffff;
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  transition: 0.3s;
}

.value p {
  font-size: 20px;
}

.svg-container {
  width: 80px;
  height: 100px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  background-color: #665290;
  position: absolute;
  top: 0;
  color: #665290;
  right: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

.value h3 {
  margin-bottom: 15px;
}

.value:hover {
  border: 1px solid #665290;
}

.value:hover .svg-container svg {
  fill: #665290 !important;
}

.value:hover .svg-container {
  background-color: white;
  border: 1px solid #665290;
}

.why {
  padding: 100px 0;
  text-align: center;
}

.why p.subtitle {
  opacity: 0.7;
  margin: 15px 0 50px;
  text-align: center;
}

.why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 50px;
}

.why-card {
  background: white;
  border: 2px solid #665290;
  padding: 20px;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.208) 0px 3px 8px;
  transition: 0.3s;
  width: 330px;
}

.why-card:hover {
  scale: 1.05;
  background-color: #665290;
  color: white;
  border: 2px solid white;
}

.why-card:hover .icon-circle {
  background-color: white;
}

.why-card p {
  text-align: justify;
  margin-top: 15px;
  font-size: 16px;
}

.icon-circle {
  width: 60px;
  height: 60px;
  background: #665290;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
  color: #3aa8ff;
  box-shadow: rgba(0, 0, 0, 0.208) 0px 3px 8px;
}

.philosophy h2 {
  margin-bottom: 20px;
}

.philosophy p {
  font-size: 20px;
  text-align: justify;
}

.how {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-top: 160px;
}

.steps {
  flex: 1;
}

.steps span {
  color: black;
}

.steps h2 {
  margin: 10px 0 30px;
}

.step p {
  font-size: 16px;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  transition: 0.3s;
  background-color: #997ed325;
  padding: 15px;
  border-radius: 20px;
}

.step:hover {
  scale: 1.05;
  box-shadow: rgba(0, 0, 0, 0.208) 0px 3px 8px;
}

.step-number {
  min-width: 48px;
  height: 48px;
  border: 2px solid #665290;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #665290;
  background-color: white;
}

.how-imageAndBtn .btn {
  display: inline-block;
  padding: 12px 30px;
  background: #665290;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
  text-align: center;
  width: 75%;
}

.how-imageAndBtn .btn:hover {
  box-shadow: rgba(0, 0, 0, 0.445) 0px 3px 8px;
}

.how img {
  width: 100%;
}

.how-imageAndBtn {
  width: 50%;
  text-align: center;
}

.brands {
  padding: 48px 24px 64px;
  text-align: center;
  width: 100%;
  max-width: 2000px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #665290;
  margin: 160px auto;
  box-sizing: border-box;
}

.brands-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.brands-header {
  margin-bottom: 48px;
  color: white;
}

.header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.header-title h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
}

.brands-header p {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  line-height: 1.8;
  margin: 0 auto;
  max-width: 36em;
}

.brands-maya-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px 28px;
  align-items: center;
  justify-items: center;
}

.brand-item {
  width: 100%;
  max-width: 220px;
}

.brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 96px;
  padding: 16px 18px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.brand-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* Keep original logo aspect ratio at every breakpoint */
.brand-link img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  object-position: center;
}

.brand-name {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 768px) {
  .brands {
    padding: 40px 16px 48px;
    margin: 100px auto;
  }

  .brands-header {
    margin-bottom: 32px;
  }

  .brand-items {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
  }

  .brand-link {
    min-height: 84px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .brand-link img {
    max-height: 56px;
  }
}

@media (max-width: 480px) {
  .brand-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-link img {
    max-height: 48px;
  }
}

.outlock {
  display: flex;
  gap: 50px;
  max-height: 300px;
  margin-top: 160px;
  justify-content: space-between;
}

.outlock h2 {
  margin-bottom: 20px;
}

.outlock-description-images {
  display: flex;
  width: 45%;
  gap: 20px;
}

.outlock img {
  aspect-ratio: 2/1;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: 2px solid lightgray;
  transition: 0.3s;
}

.outlock img:hover {
  scale: 1.05;
  border: 2px solid #665290;
}

.col-1 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.col-2 {
  display: flex;
  align-items: center;
}

.outlock-description-text {
  width: 45%;
  text-align: justify;
}

.quote {
  max-width: 1200px;
  border: 2px solid #665290;
  box-shadow: rgba(124, 121, 121, 0.208) 0px 3px 8px;
  padding: 57px;
  border-radius: 50px;
  position: relative;
  margin: 160px auto;
  text-align: justify;
  transition: 0.3s;
}

.quote:hover {
  box-shadow: rgba(125, 124, 124, 0.5) 0px 3px 20px;
  background-color: rgba(212, 212, 212, 0.256);
}

.quote svg {
  position: absolute;
  width: 100px;
  height: 100px;
  top: -50px;
  right: 125px;
}

.quote img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: rgba(0, 0, 0, 0.208) 0px 3px 8px;
}

.quote p {
  font-size: 18px;
}

.about-person {
  margin-top: 70px;
  display: flex;
  align-items: center;
  gap: 15px;
  line-height: 1.7;
}

.about-person span {
  opacity: 0.6;
}

@media (max-width: 1024px) {
  .about p {
    font-size: 16px;
  }

  .about-section {
    padding: 30px;
    gap: 40px;
  }

  .about-container {
    width: 90%;
  }

  .values {
    padding: 0;
  }

  .value-items {
    gap: 30px;
  }

  .value {
    padding: 120px 25px 40px;
  }

  .svg-container {
    height: 80px;
  }

  .svg-container svg {
    width: 50px;
    height: 50px;
  }

  .how {
    flex-direction: column;
    gap: 15px;
  }

  .how-imageAndBtn {
    width: 75%;
  }
}

@media (max-width: 813px) {
  .value-3 {
    grid-column: auto;
  }
  .value-items {
    grid-template-columns: auto;
  }

  .value p {
    text-align: justify;
  }

  .svg-container {
    right: 27px;
  }

  .why-card {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .about-descriptin {
    padding: 125px 20px 50px;
  }

  .about-hero-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }

  .about-hero h1 {
    font-size: 28px;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-card-text {
    width: 100%;
  }

  .about-card-text h2 {
    font-size: x-large;
  }

  .about-card-img {
    width: 100%;
    border-radius: 20px;
    aspect-ratio: 3 / 2;
  }

  .brands,
  .quote {
    margin: 100px auto;
  }

  .values,
  .outlock {
    margin-top: 100px;
  }

  .how-imageAndBtn {
    width: 100%;
  }

  .outlock {
    flex-direction: column-reverse;
    max-height: none;
  }

  .outlock-description-images {
    width: 100%;
  }

  .outlock-description-text {
    width: 100%;
  }

  .quote {
    padding: 50px 25px 25px;
  }
}

@media (max-width: 425px) {
  .steps span,
  .steps h2 {
    display: block;
    text-align: center;
  }
}

/* Team */
.team {
  position: relative;
  margin: 140px 0 60px;
  padding: 72px 0 64px;
  overflow: hidden;
}

.team-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 10% 20%, rgba(102, 82, 144, 0.12), transparent 60%),
    radial-gradient(ellipse 45% 55% at 90% 80%, rgba(186, 152, 243, 0.16), transparent 55%),
    linear-gradient(180deg, #f7f4fb 0%, #ffffff 100%);
  z-index: 0;
}

.team-inner {
  position: relative;
  z-index: 1;
}

.team-header {
  text-align: center;
  margin-bottom: 44px;
}

.team-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: #665290;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.team-header h2 {
  color: #2a1f41;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin: 0 0 12px;
}

.team-subtitle {
  margin: 0 auto;
  max-width: 34em;
  color: #5a5268;
  line-height: 1.85;
  font-size: 1.02rem;
}

/* Large/medium: up to 5 in one row. Small: always scroll carousel. */
.team-row-wrap {
  width: 100%;
  overflow: hidden;
  container-type: inline-size;
  container-name: team;
}

.team-row-wrap.is-carousel {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.team-row-wrap.is-dragging {
  cursor: grabbing;
}

.team-row-wrap.is-dragging .team-card {
  pointer-events: none;
}

.team-row {
  --team-gap: 16px;
  display: flex;
  align-items: stretch;
  gap: var(--team-gap);
  will-change: transform;
}

/* Large / medium default: fit all (≤5) in one row */
.team-row {
  width: 100%;
}

.team-row .team-card {
  flex: 1 1 0;
  min-width: 0;
}

/* Large / medium with more than 5: show exactly 5, carousel the rest */
@media (min-width: 768px) {
  .team-row-wrap.has-overflow-lg.is-carousel .team-row {
    width: max-content;
  }

  .team-row-wrap.has-overflow-lg.is-carousel .team-row .team-card {
    flex: 0 0 calc((100cqi - (var(--team-gap) * 4)) / 5);
    width: calc((100cqi - (var(--team-gap) * 4)) / 5);
    min-width: calc((100cqi - (var(--team-gap) * 4)) / 5);
    max-width: calc((100cqi - (var(--team-gap) * 4)) / 5);
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(102, 82, 144, 0.14);
  box-shadow: 0 14px 40px rgba(42, 31, 65, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(102, 82, 144, 0.35);
  box-shadow: 0 22px 48px rgba(42, 31, 65, 0.16);
}

.team-row-wrap.is-dragging .team-card:hover {
  transform: none;
}

.team-card-media {
  position: relative;
  aspect-ratio: 1 / 1.05;
  background: transparent;
  overflow: hidden;
}

.team-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.55s ease;
}

.team-card:hover .team-card-media img {
  transform: scale(1.06);
}

.team-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a1f41;
  background: #efeaf6;
  font-size: clamp(1.2rem, 2.4vw, 2.6rem);
  font-weight: 700;
}

.team-card-body {
  text-align: center;
  padding: 12px 8px 14px;
}

.team-card-body h3 {
  margin: 0 0 4px;
  color: #2a1f41;
  font-size: clamp(0.68rem, 1.15vw, 1.05rem);
  line-height: 1.35;
}

.team-card-role {
  margin: 0 0 8px;
  color: #665290;
  font-weight: 600;
  font-size: clamp(0.62rem, 0.95vw, 0.88rem);
}

.team-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #665290;
  font-weight: 700;
  font-size: clamp(0.58rem, 0.9vw, 0.82rem);
  border-radius: 999px;
  padding: 5px 10px;
  transition: background 0.25s ease;
}

.team-card:hover .team-card-link {
  background: #2a1f41;
}

.team-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.team-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2a1f41, #665290);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 12px 28px rgba(42, 31, 65, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(42, 31, 65, 0.28);
}

@media (max-width: 900px) {
  .team-row {
    --team-gap: 10px;
  }

  .team-card {
    border-radius: 16px;
  }

  .team-card-body {
    padding: 10px 6px 12px;
  }
}

/* Small: always scroll — one card at a time */
@media (max-width: 767px) {
  .team {
    margin-top: 100px;
    padding: 56px 0 48px;
  }

  .team-row {
    --team-gap: 12px;
    width: max-content;
  }

  .team-row .team-card {
    flex: 0 0 min(78vw, 280px);
    width: min(78vw, 280px);
    min-width: min(78vw, 280px);
    max-width: min(78vw, 280px);
  }

  .team-card-body h3 {
    font-size: 1rem;
  }

  .team-card-role {
    font-size: 0.88rem;
  }

  .team-card-link {
    font-size: 0.82rem;
    padding: 7px 14px;
  }
}
