:root {
  /* Premium Deep Tech Palette - Refined */
  --color-bg: #030510;
  /* Richer Deep Navy/Black */
  --color-bg-secondary: #0B0F1A;
  /* Slightly lighter deep tone */

  /* Gradients & Colors */
  --color-primary: #3B82F6;
  /* Bright Blue */
  --color-secondary: #0EA5E9;
  /* Sky Blue */
  --color-cyan: #06B6D4;
  /* Cyan Accent */

  --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
  --gradient-glow: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);

  --color-primary-glow: rgba(59, 130, 246, 0.5);
  --color-accent-glow: rgba(6, 182, 212, 0.5);

  /* Text */
  --color-text: #FFFFFF;
  --color-text-muted: #94A3B8;

  /* Glass & Borders */
  --glass-border: rgba(255, 255, 255, 0.08);
  --color-border: rgba(59, 130, 246, 0.2);
  /* Blue tint border */
  --glass-highlight: rgba(255, 255, 255, 0.1);
  --glass-bg: #030510;
  /* Solid dark for matte look */

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.2);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.2);

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Dimensions & Spacing */
  --nav-height: 80px;
  --container-width: 1400px;
  /* Increased to allow more space */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* RESET & BASE */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Alive Perception Background */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background-color: var(--color-bg);
}

/* Sections for Scroll Snap */

.section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
}

/* Disable Snap on Mobile */


/* Moving Perspective Grid */
.grid-overlay {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(500px) rotateX(60deg);
  animation: gridMove 20s linear infinite;
  mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
  pointer-events: none;
}

@keyframes gridMove {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0);
  }

  100% {
    transform: perspective(500px) rotateX(60deg) translateY(80px);
  }
}

/* Perception Particles */
.light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: floatLight 15s infinite ease-in-out;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-primary-glow), transparent 70%);
  top: -20%;
  left: 20%;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
  bottom: -10%;
  right: -10%;
  animation-duration: 25s;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
  top: 40%;
  left: -10%;
  animation-duration: 20s;
  animation-delay: -10s;
}

/* Footer */
.footer {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--spacing-lg);
  position: relative;
  background-image:
    linear-gradient(to bottom, var(--color-bg) 0%, rgba(3, 5, 8, 0.5) 100%),
    url('assets/images/footer_bg_cropped.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

@keyframes floatLight {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.1;
  color: #fff;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

/* UTILITIES */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.section {
  padding: 40px 0;
  position: relative;
}

.page-header-section {
  padding-top: 140px;
  /* Increased to prevent navbar overlap */
  padding-bottom: 10px;
  /* Minimal bottom padding */
  position: relative;
  min-height: auto;
  /* Disable full screen height */
  display: block;
  /* Disable flex centering */
}

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

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.section-header.left {
  text-align: left;
  max-width: 700px;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.25rem;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes scanline {
  0% {
    top: 0%;
  }

  100% {
    top: 100%;
  }
}

/* FLOATING NAVBAR */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: var(--container-width);
  height: 70px;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.98);
  /* Almost black, very high opacity */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Even subtler border */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  transition: 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.navbar:hover {
  background: rgba(10, 15, 30, 0.98);
  /* Kept dark, subtle lift */
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(59, 130, 246, 0.15);
}

.nav-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  position: relative;
}

.nav-logo img {
  height: 40px;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: auto;
  /* Push to right */
}

.mobile-menu-btn {
  display: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  transition: color 0.3s;
}

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

/* Underline animation */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  /* Blue line */
  transition: width 0.3s ease;
}

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

.nav-link.btn-contact::after {
  display: none;
}

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

.nav-link.active::after {
  width: 100%;
}

.btn-contact {
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--color-primary);
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  background: var(--color-primary);
  margin-left: auto;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: 0 4px 25px rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.3s;
  text-transform: uppercase;
}

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

.lang-link.active {
  color: var(--color-primary);
  font-weight: 700;
}

@media (max-width: 900px) {
  .lang-switch {
    margin: 1rem 0 0 0;
    padding: 1rem 0 0 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    width: 100%;
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(3, 5, 8, 0.3) 0%, rgba(3, 5, 8, 0.95) 100%),
    radial-gradient(circle at center, transparent 0%, rgba(3, 5, 8, 0.8) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

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

/* HERO SECTION */
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  /* Blue tint */
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  color: #60A5FA;
  /* Light Blue */
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 8px var(--color-primary);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: 3.5rem;
  font-weight: 300;
  line-height: 1.7;
}

/* SCANNING EFFECT REMOVED */
.hero-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.7;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0.5;
  }

  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* ENVIRONMENTS SECTION */


