/* Home: "Custom Web Design and Development" section (prefix: hb-). */
.hb-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(25, 151, 194, .14);
  color: #bfeeff;
  font: 500 13px/1 "Poppins", sans-serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hb-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35c8f5;
  box-shadow: 0 0 0 0 rgba(53, 200, 245, .6);
  animation: hb-ping 2s ease-out infinite;
}

.hb-pill--light {
  border-color: rgba(25, 151, 194, .28);
  background: rgba(25, 151, 194, .09);
  color: #0f6f93;
}

@keyframes hb-ping {
  70%, 100% { box-shadow: 0 0 0 10px rgba(53, 200, 245, 0); }
}
/* ---------- Section 1: custom web design & development ---------- */
.hb-build {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(72px, 8vw, 130px) 0 0;
  border-radius: 30px;
  background: #00081d;
  color: #fff;
}

.hb-build__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, #00081d 0%, #00152f 55%, #002a4d 100%);
}

.hb-build__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: url("../assets/home/figma-web-background.webp") right center / auto 100% no-repeat; */
  opacity: .12;
}

.hb-build__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.hb-build__orb--a {
  top: -12%;
  left: -8%;
  width: 46vw;
  height: 46vw;
  max-width: 720px;
  max-height: 720px;
  background: rgba(25, 151, 194, .38);
  animation: hb-drift 16s ease-in-out infinite alternate;
}

.hb-build__orb--b {
  right: -10%;
  bottom: 4%;
  width: 38vw;
  height: 38vw;
  max-width: 600px;
  max-height: 600px;
  background: rgba(32, 98, 255, .26);
  animation: hb-drift 20s ease-in-out infinite alternate-reverse;
}

.hb-build__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}

@keyframes hb-drift {
  to { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

.hb-build__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 96px);
  width: min(1560px, calc(100% - 64px));
  margin-inline: auto;
  padding-bottom: clamp(56px, 6vw, 96px);
}

.hb-build__visual {
  position: relative;
  perspective: 1400px;
}

.hb-build__glow {
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(25, 151, 194, .5), transparent 70%);
  animation: hb-pulse 5s ease-in-out infinite;
}

@keyframes hb-pulse {
  50% { opacity: .55; transform: scale(.94); }
}

.hb-browser {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background: #0a1530;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(25, 151, 194, .18), 0 0 90px rgba(25, 151, 194, .22);
  transform: rotateY(var(--ry, -7deg)) rotateX(var(--rx, 3deg));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}

.hb-browser::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 32%);
}

.hb-browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  background: linear-gradient(#111f3f, #0c1834);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.hb-browser__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.hb-browser__bar i:nth-child(2) { background: #febc2e; }
.hb-browser__bar i:nth-child(3) { background: #28c840; }

.hb-browser__bar span {
  flex: 1;
  max-width: 280px;
  margin: 0 auto;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .6);
  font: 400 12px/1.2 "Inter", sans-serif;
  text-align: center;
  transform: translateX(-24px);
}

.hb-browser__screen {
  aspect-ratio: 794 / 520;
  background: #fff;
}

.hb-browser__screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hb-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  background: rgba(8, 24, 54, .62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  animation: hb-float 6s ease-in-out infinite;
}

.hb-chip svg {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1997c2, #0f6f93);
  color: #fff;
}

.hb-chip span { display: grid; gap: 2px; }
.hb-chip b { font: 600 14px/1.2 "Poppins", sans-serif; }
.hb-chip small { color: rgba(255, 255, 255, .62); font: 400 12px/1.2 "Inter", sans-serif; }

.hb-chip--speed { top: -26px; right: -18px; }
.hb-chip--security { bottom: 12%; left: -30px; animation-delay: -2s; }
.hb-chip--code { right: 6%; bottom: -28px; animation-delay: -4s; }

@keyframes hb-float {
  50% { transform: translateY(-12px); }
}

.hb-build__copy {
  min-width: 0;
}

.hb-build__copy h2 {
  margin: 22px 0 0;
  color: #fff;
  font: 600 clamp(28px, 3.1vw, 48px)/1.1 "Poppins", sans-serif;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.hb-build__copy h2 span {
  display: block;
  background: linear-gradient(90deg, #7ee0ff, #1997c2 45%, #7ee0ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hb-shimmer 6s linear infinite;
}

@keyframes hb-shimmer {
  to { background-position: -200% 0; }
}

.hb-build__lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .88);
  font: 400 18px/1.75 "Poppins", sans-serif;
}

.hb-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hb-steps li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.hb-steps li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #1997c2, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s ease;
}

