/* ============================================================
   Gelai Infotech — Home Page
   Figma: Gelai Company Website | Frame: Home (776:14)
   Font: Jost | Canvas: 1920px
   ============================================================ */

@import url('nav-megamenu.css');

:root {
  --blue: #0c6eb7;
  --blue-dark: #235377;
  --navy: #232b40;
  --navy-btn-start: #232b40;
  --navy-btn-end: #235377;
  --hero-grad-start: #0c6eb7;
  --hero-grad-mid: #569acd;
  --footer-grad-end: #8dc1e9;
  --white: #ffffff;
  --black: #000000;
  --font: 'Jost', sans-serif;
  --wrap: 1920px;
  --pad-x: 93px;
  --hero-pad-left: 93px;
  --title-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  --site-header-offset: 168px;
  /* Figma type scale (1920 canvas) */
  --fs-body: 18px;
  --fs-body-lg: 20px;
  --fs-body-copy: 22px;
  --lh-body-copy: 30px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fs-label: 24px;
  --fs-title-section: 40px;
  --fs-title-hero: 48px;
  --fs-title-card: 32px;
  --fs-lead: 18px;
  /* Unified buttons — same height & color site-wide */
  --btn-height: 46px;
  --btn-pad-x: 28px;
  --btn-font-size: 18px;
  --btn-radius: 10px;
  --btn-bg: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%);
  --btn-color: var(--white);
  --btn-shadow: 0 4px 14px rgba(12, 110, 183, 0.22);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  font-synthesis: none;
}

/* Figma body copy — Jost Regular (400) @ 25px */
.about__copy p,
.serve__content > p,
.portfolio__desc,
.portfolio__tech,
.portfolio__tech-line {
  font-size: var(--fs-body-copy);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-copy);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.service__desc,
.process__card p,
.why__card p,
.serve__card-desc,
.footer__brand > p,
.footer__contact li,
.footer__col a,
.footer-tech__trigger,
.footer-tech__panel a,
.footer-tech__panel li {
  font-weight: var(--fw-regular);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.figma-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.text-blue { color: var(--blue); }

.label {
  display: block;
  font-family: var(--font);
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.label--center { text-align: center; }

.section-title {
  font-family: var(--font);
  font-size: var(--fs-title-section);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 20px;
  text-shadow: var(--title-shadow);
}

.section-title--center { text-align: center; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-height);
  padding: 0 var(--btn-pad-x);
  font-family: var(--font);
  font-size: var(--btn-font-size);
  font-weight: 600;
  line-height: 1;
  color: var(--btn-color);
  background: var(--btn-bg);
  border: none;
  border-radius: var(--btn-radius);
  box-shadow: var(--btn-shadow);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  opacity: 1;
}

.btn--contact,
.btn--hero,
.btn--explore,
.btn--cta,
.btn--schedule,
.btn--cta-large,
.btn--project {
  /* Same as .btn — class names kept for markup only */
}

.btn--explore {
  margin-top: 0;
}

.btn--explore img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.hero__header .btn--project img,
.about-hero .btn--project img,
.services-hero .btn--project img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--site-header-offset, 168px);
  background:
    radial-gradient(
      ellipse 90% 80% at 88% 8%,
      var(--hero-grad-start) 0%,
      var(--hero-grad-mid) 32%,
      rgba(255, 255, 255, 0) 72%
    ),
    var(--white);
  overflow: hidden;
}

.hero__header {
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  flex-shrink: 0;
}

.hero__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  justify-self: start;
  grid-column: 1;
  isolation: isolate;
}