.env-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;

}

/* Dark Matte Cards (Eclipse Style) */
.env-card {
  position: relative;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: transform 0.3s, border-color 0.3s;
}

.env-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.card-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
  transition: opacity 0.3s, border-color 0.3s;
}

.env-card:hover .card-bg-img {
  opacity: 0.6;
  transform: scale(1.02);
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(3, 5, 10, 0.9), rgba(3, 5, 10, 0.4));
  z-index: 1;
}

.env-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.indoor-card {
  background-color: #030510;
}

.outdoor-card {
  background-color: #030510;
}

/* Re-defining card-bg for advanced effect if needed, kept as in original */
.card-bg {
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(37, 99, 235, 0.1), transparent 40%);
  opacity: 1;
  transition: opacity 0.4s;
  pointer-events: none;
}

.icon-box {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.icon-box img {
  width: 60px;
  height: 60px;
}

.env-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.env-card p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  text-align: left;
}

.feature-list {
  text-align: left;
  display: inline-block;
  margin: 0 auto;
  width: 100%;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* TECHNOLOGY SECTION BACKGROUND */
#technologies {
  background: transparent;
  border-top: none;
  border-bottom: none;
  box-shadow: none;
}

/* CTA SECTION BACKGROUND */
.cta-section {
  background: transparent;
  border-top: none;
  padding: 80px 0;
  display: flex;
  align-items: center;
}

/* TECHNOLOGY SECTION */


/* SECTION SEPARATOR */
/* SECTION SEPARATOR */
.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem 0;
  width: 100%;
  position: relative;
  z-index: 10;
  opacity: 0.6;
  /* Reduced overall opacity */
}

.section-separator-line {
  flex-grow: 1;
  height: 1px;
  /* Thinner */
  background: #3B82F6;
  border-radius: 1px;
  box-shadow: none;
  /* Removed strong glow */
}

.section-separator-line.left {
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.8) 100%);
  margin-right: 2rem;
}

.section-separator-line.right {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.8) 0%, transparent 100%);
  margin-left: 2rem;
}

.section-separator-icon {
  color: #3B82F6;
  font-size: 1.2rem;
  /* Smaller icon */
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}

.tech-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.badge-container.centered {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.large-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 24px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-secondary);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
  transition: 0.3s;
}

.large-badge:hover {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.tech-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 1100px;
  /* Reduced width */
  margin-top: 2rem;
  padding: 0 1rem;
}


.tech-card {
  position: relative;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center vertically */
  background: #000000;
  /* Black background */
  transition: 0.3s;
  overflow: hidden;
  flex: 1;
  border: 1px solid var(--glass-border);
  min-height: 300px;
  /* Reduced height */
}

.tech-card.symbolic {
  background: #000000;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-right: none;
  border-radius: 24px 0 0 24px;
  align-items: flex-start;
  /* Left align content */
  text-align: left;
}

.tech-card.deep-learning {
  background: #000000;
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-left: none;
  border-radius: 0 24px 24px 0;
  align-items: flex-end;
  /* Right align content */
  text-align: right;
}

/* Tech Background Images */
.tech-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  object-fit: cover;
  /* Changed from contain to cover for better fill */
  z-index: 0;
}

.tech-card.symbolic .tech-bg {
  object-position: right center;
  /* Align to right (inner edge) */
}

.tech-card.deep-learning .tech-bg {
  object-position: left center;
  /* Align to left (inner edge) */
}

/* Hover effects removed to disable animation */
.tech-card:hover .tech-bg {
  /* opacity: 0.8; */
}

.tech-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 300px;
  /* Reduced width for multi-line effect */
}

