/* /var/www/relyn/static_src/css/expertise.css */

/* EXPERTISE SECTION */
.expertise-section {
  width: 100%;
  display: flex;
  justify-content: center;

  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #FFFFFF;
}

.expertise-shell {
  position: relative;
  width: 100%;
  max-width: 1920px;
  min-height: 1024px;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 0 24px;
  box-sizing: border-box;
}

/* ✅ Background blur layer behind boxes */
.expertise-blur-layer {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);

  width: 1920px;
  max-width: 100%;
  height: 920px;

  background:
    radial-gradient(circle at 30% 35%, rgba(99, 62, 178, 0.55), transparent 62%),
    radial-gradient(circle at 70% 55%, rgba(166, 151, 224, 0.32), transparent 66%),
    radial-gradient(circle at 45% 70%, rgba(99, 62, 178, 0.35), transparent 62%);

  filter: blur(95px);
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}

.expertise-header {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  padding-top: 77px;
  box-sizing: border-box;
}

.expertise-kicker {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
  letter-spacing: 0.02em;
}

.expertise-title {
  margin: 22px 0 0;
  font-size: 48px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
  line-height: 62px;
}

/* Row holding arrows + cards */
.expertise-row {
  position: relative;
  z-index: 1;

  width: 100%;
  margin-top: 115px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  box-sizing: border-box;
}

/* Arrows */
.expertise-arrow {
  width: 48px;
  height: 48px;
  border-radius: 999px;

  border: 1px solid rgba(166, 151, 224, 0.55);
  background: rgba(255, 255, 255, 0.02);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.expertise-arrow:hover {
  transform: translateY(-1px);
  border-color: rgba(166, 151, 224, 0.95);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 45px rgba(5, 10, 22, 0.35);
  filter: brightness(1.03);
}

.expertise-arrow:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(166, 151, 224, 0.35),
    0 18px 45px rgba(5, 10, 22, 0.35);
}

.expertise-arrow-icon {
  font-size: 30px;
  line-height: 1;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Viewport area containing 4 fixed cards + 30px gaps */
.expertise-viewport {
  width: calc((330px * 4) + (30px * 3));
  max-width: 100%;
  overflow: hidden;
}

/* Track scrolls horizontally */
.expertise-track {
  display: flex;
  align-items: center;
  gap: 30px;
  will-change: transform;
  transform: translateX(0);
  transition: transform 0.38s ease;
}

/* Card */
.expertise-card {
  position: relative;
  width: 330px;
  height: 500px;
  border-radius: 20px;
  background: transparent;

  border: 3px solid transparent;
  background:
    linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)) padding-box,
    linear-gradient(
      135deg,
      rgba(60, 67, 132, 1) 0%,
      rgba(99, 62, 178, 0.5) 36%,
      rgba(60, 67, 132, 0.5) 74%,
      rgba(99, 62, 178, 1) 100%
    ) border-box;

  overflow: hidden;
  box-sizing: border-box;

  flex: 0 0 auto;
}

/* Background image full size */
.expertise-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Mini box at bottom */
.expertise-mini {
  position: absolute;
  left: 0;
  bottom: 0;

  width: 325px;
  height: 205px;

  border-radius: 20px;
  background: #633EB2;

  box-sizing: border-box;

  padding-left: 25px;
  padding-right: 22px;
  padding-top: 35px;
}

.expertise-mini-2 {
  padding-top: 45px;
}

.expertise-mini-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: left;
  line-height: 34px;

  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.expertise-mini-title-2 {
}

.expertise-mini-text {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 400;
  color: #FFFFFF;
  text-align: left;
  line-height: 24px;

  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* Responsive safety */
@media (max-width: 1600px) {
  .expertise-viewport {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .expertise-title {
    font-size: 40px;
    line-height: 54px;
  }

  .expertise-viewport {
    width: 100%;
  }

  .expertise-track {
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .expertise-shell {
    padding: 0 16px;
    min-height: 980px;
  }

  .expertise-row {
    margin-top: 90px;
    gap: 18px;
  }

  .expertise-track {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .expertise-title {
    font-size: 32px;
    line-height: 44px;
  }

  .expertise-arrow {
    width: 44px;
    height: 44px;
  }

  .expertise-arrow-icon {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .expertise-header {
    padding-top: 60px;
  }

  .expertise-title {
    font-size: 28px;
    line-height: 40px;
  }

  .expertise-row {
    margin-top: 70px;
  }

  .expertise-arrow {
    width: 42px;
    height: 42px;
  }
}

/* ✅ MOBILE + TABLET (PORTRAIT): single card per view, no right-cut, smaller fonts, less bottom space */
@media (max-width: 1024px) and (orientation: portrait) {
  .expertise-shell {
    min-height: auto;
    padding: 0 16px 34px;
  }

  .expertise-header {
    padding-top: 64px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .expertise-kicker {
    font-size: 16px;
    letter-spacing: 0.02em;
  }

  .expertise-title {
    margin-top: 16px;
    font-size: 28px;
    line-height: 38px;
    padding: 0 6px;

    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  .expertise-row {
    margin-top: 60px;
    gap: 0;
  }

  /* ✅ make viewport full width and stop arrows from shrinking it */
  .expertise-viewport {
    width: 100%;
    overflow: hidden;
  }

  .expertise-track {
    gap: 14px;
  }

  /* ✅ one card fits exactly inside viewport */
  .expertise-card {
    width: min(430px, calc(100vw - 32px));
    height: 470px;
    border-radius: 18px;
  }

  /* ✅ mini becomes fluid, no fixed 325px (prevents cutting) */
  .expertise-mini {
    width: 100%;
    height: auto;
    min-height: 176px;
    border-radius: 18px;

    padding-left: 18px;
    padding-right: 18px;
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .expertise-mini-2 {
    padding-top: 26px;
  }

  .expertise-mini-title {
    font-size: 20px;
    line-height: 26px;

    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  .expertise-mini-text {
    margin-top: 12px;
    font-size: 13px;
    line-height: 20px;

    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  /* ✅ arrows overlay on top, so viewport never gets cut */
  .expertise-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    z-index: 2;
  }

  .expertise-arrow:hover {
    transform: translateY(calc(-50% - 1px));
  }

  .expertise-arrow-left {
    left: 8px;
  }

  .expertise-arrow-right {
    right: 8px;
  }

  .expertise-arrow-icon {
    font-size: 26px;
  }
}

/* ✅ MOBILE tighter */
@media (max-width: 480px) and (orientation: portrait) {
  .expertise-shell {
    padding: 0 14px 26px;
  }

  .expertise-title {
    font-size: 24px;
    line-height: 34px;
  }

  .expertise-row {
    margin-top: 52px;
  }

  .expertise-card {
    width: calc(100vw - 28px);
    height: 450px;
  }

  .expertise-mini-title {
    font-size: 19px;
    line-height: 25px;
  }

  .expertise-mini-text {
    font-size: 12.8px;
    line-height: 20px;
  }

  .expertise-arrow {
    width: 40px;
    height: 40px;
  }

  .expertise-arrow-left {
    left: 6px;
  }

  .expertise-arrow-right {
    right: 6px;
  }
}