/* Logo-shaped blur — follows PNG alpha (G + text), not a square box */
.hero__logo-blur {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 107.5%;
  height: 107.5%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-scrolled .hero__logo-blur {
  opacity: 1;
}

/* Fixed header — all pages (index, about, etc.) */
.site-header,
.site-header.hero__header,
.about-hero__header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-top: 16px;
  padding-bottom: 16px;
  background: transparent;
  transition: padding 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-scrolled .site-header {
  padding-top: 10px;
  padding-bottom: 10px;
}

.hero__logo img {
  width: 130px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1440px) {
  .hero__logo img {
    width: 150px;
  }
}

@media (min-width: 1920px) {
  .hero__logo img {
    width: 170px;
  }
}

.hero__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  grid-column: 2;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 769px) {
  .site-header .hero__nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
    box-shadow: none;
    padding: 6px 10px;
    gap: 4px;
  }

  body.is-scrolled .site-header .hero__nav {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px) saturate(1.45);
    -webkit-backdrop-filter: blur(18px) saturate(1.45);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 10px 32px rgba(35, 43, 64, 0.11);
    padding: 8px 16px;
    gap: 2px;
  }
}

.hero__header .btn--contact {
  flex-shrink: 0;
  justify-self: end;
  grid-column: 3;
}

.hero__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  grid-column: 3;
  justify-self: end;
}

.hero__nav-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  padding: 6px 14px 10px;
  white-space: nowrap;
  background: transparent;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  vertical-align: middle;
  transition:
    color var(--dur-fast, 0.25s) ease;
}

.hero__nav-link--active {
  color: var(--blue);
}

@media (min-width: 769px) {
  body.is-scrolled .site-header .hero__nav-link {
    padding: 8px 18px 12px;
    background: transparent;
  }
}

.hero__menu-btn span {
  width: 24px; height: 2px; background: var(--navy); border-radius: 1px;
}

.hero__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  flex: 1;
  min-height: 0;
  margin-top: 28px;
  padding-bottom: 8px;
}

.hero__title {
  font-size: clamp(32px, 3.6vw, var(--fs-title-hero));
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 12px;
  max-width: 640px;
  margin-top: 0;
  text-shadow: var(--title-shadow);
}

.hero__subtitle {
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--navy);
  max-width: 449px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.hero__content--changing .hero__title,
.hero__content--changing .hero__subtitle,
.hero__content--changing .btn--hero,
.hero__content--changing .hero__pagination {
  opacity: 0;
  transform: translateY(14px);
}

.hero__visual--changing img {
  opacity: 0;
  transform: translateY(-16px) scale(0.96);
}

.hero__enter {
  opacity: 0;
  transform: translateY(18px);
}

.hero__img--enter {
  opacity: 0;
  transform: translateY(32px) scale(0.92);
}

.hero__title,
.hero__subtitle,
.hero__content .btn--hero,
.hero__pagination,
.hero__visual img {
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0;
  height: 100%;
}

.hero__visual img {
  width: auto;
  max-width: min(52vw, 719px);
  max-height: calc(100svh - 230px);
  height: auto;
  object-fit: contain;
  object-position: right center;
}

.hero__visual--svg-md img {
  width: min(54vw, 720px);
  max-width: min(54vw, 720px);
  max-height: calc(100svh - 190px);
}

.hero__visual--svg-lg {
  transform: scale(1.08);
  transform-origin: right center;
}

.hero__visual--svg-lg img {
  width: min(56vw, 780px);
  max-width: min(56vw, 780px);
  max-height: calc(100svh - 180px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__pagination {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding: 0;
  pointer-events: none;
}

.hero__pagination .hero__dot {
  pointer-events: auto;
}

.hero__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  line-height: 1;
}

.hero__dot--active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ===================== SERVICE ===================== */
.service {
  padding: 100px 0 120px;
  background: var(--white);
}

.service__inner {
  display: grid;
  grid-template-columns: minmax(0, 960px) minmax(0, 380px);
  gap: 72px;
  align-items: start;
  justify-content: center;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 0;
}

.service__left {
  max-width: 960px;
  display: flex;
  flex-direction: column;
}

.service__small-title {
  font-size: var(--fs-title-card);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.3;
  min-height: 39px;
}

.service__desc {
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--navy);
  max-width: 960px;
  margin-bottom: 16px;
  min-height: 124px;
}

