﻿
/* hdl-scroller — from scroller/index.html */
.hdl-scroller {
  position: relative;
  isolation: isolate;
  direction: rtl;
  font-family: 'ModamPro', sans-serif;
  background: radial-gradient(120% 70% at 50% 0%, #ffffff 0%, #f7f5fc 60%, #efeaf8 100%);
  color: #2a1b45;
  overflow: hidden;
}
.hdl-scroller .grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.05;
}

.hdl-scroller {
  --bg: #f7f5fc;
  --bg-2: #efeaf8;
  --ink: #2a1b45;
  --ink-soft: #45256e;
  --mute: #6b5b85;
  --line: #d8cce8;
  --ghost: #d4c4e8; /* faded "big results" gray */
  --orange-1: #5a368c;
  --orange-2: #7b4db0;
  --orange-3: #9b7fd4;
  --orange-4: #b4a3d6;
}

.hdl-scroller *, .hdl-scroller *::before, .hdl-scroller *::after { box-sizing: border-box; margin: 0; padding: 0; }




/* Grain */
.hdl-scroller .grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============ HERO ============ */
.hdl-scroller .sc-hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 32px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.small-team {
  font-family: 'ModamPro', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 92px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  text-align: center;
  margin-bottom: 0;
  z-index: 4;
  position: relative;
}
.small-team .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.small-team .word > span {
  display: inline-block;
  transform: translateY(105%);
}

/* Big results faded back text */
.big-results-wrap {
  position: relative;
  width: 100%;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  z-index: 1;
}
.big-results {
  font-family: 'ModamPro', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(72px, 14vw, 200px);
  letter-spacing: -0.03em;
  line-height: 0.85;
  color: var(--ghost);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  z-index: 1;
  direction: ltr;
  unicode-bidi: isolate;
  text-shadow: 0 4px 12px rgba(120, 100, 50, 0.04);
}
.big-results .letter {
  display: inline-block;
  transform-origin: bottom;
}

/* Cards row */
.cards-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 320px;
  z-index: 3;
  pointer-events: none;
}
.cards-row > * {
  pointer-events: auto;
}

.card {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--orange-1) 0%,
    var(--orange-2) 35%,
    var(--orange-3) 70%,
    var(--orange-4) 100%
  );
  box-shadow: 0 30px 50px -16px rgba(90, 54, 140, 0.5),
    0 14px 26px -8px rgba(69, 37, 110, 0.32),
    0 5px 10px -2px rgba(69, 37, 110, 0.2),
    inset 0 2px 0 rgba(255, 220, 180, 0.45),
    inset 0 -4px 8px rgba(69, 37, 110, 0.4);
  cursor: pointer;
  will-change: transform;
  transition: box-shadow 0.5s cubic-bezier(0.6, 0, 0.2, 1);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 30%,
    transparent 70%,
    rgba(69, 37, 110, 0.25) 100%
  );
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.card:hover {
  box-shadow: 0 44px 70px -20px rgba(90, 54, 140, 0.6),
    0 22px 38px -10px rgba(69, 37, 110, 0.38),
    0 8px 14px -3px rgba(69, 37, 110, 0.22),
    inset 0 2px 0 rgba(255, 220, 180, 0.5),
    inset 0 -4px 8px rgba(69, 37, 110, 0.4);
}

/* Card sizing/positioning */
.card-1 {
  width: 130px;
  height: 180px;
  left: 4%;
  top: 30px;
  z-index: 1;
}
.card-2 {
  width: 160px;
  height: 220px;
  left: 12%;
  top: 50px;
  z-index: 2;
}
.card-3 {
  width: 200px;
  height: 270px;
  left: 22%;
  top: 20px;
  z-index: 4;
}
.card-4 {
  width: 150px;
  height: 200px;
  left: 36%;
  top: 70px;
  z-index: 3;
}
.card-5 {
  width: 230px;
  height: 310px;
  left: 44%;
  top: 0px;
  z-index: 5;
}
.card-6 {
  width: 160px;
  height: 215px;
  left: 59%;
  top: 55px;
  z-index: 3;
}
.card-7 {
  width: 175px;
  height: 240px;
  left: 70%;
  top: 30px;
  z-index: 4;
}
.card-8 {
  width: 130px;
  height: 175px;
  left: 84%;
  top: 50px;
  z-index: 2;
}

