@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;700;800&display=swap");

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --deep: #0f1630;
  --deep-2: #171d3d;
  --text: #101423;
  --muted: #5d667a;
  --border: rgba(16, 20, 35, 0.08);
  --accent: #3bbdf6;
  --accent-2: #0078ff;
  --accent-3: #16c7b8;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.06);
  --radius: 24px;
  --radius-lg: 32px;
  --section-pad: clamp(3.5rem, 7vw, 6.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(59, 189, 246, 0.1), transparent 26%),
    radial-gradient(circle at bottom left, rgba(22, 199, 184, 0.08), transparent 24%),
    linear-gradient(180deg, #f4f7fb 0%, #eef3fb 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.8;
}

a:focus-visible {
  outline: 3px solid rgba(59, 189, 246, 0.45);
  outline-offset: 4px;
  border-radius: 10px;
}

.container h1,
.serviceo-contant h2,
.box-item {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.container {
  position: relative;
  width: 100%;
  min-height: clamp(180px, 42vw, 300px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(90deg, rgba(7, 11, 25, 0.84) 0%, rgba(7, 11, 25, 0.66) 42%, rgba(7, 11, 25, 0.28) 100%),
    url("../images/image\ \(1\).png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeUp 0.8s ease both;
}

.container::before,
.container::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.container::before {
  width: 22rem;
  height: 22rem;
  top: -7rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(59, 189, 246, 0.22), transparent 68%);
}

.container::after {
  width: 18rem;
  height: 18rem;
  bottom: -6rem;
  left: -4rem;
  background: radial-gradient(circle, rgba(22, 199, 184, 0.18), transparent 68%);
}

.sub-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.container h1 {
  max-width: 12ch;
  color: #ffffff;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.95;
  font-weight: 800;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.8s ease 0.08s both;
}

.serviceo-section {
  position: relative;
  width: 100%;
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  overflow: hidden;
  isolation: isolate;
}

.serviceo-section::before,
.serviceo-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.serviceo-section::before {
  width: 24rem;
  height: 24rem;
  top: -10rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(59, 189, 246, 0.12), transparent 68%);
}

.serviceo-section::after {
  width: 18rem;
  height: 18rem;
  bottom: -8rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(22, 199, 184, 0.1), transparent 68%);
}

.serviceo-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.serviceo-sub-container {
  width: 100%;
}

.serviceo-contant {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
  animation: fadeUp 0.8s ease 0.1s both;
}

.serviceo-contant > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.serviceo-contant > span::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  flex: 0 0 auto;
}

.serviceo-contant h2 {
  max-width: 13ch;
  color: var(--text);
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  line-height: 1.06;
  font-weight: 800;
}

.serviceo-contant-boxs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.contant-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(145deg, #07101d 0%, #0b1328 45%, #08101f 100%);
  border: 1px solid rgba(59, 189, 246, 0.12);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: fadeUp 0.8s ease both;
}

.contant-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(59, 189, 246, 0.08), transparent 52%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.contant-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  border-color: rgba(59, 189, 246, 0.28);
}

.contant-box:hover::before {
  opacity: 1;
}

.sub-box {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 1.8rem);
  background: linear-gradient(145deg, #07101d 0%, #0b1328 45%, #08101f 100%);
  transition: background 0.3s ease;
}

.sub-box > * {
  position: relative;
  z-index: 1;
}

.box-item {
  padding-right: 4.75rem;
  color: #ffffff;
  font-size: 1.22rem;
  line-height: 1.25;
}

.box-item-p {
  margin-top: 0.9rem;
  padding-right: 2.35rem;
  color: rgba(228, 236, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.75;
}

.learn-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-top: 1.3rem;
}

.learn-more i {
  color: var(--accent);
  font-size: 0.95rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.learn-link {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.sub-box:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}

.sub-box:hover .box-item {
  color: var(--text);
}

.sub-box:hover .box-item-p {
  color: var(--muted);
}

.sub-box:hover .learn-link {
  color: var(--accent-2);
}

.sub-box:hover .learn-more i {
  color: var(--accent-2);
  transform: translateX(3px);
}

.contant-logo {
  width: 130px;
  height: 130px;
  position: absolute;
  right: -46px;
  bottom: -52px;
  border-radius: 42%;
  background: linear-gradient(135deg, rgba(59, 189, 246, 0.16), rgba(22, 199, 184, 0.16));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s ease, background 0.3s ease;
  pointer-events: none;
}

.contant-logo i {
  font-size: 42px;
  position: absolute;
  top: 20%;
  left: 20%;
  color: #ffffff;
}

.contant-logo img {
  width: 52px;
  position: absolute;
  top: 20%;
  left: 20%;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

.contant-box:hover .contant-logo {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  transform: scale(1.04) rotate(-2deg);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .container {
    justify-content: center;
  }

  .container h1 {
    max-width: 14ch;
  }
}

@media (max-width: 992px) {
  .serviceo-contant h2 {
    max-width: 15ch;
  }
}

@media (max-width: 768px) {
  .container {
    min-height: 280px;
    justify-content: center;
    text-align: center;
  }

  .sub-container {
    justify-content: center;
  }

  .container h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 10vw, 3.4rem);
  }

  .serviceo-section {
    padding: 3.5rem 1rem;
  }

  .serviceo-contant h2 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .serviceo-contant > span {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
  }

  .serviceo-contant > span::before {
    width: 26px;
  }

  .serviceo-contant-boxs {
    gap: 1rem;
  }

  .box-item {
    font-size: 1.12rem;
    padding-right: 4rem;
  }

  .box-item-p {
    font-size: 0.94rem;
    padding-right: 1.8rem;
  }

  .contant-logo {
    width: 112px;
    height: 112px;
    right: -38px;
    bottom: -42px;
  }

  .contant-logo i {
    font-size: 36px;
  }

  .contant-logo img {
    width: 46px;
  }
}

@media (max-width: 560px) {
  .container {
    min-height: 250px;
  }

  .serviceo-contant-boxs {
    grid-template-columns: 1fr;
  }

  .sub-box {
    padding: 1.2rem;
  }

  .learn-more {
    padding-top: 1rem;
  }

  .learn-link {
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  .container {
    min-height: 230px;
    padding-inline: 1rem;
  }

  .container h1 {
    font-size: clamp(1.8rem, 12vw, 2.8rem);
  }

  .serviceo-section {
    padding-inline: 0.75rem;
  }

  .serviceo-contant {
    margin-bottom: 1.1rem;
  }

  .serviceo-contant h2 {
    font-size: 1.75rem;
  }

  .box-item {
    font-size: 1.05rem;
    padding-right: 3.25rem;
  }

  .box-item-p {
    padding-right: 1.2rem;
  }

  .contant-logo {
    width: 96px;
    height: 96px;
    right: -32px;
    bottom: -34px;
  }

  .contant-logo i {
    font-size: 32px;
  }

  .contant-logo img {
    width: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
