/* Filename: styles.css */
:root {
  --bg-primary: #FFFFFF;
  --text-primary: #171717;
  --text-secondary: #5E5E5E;
  --border-light: #D9D9D9;
  --bg-subtle: #F3F3F3;
  --accent-blue: #2563EB;
  
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  --container-max: 1440px;
  --spacing-section: clamp(4rem, 10vw, 8rem);
}

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

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
  }
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-display { font-size: clamp(2.5rem, 7vw, 6.5rem); }
.text-h2 { font-size: clamp(1.75rem, 4.5vw, 4rem); }
.text-h3 { font-size: clamp(1.35rem, 2.5vw, 2.5rem); }
.text-h4 { font-size: clamp(1.15rem, 2vw, 1.75rem); }
.text-body-large { font-size: clamp(1.05rem, 1.8vw, 1.5rem); }

.text-blue {
  background: linear-gradient(135deg, #00e1ff 0%, #0050ff 50%, #bf00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-slate { color: var(--text-secondary); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section);
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-blue);
}

.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(135deg, #00e1ff 0%, #0050ff 50%, #bf00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 48px;
  min-width: 48px;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 6px;
}

.btn-primary:hover {
  background-color: #030408;
  background-image: 
    radial-gradient(100% 100% at 100% 0%, rgba(0, 225, 255, 0.4) 0%, rgba(0, 80, 255, 0.15) 45%, transparent 70%),
    radial-gradient(100% 100% at 100% 100%, rgba(191, 0, 255, 0.4) 0%, rgba(100, 0, 200, 0.15) 40%, transparent 70%);
  color: var(--bg-primary);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-bottom: 2px solid var(--text-primary);
  padding: 0.5rem 0;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #00e1ff 0%, #0050ff 50%, #bf00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-color: #00e1ff;
}

:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-color: var(--border-light);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
  gap: 1.5rem;
}

.nav-cta {
  padding: 0.55rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.55rem 1.125rem;
  font-size: 0.875rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  transition: opacity 0.2s ease;
  position: relative;
  z-index: 9999;
}

.logo-link:hover,
.logo-link:focus-visible {
  opacity: 0.85;
}

.logo-img, .logo-svg {
  width: auto;
  height: 50px;
  max-width: 100%;
  aspect-ratio: 1200 / 192;   
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  display: block;
}

/* Mobile First Navigation */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 9999;
}

.nav-links {
  display: flex;
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  font-size: 1.5rem;
  font-weight: 500;
  transition: left 0.3s ease;
  z-index: 9998;
}

