@tailwind base;
@tailwind components;
@tailwind utilities;

/* Global base styles */
body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #0A0A0B;
  color: white;
  overflow-x: hidden;
}

#root {
  min-height: 100vh;
}

@layer utilities {
  .glass-panel {
    background: rgba(15, 20, 25, 0.85);
    /* Plus opaque sur mobile */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
    /* Ombre réduite */
  }

  @media (min-width: 768px) {
    .glass-panel {
      background: rgba(15, 20, 25, 0.6);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }
  }

  .glass-nav {
    background: rgba(10, 10, 11, 0.95);
    /* Quasi opaque sur mobile */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  @media (min-width: 768px) {
    .glass-nav {
      background: rgba(10, 10, 11, 0.8);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    }
  }

  .text-glow {
    text-shadow: 0 0 20px rgba(0, 208, 255, 0.4);
  }

  .title-glow {
    text-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
  }

  .border-glow {
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2), inset 0 0 20px rgba(0, 210, 255, 0.05);
  }

  .bg-grid-tech {
    background-image:
      linear-gradient(rgba(0, 210, 255, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 210, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
  }

  .circuit-line {
    background: linear-gradient(180deg, rgba(0, 208, 255, 0) 0%, rgba(0, 208, 255, 0.6) 20%, rgba(0, 208, 255, 0.6) 80%, rgba(0, 208, 255, 0) 100%);
  }

  .circuit-dot {
    box-shadow: 0 0 10px #00d0ff;
  }
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #0A0A0B;
}

::-webkit-scrollbar-thumb {
  background: #1a1f2e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00d0ff;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: white;
  -webkit-box-shadow: 0 0 0px 1000px #0A0A0B inset;
  transition: background-color 5000s ease-in-out 0s;
}