/* ============ GLOBAL ============ */

:root {
  --color-bg-dark: #050509;
  --color-bg-darker: #020206;
  --color-bg-light: #f5f5f7;

  --color-text-primary: #ffffff;
  --color-text-muted: #b1b1c3;
  --color-border-subtle: #262634;

  /* Brand gradient from user reference screenshot */
  --grad-main: linear-gradient(120deg, #14d4e3 0%, #4280f9 49%, #ce7cf8 100%);

  /* Additional colours matching the dynamic site */
  --bg-header: radial-gradient(circle at top left, #191927 0, #050509 55%);
  --text-muted: #b1b1c3;
  --bg-overlay: radial-gradient(circle at top, #181827 0, #050509 80%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--color-bg-darker);
  color: var(--color-text-primary);
}

/* =============================================================
   Header & Overlay Navigation
============================================================= */
/* Header containing only the logo button */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: var(--bg-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Small logo button used to toggle overlay navigation */
.logo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-image: url("/assets/group-40.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Overlay navigation panel */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  background: var(--bg-overlay);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* click outside area to close overlay nav */
.nav-overlay .overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

/* Utility containers */

.container {
  max-width: 1120px;
  padding: 0 20px;
  margin: 0 auto;
}

/* ============ HEADER / NAV ============ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: radial-gradient(circle at top left, #191927 0, #050509 55%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  flex-direction: column;
  gap: 4px;
}

/* ============ BUTTONS ============ */

.btn {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background 0.18s ease, color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 90vh;
  padding-top: 96px;
  /* header offset */
  padding-bottom: 72px;
  overflow: hidden;
  background: radial-gradient(circle at top left, #161623 0, #020206 55%);
  color: #ffffff;
}

/* Canvas behind content */
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Gradient glows */

.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.7;
  pointer-events: none;
}

/* Left text side */

.hero-left h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}

/* Right visual card */

.hero-right {
  display: flex;
  justify-content: flex-end;
}

.hero-card-body {
  padding: 18px 18px 16px;
}

/* ============ SECTIONS ============ */

.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* SHOWCASE */

.showcase-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card>* {
  position: relative;
  z-index: 1;
}

/* SOLUTIONS */

.solutions-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

/* Contact form */

.contact-form {
  border-radius: 22px;
  padding: 20px 20px 18px;
  background: rgba(10, 10, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0 20px;
  background: #020206;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  /* Optional: small mobile nav dropdown (simple) */

  body.nav-open .nav-links,
  body.nav-open .nav-cta {
    display: flex !important;
  }

  @media (max-width: 720px) {
    body.nav-open .site-header {
      backdrop-filter: blur(24px);
    }

    body.nav-open .nav-links {
      position: absolute;
      top: 64px;
      left: 0;
      right: 0;
      padding: 14px 20px 10px;
      background: radial-gradient(circle at top, #252539 0, #050509 70%);
      flex-direction: column;
    }

    body.nav-open .nav-cta {
      position: absolute;
      top: auto;
      right: 20px;
      bottom: 8px;
    }
  }
}