/* ========================================
   MonoIT Australia — Main Stylesheet
   Enterprise Visual Design with PCB/Matrix Effects
   ======================================== */

/* ========================================
   Self-Hosted Fonts
   ======================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-800.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('../fonts/jetbrains-mono-500.woff2') format('woff2');
}

/* CSS Custom Properties (Variables) */
:root {
  /* Colour Palette */
  --color-primary: #0066CC;
  --color-primary-dark: #0052A3;
  --color-primary-light: #3385D6;
  --color-accent: #00AAB3;
  --color-accent-dark: #008A91;
  --color-navy: #0A1628;
  --color-charcoal: #2D3748;
  --color-grey-light: #F7F9FC;
  --color-grey-medium: #E2E8F0;
  --color-white: #FFFFFF;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Container */
  --container-max: 1280px;
  --container-padding: 1.5rem;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-4);
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-charcoal);
  opacity: 0.9;
}

.text-accent {
  color: var(--color-accent);
}

.text-primary {
  color: var(--color-primary);
}

/* ========================================
   Layout Components
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: var(--space-20) 0;
}

.section--grey {
  background-color: var(--color-grey-light);
}

.section--dark {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.grid {
  display: grid;
  gap: var(--space-8);
}

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

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

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__list {
  display: flex;
  gap: var(--space-6);
}

.nav__link {
  color: var(--color-charcoal);
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

@media (max-width: 1024px) {
  .nav__list {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn--white:hover {
  background-color: var(--color-grey-light);
  color: var(--color-primary);
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, #0A1628 0%, #132242 70%, #0052A3 100%);
  background-size: cover;
  overflow: hidden;
}

/* subtle geometric overlay for a refined look */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M0 0h60v60H0z" fill="none"/><circle cx="30" cy="30" r="1" fill="%23000" opacity="0.1"/><path d="M0 0l60 60M60 0L0 60" stroke="%23000" stroke-width="0.5" opacity="0.05"/></svg>');
  opacity: 0.05;
  pointer-events: none;
}

.hero::after { display: none; }

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--space-6);
  animation: glow 3s ease-in-out infinite;
  letter-spacing: 1px;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ========================================
   Service Cards
   ======================================== */

.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-grey-medium);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 170, 179, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    var(--shadow-xl),
    0 0 20px rgba(0, 102, 204, 0.15),
    inset 0 0 20px rgba(0, 170, 179, 0.05);
  border-color: var(--color-primary-light);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
  box-shadow: 0 0 15px rgba(0, 102, 204, 0.2);
}

.service-card:hover .service-card__icon {
  box-shadow: 
    0 0 20px rgba(0, 102, 204, 0.4),
    0 0 40px rgba(0, 170, 179, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  animation: electricPulse 1.5s ease-in-out infinite;
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-white);
}

.service-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.service-card__description {
  color: var(--color-charcoal);
  opacity: 0.85;
  margin-bottom: var(--space-4);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-primary);
}

.service-card__link:hover {
  gap: var(--space-3);
}

/* ========================================
   Stats Section
   ======================================== */

.stats {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M0 0h60v60H0z" fill="none"/><circle cx="30" cy="30" r="1" fill="%23000" opacity="0.1"/><path d="M0 0l60 60M60 0L0 60" stroke="%23000" stroke-width="0.5" opacity="0.05"/></svg>');
  opacity: 0.04;
  pointer-events: none;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(0, 102, 204, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0, 170, 179, 0.15) 0%, transparent 50%);
  animation: energyPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat__number {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__label {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-base);
}

@media (max-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

/* ========================================
   Testimonials
   ======================================== */

.testimonial {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial__content {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-charcoal);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--text-lg);
}

.testimonial__name {
  font-weight: 600;
  color: var(--color-navy);
}

.testimonial__role {
  font-size: var(--text-sm);
  color: var(--color-charcoal);
  opacity: 0.75;
}

/* ========================================
   Features Section
   ======================================== */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-16);
  align-items: center;
}

.features__content {
  max-width: 540px;
}

.features__list {
  margin-top: var(--space-8);
}

.features__item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.features__item-icon {
  width: 24px;
  height: 24px;
  background-color: var(--color-success);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.features__item-icon svg {
  width: 14px;
  height: 14px;
  color: var(--color-white);
}

.features__image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 1024px) {
  .features {
    grid-template-columns: 1fr;
  }
  .features__content {
    max-width: none;
  }
}