.nav-links.active {
  left: 0;
}

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 9999;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  background: var(--text-primary);
  height: 2px;
  width: 100%;
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-menu-toggle.active .hamburger { background: transparent; }
.mobile-menu-toggle.active .hamburger::before { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active .hamburger::after { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 1025px) {
  .mobile-menu-toggle { display: none; }
  
  .nav-links {
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    background: transparent;
    font-size: 1rem;
    gap: 1.75rem;
    left: 0;
    transition: none;
  }
}

@media (max-width: 768px) {
  .logo-img, .logo-svg {
    height: 36px;
  }
}

@media (max-width: 480px) {
  .logo-img, .logo-svg {
    height: 28px;
  }
  .nav-cta {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  .nav-actions {
    gap: 0.5rem;
  }
}

.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5rem;
}

.hero-content {
  max-width: 1000px;
}

.hero-actions {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stacked-questions {
  margin-top: 4rem;
}

.stacked-questions h3 {
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}

.stacked-questions h3:last-child {
  border-bottom: none;
}

.card {
  background: var(--bg-subtle);
  padding: 3rem 2rem;
  transition: transform 0.3s ease, background 0.3s ease;
  border-radius: 6px;
}

.card:hover {
  background: var(--bg-primary);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  transform: translateY(-4px);
}

.card-title {
  margin-bottom: 1rem;
}

.audit-band {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  text-align: center;
}

.audit-band h2 {
  color: var(--bg-primary);
}

.audit-band .btn-primary {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.audit-band .btn-primary:hover {
  background-color: #030408;
  background-image: 
    radial-gradient(100% 100% at 100% 0%, rgba(0, 225, 255, 0.4) 0%, rgba(0, 80, 255, 0.15) 45%, transparent 70%),
    radial-gradient(100% 100% at 100% 100%, rgba(191, 0, 255, 0.4) 0%, rgba(100, 0, 200, 0.15) 40%, transparent 70%);
  color: var(--bg-primary);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}

.tech-slider-section {
  background-color: var(--bg-primary);
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.tech-slider-container {
  width: 100%;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  position: relative;
}

.tech-slider-container::before,
.tech-slider-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.tech-slider-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}
.tech-slider-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}

.tech-slider-track {
  display: flex;
  gap: 5rem;
  align-items: center;
  animation: scroll-marquee 30s linear infinite;
  padding-left: 5rem;
}

.tech-slider-track:hover {
  animation-play-state: paused;
}

.tech-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.4;
  transition: opacity 0.3s ease, color 0.3s ease;
  cursor: default;
}

.tech-logo:hover {
  opacity: 1;
  color: var(--text-primary);
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.careers-header {
  margin-top: 2.5rem;
  margin-bottom: 3.5rem;
  max-width: 800px;
}

.careers-intro {
  max-width: 600px;
  margin-top: 1rem;
}

.card[itemscope] {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card[itemscope]:hover {
  border-color: var(--text-primary);
  transform: translateY(-4px);
}

.job-title { margin-bottom: 1rem; }
.job-desc { color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.6; }
.job-subtitle { margin-bottom: 1rem; font-size: 1.1rem; font-family: var(--font-display); font-weight: 700; }

.job-skills-list {
  color: var(--text-secondary);
  padding-left: 1.25rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  list-style-type: square;
}

.job-skills-list li { margin-bottom: 0.5rem; }
.job-skills-list li::marker { color: #00e1ff; }

.systems-hero {
  min-height: 35vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 8rem;
  padding-bottom: 2rem;
}

.systems-hero-desc {
  max-width: 640px;
  margin-top: 1rem;
}

.systems-layout {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 6rem;
}

.system-card {
  display: flex;
  flex-direction: column;
  padding: 4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.system-card:hover {
  border-color: var(--text-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.system-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.system-logo-zone {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-primary);
  padding: 2rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  min-height: 250px;
}

.system-image {
  max-width: 100%;
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  display: inline-block;
}

.system-text-zone {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.system-slogan {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
}

.system-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.system-cta {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.system-video-zone {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}

.system-video-header {
  margin-bottom: 1.5rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: var(--text-primary);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #171717 0%, #2a2a2a 100%);
  color: var(--bg-primary);
  cursor: pointer;
}

.play-button {
  width: 72px;
  height: 72px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-placeholder:hover .play-button {
  transform: scale(1.1);
  background: #1d4ed8;
}

.play-icon {
  margin-left: 6px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid white;
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  background-color: rgba(15, 23, 42, 0.6); 
  backdrop-filter: blur(4px);
  align-items: center; 
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active { 
  display: flex; 
  opacity: 1;
}

.modal-content {
  background: #ffffff; 
  padding: 2.5rem; 
  border-radius: 12px; 
  width: 90%; 
  max-width: 500px; 
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute; 
  top: 1rem; 
  right: 1.25rem; 
  font-size: 2rem; 
  color: var(--text-slate);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

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

.modal-heading {
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.apply-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .apply-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.apply-form .form-group { 
  margin-bottom: 1.25rem; 
}

.apply-form label { 
  display: block; 
  margin-bottom: 0.5rem; 
  font-weight: 500;
  font-size: 0.875rem;
}

.apply-form input[type="text"],
.apply-form input[type="tel"],
.apply-form input[type="email"],
.apply-form input[type="file"] { 
  width: 100%; 
  padding: 0.75rem; 
  border: 1px solid var(--border-color, #d9d9d9); 
  border-radius: 6px; 
  font-family: var(--font-body);
  font-size: 1rem;
}

.apply-form input:focus {
  outline: none;
  border-color: var(--accent-blue); 
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  font-size: 1.125rem;
}

@media (max-width: 992px) {
  .system-content-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .system-card {
    padding: 2.5rem;
  }

  .system-logo-zone {
    padding: 2rem 1.5rem;
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  .system-card {
    padding: 1.75rem;
  }
  
  .system-video-zone {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
  }
}

/* Footer Gradient Styling */
.site-footer {
  background-color: #030408;
  background-image: 
    radial-gradient(100% 100% at 100% 0%, rgba(0, 225, 255, 0.4) 0%, rgba(0, 80, 255, 0.15) 45%, transparent 70%),
    radial-gradient(100% 100% at 100% 100%, rgba(191, 0, 255, 0.4) 0%, rgba(100, 0, 200, 0.15) 40%, transparent 70%);
  color: #ffffff;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Ensure typography inherits the light colors */
.site-footer h4,
.site-footer .logo,
.site-footer .text-h4 {
  color: #ffffff;
}

.site-footer .text-slate {
  color: rgba(255, 255, 255, 0.7) !important;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75) !important;
}

.site-footer a:hover {
  background: linear-gradient(135deg, #00e1ff 0%, #0050ff 50%, #bf00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   Footer Locations
========================================= */
.footer-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem; /* Makes the text smaller */
}

.location-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.75) !important;
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.location-link:hover {
  background: linear-gradient(135deg, #00e1ff 0%, #0050ff 50%, #bf00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.location-link .flag {
  font-size: 1.25em; /* Keeps emojis legible */
  line-height: 1;
}

.location-link .arrow {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

/* Arrow hover animation */
.location-link:hover .arrow {
  transform: translate(3px, -3px);
}

/* Responsive constraints for mobile */
@media (max-width: 600px) {
  .footer-locations {
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 3rem;
  }
}