@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Science+Gothic:wght@400&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600&display=swap');

/* === Animated Background === */
body,
.site-wrapper {
  position: relative;
  z-index: 0;
  background: var(--color-bg);
}

body::before,
.site-wrapper::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(55% 65% at 20% 20%, rgba(31, 214, 164, 0.25), transparent 60%),
    radial-gradient(45% 55% at 80% 40%, rgba(54, 240, 199, 0.22), transparent 65%),
    radial-gradient(50% 50% at 50% 85%, rgba(31, 214, 164, 0.18), transparent 70%),
    radial-gradient(55% 55% at 10% 75%, rgba(54, 240, 199, 0.15), transparent 70%);
  background-size: 115% 115%;
  background-position: 25% 18%, 75% 42%, 52% 83%, 12% 72%;
  filter: blur(60px);
  opacity: 0.82;
  animation: ambientDrift 28s cubic-bezier(0.6, 0.12, 0.18, 0.99) infinite alternate,
    auroraShift 36s ease-in-out infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform, background-position;
}

body::after,
.site-wrapper::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.3)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.01) 0, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: screen;
  opacity: 0.35;
  transform: translate3d(0, 0, 0);
  animation: grainShift 50s linear infinite alternate, noisePulse 18s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
  0% {
    transform: scale(1.08) translate3d(-14%, -10%, 0) rotate(-3deg);
  }
  25% {
    transform: scale(1.14) translate3d(10%, -8%, 0) rotate(2deg);
  }
  50% {
    transform: scale(1.1) translate3d(6%, 12%, 0) rotate(-1.5deg);
  }
  75% {
    transform: scale(1.16) translate3d(-9%, 15%, 0) rotate(2.4deg);
  }
  100% {
    transform: scale(1.08) translate3d(12%, -6%, 0) rotate(-2deg);
  }
}

@keyframes auroraShift {
  0% {
    background-position: 18% 14%, 82% 30%, 45% 86%, 10% 70%;
  }
  40% {
    background-position: 35% 22%, 68% 60%, 62% 72%, 20% 86%;
  }
  70% {
    background-position: 14% 48%, 90% 46%, 40% 92%, 28% 58%;
  }
  100% {
    background-position: 26% 18%, 66% 26%, 58% 76%, 8% 74%;
  }
}

@keyframes grainShift {
  0% {
    transform: translate3d(-4%, -3%, 0) scale(1.02);
  }
  40% {
    transform: translate3d(5%, 2%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-3%, 4%, 0) scale(1.01);
  }
}

@keyframes noisePulse {
  0% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.32;
  }
}

:root {
  --color-bg: #0b0e16;
  --color-surface: #131720;
  --color-accent-1: #36f0c7;
  --color-accent-2: #1fd6a4;
  --color-text-primary: #e8f1f2;
  --color-text-secondary: #9ba9b0;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-glow: rgba(54, 240, 199, 0.45);
  --font-heading: "Science Gothic", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-ui: "Satoshi", "Inter", sans-serif;
  --shadow-soft: 0 24px 48px rgba(4, 10, 20, 0.45);
  --header-height: 84px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

a:hover,
a:focus {
  color: var(--color-accent-1);
}

main {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 1.75rem 5rem;
  margin-top: calc(var(--header-height) + 2.75rem);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  height: var(--header-height);
  background: linear-gradient(135deg, rgba(6, 9, 16, 0.5), rgba(5, 9, 16, 0.22));
  backdrop-filter: blur(28px) saturate(145%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  z-index: 20;
  box-shadow: 0 6px 20px rgba(4, 8, 15, 0.18);
  padding-right: 1.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  padding: 0 1.5rem 0 0.75rem;
  gap: 1.75rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 14px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.header-logo-link:hover,
.header-logo-link:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px var(--color-glow);
}

.header-brand img {
  width: 54px;
  height: 54px;
}

.header-brand h1 {
  font-family: 'Orbitron', var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 2.05rem;
  margin: 0;
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.header-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  transition: color 220ms ease, transform 220ms ease, box-shadow 220ms ease,
    border-color 220ms ease, background 220ms ease;
  background: rgba(10, 14, 22, 0.3);
}

.header-nav a::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 220ms ease;
}

.header-nav a:hover,
.header-nav a:focus {
  color: var(--color-bg);
  background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-1));
  box-shadow: 0 16px 32px var(--color-glow);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
}

.header-nav a:hover::after,
.header-nav a:focus::after {
  opacity: 1;
}

.header-nav a.active {
  color: var(--color-bg);
  background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-1));
  box-shadow: 0 16px 32px rgba(54, 240, 199, 0.35);
}