.service__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 960px;
  margin-bottom: 40px;
  flex-shrink: 0;
}

.service__actions .btn--explore {
  height: 40px;
  padding: 0 20px;
  font-size: 16px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(12, 110, 183, 0.18);
}

.service__actions .btn--explore img {
  width: 16px;
  height: 16px;
}

.service__dots {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.service__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  padding: 0;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background-color 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.service__dot--light {
  background: #b8d4ef;
  transform: scale(1);
}

.service__dot--dark {
  background: var(--navy);
  transform: scale(1.15);
}

.service__dot:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.service__left--changing .service__small-title,
.service__left--changing .service__desc,
.service__left--changing .service__actions,
.service__right--changing .service__main-title,
.service__right--changing .service__list-item {
  opacity: 0;
  transform: translateY(14px);
}

.service__enter {
  opacity: 0;
  transform: translateY(18px);
}

.service__list-item--enter {
  opacity: 0;
  transform: translateX(24px);
}

.service__img--enter {
  opacity: 0;
  transform: translateY(32px) scale(0.92);
}

.service__small-title,
.service__desc,
.service__main-title,
.service__list-item,
.service__actions {
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.service__illustration {
  position: relative;
  width: 100%;
  max-width: 580px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__illustration img {
  width: 100%;
  height: auto;
  max-width: 580px;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.service__illustration--changing img {
  opacity: 0;
  transform: translateY(-16px) scale(0.96);
}

.service__right {
  padding-top: 44px;
  min-height: 520px;
}

.service__main-title {
  margin-bottom: 40px;
  min-height: 58px;
}

.service__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 388px;
}

.service__list-item {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
}

.service__list-icon-wrap {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__list-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.service__list-item span:last-child {
  flex: 1;
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--black);
  line-height: 1.25;
}

/* ===================== PROCESS ===================== */
.process {
  position: relative;
  padding: 80px 0 100px;
  background: var(--white);
  overflow: visible;
}

.process__cat {
  position: absolute;
  top: -248px;
  right: 67px;
  left: auto;
  width: 321px;
  max-width: min(321px, 22vw);
  height: auto;
  opacity: 1;
  transform: none;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.process__header {
  position: relative;
  z-index: 1;
  margin-bottom: 80px;
}

.process__header .label {
  font-size: 30px;
  font-weight: 500;
  line-height: 43.35px;
  margin-bottom: 15px;
  letter-spacing: 0;
}

.process__title {
  max-width: 607px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  font-size: 48px;
  line-height: 69.36px;
}

.process__cards {
  display: grid;
  grid-template-columns: 459px 480px 519px;
  justify-content: center;
  column-gap: 72px;
  row-gap: 0;
  align-items: start;
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
}

.process__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.process__card--design {
  margin-top: 0;
  transform: translateY(-43px);
}

.process__card--research,
.process__card--testing {
  margin-top: 66px;
  transform: none;
}

.process__card:hover,
.process__card:focus-within {
  background: transparent;
  box-shadow: none;
}

.process__card--design:hover,
.process__card--design:focus-within {
  transform: translateY(-43px);
}

.process__card--research:hover,
.process__card--research:focus-within {
  transform: none;
}

.process__card--testing:hover,
.process__card--testing:focus-within {
  transform: none;
}

.process__card-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin: 0;
  line-height: 0;
}

.process__card--research .process__card-media,
.process__card--testing .process__card-media {
  min-height: 0;
  margin-bottom: 19px;
  overflow: visible;
}

.process__card--design .process__card-media {
  min-height: 226px;
  margin-bottom: 19px;
  overflow: visible;
}

.process__card--research .process__card-media img,
.process__card--testing .process__card-media img {
  height: 258px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

.process__card--design .process__card-media img {
  height: 226px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.process__card-media img {
  display: block;
  margin: 0 auto;
}

.process__card h3 {
  font-family: var(--font);
  font-size: 30px;
  font-weight: 600;
  line-height: 43.35px;
  color: var(--navy);
  margin: 0 0 19px;
}

.process__card p {
  font-family: var(--font);
  font-size: 18px;
  line-height: 28px;
  color: var(--navy);
  margin: 0;
}

.process__card--research p {
  max-width: 459px;
}

.process__card--design p {
  max-width: 480px;
}

.process__card--testing p {
  max-width: 519px;
}

.process__cards::before,
.process__cards::after {
  display: none;
  content: none;
}

.process__cards.fx-bento::after {
  display: none;
}

.process__card.fx-bento__tile {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.process__card.fx-bento__tile::after {
  display: none;
}

.process__card.fx-bento__tile::before {
  display: none;
}

/* ===================== ABOUT ===================== */
.about {
  padding: 100px 0 120px;
  background: var(--white);
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 817px) minmax(0, 728px);
  justify-content: space-between;
  column-gap: 90px;
  align-items: start;
}

.about__content .label {
  margin-bottom: 18px;
}

.about__title {
  max-width: 617px;
  margin-bottom: 35px;
  font-size: var(--fs-title-section);
  line-height: 1.35;
}

.about__copy {
  max-width: 815px;
}

.about__copy p {
  color: var(--navy);
  margin: 0;
}

.about__copy p + p {
  margin-top: 24px;
}

.about__visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 76px;
}

.about__visual img {
  width: 728px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 728 / 441;
  object-fit: contain;
  display: block;
}

/* ===================== SERVE ===================== */
.serve {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #eef5fc 0%, var(--white) 100%);
  overflow: hidden;
}

.serve__blob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.serve__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

.serve__content p {
  color: var(--navy);
  max-width: 724px;
}

.serve__hub {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}

.serve__hub-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 0.92;
  margin: 0 auto;
}

.serve__hub-stage::before {
  content: '';
  position: absolute;
  inset: 4% 0;
  background: radial-gradient(ellipse at center, rgba(196, 221, 240, 0.5) 0%, rgba(196, 221, 240, 0.12) 55%, transparent 72%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.serve__orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84%;
  height: 78%;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(12, 110, 183, 0.14);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.serve__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(62%, 320px);
  min-height: 58%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, #0c6eb7 0%, #0a5f9e 100%);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px) clamp(18px, 2.5vw, 28px);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  box-shadow:
    0 20px 50px rgba(12, 110, 183, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 2;
  text-align: left;
}

.serve__card--changing {
  opacity: 0.6;
  transform: translate(-50%, -50%) scale(0.97);
}

.serve__card-title {
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.3;
}

.serve__card-desc {
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 400;
  line-height: 1.55;
  opacity: 0.96;
}

.serve__icons {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.serve__icon {
  position: absolute;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.serve__icon-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(12, 110, 183, 0.12);
  box-shadow:
    0 8px 22px rgba(35, 43, 64, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.serve__icon-svg {
  width: 28px;
  height: 28px;
  color: var(--navy);
  display: block;
}

.serve__icon:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.serve__icon:hover .serve__icon-ring {
  border-color: rgba(12, 110, 183, 0.35);
  box-shadow: 0 10px 26px rgba(12, 110, 183, 0.18);
}

.serve__icon--active {
  transform: translate(-50%, -50%) scale(1.12);
}

.serve__icon--active .serve__icon-ring {
  border-color: var(--blue);
  background: #f0f8ff;
  box-shadow:
    0 12px 28px rgba(12, 110, 183, 0.28),
    0 0 0 4px rgba(12, 110, 183, 0.12);
}

.serve__icon--active .serve__icon-svg {
  color: var(--blue);
}

.serve__icon:focus-visible {
  outline: none;
}

.serve__icon:focus-visible .serve__icon-ring {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ===================== PORTFOLIO ===================== */
.portfolio {
  padding: 80px 0 100px;
  background: var(--white);
  overflow: visible;
}

.portfolio__header { margin-bottom: 60px; }

.portfolio__mockups {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  overflow: visible;
}

.portfolio__mockups img {
  display: block;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
  flex-shrink: 0;
}

.portfolio__mockups img.portfolio__mockup--pixel {
  width: 240px;
  max-width: min(240px, 32vw);
}

.portfolio__mockups img.portfolio__mockup--sm {
  width: 210px;
  max-width: min(210px, 28vw);
}

.portfolio__mockups img.portfolio__mockup--lg {
  width: 238px;
  max-width: min(238px, 32vw);
}

.portfolio__project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  overflow: visible;
}

.portfolio__name {
  font-size: 35px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  text-shadow: var(--title-shadow);
}

.portfolio__tag {
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 16px;
}

.portfolio__desc {
  color: var(--navy);
  margin-bottom: 12px;
}

.portfolio__desc:last-of-type {
  margin-bottom: 20px;
}

.portfolio__tech {
  color: var(--navy);
  max-width: 422px;
}

.portfolio__tech-line {
  margin: 0;
}

.portfolio__project--reverse .portfolio__mockups { order: -1; }

/* ===================== WHY ===================== */
.why {
  padding: 80px 0 100px;
  background: var(--white);
  overflow: visible;
}

.why__header {
  text-align: center;
  max-width: none;
  margin: 0 auto 72px;
}

.why__header .section-title {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 37px;
}

.why__intro {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--navy);
  max-width: 1497px;
  margin: 0 auto;
  text-align: center;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px 48px;
  overflow: visible;
}

.why__card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: center;
  overflow: visible;
}

.why__card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.why__card-icon img {
  width: 60px;
  height: 60px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center center;
  overflow: visible;
}

.why__card h3 {
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.45;
  color: var(--blue);
  text-shadow: var(--title-shadow);
  margin-bottom: 16px;
}

.why__card p {
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--navy);
  max-width: 520px;
  margin: 0 auto;
}

/* ===================== TESTIMONIAL ===================== */
.testimonial-section {
  padding: 80px 0 100px;
  background: var(--white);
}

.testimonial-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 947px) minmax(280px, 750px);
  grid-template-areas:
    "head head"
    "body visual";
  column-gap: 40px;
  row-gap: 0;
  align-items: center;
  justify-content: center;
  max-width: 1737px;
  margin: 0 auto;
}

.testimonial-section__header {
  grid-area: head;
  justify-self: center;
  text-align: center;
  width: 100%;
  max-width: 541px;
  margin-bottom: 58px;
}

.testimonial-section__header .label {
  display: block;
  font-size: 30px;
  font-weight: 500;
  line-height: 43.35px;
  text-align: center;
  margin-bottom: 0;
}

.testimonial-section__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 57.8px;
  color: var(--navy);
  margin: 0;
  text-align: center;
  text-shadow: var(--title-shadow);
}

.testimonial-section__body {
  grid-area: body;
  align-self: center;
  display: flex;
  flex-direction: column;
  max-width: 947px;
  width: 100%;
}

.testimonial-section__quote {
  max-width: 947px;
  margin: 0;
  padding: 0;
  border: 0;
}

.testimonial-section__quote p {
  font-size: 20px;
  font-weight: 400;
  line-height: 29px;
  color: var(--navy);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.testimonial-section__quote p + p {
  margin-top: 20px;
}

.testimonial-section__signature {
  align-self: center;
  margin: 20px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--black);
  text-align: center;
  white-space: nowrap;
}

.testimonial-section__visual {
  grid-area: visual;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 750px;
}

.testimonial-section__visual img {
  width: 100%;
  max-width: 750px;
  height: auto;
  aspect-ratio: 750 / 500;
  object-fit: contain;
}

/* ===================== CTA ===================== */
.cta-section {
  padding: 80px 0 100px;
  background: var(--white);
}

.cta-section__inner {
  display: grid;
  grid-template-columns: minmax(280px, 490px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.cta-section__visual {
  width: 490px;
  height: 424px;
  overflow: hidden;
  flex-shrink: 0;
}

.cta-section__visual img {
  width: auto;
  height: 424px;
  max-width: none;
}

.cta-section__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-right: 24px;
}

.cta-section__title {
  font-family: 'Berkshire Swash', cursive;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.24;
  color: var(--navy);
  margin-bottom: 40px;
  max-width: 716px;
}

.btn--cta {
  /* inherits unified .btn */
}

/* ===================== FOOTER ===================== */
.footer {
  font-family: var(--font);
  background: linear-gradient(180deg, var(--white) 0%, var(--footer-grad-end) 100%);
  padding-top: 80px;
  color: var(--navy);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(160px, 1fr));
  gap: 48px 64px;
  padding-bottom: 56px;
}

.footer__brand img {
  margin-bottom: 24px;
  width: 231px;
  height: auto;
}

.footer__brand > p {
  font-family: var(--font);
  font-size: var(--fs-body-lg);
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 20px;
  max-width: 360px;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer__social-link {
  display: inline-block;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: none;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  text-decoration: none;
  flex-shrink: 0;
}

.footer__social-link--facebook {
  background-image: url('../assets/images/social/facebook.png');
}

.footer__social-link--instagram {
  background-image: url('../assets/images/social/instagram.png');
}

.footer__social-link--linkedin {
  background-image: url('../assets/images/social/linkedin.png');
}

.footer__social-link:hover {
  transform: translateY(-2px) scale(1.05);
  opacity: 0.92;
}

.footer__contact {
  display: grid;
  gap: 16px;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font);
  font-size: var(--fs-body-lg);
  line-height: 1.45;
  color: var(--navy);
}

.footer__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--navy);
}