.hb-steps li:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 200, 245, .5);
  background: rgba(25, 151, 194, .12);
}

.hb-steps li:hover::before { transform: scaleX(1); }

.hb-steps span { color: #35c8f5; font: 600 13px/1 "Poppins", sans-serif; letter-spacing: 1px; }
.hb-steps b { font: 600 17px/1.25 "Poppins", sans-serif; }

.hb-build__text {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .7);
  font: 400 16px/1.75 "Poppins", sans-serif;
}

.hb-build__closer {
  max-width: 720px;
  margin: 26px 0 0;
  padding-left: 20px;
  border-left: 3px solid #1997c2;
  color: #fff;
  font: 600 clamp(17px, 1.4vw, 21px)/1.5 "Poppins", sans-serif;
}

.hb-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 16px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1997c2, #20a3cf);
  box-shadow: 0 16px 36px -10px rgba(25, 151, 194, .75);
  color: #fff;
  font: 600 16px/1 "Poppins", sans-serif;
  transition: transform .3s ease, box-shadow .3s ease;
}

.hb-cta b { font-weight: 500; transition: transform .3s ease; }
.hb-cta:hover, .hb-cta:focus-visible { color: #fff; transform: translateY(-3px); box-shadow: 0 22px 44px -10px rgba(25, 151, 194, .95); }
.hb-cta:hover b, .hb-cta:focus-visible b { transform: translateX(6px); }

.hb-marquee {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: rgba(0, 8, 29, .5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.hb-marquee__track {
  display: flex;
  width: max-content;
  animation: hb-marquee 38s linear infinite;
}

.hb-marquee ul {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hb-marquee li {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, .55);
  font: 500 15px/1 "Poppins", sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hb-marquee li::after {
  content: "✦";
  margin: 0 34px;
  color: #1997c2;
}

@keyframes hb-marquee {
  to { transform: translateX(-50%); }
}


.laptop-image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1199.98px) {
  .hb-build { padding-top: 56px; }

  .hb-build__inner {
    grid-template-columns: minmax(0, 1fr);
    width: min(760px, calc(100% - 48px));
    gap: 30px;
    padding-bottom: 48px;
  }

  .hb-chip--speed { right: -6px; }
  .hb-chip--security { left: -8px; }
}

@media (max-width: 767.98px) {
  .hb-build { padding-top: 34px; border-radius: 18px; }
  .hb-build__inner { gap: 20px; }
  .hb-build__visual { margin-bottom: 6px; }
  .hb-build__copy h2 { margin-top: 16px; }
  .hb-build__lead { margin-top: 16px; }
  .hb-steps { margin-top: 20px; }
  .hb-build__text { margin-top: 18px; }
  .hb-build__closer { margin-top: 18px; }
  .hb-cta { margin-top: 24px; }
  .hb-build__inner { width: calc(100% - 30px); padding-bottom: 44px; }
  .hb-browser { border-radius: 14px; }
  .hb-browser__bar { height: 32px; padding: 0 12px; }
  .hb-browser__bar i { width: 9px; height: 9px; }
  .hb-browser__bar span { font-size: 10px; }
  .hb-chip { gap: 8px; padding: 8px 12px 8px 8px; border-radius: 12px; }
  .hb-chip svg { width: 28px; height: 28px; padding: 6px; border-radius: 8px; }
  .hb-chip b { font-size: 11px; }
  .hb-chip small { display: none; }
  .hb-chip--speed { top: -16px; }
  .hb-chip--code { bottom: -18px; }
  .hb-build__copy h2 { font-size: clamp(25px, 7vw, 32px); }
  .hb-build__lead { font-size: 15px; }
  .hb-build__text { font-size: 14px; }
  .hb-steps { grid-template-columns: 1fr; gap: 10px; }
  .hb-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
  .hb-cta { width: 100%; justify-content: center; }
  .hb-marquee li { font-size: 12px; }
  .hb-marquee li::after { margin: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-build *, .hb-build *::before, .hb-build *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Laptop mockup reacts to the pointer tilt set by js/home-build.js (rests flat). */
.hb-build__visual .laptop-image {
  transform: rotateY(calc(var(--ry, -7deg) + 7deg)) rotateX(calc(var(--rx, 3deg) - 3deg));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
