/* Custom CSS Variables */
:root {
  --lab-blue: #2563eb;
  --lab-teal: #0891b2;
  --lab-blue-light: #3b82f6;
  --lab-teal-light: #06b6d4;
  --primary-green: #0d6a4d;
  --secondary-green: #67c19e;
  --light-green: #a7f3d0;
  --dark-green: #064e3b;
}

/* Custom Tailwind Classes */
.text-lab-blue {
  color: var(--lab-blue);
}

.text-lab-teal {
  color: var(--lab-teal);
}

.bg-lab-blue {
  background-color: var(--lab-blue);
}

.bg-lab-teal {
  background-color: var(--lab-teal);
}

.border-lab-blue {
  border-color: var(--lab-blue);
}

.border-lab-teal {
  border-color: var(--lab-teal);
}

/* NEW: Added green color classes */
.text-primary-green {
  color: var(--primary-green);
}

.text-secondary-green {
  color: var(--secondary-green);
}

.bg-primary-green {
  background-color: var(--primary-green);
}

.bg-secondary-green {
  background-color: var(--secondary-green);
}

/* ===== NEW: ENHANCED HERO SECTION STYLES ===== */

/* Enhanced Parallax Hero */
.enhanced-parallax-hero {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* Background Layers with Enhanced Parallax */
.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  will-change: transform, opacity;
  opacity: var(--layer-opacity, 1);
  transform-style: preserve-3d;
  transition: opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1), transform 1.2s cubic-bezier(0.32, 0, 0.67, 0);
}

/* Version hybride conservant partiellement la 3D */
.hero-bg-1 {
  transform: translateZ(-1px) scale(1.05); /* Réduit l'intensité */
  transition-delay: 0.1s;
}
.hero-bg-2 {
  transform: translateZ(-0.5px) scale(1.03);
  transition-delay: 0.2s;
}
.hero-bg-3 {
  transform: translateZ(0);
  transition-delay: 0.3s;
}

/* Animated Background Shapes */
.hero-shape {
  animation: heroShapeFloat 20s ease-in-out infinite;
}

.hero-shape-1 {
  animation-delay: 0s;
  animation-duration: 25s;
}

.hero-shape-2 {
  animation-delay: 5s;
  animation-duration: 30s;
}

.hero-shape-3 {
  animation-delay: 10s;
  animation-duration: 20s;
}

@keyframes heroShapeFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.1;
  }
  25% {
    transform: translate(20px, -30px) scale(1.1);
    opacity: 0.2;
  }
  50% {
    transform: translate(-15px, -20px) scale(0.9);
    opacity: 0.15;
  }
  75% {
    transform: translate(25px, 10px) scale(1.05);
    opacity: 0.25;
  }
}

/* Grid Pattern */
.grid-pattern {
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  width: 100%;
  height: 100%;
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Floating Geometric Elements */
.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-element {
  animation: floatingElement 15s ease-in-out infinite;
}

.floating-element-1 {
  animation-delay: 0s;
  animation-duration: 18s;
}

.floating-element-2 {
  animation-delay: 3s;
  animation-duration: 22s;
}

.floating-element-3 {
  animation-delay: 6s;
  animation-duration: 16s;
}

.floating-element-4 {
  animation-delay: 9s;
  animation-duration: 20s;
}

@keyframes floatingElement {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) rotate(90deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
  75% {
    transform: translateY(-40px) rotate(270deg);
  }
}

/* Geometric Shapes */
.geometric-shape {
  width: 60px;
  height: 60px;
  backdrop-filter: blur(10px);
}

.hexagon-shape {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.triangle-shape {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.diamond-shape {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transform: rotate(45deg);
}

.circle-shape {
  border-radius: 50%;
}

/* Enhanced Particle System */
.enhanced-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle-group-1 .enhanced-particle {
  animation: enhancedParticleFloat1 12s infinite linear;
}

.particle-group-2 .enhanced-particle {
  animation: enhancedParticleFloat2 15s infinite linear;
}

.enhanced-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(103, 193, 158, 0.4) 100%);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.particle-group-1 .enhanced-particle:nth-child(1) {
  left: 15%;
  animation-delay: 0s;
}

.particle-group-1 .enhanced-particle:nth-child(2) {
  left: 35%;
  animation-delay: 2s;
}

.particle-group-1 .enhanced-particle:nth-child(3) {
  left: 55%;
  animation-delay: 4s;
}

.particle-group-1 .enhanced-particle:nth-child(4) {
  left: 75%;
  animation-delay: 6s;
}

.particle-group-1 .enhanced-particle:nth-child(5) {
  left: 85%;
  animation-delay: 8s;
}

.particle-group-2 .enhanced-particle:nth-child(1) {
  left: 25%;
  animation-delay: 1s;
}

.particle-group-2 .enhanced-particle:nth-child(2) {
  left: 65%;
  animation-delay: 5s;
}

.particle-group-2 .enhanced-particle:nth-child(3) {
  left: 95%;
  animation-delay: 9s;
}

@keyframes enhancedParticleFloat1 {
  0% {
    transform: translateY(100vh) scale(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) scale(1) rotate(45deg);
  }
  90% {
    opacity: 1;
    transform: translateY(-10vh) scale(1) rotate(315deg);
  }
  100% {
    transform: translateY(-20vh) scale(0) rotate(360deg);
    opacity: 0;
  }
}

@keyframes enhancedParticleFloat2 {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) translateX(20px) scale(1);
  }
  50% {
    transform: translateY(50vh) translateX(-30px) scale(1.2);
  }
  90% {
    opacity: 1;
    transform: translateY(-10vh) translateX(10px) scale(1);
  }
  100% {
    transform: translateY(-20vh) translateX(0) scale(0);
    opacity: 0;
  }
}