/* Subtitle below */
.subline {
  margin-top: 180px;
  text-align: center;
  z-index: 4;
  position: relative;
}
.subline .arrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fafaf7;
  border: none;
  padding: 16px 26px 16px 30px;
  border-radius: 999px;
  font-family: inherit;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 24px -8px rgba(0, 0, 0, 0.4),
    0 5px 10px -2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}
.subline .arrow-pill:hover {
  transform: translateY(-2px);
}
.subline .arrow-pill .ar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--orange-1), var(--orange-3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}
.subline .arrow-pill:hover .ar {
  transform: rotate(45deg);
}
.subline-text {
  margin-top: 22px;
  font-size: 13px;
  color: var(--mute);
  letter-spacing: 0.06em;
}

/* ============ SECTION 2: محصولات HDL ============ */
.hdl-scroller .team-section.hdl-products-showcase {
  padding: 100px 24px 88px;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.hdl-products-showcase__glow {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(123, 77, 176, 0.18), transparent 58%),
    radial-gradient(ellipse 50% 40% at 10% 85%, rgba(90, 54, 140, 0.12), transparent 55%);
  z-index: 0;
}

.hdl-scroller .team-section__inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}

.hdl-scroller .team-head {
  display: block;
  margin-bottom: 52px;
}

.hdl-scroller .team-head__main {
  max-width: 720px;
}

.hdl-scroller .team-footer {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.hdl-products-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orange-2);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(123, 77, 176, 0.22);
  box-shadow: 0 8px 24px rgba(90, 54, 140, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hdl-products-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-2), var(--orange-3));
  box-shadow: 0 0 0 3px rgba(123, 77, 176, 0.2);
}

.hdl-scroller .team-head h2 {
  font-family: 'ModamPro', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 16px;
}

.hdl-scroller .team-head h2 em {
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(120deg, #5a368c 0%, #9b7fd4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hdl-scroller .team-head__desc {
  margin: 0;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.75;
  color: var(--mute);
  max-width: 540px;
}

.hdl-scroller .team-head__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #5a368c, #45256e);
  box-shadow: 0 14px 32px rgba(69, 37, 110, 0.28);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.hdl-scroller .team-head__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(69, 37, 110, 0.34);
}

.hdl-scroller .team-head__cta svg {
  transition: transform 0.35s ease;
}

.hdl-scroller .team-head__cta:hover svg {
  transform: translate(-2px, 2px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-1);
  box-shadow: 0 0 0 3px rgba(90, 54, 140, 0.2);
}

.hdl-scroller .team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.hdl-scroller a.t-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.hdl-scroller .t-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 4px 6px rgba(42, 27, 69, 0.04),
    0 20px 48px rgba(90, 54, 140, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.hdl-scroller .t-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.65) 0%,
    transparent 42%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

.hdl-scroller .t-card:hover {
  transform: translateY(-12px);
  border-color: rgba(123, 77, 176, 0.35);
  box-shadow:
    0 8px 16px rgba(42, 27, 69, 0.06),
    0 28px 56px rgba(90, 54, 140, 0.18);
}

.hdl-scroller .t-card__media {
  position: relative;
  margin: 14px 14px 0;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #f3eef9 0%, #e8dff5 100%);
  border: 1px solid rgba(216, 204, 232, 0.8);
}

.hdl-scroller .t-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hdl-scroller .t-card:hover .t-card__media img {
  transform: scale(1.07);
}

.hdl-scroller .t-card__body {
  position: relative;
  z-index: 3;
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hdl-scroller .t-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-2);
  opacity: 0.85;
}

