:root {
  --bg: #050608;
  --surface: #0f1118;
  --surface-soft: #101521;
  --text: #f5f8ff;
  --muted: #adb7cf;
  --line: #283043;
  --purple: #a259ff;
  --blue: #00d4ff;
  --cyan: #00ffcb;
  --ink: #06080f;
  --grad-main: linear-gradient(120deg, var(--purple), var(--blue));
  --radius: 16px;
  --container: 1020px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(162, 89, 255, 0.16), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(0, 212, 255, 0.16), transparent 36%),
    linear-gradient(180deg, #07080d 0%, var(--bg) 55%);
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.ambient-bg {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-wave {
  position: absolute;
  inset: auto -20% -18%;
  height: 54vh;
  border-radius: 50% 50% 0 0;
  filter: blur(24px);
  opacity: 0.7;
  transform-origin: center bottom;
  mix-blend-mode: screen;
}

.ambient-wave-a {
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.02), rgba(162, 89, 255, 0.18), rgba(0, 255, 203, 0.08));
  clip-path: polygon(0 72%, 10% 64%, 22% 72%, 34% 62%, 48% 70%, 60% 58%, 74% 66%, 86% 54%, 100% 62%, 100% 100%, 0 100%);
  animation: wave-slide-a 22s ease-in-out infinite alternate;
}

.ambient-wave-b {
  inset: auto -24% -12%;
  height: 44vh;
  background: linear-gradient(90deg, rgba(162, 89, 255, 0.03), rgba(0, 212, 255, 0.16), rgba(162, 89, 255, 0.05));
  clip-path: polygon(0 68%, 12% 76%, 26% 64%, 40% 72%, 54% 58%, 70% 68%, 84% 60%, 100% 70%, 100% 100%, 0 100%);
  opacity: 0.45;
  animation: wave-slide-b 28s ease-in-out infinite alternate;
}

.ambient-wave-c {
  inset: auto -28% -8%;
  height: 34vh;
  background: linear-gradient(90deg, rgba(0, 255, 203, 0.02), rgba(0, 212, 255, 0.1), rgba(162, 89, 255, 0.02));
  clip-path: polygon(0 74%, 14% 62%, 30% 70%, 44% 60%, 58% 66%, 72% 56%, 86% 64%, 100% 58%, 100% 100%, 0 100%);
  opacity: 0.35;
  animation: wave-slide-c 34s ease-in-out infinite alternate;
}

@keyframes wave-slide-a {
  from {
    transform: translate3d(-3%, 0, 0) scaleY(1);
  }

  to {
    transform: translate3d(4%, -1%, 0) scaleY(1.05);
  }
}

@keyframes wave-slide-b {
  from {
    transform: translate3d(2%, 1%, 0) scaleY(0.98);
  }

  to {
    transform: translate3d(-4%, -1%, 0) scaleY(1.04);
  }
}

@keyframes wave-slide-c {
  from {
    transform: translate3d(-1%, 0.5%, 0) scaleY(1.01);
  }

  to {
    transform: translate3d(3%, -0.8%, 0) scaleY(1.06);
  }
}

h1,
h2,
h3,
.brand {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(15, 17, 24, 0.95), rgba(9, 11, 18, 0.95));
  border-block: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(5, 8, 14, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text);
}

.brand-icon {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 160ms ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--grad-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
}

.hero-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(16, 21, 33, 0.86), rgba(9, 11, 18, 0.9));
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: center;
}

.hero-visual {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #06070d;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 300ms ease;
}

.hero-visual:hover img {
  transform: scale(1.02);
}

.hero-visual figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-swoosh {
  position: relative;
  height: 84px;
  margin: -20px 0 -8px;
  overflow: hidden;
}

.section-swoosh::before,
.section-swoosh::after {
  content: "";
  position: absolute;
  inset: 0 -12%;
  border-radius: 50%;
  filter: blur(8px);
}

.section-swoosh::before {
  background: linear-gradient(90deg, rgba(162, 89, 255, 0.08), rgba(0, 212, 255, 0.24), rgba(0, 255, 203, 0.08));
  transform: translateY(40%);
  animation: swoosh-flow 14s ease-in-out infinite alternate;
}

.section-swoosh::after {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 60%);
  transform: translateY(58%);
  opacity: 0.5;
  animation: swoosh-glow 18s ease-in-out infinite alternate;
}

@keyframes swoosh-flow {
  from {
    transform: translate3d(-1%, 40%, 0) scaleX(1);
  }

  to {
    transform: translate3d(2%, 34%, 0) scaleX(1.05);
  }
}

@keyframes swoosh-glow {
  from {
    transform: translate3d(1%, 58%, 0) scaleX(1);
  }

  to {
    transform: translate3d(-2%, 54%, 0) scaleX(1.04);
  }
}

.hero h1 {
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1rem;
  max-width: 14ch;
}

.lead {
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 1.25rem;
}

.quick-points {
  list-style: none;
  padding: 0;
  height: 100%;
  object-fit: cover;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--grad-main);
  color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.24);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(162, 89, 255, 0.3);
}

#services h2,
#contact h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  margin-bottom: 0.65rem;
}

.muted {
  color: var(--muted);
}

.section-intro {
  max-width: 48ch;
}

.cards {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(17, 20, 31, 0.9), rgba(12, 14, 22, 0.96));
  transition: border-color 160ms ease, transform 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.45);
}

.card-tag {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  background:
    radial-gradient(circle at 95% 5%, rgba(162, 89, 255, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(12, 15, 24, 0.95), rgba(10, 12, 19, 0.96));
}

.contact-link {
  color: var(--cyan);
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.contact-form label {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  background: #090b12;
  font: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.site-footer {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  color: #8c97b4;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  .contact-grid,
  .hero-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .section-swoosh {
    height: 64px;
    margin: -10px 0 -4px;
  }

  .ambient-wave-a,
  .ambient-wave-b,
  .ambient-wave-c {
    inset: auto -35% -10%;
    opacity: 0.28;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #090b14;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }
}
