/* ============================================================
   NEXARA CLOUD LABS — style.css
   Complete redesign — 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---- CSS Variables ----------------------------------------- */
:root {
  --bg-primary:       #0A0F1E;
  --bg-surface:       #0F1629;
  --accent-blue:      #2563EB;
  --accent-blue-dark: #1d4ed8;
  --accent-teal:      #06B6D4;
  --text-light:       #F0F4FF;
  --text-muted:       #64748B;
  --border:           #1E2D4A;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  --section-px:  clamp(20px, 5vw, 80px);
  --section-py:  clamp(64px, 8vw, 120px);

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

/* Custom scrollbar */
::-webkit-scrollbar        { width: 7px; }
::-webkit-scrollbar-track  { background: var(--bg-primary); }
::-webkit-scrollbar-thumb  { background: var(--accent-blue); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: #3b82f6; }

::selection {
  background: rgba(37, 99, 235, 0.30);
  color: var(--text-light);
}

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

a    { color: inherit; text-decoration: none; }
img  { display: block; max-width: 100%; }

button,
input,
textarea {
  font: inherit;
}

button { border: none; cursor: pointer; }

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

main {
  display: grid;
  gap: 0;
}

/* ---- Keyframes --------------------------------------------- */
@keyframes heroGlow {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

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

/* ---- Scroll Reveal ----------------------------------------- */
/* Triggered by Intersection Observer script in each HTML file  */
.reveal,
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  will-change: opacity, transform;
}

.reveal.visible,
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: observer adds .visible to the wrapper; CSS delays each child */
.stagger-children > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.stagger-children.visible > *:nth-child(1)  { transition-delay:   0ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(2)  { transition-delay:  90ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(3)  { transition-delay: 180ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(4)  { transition-delay: 270ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(5)  { transition-delay: 360ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(6)  { transition-delay: 450ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(7)  { transition-delay: 540ms; opacity: 1; transform: none; }

/* ---- Utility: Gradient Text -------------------------------- */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Utility: Stats Number --------------------------------- */
.stats-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Utility: Badge / Eyebrow ------------------------------ */
.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--accent-teal);
  font-family: var(--font-body);
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ---- Utility: Tech Pill ------------------------------------ */
.tech-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.tech-pill:hover {
  border-color: var(--accent-blue);
  color: var(--accent-teal);
}

/* ---- Utility: Section Heading ------------------------------ */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  position: relative;
  padding-bottom: 1rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 3px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
}

/* ---- Buttons ----------------------------------------------- */
.button,
.btn-primary,
.btn-secondary,
.btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-lg);
  padding: 0.72rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

/* Primary — blue */
.button-primary,
.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.38);
  border: 1.5px solid transparent;
}

.button-primary:hover,
.btn-primary:hover {
  background: var(--accent-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.55);
}

/* Secondary — outline */
.button-secondary,
.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.button-secondary:hover,
.btn-secondary:hover {
  background: rgba(240, 244, 255, 0.055);
  border-color: rgba(240, 244, 255, 0.3);
  transform: translateY(-2px);
}

/* Teal CTA */
.btn-teal {
  background: var(--accent-teal);
  color: #0A0F1E;
  font-weight: 700;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.32);
}

.btn-teal:hover {
  background: #22d3ee;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.48);
}

/* ---- Card -------------------------------------------------- */
.card,
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.highlight-card {
  background: linear-gradient(135deg,
    rgba(37, 99, 235, 0.10) 0%,
    rgba(6, 182, 212, 0.07) 100%
  );
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

/* ---- Testimonial Card -------------------------------------- */
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 2rem 2rem 2.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -1rem;
  left: 1.25rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 7rem;
  line-height: 1;
  color: rgba(37, 99, 235, 0.14);
  pointer-events: none;
  user-select: none;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
}

/* ---- Navbar ----------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem var(--section-px);
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

/* Added via JS on scroll */
.navbar--scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 15, 30, 0.96);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-menu a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
  transition: width 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text-light);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ---- Hero -------------------------------------------------- */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(37, 99, 235, 0.22), transparent),
    radial-gradient(ellipse 50% 40% at 85% 60%, rgba(6, 182, 212, 0.10), transparent),
    var(--bg-primary);
  background-size: 200% 200%;
  animation: heroGlow 14s ease infinite;
}

.hero {
  position: relative;
  padding: clamp(80px, 12vw, 130px) var(--section-px) clamp(60px, 8vw, 100px);
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
  overflow: hidden;
}

/* Ambient glow blobs */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 25% 45%, rgba(37, 99, 235, 0.11), transparent),
    radial-gradient(ellipse 50% 40% at 80% 25%, rgba(6, 182, 212, 0.08), transparent);
  pointer-events: none;
}

