.home-modern {
  position: relative;
  background:
    radial-gradient(900px 320px at 90% -10%, rgba(26, 146, 255, 0.16), transparent 68%),
    radial-gradient(760px 320px at 10% -20%, rgba(245, 159, 11, 0.12), transparent 65%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 36%);
}

.home-modern .hero {
  padding-block: clamp(64px, 8vw, 108px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Hard enforce dark hero background for text contrast */
  background-color: #020617 !important;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(59, 130, 246, 0.28), transparent 70%),
    radial-gradient(760px 360px at 90% -20%, rgba(56, 189, 248, 0.22), transparent 65%),
    linear-gradient(135deg, #020617 0%, #020617 22%, #0b1220 60%, #020617 100%) !important;
}

/* Subtle animated geometric orbs behind the hero content */
.home-modern .hero::before,
.home-modern .hero::after {
  content: "";
  position: absolute;
  inset-inline: -140px;
  inset-block: -120px;
  background:
    radial-gradient(260px 260px at 15% 30%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(220px 220px at 85% 20%, rgba(56, 189, 248, 0.14), transparent 72%),
    radial-gradient(220px 220px at 40% 90%, rgba(96, 165, 250, 0.18), transparent 70%);
  opacity: 0.55;
  z-index: 0;
  animation: hero-orbit 38s linear infinite;
}

.home-modern .hero::after {
  mix-blend-mode: screen;
  opacity: 0.35;
  animation-duration: 54s;
  animation-direction: alternate;
}

@keyframes hero-orbit {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(-14px, 10px, 0) scale(1.02);
  }
  50% {
    transform: translate3d(8px, 18px, 0) scale(1.03);
  }
  75% {
    transform: translate3d(16px, -6px, 0) scale(1.01);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.home-modern .hero__content {
  position: relative;
  z-index: 2;
}

.home-modern .hero__eyebrow {
  color: #9fc4ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.home-modern .hero__title {
  color: #f4f8ff;
  font-family: var(--fx-font-heading);
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 8px 20px rgba(3, 10, 25, 0.45);
  text-wrap: balance;
}

.home-modern .hero__subtitle {
  color: #d5e4ff;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 500;
  margin-bottom: 26px;
  max-width: 52ch;
}

.home-modern .hero__search {
  margin-bottom: 18px;
}

.home-modern .hero__search-inner {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(19, 38, 65, 0.1);
  border-radius: 999px;
  box-shadow: 0 20px 34px rgba(11, 26, 44, 0.1);
  display: flex;
  gap: 10px;
  max-width: 690px;
  padding: 8px;
}

.home-modern .hero__search-input {
  border: 0;
  color: #132641;
  flex: 1;
  min-height: 52px;
  padding-inline: 18px;
}

.home-modern .hero__search-input:focus {
  box-shadow: none;
  outline: none;
}

.home-modern .hero__search-btn {
  border-radius: 999px;
  min-height: 50px;
  min-width: 128px;
  padding-inline: 24px;
}

.home-modern .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.home-modern .hero__tags {
  margin-bottom: 20px;
}

.home-modern .hero__tags-label {
  color: #f4f8ff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(3, 10, 25, 0.35);
}

.home-modern .hero__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-modern .hero__tags-link {
  background: rgba(10, 26, 46, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  text-shadow: 0 1px 5px rgba(3, 10, 25, 0.35);
}

.home-modern .hero__tags-link:hover {
  background: rgba(16, 41, 72, 0.68);
  color: #ffffff;
}

.home-modern .hero__stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 480px;
}

.home-modern .hero__stat {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(19, 38, 65, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
}

.home-modern .hero__stat-number {
  color: #0e3f77;
  display: block;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.1;
}

.home-modern .hero__stat-label {
  color: #5c6f87;
  font-size: 13px;
}

.home-modern .hero__visual {
  position: relative;
  z-index: 2;
}

/* Screen-style frame container */
.home-modern .hero-screen {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
}

.home-modern .hero-screen__frame {
  display: block;
  width: 100%;
  height: auto;
}

/* Position slider content inside the SVG "screen" window */
.home-modern .hero-screen__content {
  position: absolute;
  inset: 19% 6.5% 7.5%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.home-modern .hero__slider {
  position: relative;
  z-index: 2;
  border-radius: 32px;
  box-shadow: 0 26px 58px rgba(8, 22, 44, 0.32);
  overflow: hidden;
}

.home-modern .hero__slider .single-slide {
  line-height: 0;
  position: relative;
  z-index: 1;
}

.home-modern .hero__image {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

/* Home services section */
.home-modern .home-services {
  position: relative;
}

.home-modern .home-services__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 260px at 10% 0%, rgba(56, 189, 248, 0.18), transparent 70%),
    radial-gradient(520px 260px at 90% 0%, rgba(129, 140, 248, 0.18), transparent 70%),
    linear-gradient(180deg, #020617 0%, #020617 30%, #f7fbff 52%, #ffffff 100%);
  opacity: 0.96;
  z-index: 0;
}

.home-modern .home-services .container {
  position: relative;
  z-index: 1;
  padding-top: clamp(32px, 4vw, 56px);
}

.home-modern .home-services__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.9);
  color: #e5f3ff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
}

.home-modern .home-services__title {
  color: #e5f3ff;
  font-size: clamp(1.8rem, 2.2vw, 2.3rem);
  font-weight: 700;
  text-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
}

.home-modern .home-services__subtitle {
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.98rem;
}

.home-modern .home-services__grid {
  margin-top: clamp(22px, 3vw, 34px);
}

.home-modern .home-services__card {
  position: relative;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(148, 163, 184, 0.35);
  padding: 20px 18px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-modern .home-services__card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 26px 60px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(96, 165, 250, 0.65);
}

.home-modern .home-services__card-header {
  gap: 10px;
}

.home-modern .home-services__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
  background: rgba(226, 232, 240, 0.9);
}

.home-modern .home-services__badge--accent {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.home-modern .home-services__badge--subtle {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.home-modern .home-services__icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0%, rgba(248, 250, 252, 0.95), transparent 65%),
              radial-gradient(circle at 80% 100%, rgba(37, 99, 235, 0.55), transparent 70%),
              rgba(15, 23, 42, 1);
  color: #e5f3ff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.45);
  flex-shrink: 0;
}

.home-modern .home-services__card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #020617;
}

.home-modern .home-services__card-text {
  font-size: 0.92rem;
  color: #4b5563;
}

/* Thumbnail inside services card */
.home-modern .home-services__thumb-wrapper {
  border-radius: 18px;
  overflow: hidden;
  background: #020617;
}

.home-modern .home-services__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.home-modern .home-services__thumb--empty {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.88)),
    #0f172a;
  color: #dbeafe;
  display: flex;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  justify-content: center;
}

