/* =======================================
   NEXOVO LABS – PAGE STYLES
   Modern design with scroll animations
   ======================================= */

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(40px); }
}

@keyframes drawLine {
  from { width: 0; opacity: 0; }
  to { width: 100%; opacity: 1; }
}

@keyframes numberGlow {
  0%, 100% { 
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  }
  50% { 
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.8),
                 0 0 30px rgba(99, 102, 241, 0.4);
  }
}

@keyframes heroTextGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.6))
            drop-shadow(0 0 60px rgba(139, 92, 246, 0.4));
  }
}

@keyframes floatDiagonal {
  0%, 100% { 
    transform: translate(0, 0); 
  }
  50% { 
    transform: translate(-20px, -30px); 
  }
}

@keyframes particleFloat {
  0% { 
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% { 
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

@keyframes separatorGlow {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Page wrapper */
.labs-page {
  background: #ffffff;
  overflow-x: hidden;
}

/* =========================
   HERO SECTION
========================= */

.labs-hero {
  max-height: 400px;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    #0f172a 0%, 
    #1e293b 50%,
    #334155 100%);
  animation: fadeIn 0.8s ease-out;
}

.hero-background {
  max-height: 400px;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* Animated grid overlay */
.grid-overlay {
  max-height: 400px;
  overflow: hidden;
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 20s linear infinite;
}

/* Gradient orbs */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  top: -250px;
  left: -200px;
  animation: float 15s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  bottom: -200px;
  right: -150px;
  animation: float 12s ease-in-out infinite reverse;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  top: 50%;
  right: 15%;
  animation: pulse 10s ease-in-out infinite;
}

/* Floating particles effect */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(99, 102, 241, 0.6);
  border-radius: 50%;
  animation: particleFloat linear infinite;
  bottom: 0;
}

.particle:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-duration: 18s; animation-delay: 2s; width: 6px; height: 6px; }
.particle:nth-child(3) { left: 30%; animation-duration: 20s; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-duration: 16s; animation-delay: 1s; width: 5px; height: 5px; }
.particle:nth-child(5) { left: 50%; animation-duration: 22s; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-duration: 17s; animation-delay: 5s; width: 7px; height: 7px; }
.particle:nth-child(7) { left: 70%; animation-duration: 19s; animation-delay: 2s; }
.particle:nth-child(8) { left: 80%; animation-duration: 21s; animation-delay: 4s; width: 5px; height: 5px; }
.particle:nth-child(9) { left: 90%; animation-duration: 18s; animation-delay: 1s; }
.particle:nth-child(10) { left: 15%; animation-duration: 20s; animation-delay: 6s; background: rgba(139, 92, 246, 0.6); }

/* Hero content */
.labs-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.labs-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.2) 0%, 
    rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 999px;
  color: #a5b4fc;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.8s ease-out;
}

.labs-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  animation: heroTextGlow 3s ease-in-out infinite;
}

.hero-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 750px;
  margin: 0 auto;
}

/* =========================
   SECTION COMMON STYLES
========================= */

.labs-section {
  padding: 5rem 0;
  position: relative;
}

.labs-intro-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.labs-intro-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-header.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}

/* =========================
   CAPABILITIES SECTION
========================= */

.capabilities-section {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 30%, #fef9e7 100%);
  position: relative;
  overflow: hidden;
}

.capabilities-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(245, 158, 11, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.capability-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(248, 250, 252, 0.95) 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.capability-card.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.05) 0%, 
    rgba(139, 92, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.capability-card:hover::before {
  opacity: 1;
}

.capability-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 
    0 20px 50px rgba(99, 102, 241, 0.15),
    0 10px 25px rgba(59, 130, 246, 0.1);
}

.capability-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.capability-card:hover .capability-icon {
  transform: scale(1.1) rotate(5deg);
}

.capability-icon svg {
  width: 32px;
  height: 32px;
}