/* ========================================
   CTA Section
   ======================================== */

.cta {
  background: linear-gradient(135deg, var(--color-navy) 0%, #132242 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M0 0h60v60H0z" fill="none"/><circle cx="30" cy="30" r="1" fill="%23000" opacity="0.1"/><path d="M0 0l60 60M60 0L0 60" stroke="%23000" stroke-width="0.5" opacity="0.05"/></svg>');
  opacity: 0.04;
  pointer-events: none;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
  animation: energyPulse 5s ease-in-out infinite;
  pointer-events: none;
}

.cta__content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: linear-gradient(135deg, var(--color-navy) 0%, #132242 50%, var(--color-navy) 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 102, 204, 0.05) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(0, 170, 179, 0.05) 0%, transparent 30%);
  pointer-events: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  position: relative;
  z-index: 2;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer__description {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all var(--transition-fast);
  box-shadow: inset 0 0 10px rgba(0, 170, 179, 0.1);
}

.footer__social a:hover {
  background-color: var(--color-primary);
  box-shadow: 
    0 0 15px rgba(0, 102, 204, 0.4),
    inset 0 0 15px rgba(0, 170, 179, 0.2);
}

.footer__heading {
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.footer__links li {
  margin-bottom: var(--space-3);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
  position: relative;
}

.footer__links a:hover {
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(0, 170, 179, 0.3);
}

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  position: relative;
  z-index: 2;
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(0, 170, 179, 0.3);
}

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__brand {
    grid-column: span 2;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__brand {
    grid-column: span 1;
  }
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* ========================================
   Contact Form
   ======================================== */

.form__group {
  margin-bottom: var(--space-6);
}

.form__label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-navy);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-grey-medium);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mt-8 {
  margin-top: var(--space-8);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes electricPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.3), inset 0 0 20px rgba(0, 170, 179, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.6), inset 0 0 30px rgba(0, 170, 179, 0.2);
  }
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 102, 204, 0.3), 0 0 20px rgba(0, 170, 179, 0.2);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 102, 204, 0.6), 0 0 40px rgba(0, 170, 179, 0.4);
  }
}

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

@keyframes floatElectron {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(30px, -30px);
  }
  50% {
    transform: translate(0, -60px);
  }
  75% {
    transform: translate(-30px, -30px);
  }
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 0.9;
  }
  20%, 24%, 55% {
    opacity: 0.5;
  }
}

@keyframes energyPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

.animate-electric-pulse {
  animation: electricPulse 2s ease-in-out infinite;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .header,
  .footer,
  .btn,
  .matrix-canvas,
  .pcb-trace-container {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
  
  a {
    color: #000;
  }
}

/* ========================================
   Enterprise Visual Effects
   ======================================== */

/* Matrix Rain Canvas (positioned as background) */
.matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
}

/* PCB Trace Lines - decorative background elements */
.pcb-trace-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.pcb-trace {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(0, 170, 179, 0.15), transparent);
  height: 1px;
  animation: pcbTraceScan 8s linear infinite;
}

.pcb-trace--vertical {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(0, 102, 204, 0.15), transparent);
  /* Animation removed for cleaner UI */
}

@keyframes pcbTraceScan {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(100vw); opacity: 0; }
}

/* Vertical trace animation removed - no longer used */

/* Scan Line Effect - DISABLED */
.scan-line {
  display: none;
}

/* Enterprise Glow Buttons */
.btn--primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
  border-radius: 50%;
}

.btn--primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn--primary:hover {
  box-shadow: 
    0 0 15px rgba(0, 102, 204, 0.4),
    0 0 30px rgba(0, 102, 204, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Glowing border effect on cards */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::after {
  opacity: 1;
  animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { 
    background-position: 0% 50%;
    filter: brightness(1);
  }
  50% { 
    background-position: 100% 50%;
    filter: brightness(1.3);
  }
}

/* Node/Dot Grid Background Effect for grey sections */
.section--grey {
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 102, 204, 0.06) 1px, transparent 0);
  background-size: 40px 40px;
}

/* Typing cursor on hero subtitle */
.hero__subtitle::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--color-accent);
  font-weight: 300;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Electric border on testimonial hover */
.testimonial {
  position: relative;
  transition: all 0.3s ease;
}