.hdl-scroller .t-card__body .nm {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hdl-scroller .t-card__body .rl {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hdl-scroller .t-card__go {
  position: absolute;
  left: 18px;
  bottom: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-2), var(--orange-1));
  box-shadow: 0 6px 16px rgba(90, 54, 140, 0.25);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hdl-scroller .t-card:hover .t-card__go {
  opacity: 1;
  transform: scale(1);
}

.hdl-scroller .t-card__body:has(.rl) {
  padding-bottom: 28px;
}

/* ============ SECTION 3: STATS / CTA ============ */
.hdl-scroller .sc-stats {
  padding: 80px 40px 140px;
  position: relative;
  z-index: 5;
}
.hdl-scroller .stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  background: linear-gradient(135deg, #5a368c 0%, #45256e 55%, #2a1b45 100%);
  border-radius: 36px;
  padding: 80px 60px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: end;
  box-shadow: 0 40px 80px -30px rgba(20, 8, 0, 0.45),
    0 16px 32px -12px rgba(20, 8, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -3px 8px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.hdl-scroller .stats-inner::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 127, 212, 0.4), transparent 65%);
  top: -200px;
  right: -100px;
  filter: blur(40px);
}
.hdl-scroller .stats-inner::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(180, 163, 214, 0.25),
    transparent 65%
  );
  bottom: -150px;
  left: 20%;
  filter: blur(30px);
}
.hdl-scroller .stats-inner h3 {
  font-family: 'ModamPro', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  color: #ffffff;
}
.hdl-scroller .stats-inner h3 em {
  font-style: italic;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange-3), var(--orange-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hdl-scroller .stat-block {
  position: relative;
  z-index: 1;
}
.hdl-scroller .stat-block .num {
  font-family: 'ModamPro', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 4.5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #ffffff;
}
.hdl-scroller .stat-block .num span {
  color: #ffffff;
}
.hdl-scroller .stat-block .num small {
  font-size: 0.42em;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.hdl-scroller .stat-block .lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Responsive */
@media (max-width: 1100px) {
  .hdl-scroller .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .hdl-scroller .stats-inner {
    grid-template-columns: 1fr 1fr;
    padding: 50px 30px;
  }
}
@media (max-width: 750px) {
  .nav {
    padding: 18px 18px;
  }
  .nav-links {
    display: none;
  }
  .hdl-scroller .sc-hero {
    padding: 100px 16px 40px;
  }
  .small-team {
    font-size: 10vw;
  }
  .big-results {
    font-size: 16vw;
  }
  .cards-row {
    height: 220px;
    top: 52%;
  }
  .card-1 {
    width: 80px;
    height: 110px;
    left: 0%;
    top: 20px;
  }
  .card-2 {
    width: 90px;
    height: 130px;
    left: 10%;
    top: 35px;
  }
  .card-3 {
    width: 110px;
    height: 150px;
    left: 22%;
    top: 15px;
  }
  .card-4 {
    width: 90px;
    height: 120px;
    left: 36%;
    top: 50px;
  }
  .card-5 {
    width: 130px;
    height: 180px;
    left: 46%;
    top: 0;
  }
  .card-6 {
    width: 95px;
    height: 130px;
    left: 62%;
    top: 40px;
  }
  .card-7 {
    width: 100px;
    height: 140px;
    left: 74%;
    top: 20px;
  }
  .card-8 {
    width: 80px;
    height: 110px;
    left: 87%;
    top: 35px;
  }
  .subline {
    margin-top: 120px;
  }
  .hdl-scroller .team-section.hdl-products-showcase {
    padding: 72px 16px 48px;
  }
  .hdl-scroller .team-head {
    margin-bottom: 36px;
  }
  .hdl-scroller .team-head__cta {
    width: 100%;
    justify-content: center;
  }
  .hdl-scroller .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
    margin-inline: auto;
  }
  .hdl-scroller .t-card__go {
    opacity: 1;
    transform: scale(1);
  }
  .hdl-scroller .sc-stats {
    padding: 20px 20px 60px;
  }
  .hdl-scroller .stats-inner {
    grid-template-columns: 1fr 1fr;
    padding: 40px 24px;
    gap: 24px;
  }
}

/* ============ SECTION: آموزش (صفحه اصلی) ============ */
.hdl-home-training {
  border-top: 1px solid rgba(216, 204, 232, 0.55);
}

.hdl-home-training .hdl-training-showcase {
  padding-top: 88px;
}