.hero-copy,
.hero-cards {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy .eyebrow {
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ---- Sections ---------------------------------------------- */
.section {
  padding: var(--section-py) var(--section-px);
}

.section-header {
  max-width: 700px;
  margin-bottom: 3.25rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-top: 0.9rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---- Services Section -------------------------------------- */
.services {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(6, 182, 212, 0.055), transparent),
    var(--bg-primary);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  text-align: left;
  color: var(--text-light);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 220px;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(37, 99, 235, 0.08);
  outline: none;
}

.service-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.11);
  color: var(--accent-teal);
  margin-bottom: 0.25rem;
  flex-shrink: 0;
  transition: background 0.22s ease;
}

.service-card:hover .service-icon {
  background: rgba(37, 99, 235, 0.20);
}

.service-icon svg {
  width: 23px;
  height: 23px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
}

.service-card > p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

.service-pitch {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
  margin-top: auto !important;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ---- Service Modal ----------------------------------------- */
.service-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.service-modal--visible {
  opacity: 1;
  pointer-events: auto;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.service-modal-panel {
  position: relative;
  width: min(700px, calc(100% - 40px));
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  z-index: 1;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(37, 99, 235, 0.08);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.28s ease;
}

.service-modal--visible .service-modal-panel {
  transform: scale(1) translateY(0);
}

.service-modal-panel .eyebrow {
  margin-bottom: 1rem;
}

.service-modal-panel h3 {
  font-size: 1.55rem;
  margin-bottom: 1rem;
}

.service-modal-panel p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(240, 244, 255, 0.07);
  color: var(--text-light);
}

/* ---- Process Section --------------------------------------- */
.process {
  background:
    linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.04) 50%, transparent),
    var(--bg-primary);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 1.25rem;
}

.process-step {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.35);
}

.process-step span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 50%;
  margin-bottom: 1.1rem;
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ---- About Section ----------------------------------------- */
.about {
  background:
    radial-gradient(ellipse 50% 60% at 0% 50%, rgba(37, 99, 235, 0.07), transparent),
    var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 1rem 0;
}

.about-copy > p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-copy ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.about-copy li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-copy li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-highlights {
  display: grid;
  gap: 1.25rem;
}

.about-highlights .highlight-card {
  padding: 1.75rem;
  background: linear-gradient(135deg,
    rgba(37, 99, 235, 0.08) 0%,
    rgba(6, 182, 212, 0.05) 100%
  );
  border: 1px solid rgba(37, 99, 235, 0.20);
  border-radius: var(--radius-xl);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.about-highlights .highlight-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-3px);
}

.about-highlights .highlight-card h3 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-highlights .highlight-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ---- Contact Section --------------------------------------- */
.contact {
  background:
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(6, 182, 212, 0.07), transparent),
    var(--bg-primary);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
}

.contact-copy h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.9rem 0 0.75rem;
}

.contact-copy > p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-details strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-details a {
  color: var(--accent-teal);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.contact-details a:hover {
  color: var(--text-light);
}

/* ---- Forms ------------------------------------------------- */
.contact-form {
  display: grid;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  background: rgba(30, 45, 74, 0.28);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

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

.form-message {
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 1.4rem;
  margin: 0;
}

.form-message--success {
  color: var(--accent-teal);
}

/* ---- Careers / Jobs ---------------------------------------- */
.job-grid,
.admin-jobs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.job-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 220px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.35);
}

.job-card h3 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.job-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.job-tag {
  display: inline-flex;
  padding: 0.28rem 0.78rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.10);
  border: 1px solid rgba(6, 182, 212, 0.22);
  color: var(--accent-teal);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

/* ---- Admin Panel ------------------------------------------- */
.admin-panel {
  max-width: 660px;
  margin: 0 auto;
}

/* ---- Footer ------------------------------------------------ */
.footer {
  padding: 2.5rem var(--section-px);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Responsive -------------------------------------------- */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .hero-cards {
    display: none;
  }

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

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-header {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 1.75rem;
  }
}

@media (max-width: 680px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }

  .nav-menu {
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .nav-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .button,
  .btn-primary,
  .btn-secondary,
  .btn-teal {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Intersection Observer note ----------------------------
   Add this <script> block to all HTML files (or a shared
   script.js) to drive .reveal / .fade-in-up / .stagger-children
   and .navbar--scrolled:

   (function () {
     const observer = new IntersectionObserver((entries) => {
       entries.forEach((entry) => {
         if (entry.isIntersecting) {
           entry.target.classList.add('visible');
           observer.unobserve(entry.target);
         }
       });
     }, { threshold: 0.12 });

     document
       .querySelectorAll('.reveal, .fade-in-up, .stagger-children')
       .forEach((el) => observer.observe(el));

     window.addEventListener('scroll', () => {
       document.querySelector('.navbar')
         ?.classList.toggle('navbar--scrolled', window.scrollY > 40);
     }, { passive: true });
   })();
   ---------------------------------------------------------------- */
