:root {
  --bg: #0a0a0a;
  --bg-elev: #0f1113;
  --text: #e5e5e5;
  --muted: #9aa0a6;
  --accent: #31ff40;
  --card: #111418;
  --card-border: #1f242b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #161a1f;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand-logo { height: 34px; width: auto; display: block; }
.main-nav a { color: var(--text); text-decoration: none; margin-left: 20px; opacity: 0.9; }
.main-nav a:hover { color: #fff; }

.section { padding: 72px 0; position: relative; }
.eyebrow { font-size: 40px; margin: 0 0 16px; }
h1, h2, h3 { margin: 0 0 12px; }
.lead { color: var(--muted); }
.accent { color: var(--accent); }

/* Hero */
.hero { padding: 120px 0 96px; overflow: hidden; }
.hero-image { position: relative; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; pointer-events: none; transform: translateZ(0); }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-title { font-size: clamp(28px, 6vw, 56px); font-weight: 900; line-height: 1.05; }
.hero-title .subtitle { display: block; color: #fff; font-weight: 800; margin-top: 12px; }

/* Taller engineering hero */
.hero-image { min-height: 60vh; }
.hero-image .hero-inner { min-height: 60vh; display: flex; align-items: center; justify-content: center; }

/* Grid */
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 900px) {
  .grid.two { grid-template-columns: 1fr; }
}

/* Who we are */
.who-visual { display: flex; justify-content: center; }
.who-logo { width: min(560px, 80%); height: auto; }
.who-copy { position: relative; }
.who-bg { position: absolute; inset: -10% -20% auto auto; width: 120%; opacity: 0.2; pointer-events: none; filter: blur(2px); }
.who-copy p { color: var(--muted); max-width: 60ch; }

/* First screen styling with ring background */
.who-hero { padding: 0; min-height: calc(100vh - 64px); display: grid; place-items: stretch; overflow: hidden; position: relative; }
.who-hero:after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 140px;
  background: linear-gradient(to bottom, rgba(10,10,10,0) 0%, rgba(10,10,10,0.6) 60%, var(--bg) 100%);
  pointer-events: none;
}
.who-hero-bg { position: absolute; inset: 0; width: 101%; height: 101%; object-fit: cover; opacity: 0.55; pointer-events: none; transform: scale(1.02); will-change: transform; }
.who-hero-inner { position: relative; z-index: 1; padding: 96px 0; }
.who-wordmark { display: block; max-width: min(95%, 1100px); width: 100%; height: auto; margin: 0 0 32px; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)); }
.who-card {
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(16,18,22,0.55), rgba(16,18,22,0.55)), url('assets/images/who-card-bg.png');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 40px);
  box-shadow: 0 20px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
}
.who-card .eyebrow { font-size: clamp(40px, 6vw, 72px); }
.who-card p { font-size: clamp(14px, 1.4vw, 18px); }

/* Who hero custom text */
.who-hero-text { display: grid; gap: 10px; }
.who-hero-headline { font-size: clamp(28px, 5.5vw, 64px); font-weight: 900; letter-spacing: -0.02em; }
.who-hero-subhead { font-size: clamp(18px, 3.2vw, 36px); color: #e8edf2; opacity: 0.95; }

/* Catchy text animation */
@keyframes shimmer {
  0% { filter: drop-shadow(0 0 0 rgba(49,255,64,0.0)); }
  50% { filter: drop-shadow(0 0 14px rgba(49,255,64,0.35)); }
  100% { filter: drop-shadow(0 0 0 rgba(49,255,64,0.0)); }
}
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.who-hero-headline { animation: shimmer 2.4s ease-in-out infinite; }
.who-hero-subhead { animation: slideUpFade 900ms ease 160ms both; }

/* Typewriter effect */
.typewriter {
  display: inline-block;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
}
.typewriter:after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-55%);
  width: 2px;
  height: 1.05em;
  background: var(--accent);
  opacity: 0.85;
  animation: caret-blink 1.1s steps(1, end) infinite;
}

