/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Segoe+UI:wght@300;400;500;600;700&display=swap');

/* Tailwind Directives */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Base variables */
@layer base {
  :root {
    --primary-color: #3b82f6;
    --secondary-color: #06b6d4;
  }
  
  .dark-mode {
    --tw-bg-opacity: 1;
    background-color: rgba(15, 23, 42, var(--tw-bg-opacity));
  }
  
  .light-mode {
    --tw-bg-opacity: 1;
    background-color: rgba(241, 245, 249, var(--tw-bg-opacity));
  }
  
  .light-mode .text-white {
    --tw-text-opacity: 1;
    color: rgba(15, 23, 42, var(--tw-text-opacity));
  }
  
  .light-mode .text-gray-200 {
    --tw-text-opacity: 1;
    color: rgba(100, 116, 139, var(--tw-text-opacity));
  }
  
  .light-mode .text-gray-300 {
    --tw-text-opacity: 1;
    color: rgba(100, 116, 139, var(--tw-text-opacity));
  }
}

/* Custom components */
@layer components {
  /* Floating Icons Animation */
  .floating-icons-container {
    overflow: hidden;
  }

  .floating-icon {
    position: absolute;
    animation: float 6s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% {
      transform: translateY(0) rotate(0deg);
    }
    50% {
      transform: translateY(-20px) rotate(5deg);
    }
  }

  /* Custom Animations */
  @keyframes fade-in-down {
    0% {
      opacity: 0;
      transform: translateY(-20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fade-in-up {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .animate-fade-in-down {
    animation: fade-in-down 1s ease-out forwards;
  }

  .animate-fade-in-up {
    animation: fade-in-up 1s ease-out forwards;
  }

  /* Gradient Text */
  .gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Hover effects */
  .hover-glow:hover {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  }

  /* Custom solution card animation */
  .solution-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .solution-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
  }
  
  /* Testimonial card */
  .testimonial-card {
    transition: all 0.3s ease;
  }
  
  .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  }
}

/* Utilities layer (scrollbar, sections, responsive) */
@layer utilities {
  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 10px;
  }

  ::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8);
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
  }
  
  .light-mode ::-webkit-scrollbar-track {
    background: rgba(203, 213, 225, 0.8);
  }
  
  .light-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #4b5563, #6b7280);
  }

  /* Particle.js canvas styling */
  #particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    top: 0;
    left: 0;
  }

  /* Section transitions */
  section {
    transition: all 0.5s ease;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .floating-icon {
      display: none;
    }
    .hero-title {
      font-size: 2.5rem;
      line-height: 1.2;
    }
    .stats-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
}