.footer__col h3 {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 24px;
}

.footer__col > ul {
  display: grid;
  gap: 12px;
}

.footer__col a {
  font-family: var(--font);
  font-size: var(--fs-body-lg);
  line-height: 1.45;
  color: var(--navy);
}

.footer__col a:hover { color: var(--blue); }

/* Footer technologies accordion */
.footer__col--tech {
  min-width: 0;
}

.footer-tech {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-tech__item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-tech__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-family: var(--font);
  font-size: var(--fs-body-lg);
  line-height: 1.45;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.footer-tech__trigger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.footer-tech__trigger:hover {
  color: var(--blue);
}

.footer-tech__item.is-open .footer-tech__trigger {
  border-color: var(--blue);
  background: rgba(12, 110, 183, 0.06);
  color: var(--navy);
  padding: 6px 10px;
}

.footer-tech__chevron {
  flex-shrink: 0;
  color: var(--navy);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-tech__item.is-open .footer-tech__chevron {
  transform: rotate(180deg);
}

.footer-tech__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}

.footer-tech__item.is-open .footer-tech__panel {
  opacity: 1;
}

.footer-tech__panel-inner {
  padding: 4px 10px 0;
}

.footer-tech__panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-tech__panel li {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(35, 43, 64, 0.82);
}

.footer__bottom {
  border-top: 1px solid rgba(35, 43, 64, 0.3);
  padding: 16px 0 18px;
  text-align: center;
}

.footer__bottom p {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
  margin: 0;
}

/* ===================== RESPONSIVE ===================== */
/* Laptop / shorter screens — fit hero in one viewport */
@media (max-width: 1440px) {
  .hero__visual img {
    max-width: min(48vw, 580px);
    max-height: calc(100svh - 220px);
  }

  .hero__visual--svg-md img {
    width: min(52vw, 640px);
    max-width: min(52vw, 640px);
    max-height: calc(100svh - 170px);
  }

  .hero__visual--svg-lg {
    transform: scale(1.05);
  }

  .hero__visual--svg-lg img {
    width: min(54vw, 680px);
    max-width: min(54vw, 680px);
    max-height: calc(100svh - 160px);
  }

  .hero__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 20px;
  }
}