/* Colored Titles */
.tech-card.symbolic h4 {
  background: linear-gradient(135deg, #06B6D4 0%, #67E8F9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.tech-card.deep-learning h4 {
  background: linear-gradient(135deg, #A78BFA 0%, #E879F9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.tech-list li {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

/* Obsolete img styles removed */

.tech-card:hover {
  /* z-index: 5;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  background: #000000; */
}

.tech-card.symbolic:hover {
  /* border-color: var(--color-cyan);
  background: #000000; */
}

/* Removed Puzzle Connector ::after/::before */

.tech-card.deep-learning:hover {
  /* border-color: #7C3AED;
  background: #000000; */
}

.tech-header {
  margin-bottom: 1.5rem;
}

.tech-card.active {
  background: rgba(59, 130, 246, 0.08);
  border-color: var(--color-primary);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
}

.tech-icon {
  font-size: 2rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tech-card h4 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0;
}

.tech-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.badge-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* HUD VISUAL */
.hud-container {
  background: #000;
  border: 1px solid #333;
  border-radius: 4px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
}

.hud-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(19, 27, 44, 0.9);
  border-bottom: 1px solid #333;
  font-size: 0.75rem;
  color: var(--color-accent);
}

.blink {
  animation: blink 1s infinite alternate;
}

.hud-viewport {
  position: relative;
  aspect-ratio: 16/9;
}

.hud-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

.hud-reticle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: rotateReticle 60s linear infinite;
}

@keyframes rotateReticle {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hud-metrics {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 20px;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.metric .label {
  font-size: 0.6rem;
  color: #666;
  margin-bottom: 4px;
}

.metric .value {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: bold;
}

.bar-container {
  width: 100px;
  height: 4px;
  background: #222;
}

.bar {
  height: 100%;
  background: var(--color-accent);
}


/* PLATFORM SECTION */
.platform {
  overflow: hidden;
}

.platform-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.015), transparent 60%);
  /* Extremely faint glow */
  opacity: 0.5;
  /* Further reduced visibility */
  pointer-events: none;
  z-index: 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.platform-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 4rem auto 0;
}

.platform-item {
  background: linear-gradient(180deg, rgba(20, 30, 48, 0.2) 0%, rgba(2, 4, 8, 0.4) 100%);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: 0.3s;
}

.platform-item:hover {
  transform: translateY(-10px);
  border-color: var(--color-primary-glow);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, rgba(2, 4, 8, 0.6) 100%);
}

.p-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.p-icon svg {
  width: 1em;
  height: 1em;
  display: block;
  margin: 0 auto;
}

.platform-item h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.platform-item p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}


/* FOOTER */
/* FOOTER */
.footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #050914;
  /* Lighter background */
  width: 100%;
}

.footer-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 80px;
}

.footer-cta h2 {
  margin-bottom: 1rem;
}

.btn-large {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* Wider columns */
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
  text-align: center;
  /* Default center for better balance with 3 cols */
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  /* Center items in column */
}