.hero {
  text-align: center;
  padding: 5.5rem 1rem 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: center;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--color-text-primary), var(--color-accent-1), var(--color-text-primary));
  background-size: 180% 180%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradientFlow 6s ease infinite;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.hero-subline {
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  color: rgba(232, 241, 242, 0.8);
  max-width: 520px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 2.4rem;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-1));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 20px 38px rgba(54, 240, 199, 0.35);
  transition: transform 220ms ease, box-shadow 220ms ease, letter-spacing 220ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 26px 46px rgba(54, 240, 199, 0.45);
  letter-spacing: 0.1em;
  color: #041218;
}

.page-section {
  margin-top: 4.25rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 1.5rem;
}

.section-description {
  text-align: center;
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto 2.2rem;
  font-size: 1rem;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: var(--color-text-primary);
  box-shadow: 0 14px 26px rgba(5, 8, 16, 0.45);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40% 40% 60% -40%;
  background: radial-gradient(circle at top, rgba(54, 240, 199, 0.22), transparent 60%);
  transform: translateY(30%);
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0;
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(4, 10, 20, 0.6), 0 18px 36px rgba(54, 240, 199, 0.28);
  border-color: rgba(54, 240, 199, 0.32);
}

.card:hover::before,
.card:focus-within::before {
  transform: translateY(0);
  opacity: 1;
}

.card h3 {
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  font-size: 1.45rem;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.services-footer {
  margin-top: 2.75rem;
  text-align: center;
}

.site-footer {
  width: 100%;
  padding: 2.25rem 1rem 2.75rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-soft);
}

.form-success-message {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(170, 255, 230, 0.85);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.form-success-message.is-visible {
  animation: successFadeIn 420ms ease forwards;
}

@keyframes successFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide default Pageclip overlay */
.pageclip-popup {
  display: none !important;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.label-optional {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  text-transform: none;
  margin-left: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: rgba(11, 14, 22, 0.75);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-accent-1) 50%),
    linear-gradient(135deg, var(--color-accent-1) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 4px), calc(100% - 16px) calc(50% - 4px);
  background-size: 8px 6px, 8px 6px;
  background-repeat: no-repeat;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(54, 240, 199, 0.55);
  box-shadow: 0 0 0 4px rgba(54, 240, 199, 0.25);
  outline: none;
  transform: translateY(-1px);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.card-link {
  display: block;
  height: 100%;
}

.card-link .card {
  height: 100%;
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.75s cubic-bezier(0.2, 0.65, 0.3, 1) forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.75s ease forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.24s;
}

.delay-3 {
  animation-delay: 0.36s;
}

.delay-4 {
  animation-delay: 0.48s;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 900px) {
  body {
    line-height: 1.68;
  }

  main {
    padding: 0 1.5rem 4rem;
    margin-top: calc(var(--header-height) + 3.25rem);
  }

  .header-inner {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 4.75rem 1.25rem 3.4rem;
    gap: 1.5rem;
  }

  .hero-heading {
    font-size: clamp(2.4rem, 7vw, 3.4rem);
  }

  .hero p,
  .section-description {
    max-width: 540px;
    line-height: 1.7;
  }

  .section-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
  }

  .page-section {
    margin-top: 3.4rem;
  }

  .grid {
    gap: 1.5rem;
  }

  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    padding: 1.95rem;
  }

  .card h3 {
    font-size: 1.35rem;
  }

  .form-card {
    padding: 2.4rem 2rem;
  }

  .site-footer {
    padding: 2rem 1rem 2.4rem;
  }
}

@media (max-width: 600px) {
  body {
    line-height: 1.72;
  }

  main {
    padding: 0 1rem 3.2rem;
    margin-top: calc(var(--header-height) + 4.5rem);
  }

  .site-header {
    height: auto;
    padding: 0.75rem 1rem 1rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    padding: 0;
  }

  .header-brand {
    justify-content: center;
  }

  .header-brand img {
    width: 38px;
  }

  .header-text h1 {
    font-size: 1.3rem;
  }

  .header-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .header-nav a {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .header-nav a.active {
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-1)) !important;
    color: var(--color-bg) !important;
  }

  .hero {
    padding-top: 3.5rem;
    text-align: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    gap: 1.2rem;
  }

  .hero-heading {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }

  .hero p {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto 1.4rem;
  }

  .section-description {
    max-width: 90%;
  }

  .grid.cols-3 {
    grid-template-columns: 1fr !important;
  }

  .grid {
    gap: 1.25rem;
  }

  .card {
    padding: 1.25rem !important;
    margin-bottom: 1rem;
  }

  .card h3 {
    font-size: 1.22rem;
  }

  .button {
    width: 100%;
    padding: 0.78rem 1.35rem;
  }

  .form-card {
    padding: 1.25rem !important;
    max-width: 100%;
  }

  .form-card form {
    gap: 0.9rem;
  }

  input,
  textarea,
  select {
    font-size: 0.93rem;
  }

  textarea {
    min-height: 120px;
  }

  .site-footer {
    padding: 1.75rem 1rem 2rem;
  }
}