@media (max-height: 860px) {
  .hero__header { padding-top: 12px; }

  .hero__logo img { width: 110px; }

  .hero__body { margin-top: 12px; }

  .hero__title { line-height: 1.25; margin-bottom: 8px; }

  .hero__subtitle {
    margin-top: 20px;
    margin-bottom: 28px;
  }

  .hero__visual img {
    max-height: calc(100svh - 200px);
    max-width: min(44vw, 520px);
  }

  .hero__visual--svg-md img {
    width: min(48vw, 580px);
    max-width: min(48vw, 580px);
    max-height: calc(100svh - 150px);
  }

  .hero__visual--svg-lg {
    transform: scale(1.02);
  }

  .hero__visual--svg-lg img {
    width: min(50vw, 620px);
    max-width: min(50vw, 620px);
    max-height: calc(100svh - 140px);
  }

  .hero__pagination {
    margin-top: 24px;
  }
}

@media (max-width: 1680px) {
  .process__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 60px;
    max-width: 100%;
  }

  .process__card--research p,
  .process__card--design p,
  .process__card--testing p {
    max-width: 100%;
  }
}

@media (max-width: 1200px) {
  :root { --pad-x: 48px; }

  .hero__body { grid-template-columns: 1fr; }
  .hero__visual { justify-content: center; }
  .hero__visual img {
    max-width: min(90vw, 520px);
    max-height: 42vh;
  }
  .service__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: 0;
    max-width: none;
  }

  .service__desc {
    min-height: 0;
  }

  .service__illustration {
    max-width: min(580px, 100%);
    margin: 0 auto;
  }

  .service__right {
    padding-top: 0;
    min-height: 0;
  }

  .service__list {
    min-height: 0;
  }

  .process__cat {
    top: -200px;
    right: var(--pad-x);
    left: auto;
    transform: none;
    width: min(260px, 28vw);
  }

  .process__title {
    font-size: 40px;
    line-height: 1.35;
  }

  .process__header .label {
    font-size: 24px;
    line-height: 1.35;
  }

  .about__inner {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 40px;
  }

  .about__visual {
    padding-top: 0;
    justify-content: center;
  }

  .about__visual img {
    width: 100%;
    max-width: 728px;
  }

  .about__title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .serve__inner,
  .portfolio__project {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .portfolio__project--reverse .portfolio__mockups { order: 0; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }

  .testimonial-section__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "visual"
      "body";
    row-gap: 32px;
    max-width: 947px;
    align-items: stretch;
  }

  .testimonial-section__body {
    align-self: auto;
  }

  .testimonial-section__header {
    margin-bottom: 0;
  }

  .testimonial-section__visual {
    justify-self: center;
    max-width: min(750px, 100%);
  }

  .testimonial-section__signature {
    white-space: normal;
  }

  .cta-section__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-section__content {
    padding-right: 0;
  }

  .cta-section__title { font-size: 40px; }
  .cta-section__visual {
    width: min(100%, 360px);
    height: 310px;
    margin: 0 auto;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 48px;
  }

  .portfolio__mockups img.portfolio__mockup--pixel {
    width: min(240px, 38vw);
  }

  .portfolio__mockups img.portfolio__mockup--sm {
    width: min(210px, 34vw);
  }

  .portfolio__mockups img.portfolio__mockup--lg {
    width: min(238px, 38vw);
  }

  .cta-section__visual img {
    height: 310px;
  }
}

