/* purgecss start ignore */

/* GRADIENT GLASS PANELS - Advanced glassmorphism with full transparency */

/* === PRIMARY GLASS PANELS === */

/* Glass panel primary - Base glassmorphic container */

.glass-panel-primary {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Glass panel with cyan/blue gradient overlay */

.glass-panel-cyan {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 2px solid rgba(6, 182, 212, 0.3);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Glass panel with purple gradient overlay */

.glass-panel-purple {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* === HOVER EFFECTS === */

.glass-panel-hover {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.3);
  border-color: rgba(6, 182, 212, 0.5);
}

.glass-panel-hover-purple:hover {
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.5);
}

/* === GLOW EFFECTS === */

.glass-panel-glow-blue {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
  animation: pulse-glow-blue 3s ease-in-out infinite;
}

.glass-panel-glow-purple {
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
  animation: pulse-glow-purple 3s ease-in-out infinite;
}

.glass-panel-glow-cyan {
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.2);
  animation: pulse-glow-cyan 3s ease-in-out infinite;
}

.glass-panel-glow-green {
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.2);
  animation: pulse-glow-green 3s ease-in-out infinite;
}

/* === DEPTH LAYERS === */

/* Deep glass - Extra blur for background sections */

.glass-panel-deep {
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light glass - Subtle blur for foreground elements */

.glass-panel-light {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* === ANIMATED BACKGROUNDS === */

/* Gradient shift background */

.glass-panel-gradient-shift {
  background: linear-gradient(135deg,
    rgba(6, 182, 212, 0.1) 0%,
    rgba(59, 130, 246, 0.08) 25%,
    rgba(139, 92, 246, 0.06) 50%,
    rgba(168, 85, 247, 0.08) 75%,
    rgba(6, 182, 212, 0.1) 100%);
  background-size: 200% 200%;
  animation: gradient-shift-bg 8s ease-in-out infinite;
}

/* === INNER GLOWS === */

.glass-panel-inner-glow {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.glass-panel-inner-glow-purple {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(139, 92, 246, 0.1);
}

/* === SECTION BACKGROUNDS === */

/* Hero section glassmorphic background */

.glass-section-hero {
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(139, 92, 246, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Content section glassmorphic background */

.glass-section-content {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 100%);
}

/* === ANIMATIONS === */

@keyframes pulse-glow-blue {
  0%, 100% {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
  }

  50% {
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.4);
  }
}

@keyframes pulse-glow-purple {
  0%, 100% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
  }

  50% {
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.4);
  }
}

@keyframes pulse-glow-cyan {
  0%, 100% {
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.2);
  }

  50% {
    box-shadow: 0 0 60px rgba(6, 182, 212, 0.4);
  }
}

@keyframes pulse-glow-green {
  0%, 100% {
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.2);
  }

  50% {
    box-shadow: 0 0 60px rgba(34, 197, 94, 0.4);
  }
}

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

  25% { background-position: 50% 0%;
  }

  50% { background-position: 100% 50%;
  }

  75% { background-position: 50% 100%;
  }
}

/* === BADGES & TAGS === */

.glass-badge {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.glass-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* === BUTTONS === */

.glass-button-primary {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.8) 0%, rgba(59, 130, 246, 0.8) 100%);
  border: 2px solid rgba(6, 182, 212, 0.4);
  border-radius: 0.75rem;
  padding: 1rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-button-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.6);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.9) 0%, rgba(59, 130, 246, 0.9) 100%);
}

/* === RESPONSIVE === */

/* Reduce blur on mobile for better performance */