/* Force specific alignments if still desired, but usually centering all 3 looks good */
.footer-col.contact-col h4,
.footer-col.contact-col p {
  text-align: center;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  /* Larger */
  font-weight: 700;
  background: linear-gradient(90deg, #60A5FA 0%, #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Standout color */
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.footer-col a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* Specific Logo Sizing */
.footer-logo-img {
  width: 140px;
  /* Fixed width for consistency */
  height: auto;
  /* Maintain aspect ratio */
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Specific adjustments if needed */

.linkedin-logo {
  width: 120px;
  /* Social logos often look better slightly smaller */
}

.inria-logo {
  filter: grayscale(100%) brightness(500%);
  opacity: 0.9;
}

.youtube-logo {
  width: 120px;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-bottom-row .copyright {
  grid-column: 2;
  text-align: center;
  opacity: 0.7;
}

.footer-bottom-row a {
  grid-column: 3;
  justify-self: end;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

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

/* Add a polished separator between copyright and link on larger screens */
@media (min-width: 768px) {
  .footer-bottom-row {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col.contact-col h4,
  .footer-col.legal-col h4,
  .footer-col.partners-col h4,
  .footer-col.social-col h4 {
    text-align: center;
  }

  .footer-bottom-row {
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    text-align: center;
  }
}

.social-links a {
  color: var(--color-text-muted);
}

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

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

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

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

/* =========================================
   TEAM SECTION (Global)
   Vertical Format: Grid of Profile Cards
   ========================================= */

.team-grid {
  display: grid;
  /* Responsive grid: min 280px wide cards, fit as many as possible */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  /* Reduced grid gap */
  max-width: var(--container-width);
  margin: 4rem auto;
  padding: 0 1rem;
  align-items: start;
  /* Prevent cards from stretching to match height */
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center content vertically */
  text-align: center;
  /* Center text */
  padding: 1.5rem 1rem;
  /* Compact padding */
  background: rgba(10, 12, 20, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  /* Slightly more rounded */
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  height: auto;
  /* Shrink wrap content */
}

.team-card:hover {
  background: rgba(10, 12, 20, 0.6);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-8px);
}

.team-photo {
  width: 90px;
  /* Tiny photo */
  height: 90px;
  object-fit: cover;
  border-radius: 16px;
  /* Matching rounded corners */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.75rem;
  /* Compact space below image */
  transition: all 0.5s ease;
  filter: grayscale(20%) contrast(1.1);
}


.team-role {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  /* Compact Name */
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.team-subrole {
  font-size: 0.9rem;
  color: #94a3b8;
  font-style: italic;
  margin-bottom: 0.75rem;
  display: block;
}

.team-bio {
  font-size: 0.9rem;
  /* Compact font for cards */
  line-height: 1.5;
  color: #cbd5e1;
  max-width: 100%;
  /* Use full available width */
}

/* Strategic Board Specific Styles */
.board-grid {
  justify-content: center;
  /* Center the fewer cards */
  grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
  /* Narrower max width */
}

.board-grid .team-card {
  padding: 3rem 1.5rem;
  /* More vertical padding -> Taller */
  max-width: 320px;
  /* Force narrower width */
  margin: 0 auto;
  /* Center in grid cell if needed */
}

.board-grid .team-photo {
  width: 100px;
  /* Slightly larger photo for board */
  height: 100px;
}

@media (max-width: 768px) {

  /* Mobile Adjustments */
  .team-grid {
    gap: 2rem;
  }


  /* Hero enhancements for About page specifically */
  .about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0) 0%, #03050a 100%),
      url('assets/images/footer_bg.jpg') no-repeat center center/cover;
    opacity: 0.3;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  }

  /* Navbar Mobile Overrides */
  .navbar {
    width: 90vw;
    /* Force viewport width dependence to avoid body overflow issues */
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-container {
    padding: 0 1.5rem;
    /* Reduce padding on mobile */
  }

  /* Mobile Menu Button */
  .mobile-menu-btn {
    display: block;
    position: relative;
    z-index: 1001;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-right: 5px;
    /*  Move burger more to the left */
  }

  .mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    margin-bottom: 5px;
    transition: 0.3s;
    border-radius: 2px;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Responsive Nav Links */
  .nav-links {
    display: flex;
    position: absolute;
    top: 70px;
    /* Height of navbar */
    right: 0;
    /* Align to right */
    left: auto;
    /* Reset left */
    width: auto;
    /* Auto width based on content */
    min-width: 200px;
    /* Minimum width */
    flex-direction: column;
    background: rgba(3, 5, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    /* Smaller padding */
    gap: 1rem;
    /* Smaller gap */
    border-radius: 20px 0 20px 20px;
    /* Rounded corner only on left bottom */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    align-items: flex-end;
    /* Right align items */
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  /* Fix Contact Button in Mobile Menu */
  .nav-links.active .btn-contact {
    width: 100%;
    text-align: center;
    margin: 1rem 0 0 0;
    padding: 0.8rem 1rem;
    background: var(--color-primary);
    border-color: var(--color-primary);
    display: block;
    box-sizing: border-box;
  }

  .nav-link {
    font-size: 1rem;
    /* Smaller font */
    width: auto;
    /* Auto width */
    display: block;
    padding: 0.25rem 0;
    border-bottom: none;
    /* Remove borders */
    text-align: right;
  }

  /* Adjustments for Mobile */
  .hero-container {
    margin-top: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  /* Team Photos Responsive */
  .team-photo {
    width: 100px;
    height: 100px;
  }

  .section {
    padding: 60px 0;
  }

  .tech-layout,
  .platform-grid {
    gap: 2rem;
  }

  /* Stack Tech Cards Vertically on Mobile */
  .tech-cards {
    flex-direction: column !important;
    /* Force column layout */
    margin-top: 2rem;
    gap: 1rem;
    /* Add gap between stacked cards */
    padding: 0 1rem;
  }

  .tech-card {
    border-radius: 20px !important;
    /* Restore rounded corners */
    min-height: auto;
    /* Allow auto height */
    padding: 2rem;
    width: 100% !important;
    /* Full width */
    border: 1px solid var(--glass-border) !important;
    /* Restore full border */
  }

  /* Reset specific borders for stacking */
  .tech-card.symbolic {
    border-right: 1px solid var(--glass-border) !important;
    align-items: center !important;
    /* Center content */
    text-align: center !important;
  }

  .tech-card.deep-learning {
    border-left: 1px solid var(--glass-border) !important;
    align-items: center !important;
    /* Center content */
    text-align: center !important;
  }

  /* Hero Buttons Stacking */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    /* Prevent being too wide on slightly larger mobiles */
  }
}

/* Application Images Styling */
.app-image-styled {
  max-width: 100%;
  width: 600px;
  height: auto;
  /* Show full image, no crop */
  /* object-fit: cover; Removed to prevent cropping */
  border-radius: 4px;
  /* Square corners */
  border: 0px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.1);
  margin: 0 auto 2rem auto;
  display: block;
  transition: all 0.5s ease;
  filter: brightness(0.9);
}

.app-image-styled:hover {
  transform: scale(1.02);
  border-color: var(--color-primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 50px rgba(59, 130, 246, 0.2);
  filter: brightness(1.1);
}

/* CTA SECTION */
.cta-section {
  padding: 60px 0;
  display: flex;
  align-items: center;
  /* No min-height 100vh constraint */
}

.detail-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.detail-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.7;
}

.detail-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.detail-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.detail-card-title {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
  font-family: var(--font-display);
}

.detail-card-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.detail-card-highlight {
  color: var(--color-cyan);
  font-weight: 500;
}

/* --- Technology Feature Sections --- */
.tech-feature-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 6rem;
  position: relative;
}

.tech-feature-section:nth-child(even) {
  flex-direction: row-reverse;
}

.tech-feature-content {
  flex: 1;
}

.tech-feature-content h3 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.tech-feature-content p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tech-feature-image-wrapper {
  flex: 1;
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  /* Glass border effect */
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tech-feature-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  background: var(--glass-bg);
  z-index: -1;
}

.tech-feature-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-lg);
  /* Inner radius */
  transition: transform 0.5s ease;
}

.tech-feature-image-wrapper:hover .tech-feature-image {
  transform: scale(1.02);
}

/* Responsive Styles for Tech Page */
@media (max-width: 992px) {
  .tech-feature-section {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .tech-feature-section:nth-child(even) {
    flex-direction: column;
  }

  .tech-feature-content h3 {
    font-size: 2rem;
    text-align: center;
  }

  .tech-feature-content .section-header.left {
    text-align: center;
    align-items: center;
  }
}

/* --- Tech Page Refinements --- */

/* Summary Grid */
.tech-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 8rem !important;
  /* Override inline style if any */
}

.tech-summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.tech-summary-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-primary-light);
  transform: translateY(-5px);
}

.tech-summary-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(41, 98, 255, 0.3));
}

