/* ============================================================
   QBRobotics — Global Stylesheet
   Apple-inspired: clean, bold, dark hero, smooth animations
   ============================================================ */

/* ---------- 1. CSS Variables ---------- */
:root {
  --bg-dark: #000000;
  --bg-dark-2: #0a0a0a;
  --bg-dark-3: #111111;
  --bg-light: #ffffff;
  --bg-gray: #f5f5f7;
  --bg-gray-2: #e8e8ed;

  --text-primary-dark: #f5f5f7;
  --text-secondary-dark: #a1a1a6;
  --text-primary-light: #1d1d1f;
  --text-secondary-light: #6e6e73;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: rgba(37, 99, 235, 0.12);

  --radius: 18px;
  --radius-sm: 10px;
  --radius-pill: 980px;

  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.18s ease;

  --nav-height: 64px;
  --section-pad: 120px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter',
    'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary-light);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ---------- 3. Typography ---------- */
.display-xl {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.display-lg {
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.display-md {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.body-lg {
  font-size: 19px;
  line-height: 1.6;
  font-weight: 400;
}

.body-md {
  font-size: 17px;
  line-height: 1.6;
}

.body-sm {
  font-size: 14px;
  line-height: 1.5;
}

.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 4. Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

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

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

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

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

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

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

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

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

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

.section-dark {
  background: var(--bg-dark);
}

.section-dark-2 {
  background: var(--bg-dark-2);
}

.section-gray {
  background: var(--bg-gray);
}

.section-header {
  margin-bottom: 64px;
}

.section-header-centered {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

/* Generalized Responsive Grid for 2-column content blocks */
.responsive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.responsive-grid.gap-md { gap: 64px; }
.responsive-grid.gap-lg { gap: 80px; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.btn-light:hover {
  background: var(--bg-gray-2);
}

.btn-outline {
  border: 1.5px solid #d1d1d6;
  color: var(--text-primary-light);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 15px;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.nav.transparent {
  background: transparent;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav.light-mode {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.nav.light-mode .nav-link {
  color: var(--text-primary-light);
}

.nav.light-mode .nav-logo {
  color: var(--text-primary-light);
}

.nav.light-mode .nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav.light-mode .nav-cta {
  background: var(--accent);
  color: #fff;
}

.nav.light-mode .nav-lang {
  color: var(--text-secondary-light);
  border-color: #d1d1d6;
}

.nav.light-mode .nav-toggle span {
  background: var(--text-primary-light);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #fff;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-lang {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: var(--transition-fast);
}

.nav-lang:hover {
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -15%;
  background-image: url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1800&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.1) 40%,
      rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  padding: 0 24px;
  margin: 0 auto;
  text-align: center;
  padding-top: var(--nav-height);
}

.hero-eyebrow {
  display: inline-block;
  color: #a1a1a6;
  /* Matched to dark theme secondary */
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 18px;
  /* Increased font-size */
  font-weight: 600;
  letter-spacing: 0.12em;
  /* Adjusted tracking */
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 6px 16px;
  /* Adjusted padding */
  border-radius: var(--radius-pill);
}

.hero h1 {
  color: #fff;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 2vw, 21px);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  letter-spacing: 0.05em;
  animation: bounce 2s infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(6px)
  }
}

/* ---------- 8. Stats Bar ---------- */
.stats-bar {
  background: var(--bg-dark-3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0;
}

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

.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  color: var(--text-secondary-dark);
  font-size: 14px;
}

/* ---------- 9. Product Cards ---------- */
.product-card {
  background: var(--bg-dark-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #0d0d0d;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.status-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-badge.released {
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.status-badge.released::before {
  background: #60a5fa;
  box-shadow: 0 0 8px #60a5fa;
}

.status-badge.coming-soon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-badge.coming-soon::before {
  background: var(--text-secondary-dark);
}

.product-card h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--text-secondary-dark);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}

.product-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.spec-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary-dark);
}

.product-card .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* ---------- 10. Solution Cards ---------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.solution-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.solution-card:first-child,
.solution-card:nth-child(2) {
  grid-column: span 1;
}

.solution-card-img {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.solution-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-card:hover .solution-card-img {
  transform: scale(1.04);
}

.solution-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
}

.solution-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
}

.solution-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}

.solution-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.solution-card h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.solution-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

@media (hover: hover) {
  .solution-card p {
    display: none;
  }
  .solution-card:hover p {
    display: block;
  }
}

.solution-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-top: 10px;
  transition: var(--transition-fast);
}

.solution-card:hover .solution-arrow {
  color: #fff;
  gap: 8px;
}

/* ---------- 11. Tech Pillars ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.tech-pillar {
  background: var(--bg-dark-3);
  padding: 48px 36px;
  transition: var(--transition);
}

.tech-pillar:hover {
  background: #161616;
}

.tech-pillar-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.tech-pillar-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.tech-pillar h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}

.tech-pillar p {
  color: var(--text-secondary-dark);
  font-size: 15px;
  line-height: 1.65;
}

.tech-pillar ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-pillar li {
  color: var(--text-secondary-dark);
  font-size: 14px;
  padding-left: 16px;
  position: relative;
}

.tech-pillar li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- 12. News Cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.news-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 24px;
}

.news-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary-light);
  margin-bottom: 8px;
  line-height: 1.35;
}

.news-card p {
  color: var(--text-secondary-light);
  font-size: 14px;
  line-height: 1.55;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-gray-2);
}

.news-date {
  font-size: 13px;
  color: var(--text-secondary-light);
}

.news-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.news-link:hover {
  text-decoration: underline;
}

/* Featured Article (News Page) */
.featured-article {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
}

.featured-article img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ---------- 13. Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--bg-dark);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 120%, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text-secondary-dark);
  font-size: 19px;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- 14. About / Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: var(--bg-gray-2);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 13px;
  color: var(--text-secondary-light);
  margin-bottom: 10px;
}

