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

/* Custom animations for fadeIn effects */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fadeIn {
  animation: fadeIn 1s ease-out;
}

.animate-fadeInUp {
  animation: fadeInUp 1.2s ease-out;
}

.animate-slideDown {
  animation: slideDown 1s ease-out;
}

.animate-zoomIn {
  animation: zoomIn 1s ease-out;
}

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

/* Ensure mobile menu works properly */
.nav-menu.active {
  display: flex !important;
}

/* Custom gradient overlay for hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(201, 140, 0, 0.8) 0%, rgba(0, 86, 255, 0.6) 100%);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

@layer utilities {
  .logo-img {
    @apply h-24 object-contain mx-auto;
  }

  .animate-fadeIn {
    @apply opacity-0 animate-fadeIn;
  }

  .animate-fadeInUp {
    @apply opacity-0 animate-fadeInUp;
  }

  .animate-zoomIn {
    @apply opacity-0 animate-zoomIn;
  }

  .fade-in {
    animation: fadeIn 1s ease-out;
  }

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

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes float {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }
}