@media (max-width: 768px) {
  .glass-panel-primary,
  .glass-panel-cyan,
  .glass-panel-purple {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .glass-panel-deep {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .glass-section-hero {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

/* === ACCESSIBILITY === */

/* Reduce motion for users who prefer it */

@media (prefers-reduced-motion: reduce) {
  .glass-panel-hover,
  .glass-button-primary,
  .glass-badge {
    transition: none;
  }

  .glass-panel-glow-blue,
  .glass-panel-glow-purple,
  .glass-panel-glow-cyan,
  .glass-panel-glow-green,
  .glass-panel-gradient-shift {
    animation: none;
  }
}

/* === UTILITY CLASSES === */

/* Frosted glass effect */

.glass-frosted {
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  background: rgba(255, 255, 255, 0.05);
}

/* Ultra-light glass for overlays */

.glass-ultra-light {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark glass for modals/overlays */

.glass-dark {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* purgecss end ignore */

/* purgecss start ignore */

/* Premium 3D Card - Force dark background to override ALL global styles */

/* Target the motion.div wrapper directly with multiple selectors for maximum specificity */

.bg-black\/85,
div[class*="bg-black/85"],
.premium-3d-card-wrapper {
  background: rgba(0, 0, 0, 0.15) !important;
  background-color: rgba(0, 0, 0, 0.15) !important;
  position: relative !important;
  isolation: isolate !important;
}

/* Ensure the motion.div has dark background regardless of global CSS */

.bg-black\/85 > *:first-child {
  background: transparent !important;
}

/* Override any .glass-card or .linear-morph-card that might be applied */

.bg-black\/85.glass-card,
.bg-black\/85.linear-morph-card,
div[class*="bg-black/85"].glass-card {
  background: rgba(0, 0, 0, 0.15) !important;
  background-color: rgba(0, 0, 0, 0.15) !important;
}

/* Ensure Canvas doesn't break layout */

.premium-3d-card-wrapper canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Ensure content stays on top */

.premium-3d-card-wrapper > div:last-child {
  position: relative !important;
  z-index: 10 !important;
}

/* purgecss end ignore */

/* purgecss start ignore */

/* 🔧 TECH ICONS SIZE OVERRIDE - Fix for Large Icons */

/* Ensures DirectTechIconsHero icons can scale beyond 40px */

/* Override sprite CSS for larger icons */

.tech-icon-sprite[style*="width"] {
  /* Removed auto !important to allow custom sizes */
}

/* Specific class for large tech icons - DESKTOP ONLY */

.tech-icon-sprite.large-icon {
  /* Removed fixed sizes - let responsive CSS handle it */
}

/* Base container styles - responsive gap handled in hero-tech-icons-enhanced.css */

.tech-icons-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  /* gap removed - handled by responsive CSS */
}

/* Override any flex shrinking that might affect icon size */

.tech-icons-container .tech-icon-sprite {
  flex-shrink: 0;
  flex-grow: 0;
}

/* Debug class to verify icon dimensions */

.debug-large-icons .tech-icon-sprite {
  outline: 2px solid rgba(0, 255, 0, 0.5);
  background-color: rgba(0, 255, 0, 0.1) !important;
}

.debug-large-icons .tech-icon-sprite::after {
  content: attr(style);
  position: absolute;
  bottom: -20px;
  left: 0;
  font-size: 10px;
  color: lime;
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 4px;
  border-radius: 2px;
  white-space: nowrap;
  z-index: 1000;
}

/* purgecss end ignore */
/* purgecss start ignore */

/* 🎯 HERO TECH ICONS ENHANCED - Styles pour les icônes tech heroes optimisées */

/* Container principal - Prend toute la largeur disponible */

.hero-tech-icons-container {
  width: 100% !important;
  height: 100% !important;
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2rem; /* Rapprocher du container du dessus */
}

/* Amélioration du centrage des icônes sprites dans les containers glassmorphiques */

.tech-icon-sprite-perfect {
  flex-shrink: 0;
  position: relative;
  margin: 0 auto !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  /* Centrage parfait */
  display: block !important;
  /* PRESERVE ORIGINAL SPRITE COLORS - No grayscale or color filters */
  filter: none !important;
  -webkit-filter: none !important;
}

/* Système responsive avec scaling du sprite */

.tech-icon-sprite-perfect,
.tech-icon-sprite.large-icon,
.tech-icon-sprite {
  background-size: 378px 252px !important; /* Dimensions exactes du sprite JSON */
  /* PRESERVE ORIGINAL SPRITE COLORS */
  filter: none !important;
  -webkit-filter: none !important;
}

/* Mobile: scaling du sprite pour petites icônes */

@media (max-width: 640px) {
  .tech-icon-sprite-perfect,
  .tech-icon-sprite.large-icon,
  .tech-icon-sprite {
    background-size: 189px 126px !important; /* 50% du sprite pour icônes 24px */
    background-position: calc(var(--sprite-x, 0) * -0.5px) calc(var(--sprite-y, 0) * -0.5px) !important;
  }
}

/* Tablet: scaling du sprite pour icônes moyennes */

@media (min-width: 641px) and (max-width: 768px) {
  .tech-icon-sprite-perfect,
  .tech-icon-sprite.large-icon,
  .tech-icon-sprite {
    background-size: 302px 202px !important; /* 80% du sprite pour icônes 32px */
    background-position: calc(var(--sprite-x, 0) * -0.8px) calc(var(--sprite-y, 0) * -0.8px) !important;
  }
}

/* BASE: Espacement desktop pour conteneur */

.tech-icons-container {
  gap: 0.125rem; /* 2px espacement de base desktop - plus serré */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* MOBILE ET TABLET: Simplification */

@media (max-width: 770px) {
  .tech-icons-container {
    gap: 0.25rem !important;
    padding: 0 !important;
  }

  .floating-perfect-icon-container {
    padding: 2px !important;
    border-radius: 4px !important;
  }
}

/* MOBILE: Compact */

@media (max-width: 640px) {
  .tech-icons-container {
    gap: 0.125rem !important;
  }

  .floating-perfect-icon-container {
    padding: 2px !important;
    border-radius: 3px !important;
  }
}

/* Classes simplifiées - système de scaling unifié avec les vraies dimensions */

.hero-tech-icon-standard .tech-icon-sprite-perfect,
.hero-tech-icon-standard .tech-icon-sprite,
.tech-icon-sprite-perfect,
.tech-icon-sprite {
  background-size: 378px 252px !important; /* Dimensions exactes du sprite JSON */
}

/* Container glassmorphique optimisé pour les icônes plus grandes */

.floating-perfect-icon-container {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  border-radius: 8px;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

/* Effet de survol amélioré pour les grandes icônes */

.floating-perfect-icon-container:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

/* Animation de particules optimisée */

.hero-particle-effect {
  pointer-events: none;
  position: absolute;
  width: 2px;
  height: 2px;
  background: linear-gradient(45deg, #3b82f6, #06b6d4);
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

/* Responsive - Réduction avec scaling complet (taille + position) pour écrans plus petits */

@media (max-width: 768px) {
  .tech-icon-sprite-perfect,
  .tech-icon-sprite.large-icon,
  .tech-icon-sprite {
    width: 28px !important;
    height: 28px !important;
  }

  .floating-perfect-icon-container {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
  }
}

@media (max-width: 480px) {
  .tech-icon-sprite-perfect,
  .tech-icon-sprite.large-icon,
  .tech-icon-sprite {
    width: 24px !important;
    height: 24px !important;
  }

  .floating-perfect-icon-container {
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
  }
}

/* ULTRA-COMPACT : Très petits écrans (≤360px) - Équilibre espacement/lisibilité */

@media (max-width: 360px) {
  .tech-icon-sprite-perfect,
  .tech-icon-sprite.large-icon,
  .tech-icon-sprite {
    width: 20px !important;
    height: 20px !important;
  }

  .floating-perfect-icon-container {
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
  }
}

/* Optimisation du rendu pour les écrans haute résolution */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .tech-icon-sprite-perfect {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Classes d'amélioration du centrage */

.perfect-center {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Style pour les icônes tech responsives */

.responsive-tech-icon {
  transition: all 0.3s ease;
}

/* Responsive container adjustments - utilise des unités relatives */

@media (max-width: 768px) {
  .hero-tech-icons-container {
    min-height: 300px;
  }

  .responsive-tech-icon {
    /* Container responsive - taille gérée par les sprites eux-mêmes */
  }
}

@media (max-width: 480px) {
  .responsive-tech-icon {
    /* Container ultra-compact pour très petits écrans */
  }
}

/* Animation d'apparition fluide - SANS FILTRES pour préserver les couleurs */

@keyframes heroIconReveal {
  0% {
    opacity: 0;
    transform: scale(0.3) rotateY(-180deg);
  }

  60% {
    opacity: 0.8;
    transform: scale(1.1) rotateY(0deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

.hero-tech-icon-animate {
  animation: heroIconReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  /* Preserve sprite colors during animation */
  filter: none !important;
  -webkit-filter: none !important;
}

/* purgecss end ignore */