@keyframes caret-blink { 0%, 49% { opacity: 0.85; } 50%, 100% { opacity: 0.15; } }

@media (prefers-reduced-motion: no-preference) {
  .typewriter {
    -webkit-mask-image: linear-gradient(#fff 0 0);
    mask-image: linear-gradient(#fff 0 0);
    -webkit-mask-size: 0% 100%;
    mask-size: 0% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    will-change: -webkit-mask-size, mask-size;
    animation: reveal-mask 2200ms cubic-bezier(0.23, 1, 0.32, 1) 300ms forwards;
  }
  .typewriter:after { animation-duration: 0.9s; }
}

@keyframes reveal-mask {
  to { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
}

/* Add subtle colorful edge glow to the card */
.who-card {
  position: relative;
}
.who-card:before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: conic-gradient(from 180deg at 50% 50%, #3cf 0deg, #9f3cff 120deg, #ff3c7d 210deg, #31ff40 300deg, #3cf 360deg);
  filter: blur(14px);
  opacity: 0.22;
  z-index: -1;
}

/* Why section */
.why { padding: 108px 0; }
.why-visual img { width: 100%; height: auto; display: block; border-radius: 24px; }
.why-copy h2 { font-size: clamp(32px, 6vw, 72px); }
.cta-row { display: flex; gap: 14px; margin-top: 16px; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 999px; background: #1a1f24; color: #eaecee; text-decoration: none; border: 1px solid #2a3038; }
.btn:hover { background: #232a31; }
.btn-primary { background: var(--accent); color: #0a0e0b; border: none; font-weight: 700; }
.btn-primary:hover { filter: brightness(0.95); }

/* Services marquee */
.services { overflow: hidden; }
.services .container h2 { font-size: clamp(28px, 5vw, 56px); margin-bottom: 16px; }
.services-marquee { position: relative; overflow: hidden; padding: 8px 0 24px; }
.marquee-track { display: flex; gap: 16px; will-change: transform; }
.service-card { flex: 0 0 320px; background: var(--card); border: 1px solid var(--card-border); border-radius: 20px; overflow: hidden; position: relative; }
.service-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.service-card h3 { position: absolute; left: 16px; bottom: 12px; margin: 0; background: rgba(0,0,0,0.45); padding: 6px 10px; border-radius: 12px; }

/* CTA */
.cta-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.cta-copy h2 { font-size: clamp(28px, 5vw, 56px); }
.cta-copy p { color: var(--muted); max-width: 60ch; }
.cta-visual img { width: 100%; height: auto; display: block; border-radius: 28px; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid #161a1f; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; padding: 36px 0; }
.footer-brand { font-weight: 800; font-size: 22px; letter-spacing: 2px; }
.footer-col h3 { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; color: #b7bec6; }
.footer-col li { padding: 6px 0; font-size: 14px; }
.copyright { text-align: center; color: #8a949e; padding: 10px 0 24px; font-size: 13px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* Footer social */
.footer-social { display: flex; justify-content: center; padding: 8px 0 16px; }
.social-links { display: flex; gap: 12px; }
.social-links a { 
  display: inline-flex; align-items: center; justify-content: center; 
  width: 40px; height: 40px; border-radius: 999px; 
  background: #12161b; border: 1px solid #232a33; color: #dfe6ee; 
  text-decoration: none;
  transition: all 0.25s ease;
}
.social-links a:hover { 
  transform: translateY(-2px); 
  background: #1a2027; border-color: var(--accent); color: #0a0e0b; 
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 0 4px rgba(49,255,64,0.12);
}
.social-links .icon { width: 20px; height: 20px; }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.team-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.team-info { padding: 12px 14px; }
.team-name { margin: 0 0 4px; font-size: 16px; }
.team-role { margin: 0; font-size: 13px; color: var(--muted); }


/* Contact form */
.contact-card {
  margin-top: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(25,28,32,0.55), rgba(16,18,22,0.55));
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
}
.form-row { display: grid; gap: 6px; margin: 12px 0; }
.form-label { font-size: 13px; color: var(--muted); }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #2a3038;
  background: #0f1216;
  color: #e6eaef;
  outline: none;
}
.form-control[multiple] { height: auto; min-height: 160px; }
.form-control[multiple] option { padding: 6px 8px; }
.form-control[multiple] option:checked { background: rgba(49,255,64,0.25) linear-gradient(0deg, rgba(49,255,64,0.25), rgba(49,255,64,0.25)); color: #eaffea; }
.form-control::placeholder { color: #7f8791; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(49,255,64,0.15); }

/* Date and time input styling for better icon visibility */
.form-control[type="date"],
.form-control[type="time"] {
  color-scheme: dark;
  background-color: #0f1216;
  color: #e6eaef;
}

.form-control[type="date"]::-webkit-calendar-picker-indicator,
.form-control[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.8;
}

.form-control[type="date"]::-webkit-calendar-picker-indicator:hover,
.form-control[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Firefox date/time input styling */
.form-control[type="date"]::-moz-calendar-picker-indicator,
.form-control[type="time"]::-moz-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.8;
}

.form-control[type="date"]::-moz-calendar-picker-indicator:hover,
.form-control[type="time"]::-moz-calendar-picker-indicator:hover {
  opacity: 1;
}
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.form-status { color: var(--muted); font-size: 14px; min-height: 1em; }

/* Modal */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-dialog { 
  position: relative; 
  width: min(720px, 92%); 
  max-height: 90vh;
  border-radius: 20px; 
  border: 1px solid rgba(255,255,255,0.08); 
  background: linear-gradient(180deg, rgba(25,28,32,0.75), rgba(16,18,22,0.75)); 
  box-shadow: 0 20px 80px rgba(0,0,0,0.55); 
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  margin-right: -8px;
}
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}
.modal-title { margin-bottom: 8px; }
.modal-close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: #c9d1d9; font-size: 22px; cursor: pointer; z-index: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

/* Mobile modal improvements */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
  }
  .modal-dialog {
    max-height: 95vh;
    width: 100%;
  }
  .modal-content {
    padding-right: 4px;
    margin-right: -4px;
  }
}
.variant { display: none; }
.modal[data-variant="call"] .variant-call { display: block; }
.modal[data-variant="quote"] .variant-quote { display: block; }

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-animate-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-animate-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Hover animations */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(49,255,64,0.4);
}

/* Card hover effects */
.who-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.who-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 100px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
}

.contact-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}

/* Logo hover */
.brand-logo {
  transition: transform 0.3s ease;
}
.brand-logo:hover {
  transform: scale(1.05);
}

/* Navigation hover */
.main-nav a {
  transition: all 0.3s ease;
  position: relative;
}
.main-nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}
.main-nav a:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.main-nav a:hover:after {
  width: 100%;
}

/* Form controls hover */
.form-control {
  transition: all 0.3s ease;
}
.form-control:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

/* Footer links hover */
.footer-col li {
  transition: all 0.3s ease;
  cursor: pointer;
}
.footer-col li:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* Image hover effects */
.why-visual img, .cta-visual img {
  transition: transform 0.3s ease;
}
.why-visual img:hover, .cta-visual img:hover {
  transform: scale(1.05);
}
/* Team Grid as a horizontal marquee */
.team-grid {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.team-track {
  display: flex;
  gap: 2rem;             /* space between cards */
  animation: scroll-left 20s linear infinite;
}

.team-card {
  flex: 0 0 auto;        /* prevent shrinking */
  width: 280px;          /* adjust to your card size */
}

/* Animation keyframes */
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* shift by half (since we duplicated cards) */
}

/* Staggered animation delays */
.scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.scroll-animate:nth-child(4) { transition-delay: 0.4s; }
