@import "tailwindcss";

/* ============================================
   REVOBYTE - L'Odyssée Digitale Design System
   Cosmic Theme with Tailwind 4
   ============================================ */

/* Glass Effect Base */
@layer components {
  .glass {
    background: rgba(15, 22, 41, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.2);
  }

  .glass-light {
    background: rgba(248, 250, 252, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(248, 250, 252, 0.15);
  }

  /* Gradient Text */
  .text-gradient-purple {
    background: linear-gradient(135deg, #7c3aed, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .text-gradient-orange {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Buttons */
  .btn-cosmic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: white;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
  }

  .btn-cosmic:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
  }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid #7c3aed;
    color: #f8fafc;
  }

  .btn-outline:hover {
    background: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
  }

  /* Cards */
  .card-cosmic {
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: rgba(15, 22, 41, 0.8);
    border: 1px solid rgba(124, 58, 237, 0.3);
  }

  .card-cosmic:hover {
    transform: translateY(-4px);
    border-color: #7c3aed;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
  }

  /* Section Containers */
  .section-cosmic {
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
  }

  /* Animated Background */
  .bg-stars {
    background-image:
      radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
      radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.6), transparent),
      radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.7), transparent),
      radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.5), transparent),
      radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.9), transparent);
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite;
  }
}

/* Animations */
@layer utilities {
  .animate-float {
    animation: float 6s ease-in-out infinite;
  }

  .animate-float-slow {
    animation: float 8s ease-in-out infinite;
  }

  .animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
  }

  .animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
  }

  /* Delay utilities */
  .delay-100 {
    animation-delay: 0.1s;
  }

  .delay-200 {
    animation-delay: 0.2s;
  }

  .delay-300 {
    animation-delay: 0.3s;
  }

  .delay-400 {
    animation-delay: 0.4s;
  }

  .delay-500 {
    animation-delay: 0.5s;
  }
}

/* Keyframes */
@keyframes float {

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

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

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
  }

  50% {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.8);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes twinkle {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #7c3aed;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8b5cf6;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(135deg, #0a0e1a, #0f1629);
  color: #f8fafc;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* Form Select Styling for Dark Theme */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

select option {
  background-color: #1a1f35;
  color: #f8fafc;
  padding: 0.75rem 1rem;
}

select option:hover,
select option:focus,
select option:checked {
  background-color: #7c3aed;
  color: white;
}