:root {
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;
  --accent: #06b6d4;
  --accent-glow: #67e8f9;
  --dark: #0a0a0f;
  --dark-light: #1a1a2e;
  --gray: #94a3b8;
  --light: #f8fafc;
  --header-h: 120px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}
body.noscroll {
  overflow: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation — significantly taller */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: 0.3s;
}
header.scrolled {
  background: rgba(10, 10, 15, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3.2rem 0;
} /* increased */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  height: 86px;
  width: auto;
  filter: drop-shadow(0 6px 22px rgba(59, 130, 246, 0.25));
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.1px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.nav-links a:hover {
  color: var(--accent-glow);
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  transition: width 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}
.cta-button {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  padding: 1.1rem 2.1rem;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--light);
  border-radius: 3px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 84px) 0 90px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* CLIENTS (migrated from original inline styles) */
.clients {
  padding: 5rem 0;
  background: var(--dark);
}
.clients .section-title {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
}
/* Fallback: flex layout to guarantee horizontal rows if grid is overridden */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: stretch;
  justify-content: center;
  margin-top: 2rem;
}
.clients-grid .client-card {
  flex: 0 1 240px;
}

/* Preferred: grid layout for exact, even sizing */
@supports (display: grid) {
  .clients-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 1.4rem;
    align-items: center;
    justify-items: center;
  }
}

.client-card {
  width: 100%;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  transition: 0.3s;
  /* Full-color baseline for logos */
  filter: none !important;
  opacity: 1;
  text-decoration: none;
}
.client-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
  filter: none;
  opacity: 1;
}
.client-card img {
  max-width: 160px;
  max-height: 64px;
  object-fit: contain;
}
.clients-cta {
  margin-top: 2.4rem;
  text-align: center;
}
.client-card figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
}
.client-card figcaption {
  font-size: 0.95rem;
  color: var(--gray);
  text-align: center;
}

@media (max-width: 1024px) {
  @supports (display: grid) {
    .clients-grid {
      grid-template-columns: repeat(3, minmax(160px, 1fr));
    }
  }
}
@media (max-width: 768px) {
  @supports (display: grid) {
    .clients-grid {
      grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
  }
}
@media (max-width: 480px) {
  @supports (display: grid) {
    .clients-grid {
      grid-template-columns: 1fr;
    }
  }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(59, 130, 246, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: grid-move 38s linear infinite;
  opacity: 0.35;
  pointer-events: none;
}
@keyframes grid-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(56px, 56px);
  }
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  opacity: 0.8;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text h1 {
  font-size: clamp(2.7rem, 5vw, 4.3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-text h1 span {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: 0.3s;
}
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--light);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.hero-image-frame {
  border: 2px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}
.hero-image {
  display: block;
  width: 100%;
  height: 540px;
  object-fit: cover;
}

/* Clickable card wrapper */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card-link .service-card,
.card-link .industry-card {
  cursor: pointer;
}
.card-link:focus-visible .service-card,
.card-link:focus-visible .industry-card {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 18px;
}

/* Stats */
.stats {
  padding: 5rem 0;
  background: var(--dark-light);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}
.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}
.stat-number {
  font-size: 3.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  color: var(--gray);
  font-size: 1.1rem;
}

/* Services */
.services {
  padding: 5rem 0;
  background: var(--dark);
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  color: var(--accent-glow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  font-family: "JetBrains Mono", monospace;
}
.section-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 900;
  margin: 1rem 0;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-desc {
  color: var(--gray);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}
.service-icon {
  width: 84px;
  height: 84px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2.6rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}
.service-card p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.service-features {
  list-style: none;
}
.service-features li {
  padding: 0.5rem 0;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Industries */
.industries {
  padding: 5rem 0;
  background: var(--dark-light);
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.industry-card {
  position: relative;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.industry-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.industry-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1) brightness(0.95);
}
.industry-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 70%);
  color: #fff;
}
.industry-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #9cd1ff;
}
.industry-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.industry-card p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Contact */
.contact {
  padding: 5rem 0;
  background: var(--dark);
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}
.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-info p {
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-light);
  transition: 0.3s;
}
.contact-item:hover .contact-icon {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}
.contact-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--light);
  font-weight: 600;
}
.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--light);
  font-size: 1rem;
  transition: 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}
.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  display: none;
  font-weight: 500;
}
.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Select theming */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A7C7FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}
select.form-control option {
  background: #0f172a;
  color: #e5e7eb;
}

/* Footer */
footer {
  background: var(--dark-light);
  color: #fff;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: "JetBrains Mono", monospace;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-brand p {
  color: var(--gray);
  line-height: 1.8;
}
.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--light);
}
.footer-links ul {
  list-style: none;
}
.footer-links a {
  color: var(--gray);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: 0.3s;
}
.footer-links a:hover {
  color: var(--accent-glow);
  transform: translateX(5px);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    width: 100%;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    transition: right 0.3s;
    backdrop-filter: blur(20px);
  }
  .nav-links.active {
    right: 0;
  }
  .hamburger {
    display: flex;
  }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image {
    height: 360px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid,
  .industries-grid {
    grid-template-columns: 1fr;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

/* NAV – give the logo breathing room */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0 !important; /* was 3.2rem */
}

/* Logo sizing (adds space above/below) */
.logo-img {
  height: 74px; /* was 86px */
  width: auto;
  filter: drop-shadow(0 6px 22px rgba(59, 130, 246, 0.25));
  display: block; /* prevents baseline crowding */
}

/* Mobile: keep proportions tidy */
@media (max-width: 768px) {
  .logo-img {
    height: 60px !important;
  }
}

/* ===== Header unification (scoped to our site header) ===== */
header#header {
  background: rgba(10, 10, 15, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
#header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0 !important;
}
#header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
#header .logo-img {
  height: 52px !important;
  width: auto;
  display: block;
}

#header .nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
#header .nav-links a:not(.cta-button) {
  color: var(--light) !important;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  padding: 0.25rem 0;
}

#header .nav-links i,
#header .nav-links svg {
  display: inline-block;
  vertical-align: middle;
}
#header .nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  transition: width 0.3s;
}
#header .nav-links a:hover::after {
  width: 100%;
}
#header .hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  cursor: pointer;
}
#header .hamburger span {
  width: 26px;
  height: 3px;
  background: var(--light);
  border-radius: 3px;
  transition: 0.3s;
}
#header .hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#header .hamburger.active span:nth-child(2) {
  opacity: 0;
}
#header .hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
  #header .nav-links {
    position: fixed;
    right: 0;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    width: 100vw;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    transition: transform 0.3s ease;
    backdrop-filter: blur(20px);
    will-change: transform;
    transform: translateX(100%);
    overflow-y: auto;
  }
  #header .nav-links.active {
    transform: translateX(0);
  }
  #header .hamburger {
    display: flex;
  }
  #header .logo-img {
    height: 44px !important;
  }
}

/* Asystom: remove embedded headers to avoid double-header effect */
.industrial-header,
.site-header {
  display: none !important;
}
/* Asystom/hero value icons: ensure visibility on dark backgrounds */
.value-icon,
.value-icon svg {
  color: #fff !important;
  fill: #fff !important;
  opacity: 1 !important;
  filter: none !important;
}

html {
  overflow-x: hidden;
}
img,
video {
  max-width: 100%;
  height: auto;
}
.stats {
  overflow-x: hidden;
}
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    padding-left: 4px;
    padding-right: 4px;
  }
  .stat-card {
    padding: 1.75rem 1.25rem;
  }
}