/* Light Rays Effect */
.light-rays {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.light-ray {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.1) 20%, rgba(103, 193, 158, 0.3) 50%, rgba(255, 255, 255, 0.1) 80%, transparent 100%);
  animation: lightRayMove 8s ease-in-out infinite;
}

.light-ray-1 {
  left: 20%;
  animation-delay: 0s;
  transform: rotate(15deg);
}

.light-ray-2 {
  left: 60%;
  animation-delay: 2s;
  transform: rotate(-10deg);
}

.light-ray-3 {
  left: 80%;
  animation-delay: 4s;
  transform: rotate(20deg);
}

@keyframes lightRayMove {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-50px) rotate(15deg);
  }
  50% {
    opacity: 1;
    transform: translateX(50px) rotate(15deg);
  }
}

/* Enhanced Logo Styles */
.logo-container {
  position: relative;
  animation: logoEntrance 2s ease-out;
}

.logo-glow {
  animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo-circle {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.logo-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(103, 193, 158, 0.4);
}

.logo-inner-glow {
  animation: innerGlow 2s ease-in-out infinite alternate;
}

.logo-pulse-ring {
  animation: pulsRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes logoGlow {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@keyframes innerGlow {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.4;
  }
}

@keyframes pulsRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Enhanced Typography */
.hero-title {
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transform: none !important;
  backface-visibility: visible;
  perspective: none;
  animation: none !important;
  image-rendering: crisp-edges;
  -webkit-text-stroke: 0.5px transparent;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

.title-word {
  display: inline-block;
  animation: none !important;
  transform: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  will-change: auto;
}

.title-word-1 {
  animation-delay: 0s;
}

.title-word-2 {
  animation-delay: 0.2s;
}

.hero-subtitle {
  animation: subtitleEntrance 1s ease-out 1s both;
}

.hero-subtitle-highlight {
  animation: subtitleHighlight 1s ease-out 1.2s both;
  text-shadow: 0 0 10px rgba(103, 193, 158, 0.3);
}

@keyframes titleEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) translateZ(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

@keyframes titleWordFloat {
  0%, 100% {
    transform: translateY(0) translateZ(0);
  }
  50% {
    transform: translateY(-8px) translateZ(0);
  }
}

@keyframes subtitleEntrance {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes subtitleHighlight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced CTA Buttons */
.hero-cta-section {
  animation: ctaEntrance 1s ease-out 1.5s both;
}

.cta-primary {
  position: relative;
  display: inline-block;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(13, 106, 77, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(13, 106, 77, 0.4);
}

.cta-primary .cta-bg {
  border-radius: 50px;
}

.cta-secondary {
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  transform: translateY(-2px);
}

@keyframes ctaEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Scroll Indicator */
.scroll-indicator-enhanced {
  cursor: pointer;
  animation: scrollIndicatorEntrance 1s ease-out 2s both;
  transition: all 0.3s ease;
}

.scroll-indicator-enhanced:hover {
  transform: translateX(-50%) scale(1.1);
}

.scroll-text {
  animation: scrollTextPulse 2s ease-in-out infinite;
}

.scroll-dot-animated {
  animation: scrollDotMove 2s ease-in-out infinite;
}

@keyframes scrollIndicatorEntrance {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes scrollTextPulse {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scrollDotMove {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(60px);
    opacity: 0;
  }
}

/* Corner Accents Animation */
.corner-accent {
  animation: cornerAccentGlow 3s ease-in-out infinite alternate;
}

.corner-accent-tl {
  animation-delay: 0s;
}

.corner-accent-tr {
  animation-delay: 0.5s;
}

.corner-accent-bl {
  animation-delay: 1s;
}

.corner-accent-br {
  animation-delay: 1.5s;
}

@keyframes cornerAccentGlow {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* Side Accents */
.side-accent-left,
.side-accent-right {
  animation: sideAccentPulse 4s ease-in-out infinite;
}

.side-accent-right {
  animation-delay: 2s;
}

@keyframes sideAccentPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.8;
    transform: scaleY(1.2);
  }
}

/* Performance Optimizations */
.hero-bg-layer,
.floating-element,
.enhanced-particle,
.light-ray {
  will-change: transform;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .hero-shape,
  .floating-element,
  .enhanced-particle,
  .light-ray,
  .logo-glow,
  .logo-pulse-ring,
  .title-word,
  .scroll-dot-animated {
    animation: none;
  }

  .grid-pattern {
    animation: none;
  }
}

/* ===== END OF NEW HERO SECTION STYLES ===== */

/* REMOVED: Old hero section styles
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
  position: relative;
}

.hero-bg {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(8, 145, 178, 0.2) 100%);
}

.logo-circle {
  transition: all 0.3s ease;
}

.logo-circle:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.8);
}

.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}
*/

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Backdrop Blur */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary {
  background-color: var(--lab-blue);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--lab-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: var(--lab-teal);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--lab-teal-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(8, 145, 178, 0.3);
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--lab-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Card Styles */
.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* Typography */
.font-inter {
  font-family: "Inter", sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* MODIFIED: Updated for new hero section */
  .enhanced-parallax-hero {
    min-height: 100vh;
  }

  .hero-bg-layer {
    transform: none !important;
  }

  .hero-title {
    font-size: 4rem;
  }

  .logo-circle {
    width: 120px;
    height: 120px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .floating-element {
    display: none;
  }

  .light-rays {
    display: none;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle,
  .hero-subtitle-highlight {
    font-size: 1.25rem;
  }

  .logo-circle {
    width: 100px;
    height: 100px;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f9f3;
}

::-webkit-scrollbar-thumb {
  background: #16a34a;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #167e3d;
}