.capability-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.capability-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.capability-hover {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.capability-card:hover .capability-hover {
  opacity: 1;
  transform: translateX(0);
}

.capability-hover span {
  color: #6366f1;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Staggered animation for cards */
.capability-card:nth-child(1) { transition-delay: 0.1s; }
.capability-card:nth-child(2) { transition-delay: 0.2s; }
.capability-card:nth-child(3) { transition-delay: 0.3s; }
.capability-card:nth-child(4) { transition-delay: 0.4s; }

/* Category-specific hover colors */
[data-capability="software"]:hover .capability-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

[data-capability="backend"]:hover .capability-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

[data-capability="web"]:hover .capability-icon {
  background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
}

[data-capability="enterprise"]:hover .capability-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

/* =========================
   PROCESS SECTION
========================= */

.process-section {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 50%, #faf5ff 100%);
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.process-timeline {
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.process-step.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  animation: numberGlow 2s ease-in-out infinite;
}

.step-content {
  padding-top: 0.5rem;
}

.step-content h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.step-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.step-line {
  position: absolute;
  left: 40px;
  top: 80px;
  width: 2px;
  height: calc(100% + 3rem);
  background: linear-gradient(to bottom, 
    rgba(99, 102, 241, 0.3) 0%, 
    rgba(99, 102, 241, 0) 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s ease-out 0.3s;
}

.process-step.animate-in .step-line {
  transform: scaleY(1);
}

.process-step:last-child .step-line {
  display: none;
}

/* Staggered animation for process steps */
.process-step:nth-child(1) { transition-delay: 0.1s; }
.process-step:nth-child(2) { transition-delay: 0.2s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }
.process-step:nth-child(4) { transition-delay: 0.4s; }

/* =========================
   TECHNOLOGY SECTION
========================= */

.tech-section {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 50%, #fef2f2 100%);
  position: relative;
  overflow: hidden;
}

.tech-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.tech-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(248, 250, 252, 0.95) 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-card.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(236, 72, 153, 0.05) 0%, 
    rgba(244, 63, 94, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 
    0 20px 50px rgba(236, 72, 153, 0.15),
    0 10px 25px rgba(244, 63, 94, 0.1);
}

.tech-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-card:hover .tech-icon {
  transform: scale(1.1) rotate(5deg);
}

.tech-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.tech-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.tech-hover {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.tech-card:hover .tech-hover {
  opacity: 1;
  transform: translateX(0);
}

.tech-hover span {
  color: #ec4899;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Staggered animation for tech cards */
.tech-card:nth-child(1) { transition-delay: 0.1s; }
.tech-card:nth-child(2) { transition-delay: 0.2s; }
.tech-card:nth-child(3) { transition-delay: 0.3s; }
.tech-card:nth-child(4) { transition-delay: 0.4s; }

/* Technology-specific hover colors */
[data-tech="development"]:hover .tech-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

[data-tech="architecture"]:hover .tech-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

[data-tech="security"]:hover .tech-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

[data-tech="deployment"]:hover .tech-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

/* =========================
   INTEGRATION SECTION
========================= */

.integration-section {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}

.integration-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.integration-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.integration-content.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.integration-text h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.integration-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.integration-text p:last-child {
  margin-bottom: 0;
}

.integration-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.05) 0%, 
    rgba(139, 92, 246, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.integration-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.4s ease;
}

.integration-content:hover .integration-icon {
  transform: scale(1.1);
}

.labs-icon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  animation: float 4s ease-in-out infinite;
}

.design-icon {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  animation: float 4s ease-in-out infinite reverse;
}

.integration-icon svg {
  width: 48px;
  height: 48px;
}

.connection-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, 
    #6366f1 0%, 
    #8b5cf6 50%, 
    #ec4899 100%);
  margin: 0 1rem;
  position: relative;
  overflow: hidden;
}

.connection-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, 
    transparent, 
    rgba(255, 255, 255, 0.8), 
    transparent);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  to {
    left: 150%;
  }
}

/* =========================
   CTA SECTION
========================= */

.labs-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg,
    #0f172a 0%,
    #1e293b 50%,
    #334155 100%);
  animation: fadeIn 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.cta-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.5) 2px, transparent 2px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.5) 2px, transparent 2px);
  background-size: 50px 50px;
  animation: gridMove 25s linear infinite;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cta-content.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
  line-height: 1.2;
}

.cta-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
}

.labs-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 
    0 10px 30px rgba(99, 102, 241, 0.4),
    0 4px 12px rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.labs-cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.labs-cta-btn:hover::before {
  opacity: 1;
}

.labs-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(99, 102, 241, 0.5),
    0 8px 20px rgba(139, 92, 246, 0.4);
}

/* =========================
   SECTION SEPARATOR
========================= */

.section-separator {
  padding: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.separator-line {
  width: 100%;
  max-width: 800px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(99, 102, 241, 0.1) 10%,
    rgba(99, 102, 241, 0.3) 50%,
    rgba(99, 102, 241, 0.1) 90%,
    transparent 100%
  );
  position: relative;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.separator-line.animate-in {
  opacity: 1;
  transform: scaleX(1);
}

/* Animated glow effect */
.separator-line::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -100%;
  width: 30%;
  height: 6px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(99, 102, 241, 0.6),
    transparent
  );
  filter: blur(4px);
  animation: separatorGlow 3s ease-in-out infinite;
}
/* =========================
   PRODUCTS SHOWCASE SECTION
   For FrontDesk IQ display
========================= */

.products-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.products-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Product showcase container */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.product-showcase.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Product visual side */
.product-visual {
  position: relative;
  padding: 2rem;
}

.product-image-container {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 1) 100%);
  border: 2px solid rgba(226, 232, 240, 0.6);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(14, 165, 233, 0.15),
    0 8px 24px rgba(59, 130, 246, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-image-container::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  animation: rotateGlow 20s linear infinite;
  pointer-events: none;
}