/* Designer mini-banner inside gig card */
.home-modern .home-services__designer {
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.45);
}

.home-modern .home-services__designer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-modern .home-services__designer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, rgba(248, 250, 252, 0.95), transparent 65%),
              radial-gradient(circle at 80% 100%, rgba(37, 99, 235, 0.55), transparent 70%),
              rgba(15, 23, 42, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5f3ff;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.home-modern .home-services__designer-initials {
  text-transform: uppercase;
}

.home-modern .home-services__designer-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5f3ff;
}

.home-modern .home-services__designer-name a {
  color: #e5f3ff;
  text-decoration: none;
}

.home-modern .home-services__designer-name a:hover {
  color: #bfdbfe;
}

.home-modern .home-services__designer-stats {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.85);
}

.home-modern .home-services__designer-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.home-modern .home-services__designer-rating i {
  color: #fbbf24;
  font-size: 0.86rem;
}

.home-modern .home-services__designer-reviews,
.home-modern .home-services__designer-jobs {
  margin-inline-start: 4px;
}

.home-modern .home-services__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.home-modern .home-services__link::after {
  content: "\f061";
  font-family: "Line Awesome Free";
  font-weight: 900;
  margin-inline-start: 6px;
  font-size: 0.86rem;
}

.home-modern .home-services__link:hover {
  color: #1d4ed8;
}