.testimonial:hover {
  box-shadow: 
    var(--shadow-lg),
    0 0 20px rgba(0, 102, 204, 0.1);
}

.testimonial::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.4s ease;
}

.testimonial:hover::after {
  width: 80%;
}

/* Stat numbers glow effect */
.stat__number {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transition: text-shadow 0.3s ease;
}

.stat:hover .stat__number {
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.5),
    0 0 40px rgba(0, 170, 179, 0.3);
}

/* Process step hover effects */
.process-step__number {
  transition: all 0.3s ease;
}

.process-step:hover .process-step__number {
  box-shadow: 0 0 25px rgba(0, 102, 204, 0.4), 0 0 50px rgba(0, 170, 179, 0.2);
  transform: scale(1.05);
}

/* Header glass morphism on scroll */
.header.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 102, 204, 0.15);
}

/* Change nav text color on scroll for readability */
.header.scrolled .nav__link {
  color: rgba(255, 255, 255, 0.9);
}

.header.scrolled .nav__link:hover {
  color: var(--color-accent);
}

.header.scrolled .header__logo {
  color: rgba(255, 255, 255, 0.95);
}

.header.scrolled .nav__link::after {
  background-color: var(--color-accent);
}

/* Smooth reveal animation for scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Feature items stagger animation */
.features__item {
  transition: all 0.3s ease;
}

.features__item:hover {
  transform: translateX(8px);
}

.features__item:hover .features__item-icon {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* Value cards hover glow */
.value-card {
  transition: all 0.3s ease;
}

.value-card:hover {
  border-left-color: var(--color-accent);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 102, 204, 0.1);
  transform: translateY(-2px);
}

/* CTA content z-index fix for overlapping pseudo-elements */
.cta__title,
.cta__text {
  position: relative;
  z-index: 2;
}

/* Link hover underline glow */
.nav__link::after {
  filter: drop-shadow(0 0 4px rgba(0, 102, 204, 0.5));
}

/* Mobile menu animation */
@media (max-width: 1024px) {
  .nav__list {
    transition: all 0.3s ease;
  }
}

/* ========================================
   Section Labels
   ======================================== */

.section__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 170, 179, 0.1));
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(0, 102, 204, 0.2);
}

/* ========================================
   Partners Section - Enterprise Grid
   ======================================== */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
  align-items: center;
  justify-items: center;
  margin-bottom: var(--space-8);
}

.partners-grid--secondary {
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-4);
  margin-bottom: 0;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(0, 102, 204, 0.1);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-grey-medium);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 80px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.partner-logo img {
  max-height: 45px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.4s ease;
}

.partner-logo:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 
    0 8px 25px rgba(0, 102, 204, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.06);
}

.partner-logo:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

.partner-logo--small {
  height: 65px;
  padding: var(--space-3);
}

.partner-logo--small img {
  max-height: 32px;
  max-width: 100px;
}

/* Responsive Partners Grid */
@media (max-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .partners-grid--secondary {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  .partners-grid--secondary {
    grid-template-columns: repeat(2, 1fr);
  }
  .partner-logo {
    height: 70px;
  }
  .partner-logo img {
    max-height: 35px;
  }
}

@media (max-width: 480px) {
  .partners-grid,
  .partners-grid--secondary {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  .partner-logo,
  .partner-logo--small {
    height: 60px;
    padding: var(--space-2);
  }
}

/* ========================================
   Professional Background - Refined Design
   ======================================== */

/* Background gradient mesh overlay - subtle & professional */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 102, 204, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0, 170, 179, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 70% 80%, rgba(0, 102, 204, 0.025) 0%, transparent 50%);
  pointer-events: none;
  z-index: -2;
}

/* Refined matrix canvas - more subtle for enterprise */
.matrix-canvas {
  opacity: 0.018 !important;
}

/* PCB traces - more refined */
.pcb-trace-container {
  opacity: 0.4;
}

/* Scan line - subtler */
.scan-line {
  opacity: 0.4;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 102, 204, 0.2) 30%, 
    rgba(0, 170, 179, 0.3) 50%, 
    rgba(0, 102, 204, 0.2) 70%, 
    transparent 100%);
}

/* Subtle animated grid for sections */
.section--grey::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 102, 204, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 204, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.5;
}

.section--grey {
  position: relative;
  overflow: hidden;
}
