/* styles/home.css */
/* Homepage-only layout and presentation. */

.hero:empty {
  display: block;
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 0;
  border: 0;
  background: transparent;
}

.hero:empty::before,
.hero:empty::after {
  display: none;
}

.home-services {
  position: relative;
  z-index: 3;
  margin-top: 24px;
  padding: 0 20px 110px;
}

.home-services__inner {
  max-width: var(--container);
  margin-inline: auto;
}

.home-services__header {
  position: relative;
  display: block;
  width: calc(100% + 56px);
  margin: 0 -28px 28px;
  padding: 30px 40px 34px;
  overflow: hidden;
  border: 1px solid rgba(126, 219, 255, .28);
  border-radius: var(--radius-large);
  background: radial-gradient(circle at 88% 10%, rgba(97, 218, 251, .2), transparent 28%), radial-gradient(circle at 12% 100%, rgba(155, 140, 255, .18), transparent 36%), linear-gradient(135deg, rgba(16, 20, 45, .98), rgba(34, 39, 83, .97));
  color: #fff;
  box-shadow: 0 24px 62px rgba(6, 8, 24, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.home-services__header::before {
  content: "services.config";
  position: absolute;
  top: 15px;
  right: 24px;
  color: rgba(255, 255, 255, .13);
  font: 12px/1 ui-monospace, Consolas, monospace;
}

.home-services__header::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
  pointer-events: none;
}

.home-services__header > * {
  position: relative;
  z-index: 1;
}

.home-services__header h1 {
  max-width: 780px;
  margin-top: 13px;
  font-size: clamp(29px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.home-services__intro {
  max-width: 780px;
  margin-top: 14px;
  color: #d8dce8;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}

.home-services__website,
.home-service-feature {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: var(--surface-card);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.home-services__website::before,
.home-service-feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-violet), var(--color-green));
  opacity: .78;
}

.home-services__website:hover,
.home-service-feature:hover {
  border-color: rgba(191, 197, 255, .45);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .28);
}

.home-services__website {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(500px, 1.3fr);
  gap: 28px;
  margin-bottom: 18px;
  padding: 34px;
}

.home-services__website-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 6px;
}

.home-services__website-copy h3,
.home-service-feature h3 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.home-services__website-copy > p:not(.home-services__eyebrow) {
  max-width: 410px;
  margin-block: 19px;
  color: var(--color-muted);
}

.home-services__website-copy > a {
  margin-top: auto;
  color: #d9dcff;
  font-weight: 800;
  text-decoration: none;
}

.home-services__website-copy > a span {
  margin-left: 6px;
}

.home-platform-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 126px;
  padding: 20px;
  border: 1px solid var(--color-line-soft);
  border-radius: 15px;
  background: var(--surface-glass);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}

.home-platform-card::before {
  content: "+";
  position: absolute;
  right: 13px;
  bottom: 5px;
  color: rgba(255, 255, 255, .08);
  font: 900 54px/1 ui-monospace, monospace;
}

.home-platform-card:hover,
.home-platform-card:focus-visible {
  border-color: rgba(191, 197, 255, .45);
  background: var(--surface-glass-hover);
}

.home-platform-card__copy {
  display: flex;
  flex-direction: column;
}

.home-platform-card strong {
  font-size: 18px;
}

.home-platform-card small {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.4;
}

.home-service-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--color-text);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.home-service-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.home-service-arrow {
  color: #b7bad0;
  font-size: 18px;
}

.home-services__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.home-service-feature {
  min-height: 310px;
  padding: 32px;
}