.product-image-container:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 30px 80px rgba(14, 165, 233, 0.25),
    0 12px 40px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.product-logo {
  max-width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

/* Floating particles around logo */
.product-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.product-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(14, 165, 233, 0.4);
  border-radius: 50%;
  animation: particleOrbit linear infinite;
}

.product-particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-duration: 8s;
  animation-delay: 0s;
}

.product-particle:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-duration: 10s;
  animation-delay: 2s;
  width: 8px;
  height: 8px;
  background: rgba(59, 130, 246, 0.4);
}

.product-particle:nth-child(3) {
  bottom: 25%;
  left: 20%;
  animation-duration: 12s;
  animation-delay: 4s;
}

.product-particle:nth-child(4) {
  top: 40%;
  right: 25%;
  animation-duration: 9s;
  animation-delay: 1s;
  width: 7px;
  height: 7px;
  background: rgba(6, 182, 212, 0.4);
}

@keyframes particleOrbit {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(20px, -15px) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translate(40px, 0) scale(1);
    opacity: 0.3;
  }
  75% {
    transform: translate(20px, 15px) scale(0.8);
    opacity: 0.6;
  }
}

/* Product content side */
.product-content {
  padding: 2rem;
}

.product-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, 
    rgba(14, 165, 233, 0.15) 0%, 
    rgba(59, 130, 246, 0.15) 100%);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 999px;
  color: #0284c7;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  animation: fadeIn 0.8s ease-out;
}

.product-content h3 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.product-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.product-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 2rem;
}

.product-features {
  margin-bottom: 2.5rem;
}

.product-features h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.product-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-features li {
  padding: 0.75rem 0 0.75rem 2rem;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
  position: relative;
  transition: all 0.3s ease;
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
  transition: all 0.3s ease;
}

.product-features li:hover {
  color: #1e293b;
  transform: translateX(5px);
}

.product-features li:hover::before {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.5);
}

/* Product CTA Button */
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 
    0 10px 30px rgba(14, 165, 233, 0.35),
    0 4px 12px rgba(59, 130, 246, 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.product-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.product-cta:hover::before {
  opacity: 1;
}

.product-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(14, 165, 233, 0.45),
    0 8px 20px rgba(59, 130, 246, 0.35);
}

.product-cta .emoji {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.product-cta:hover .emoji {
  transform: translateX(4px);
}

/* Accent decoration */
.product-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 150px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    #0ea5e9 30%, 
    #3b82f6 70%, 
    transparent 100%);
  border-radius: 999px;
  opacity: 0.4;
}

/* Hover effect for entire showcase */
.product-showcase:hover .product-image-container::before {
  animation-duration: 15s;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .integration-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .integration-visual {
    max-width: 400px;
    margin: 0 auto;
  }
  .product-showcase {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .product-visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .product-content h3 {
    font-size: 2.25rem;
  }

  .product-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .labs-hero {
    min-height: 400px;
    padding: 4rem 0 3rem;
  }

  .labs-hero h1 {
    font-size: 2.25rem;
  }

  .hero-lead {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .capability-card {
    padding: 2rem;
  }

  .process-step {
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
  }

  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }

  .step-line {
    left: 30px;
  }

  .step-content h3 {
    font-size: 1.5rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .integration-text h2 {
    font-size: 1.875rem;
  }

  .integration-text p {
    font-size: 1rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }

  .section-separator {
    padding: 2rem 0;
  }
  
  .separator-line {
    max-width: 90%;
  }
  .product-image-container {
    padding: 2rem;
  }

  .product-content {
    padding: 1rem;
  }

  .product-content h3 {
    font-size: 2rem;
  }

  .product-subtitle {
    font-size: 1.1rem;
  }

  .product-description {
    font-size: 1rem;
  }

  .product-features li {
    font-size: 1rem;
    padding-left: 2rem;
  }

  .product-cta {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .labs-hero h1 {
    font-size: 1.75rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .labs-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .capability-card {
    padding: 1.5rem;
  }

  .capability-icon {
    width: 50px;
    height: 50px;
  }

  .capability-icon svg {
    width: 28px;
    height: 28px;
  }

  .labs-cta-btn {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }
  .product-image-container {
    padding: 1.5rem;
  }

  .product-content h3 {
    font-size: 1.75rem;
  }

  .product-subtitle {
    font-size: 1rem;
  }

  .product-description {
    font-size: 0.95rem;
  }

  .product-features li {
    font-size: 0.95rem;
  }

  .product-cta {
    padding: 0.9rem 1.75rem;
    font-size: 0.95rem;
  }
}
/* Mouse trail - Binary code (0s and 1s) */
.trail-binary {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: all 0.5s ease-out;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: bold;
  color: transparent;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}