.team-card ul {
  text-align: left;
}

.team-card li {
  font-size: 13px;
  color: var(--text-secondary-light);
  padding: 3px 0 3px 14px;
  position: relative;
}

.team-card li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- 15. Contact / Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.contact-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-card a {
  color: var(--accent);
  font-size: 14px;
}

.contact-card p {
  font-size: 13px;
  color: var(--text-secondary-light);
  margin-top: 4px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-gray);
  border: 1.5px solid var(--bg-gray-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary-light);
  transition: border-color var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ---------- 16. Careers ---------- */
.career-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--bg-gray-2);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
  color: var(--text-secondary-light);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.job-card {
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: var(--transition);
}

.job-card:hover {
  background: var(--bg-gray-2);
}

.job-info {
  flex: 1;
}

.job-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.job-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.job-tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-weight: 500;
}

/* ---------- 17. Footer ---------- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--text-secondary-dark);
  font-size: 14px;
  line-height: 1.55;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-contact-info li {
  font-size: 13px;
  color: var(--text-secondary-dark);
  margin-bottom: 6px;
}

.footer-contact-info a {
  color: var(--text-secondary-dark);
}

.footer-contact-info a:hover {
  color: #fff;
}

.footer-col h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-secondary-dark);
  font-size: 13px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary-dark);
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  color: var(--text-secondary-dark);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--text-secondary-dark);
  font-size: 13px;
}

.footer-legal a:hover {
  color: #fff;
}

/* ---------- 18. Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
}

/* ---------- Spotlight Utility ---------- */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.08),
      transparent 40%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

/* ---------- 19. Misc Components ---------- */
.pill-label {
  display: inline-block;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary-light);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 18px;
  /* Increased font-size for better readability */
  font-weight: 600;
  letter-spacing: 0.1em;
  /* Increased spacing to match larger font */
  text-transform: uppercase;
  padding: 6px 16px;
  /* Increased padding */
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.pill-label-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.divider-light {
  height: 1px;
  background: var(--bg-gray-2);
}