.home-service-feature--translation {
  background: radial-gradient(circle at 85% 15%, rgba(97, 218, 251, .12), transparent 30%), linear-gradient(145deg, #1a1d38, #0e1020);
}

.home-service-feature__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.home-service-feature > p {
  max-width: 520px;
  margin: 20px 0 32px;
  color: var(--color-muted);
}

.home-service-feature__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.home-service-feature__logos .home-service-logo,
.home-service-badge {
  width: 52px;
  height: 52px;
}

.home-service-badge {
  display: grid;
  place-items: center;
  padding-inline: 10px;
  border-radius: 13px;
  background: var(--surface-glass);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.home-service-feature__link {
  position: absolute;
  z-index: 2;
  inset: 0;
}

/* Portfolio carousel */

#projects[data-module="portfolio-carousel"] {
  padding: 120px 0 145px;
  overflow: visible;
  background: #111225;
}

.portfolio-carousel__header,
.portfolio-carousel__viewport,
.portfolio-carousel__progress {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.portfolio-carousel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

.portfolio-carousel__header > div:first-child > span {
  color: #aeb2ff;
  font: 800 14px/1.4 ui-monospace, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.portfolio-carousel__header h2 {
  margin-top: 10px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .95;
  letter-spacing: -.055em;
}

.portfolio-carousel__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portfolio-carousel__controls button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

.portfolio-carousel__controls span {
  min-width: 62px;
  color: #c9cada;
  font: 700 12px/1 ui-monospace, Consolas, monospace;
  text-align: center;
}

/* Horizontal scrolling clips vertical ink overflow; compensated space keeps card shadows visible. */
.portfolio-carousel__viewport {
  margin-block: -32px -66px;
  padding-block: 32px 72px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.portfolio-carousel__viewport::-webkit-scrollbar {
  display: none;
}

#projects[data-module="portfolio-carousel"] .project-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 22px;
  width: max-content;
}

#projects[data-module="portfolio-carousel"] .project-card {
  position: relative;
  flex: 0 0 calc((min(var(--container), calc(100vw - 40px)) - 22px) / 2);
  width: calc((min(var(--container), calc(100vw - 40px)) - 22px) / 2);
  overflow: visible;
  border: 1px solid var(--color-line);
  border-radius: 24px;
  background: #1c1d34;
  color: #fff;
  scroll-snap-align: start;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#projects[data-module="portfolio-carousel"] .project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-violet), var(--color-green));
}

#projects[data-module="portfolio-carousel"] .project-card:hover,
#projects[data-module="portfolio-carousel"] .project-card:focus-visible {
  z-index: 2;
  border-color: rgba(191, 197, 255, .45);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .28);
}

#projects[data-module="portfolio-carousel"] .project-card-services {
  width: calc(100% - 36px);
  margin: 18px 18px 0;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 20px 18px;
}

.project-card-title {
  font-size: 23px;
}

.project-card-type {
  color: #c8c9da;
}

.project-card__link {
  margin-top: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.portfolio-carousel__progress {
  height: 2px;
  margin-top: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, .13);
}

.portfolio-carousel__progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-violet));
  transition: width .25s ease;
}

.home-project-builder#contact {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 110px 20px 130px;
}

@media (max-width: 768px) {
  .home-services {
    margin-top: 0 !important;
    padding: 0 !important;
  }
  .home-service-feature {
    border-radius: 0 !important;
  }

  .home-services__header {
    width: auto;
    margin: 0 !important;
    padding: 26px 22px 28px;
    border-radius: 0 !important;
  }

  .home-services__website,
  .home-services__split {
    grid-template-columns: 1fr;
    border-radius: 0 !important;
    margin-top: 0 !important;
    gap: 0 !important;
  }

  .home-services__website {
    padding: 22px;
    margin-bottom: 0 !important;
  }

  .home-platform-card {
    min-height: 105px;
  }

  .home-service-feature {
    min-height: 270px;
    padding: 25px;
  }

  #projects[data-module="portfolio-carousel"] {
    padding: 82px 0 100px;
  }

  .portfolio-carousel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  #projects[data-module="portfolio-carousel"] .project-card {
    flex-basis: 86vw;
    width: 86vw;
  }

  #projects[data-module="portfolio-carousel"] .project-card-services {
    min-height: 150px;
    margin: 16px 16px 0;
    padding: 18px 16px 15px;
  }

  #projects[data-module="portfolio-carousel"] .project-card-services__icons {
    gap: 12px;
  }

  .home-project-builder#contact {
    padding: 0px;
        margin: 0 !important;
        width: 100% !important;
  }.project-wizard {
        border-radius: 0 !important;
  }
}