.home-modern .section-heading {
  margin-bottom: clamp(20px, 3vw, 34px);
}

.home-modern .section-heading__title {
  color: #132641;
  font-size: clamp(1.6rem, 2vw, 2.3rem);
  margin: 0;
}

.home-modern .service-slider-card {
  border-radius: 20px;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.home-modern .service-slider-card__thumb {
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  width: 100%;
}

.home-modern .service-slider-card__content {
  background: linear-gradient(180deg, transparent 0%, rgba(8, 22, 44, 0.92) 70%);
  bottom: 0;
  color: #fff;
  inset-inline: 0;
  padding: 54px 20px 20px;
  position: absolute;
}

.home-modern .service-slider-card .title {
  color: #fff;
}

.home-modern .service-slider-card:hover .service-slider-card__thumb {
  transform: scale(1.05);
}

.home-modern .popular-categories__item {
  background: #fff;
  border: 1px solid rgba(19, 38, 65, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(8, 22, 44, 0.08);
  height: 100%;
  padding: 24px 18px;
  position: relative;
  text-align: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.home-modern .popular-categories__item:hover {
  box-shadow: 0 20px 42px rgba(8, 22, 44, 0.14);
  transform: translateY(-5px);
}

.home-modern .popular-categories__item-icon {
  margin: 0 auto 14px;
}

.home-modern .popular-categories__item-icon img {
  border-radius: 14px;
  height: 76px;
  object-fit: cover;
  width: 76px;
}

.home-modern .popular-categories__title {
  color: #16355a;
  font-size: 17px;
  margin: 0;
}

.home-modern .call-to-action__content {
  background-blend-mode: multiply;
  background-color: rgba(13, 53, 98, 0.66);
  border-radius: 28px;
  overflow: hidden;
  padding: clamp(26px, 4vw, 46px);
  position: relative;
}

.home-modern .call-to-action__content::before {
  background: radial-gradient(420px 220px at 20% 20%, rgba(245, 159, 11, 0.34), transparent 70%);
  content: "";
  inset: 0;
  position: absolute;
}

.home-modern .call-to-action__content > .row {
  position: relative;
  z-index: 2;
}

.home-modern .call-to-action__title {
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}

.home-modern .call-to-action p {
  color: rgba(255, 255, 255, 0.92);
}

.home-modern .cta-thumb img {
  border-radius: 18px;
  max-height: 280px;
  object-fit: cover;
  width: auto;
}

@media (min-width: 992px) {
  .home-modern .hero__visual {
    padding-inline-end: clamp(0.5rem, 1.8vw, 1.75rem);
  }

  .home-modern .hero__frame {
    margin-inline-start: auto;
    margin-inline-end: 0;
  }
}

@media (max-width: 991.98px) {
  .home-modern .hero__content {
    margin-bottom: 26px;
    text-align: center;
  }

  .home-modern .hero__subtitle {
    margin-inline: auto;
  }

  .home-modern .hero__search-inner {
    margin-inline: auto;
  }

  .home-modern .hero__cta,
  .home-modern .hero__tags-list,
  .home-modern .hero__stats {
    justify-content: center;
    margin-inline: auto;
  }

  .home-modern .hero__frame {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 767.98px) {
  .home-modern .hero {
    padding-block: 52px;
  }

  .home-modern .hero__search-inner {
    border-radius: 20px;
    flex-direction: column;
    padding: 10px;
  }

  .home-modern .hero__search-btn {
    width: 100%;
  }

  .home-modern .hero__stats {
    grid-template-columns: 1fr;
  }

  .home-modern .hero__frame {
    max-width: 100%;
    margin-inline: 0;
  }

  .home-modern .hero__frame-inner {
    border-radius: 20px;
    padding: 6px;
  }

  .home-modern .hero__frame-inner::before {
    inset: 4px;
    border-radius: 16px;
  }

  .home-modern .hero__frame-inner::after {
    inset: auto 8% -19%;
  }

  .home-modern .call-to-action__content {
    border-radius: 18px;
    padding: 22px;
  }
}