@media (max-width: 768px) {
  :root { --pad-x: 24px; }

  .process__cat {
    display: none;
  }

  .hero__nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-radius: 16px;
    z-index: 20;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.is-scrolled .hero__nav {
    background: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .hero__nav--open { display: flex; }

  .hero__header .btn--contact { display: none; }
  .hero__menu-btn { display: flex; }

  .hero__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
  }

  .hero__logo {
    grid-column: auto;
    justify-self: auto;
  }

  .hero__header .btn--contact {
    grid-column: auto;
    justify-self: auto;
  }

  .hero__menu-btn {
    grid-column: auto;
    justify-self: auto;
  }

  .hero__nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

  .hero__logo img { width: 110px; }

  .hero__nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero__body { margin-top: 20px; }

  .hero__visual { margin-top: 0; }

  .hero__visual img {
    max-width: 100%;
    max-height: 38vh;
  }

  .hero__visual--svg-lg {
    transform: none;
  }

  .hero__visual--svg-lg img,
  .hero__visual--svg-md img {
    width: 100%;
    max-width: 100%;
    max-height: 46vh;
  }

  .hero__pagination {
    margin-top: 20px;
  }

  .hero__title { font-size: 36px; }
  .section-title { font-size: 32px; }
  .serve__inner { grid-template-columns: 1fr; gap: 40px; }
  .serve__hub { max-width: 100%; }
  .serve__icon { width: 48px; height: 48px; }
  .serve__icon-svg { width: 24px; height: 24px; }
  .serve__card { width: 72%; min-height: 52%; }
  .about__copy p,
  .serve__content p,
  .portfolio__desc,
  .portfolio__tech,
  .portfolio__tech-line {
    font-size: clamp(16px, 2.3vw, var(--fs-body-copy));
    line-height: clamp(22px, 3.15vw, var(--lh-body-copy));
  }
  .process__cards {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 519px;
    justify-content: center;
  }

  .process__card--design {
    margin-top: 0;
    transform: none;
  }

  .process__card--research,
  .process__card--testing {
    margin-top: 0;
    transform: none;
  }

  .process__card--research .process__card-media,
  .process__card--design .process__card-media,
  .process__card--testing .process__card-media {
    min-height: 0;
    margin-bottom: 32px;
  }

  .process__card--research p,
  .process__card--design p,
  .process__card--testing p {
    max-width: 100%;
  }

  .process__title {
    font-size: clamp(32px, 8vw, 48px);
  }
  .process__card-media,
  .process__card--research .process__card-media,
  .process__card--design .process__card-media,
  .process__card--testing .process__card-media {
    margin-bottom: 32px;
  }

  .process__card--research .process__card-media img,
  .process__card--testing .process__card-media img {
    height: min(258px, 42vw);
    width: auto;
    max-width: 100%;
  }

  .process__card--design .process__card-media img {
    height: min(226px, 38vw);
    width: auto;
    max-width: 100%;
  }
  .why__header .section-title {
    margin-bottom: 28px;
  }

  .why__intro {
    font-size: clamp(18px, 4.2vw, 24px);
    font-weight: 400;
    line-height: 1.45;
    max-width: 100%;
  }

  .why__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }

  .footer__social {
    gap: 12px;
  }

  .footer__social-link {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex-basis: 40px;
  }

  .portfolio__mockups {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }

  .portfolio__mockups img.portfolio__mockup--pixel {
    width: min(240px, 42vw);
    max-width: 42vw;
  }

  .portfolio__mockups img.portfolio__mockup--sm {
    width: min(210px, 36vw);
    max-width: 36vw;
  }

  .portfolio__mockups img.portfolio__mockup--lg {
    width: min(238px, 42vw);
    max-width: 42vw;
  }

  .footer__bottom p {
    font-size: 13px;
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .footer__bottom {
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }

  .footer__bottom p {
    font-size: 11px;
    line-height: 1.5;
  }
}