.tech-summary-card h4 {
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.tech-summary-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* Feature Section Separation */
.tech-feature-section {
  padding: 4rem 3rem;
  border-radius: 2rem;
  transition: background 0.3s ease;
  /* Ensure content is positioned relative for absolute children if any */
  position: relative;
  overflow: hidden;
  /* Keep rounded corners clean */
}

.tech-feature-section:nth-child(even) {
  /* Even numbered child of container (excluding summary) - Wait, Summary is 1st child */
  /* If Summary is child 1, then Tech 1 is child 2 (even), Tech 2 is child 3 (odd).
       Let's check technologies.html structure.
       <div class="container">
           <div class="tech-summary-grid">...</div>
           <div class="tech-feature-section">...</div>
       So Summary is child 1.
       Tech 1 is child 2 (even).
       Tech 2 is child 3 (odd).
       The user wants separation. Let's background the EVEN children (Tech 1, Tech 3, Tech 5).
       Wait, alternating usually means 1 plain, 2 background, 3 plain.
       If Tech 1 (child 2) is background, Tech 2 (child 3) is plain.
       Let's see. 
       Tech 1: Grilles (Child 2) -> Background? 
       Tech 2: Objets (Child 3) -> Plain?
       Tech 3: Sémantique (Child 4) -> Background?
       Tech 4: Nav Evol (Child 5) -> Plain?
       Tech 5: Nav Pred (Child 6) -> Background?
       It works.
    */
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Adjust row-reverse based on visual order, not just generic nth-child if using background */
/* We previously had .tech-feature-section:nth-child(even) { flex-direction: row-reverse; } */
/* Now that we have a summary grid as the first child, the numbering shifts. */
/* Old: Tech 1 was likely child 1? No, usually in a wrapper. 
   Let's check existing css I wrote.
   .tech-feature-section:nth-child(even) { flex-direction: row-reverse; }
   
   Structure:
   Container
     Summary (1)
     Tech 1 (2)
     Tech 2 (3)
     Tech 3 (4)
     Tech 4 (5)
     Tech 5 (6)

   So:
   Tech 1 (2): Even -> Background + Row Reverse? 
       Wait, Row Reverse on the FIRST tech section (Grilles) might be odd if the intent was "Image Right" for first.
       Standard flow: Text Left, Image Right. 
       If flex-direction is default (row), then Text Left, Image Right.
       If flex-direction is row-reverse, then Image Left, Text Right.
       
       Tech 1 (Child 2): Even -> Row Reverse -> Image Left.
       Tech 2 (Child 3): Odd -> Row -> Image Right.
       
       Usually we want Tech 1 to be standard (Text Left). 
       So we want Tech 1 to be ROW.
       Tech 1 is Child 2. So Child 2 should be ROW.
       So we need :nth-child(odd) to be row-reverse? 
       Child 3 (Tech 2) is Odd -> Row Reverse -> Image Left.
       
       So I need to override the previous CSS or adapt to the new child index.
       
       PREVIOUS CSS in style.css:
       .tech-feature-section:nth-child(even) { flex-direction: row-reverse; }
       
       With Summary added, Tech 1 became Even (2).
       So Tech 1 will duplicate "row-reverse". 
       I want Tech 1 to be ROW.
*/

/* Fix for alternating layout with new sibling */
.tech-feature-section:nth-child(odd) {
  flex-direction: row-reverse;
}

.tech-feature-section:nth-child(even) {
  flex-direction: row;
}

/* Fix for background separation */
/* I want alternating backgrounds. */
/* Let's background the ones that are "Cards" or distinct. */
/* If Tech 1 is row (Text Left), let's make it the "Plain" one? Or Background? */
/* Let's make the "Image Left" ones (Tech 2, Tech 4) distinct? Or vice versa. */
/* Let's just background every OTHER tech section. */
/* Tech 1 (Child 2) -> Plain */
/* Tech 2 (Child 3) -> Background */
/* Tech 3 (Child 4) -> Plain */
/* Tech 4 (Child 5) -> Background */

.tech-feature-section:nth-child(odd) {
  /* Child 3, 5, 7... -> Tech 2, Tech 4 */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.tech-feature-section:nth-child(even) {
  /* Child 2, 4, 6... -> Tech 1, Tech 3, Tech 5 */
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (max-width: 992px) {
  .tech-feature-section {
    padding: 3rem 1.5rem;
  }

  .tech-feature-section:nth-child(odd),
  .tech-feature-section:nth-child(even) {
    flex-direction: column;
    /* Stack on mobile */
  }
}

/* --- Style Alignment with Qui Sommes Nous & Applications --- */

/* Summary Grid - Aligned with .team-grid */
.tech-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* Match team-grid min-width */
  gap: 2rem;
  /* Match team-grid gap */
  margin-bottom: 6rem !important;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

.tech-summary-card {
  /* Match .team-card base style */
  background: rgba(10, 12, 20, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  /* Fill height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tech-summary-card:hover {
  background: rgba(10, 12, 20, 0.6);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-8px);
}

.tech-summary-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(41, 98, 255, 0.3));
}

.tech-summary-card h4 {
  /* Match .team-name or .platform-item h4 */
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.tech-summary-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Feature Sections - Clean & Spacious (Applications style) */
.tech-feature-section {
  padding: 0;
  /* Remove padding used for background block */
  margin-bottom: 0;
  /* Spacing handled by separator margin */
  border-radius: 0;
  background: none !important;
  /* Remove background */
  border: none !important;
  /* Remove border */
  box-shadow: none !important;
  /* Remove shadow */
  position: relative;
  overflow: visible;
}

.tech-feature-section:nth-child(even),
.tech-feature-section:nth-child(odd) {
  background: none !important;
  border: none !important;
}

/* Re-apply layout rules */
.tech-feature-section {
  display: flex;
  align-items: center;
  gap: 4rem;
}

/* 
   We inserted separators. 
   Structure: 
   Grid (Summary)
   Tech 1
   Separator
   Tech 2
   Separator...
   
   If we use nth-child on .tech-feature-section, it targets ONLY elements with that class? 
   No, nth-child counts ALL siblings. 
   
   Siblings in container:
   1. .tech-summary-grid
   2. .tech-feature-section (Tech 1) -> Even
   3. .section-separator
   4. .tech-feature-section (Tech 2) -> Even (wait, 1+1+1+1 = 4)
   
   Let's count:
   1: Summary
   2: Tech 1
   3: Separator
   4: Tech 2
   5: Separator
   6: Tech 3
   7: Separator
   8: Tech 4
   9: Separator
   10: Tech 5
   
   Tech Sections are indices: 2, 4, 6, 8, 10. They are ALL EVEN.
   So `nth-child(even)` selectors will hit ALL of them. 
   `nth-child(odd)` selectors will hit NONE (except Summary/Separators if they matched class, which they don't).
   
   So `.tech-feature-section:nth-child(even)` applies to ALL of them.
   This means we lose the alternating layout capability via simple nth-child if we use `flex-direction: row-reverse` on evens.
   
   We need to target every OTHER tech section. 
   Tech 1 (2): Standard
   Tech 2 (4): Reverse
   Tech 3 (6): Standard
   Tech 4 (8): Reverse
   Tech 5 (10): Standard
   
   Indices: 2, 6, 10 are Standard (Text Left). (2, 6, 10... -> 2 + 4n)
   Indices: 4, 8 are Reverse (Image Left). (4 + 4n)
   
   :nth-child(4n+2) -> 2, 6, 10... -> Standard
   :nth-child(4n) -> 4, 8... -> Reverse
*/

.tech-feature-section:nth-child(4n+2) {
  flex-direction: row;
}

.tech-feature-section:nth-child(4n) {
  flex-direction: row-reverse;
}

/* Responsive adjustment */
@media (max-width: 992px) {

  .tech-feature-section:nth-child(4n+2),
  .tech-feature-section:nth-child(4n) {
    flex-direction: column;
  }
}

/* --- Final Technology Page Refinements --- */

/* 1. New Section Structure for Alternating Backgrounds */
.tech-section-block {
  padding: 6rem 0;
  width: 100%;
  position: relative;
  margin: 0;
}

/* Alternating background style - Subtle, similar to index logic or distinct blocks */
.tech-section-block.alt-bg {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Prevent double padding issues if base .section has padding */
.section {
  padding: 5rem 0;
  /* Standardize */
}

/* 2. Top Summary Grid - 5 items all visible */
.tech-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) !important;
  /* Force 5 columns */
  gap: 1.5rem;
  margin-bottom: 2rem !important;
  /* Reduce bottom margin */
}

.tech-summary-card {
  padding: 1rem 0.5rem !important;
  /* Even more compact padding */
  min-height: 140px;
  /* Reduced min-height */
}

.tech-summary-icon {
  font-size: 1.8rem !important;
  /* Smaller icon */
  margin-bottom: 0.5rem !important;
}

.tech-summary-card h4 {
  font-size: 0.95rem !important;
  /* Smaller title to fit */
  margin-bottom: 0.5rem !important;
  line-height: 1.3;
}

.tech-summary-card p {
  font-size: 0.8rem !important;
  /* Smaller text */
  line-height: 1.4 !important;
}

/* Responsive for Summary Grid */
@media (max-width: 1024px) {
  .tech-summary-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    /* 3 cols tablet */
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .tech-summary-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    /* 2 cols mobile */
  }

  /* Make the last odd item span 2 columns to look centered */
  .tech-summary-grid>*:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1.8rem;
  }


  .tech-summary-grid {
    grid-template-columns: 1fr !important;
    /* 1 col narrow mobile */
  }

  .tech-summary-grid>*:last-child:nth-child(odd) {
    grid-column: span 1;
  }
}

/* 3. Video Actions Section */
.video-action-section {
  padding: 6rem 0;
  text-align: center;
}

.video-outer-container {
  max-width: 1000px;
  margin: 3rem auto 0;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  overflow: hidden;
  width: 100%;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  width: 100%;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive adjustment for page header padding to prevent navbar overlap */
@media (max-width: 992px) {
  .page-header-section {
    padding-top: 160px;
  }
}

/* FORCE padding override for page headers to fix navbar overlap */
.section.page-header-section {
  padding-top: 140px !important;
  padding-bottom: 2rem;
  /* Ensure some spacing below title */
  display: block !important;
  /* Ensure it behaves as a block */
}

@media (max-width: 992px) {
  .section.page-header-section {
    padding-top: 120px !important;
  }
}