/* Partner logos */
.partner-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.partner-item {
  color: rgba(255, 255, 255, 0.35);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.partner-item:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.value-item {
  background: var(--bg-dark-3);
  padding: 40px 32px;
}

.value-item h4 {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.value-item p {
  color: var(--text-secondary-dark);
  font-size: 14px;
  line-height: 1.6;
}

.value-num {
  font-size: 40px;
  font-weight: 700;
  color: rgba(37, 99, 235, 0.3);
  margin-bottom: 16px;
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

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

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

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

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

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

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

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

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

@media (max-width: 768px) {
  :root {
    --section-pad: 60px;
  }

  .nav-links,
  .nav-right {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-article img {
    height: 240px;
  }
  
  .responsive-grid {
    grid-template-columns: 1fr;
    gap: 40px !important;
  }
  
  .partner-scroll-track {
    animation: none !important;
  }
  
  .hero-particles {
    display: none !important;
  }
  
  .gradient-border-wrap::before {
    display: none !important;
  }
}

/* ============================================================
   ANIMATIONS — Vivid Dynamic Effects
   ============================================================ */

/* ---------- 21. Keyframes ---------- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes borderRotate {
  0% { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(37,99,235,0.3), 0 0 20px rgba(37,99,235,0.1); }
  50% { box-shadow: 0 0 16px rgba(37,99,235,0.5), 0 0 40px rgba(37,99,235,0.2); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-8px) translateX(4px); }
  66% { transform: translateY(4px) translateX(-4px); }
}

@keyframes particle-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(30px, -40px) scale(1.2); opacity: 0.6; }
  50% { transform: translate(-20px, -80px) scale(0.8); opacity: 0.4; }
  75% { transform: translate(50px, -40px) scale(1.1); opacity: 0.5; }
}

@keyframes particle-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  25% { transform: translate(-40px, -30px) scale(0.9); opacity: 0.5; }
  50% { transform: translate(30px, -60px) scale(1.3); opacity: 0.3; }
  75% { transform: translate(-20px, -90px) scale(1); opacity: 0.6; }
}

@keyframes particle-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  33% { transform: translate(40px, -50px) scale(1.15); opacity: 0.2; }
  66% { transform: translate(-30px, -30px) scale(0.85); opacity: 0.6; }
}

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

@keyframes shine-sweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes text-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes underline-expand {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- 22. Hero Particles ---------- */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
}

.hero-particle:nth-child(1) { width: 4px; height: 4px; top: 20%; left: 10%; animation: particle-float-1 12s ease-in-out infinite; }
.hero-particle:nth-child(2) { width: 3px; height: 3px; top: 60%; left: 25%; animation: particle-float-2 15s ease-in-out infinite 2s; }
.hero-particle:nth-child(3) { width: 5px; height: 5px; top: 40%; left: 55%; animation: particle-float-3 18s ease-in-out infinite 4s; }
.hero-particle:nth-child(4) { width: 3px; height: 3px; top: 75%; left: 70%; animation: particle-float-1 14s ease-in-out infinite 1s; }
.hero-particle:nth-child(5) { width: 4px; height: 4px; top: 15%; left: 80%; animation: particle-float-2 16s ease-in-out infinite 3s; }
.hero-particle:nth-child(6) { width: 6px; height: 6px; top: 50%; left: 90%; animation: particle-float-3 20s ease-in-out infinite 5s; opacity: 0.2; }
.hero-particle:nth-child(7) { width: 2px; height: 2px; top: 85%; left: 15%; animation: particle-float-1 11s ease-in-out infinite 6s; }
.hero-particle:nth-child(8) { width: 4px; height: 4px; top: 30%; left: 40%; animation: particle-float-2 13s ease-in-out infinite 0.5s; }
.hero-particle:nth-child(9) { width: 3px; height: 3px; top: 65%; left: 50%; animation: particle-float-3 17s ease-in-out infinite 2.5s; }
.hero-particle:nth-child(10) { width: 5px; height: 5px; top: 45%; left: 5%; animation: particle-float-1 19s ease-in-out infinite 7s; opacity: 0.15; }
.hero-particle:nth-child(11) { width: 2px; height: 2px; top: 10%; left: 65%; animation: particle-float-2 10s ease-in-out infinite 1.5s; }
.hero-particle:nth-child(12) { width: 3px; height: 3px; top: 90%; left: 85%; animation: particle-float-3 14s ease-in-out infinite 3.5s; }

/* ---------- 23. Stat Number Shimmer ---------- */
.stat-number-shimmer {
  background: linear-gradient(90deg, #fff 0%, #93c5fd 25%, #fff 50%, #93c5fd 75%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ---------- 24. Partner Infinite Marquee ---------- */
.partner-scroll {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partner-scroll-track {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.partner-scroll-track:hover {
  animation-play-state: paused;
}

.partner-scroll .partner-item {
  flex-shrink: 0;
  font-size: 18px;
  letter-spacing: 0.06em;
}

/* ---------- 25. 3D Tilt Card ---------- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, box-shadow var(--transition);
}

.tilt-card .tilt-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  background: radial-gradient(circle at var(--tilt-x, 50%) var(--tilt-y, 50%),
    rgba(255,255,255,0.12) 0%,
    transparent 60%);
}

.tilt-card:hover .tilt-shine {
  opacity: 1;
}

/* ---------- 26. Gradient Animated Border ---------- */
.gradient-border-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.gradient-border-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    var(--accent),
    #7c3aed,
    #06b6d4,
    var(--accent)
  );
  animation: borderRotate 4s linear infinite;
  z-index: 0;
}

@supports not (background: conic-gradient(red, blue)) {
  .gradient-border-wrap::before {
    background: var(--accent);
  }
}

@supports not (custom-property: --border-angle) {
  .gradient-border-wrap::before {
    background: linear-gradient(var(--accent), #7c3aed, #06b6d4);
  }
}

.gradient-border-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-dark-3);
  border-radius: calc(var(--radius) - 2px);
  height: 100%;
}

/* ---------- 27. CTA Button Gradient Flow ---------- */
.btn-glow {
  background: linear-gradient(135deg, var(--accent), #7c3aed, #06b6d4, var(--accent));
  background-size: 300% 300%;
  animation: gradientFlow 4s ease infinite;
  border: none;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}

.btn-glow:hover {
  animation-duration: 2s;
  box-shadow: 0 8px 32px rgba(37,99,235,0.5), 0 0 20px rgba(124,58,237,0.2);
  transform: translateY(-2px);
}

/* ---------- 28. Card Shine Sweep ---------- */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.08),
    transparent
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 3;
  transition: none;
}

.card-shine:hover::after {
  animation: shine-sweep 0.75s ease-out;
}

/* ---------- 29. Nav Link Underline ---------- */
.nav-link-underline {
  position: relative;
}

.nav-link-underline::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link-underline:hover::after,
.nav-link-underline.active::after {
  transform: scaleX(1);
}

.nav-link-underline.active::after {
  background: var(--accent);
}

/* Light mode underline uses darker color for visibility */
.nav.light-mode .nav-link-underline::after {
  background: var(--accent);
}

.nav.light-mode .nav-link-underline.active::after {
  background: var(--accent);
}

/* ---------- 30. Section Reveal ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
}

/* ---------- 31. Floating Tech Icon ---------- */
.tech-pillar-icon-animated {
  animation: float-slow 5s ease-in-out infinite;
}

.tech-pillar:nth-child(2) .tech-pillar-icon-animated {
  animation-delay: 0.8s;
}

.tech-pillar:nth-child(3) .tech-pillar-icon-animated {
  animation-delay: 1.6s;
}

/* ---------- 32. Gradient Text ---------- */
.text-gradient {
  background: linear-gradient(135deg, #93c5fd, #c084fc, #67e8f9);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-gradient-shift 5s ease infinite;
}

/* ---------- 33. Enhanced Hero Eyebrow ---------- */
.hero-eyebrow-animated {
  border-image: linear-gradient(135deg, rgba(37,99,235,0.4), rgba(124,58,237,0.4), rgba(6,182,212,0.4)) 1;
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ---------- 34. Scroll Indicator Bounce ---------- */
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.8; }
}

.hero-scroll {
  animation: scroll-bounce 2.5s ease-in-out infinite !important;
}

/* ---------- 35. Footer Fade In Stagger ---------- */
.footer-fade-col {
  opacity: 0;
  transform: translateY(24px);
}