/* Custom CSS for Oxygn Consulting - Updated Color Palette */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Dropdown functionality */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button animations with new colors */
.btn-primary {
  background: linear-gradient(135deg, #5233ff, #8f57e8);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(82, 51, 255, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #8f57e8, #9966ff);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(143, 87, 232, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, #9966ff, #a678ed);
  transition: all 0.3s ease;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(153, 102, 255, 0.3);
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast animation */
.toast-show {
  transform: translateX(0) !important;
}

/* Updated gradient backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, #5233ff, #8f57e8);
}

.gradient-secondary {
  background: linear-gradient(135deg, #8f57e8, #9966ff);
}

.gradient-accent {
  background: linear-gradient(135deg, #9966ff, #a678ed);
}

.gradient-purple {
  background: linear-gradient(135deg, #a678ed, #5233ff);
}

/* Multi-color gradient */
.gradient-multi {
  background: linear-gradient(135deg, #5233ff 0%, #8f57e8 25%, #9966ff 50%, #a678ed 75%, #5233ff 100%);
}

/* Custom scrollbar with new colors */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #5233ff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a2de6;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
  }
}

/* Form focus states with new colors */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #5233ff;
  box-shadow: 0 0 0 3px rgba(82, 51, 255, 0.1);
}

/* Animation delays for staggered effects */
.animate-delay-100 {
  animation-delay: 100ms;
}

.animate-delay-200 {
  animation-delay: 200ms;
}

.animate-delay-300 {
  animation-delay: 300ms;
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Pulse animation for CTAs */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse-hover:hover {
  animation: pulse 2s infinite;
}

/* Custom badge styles with new colors */
.badge-popular {
  background: linear-gradient(135deg, #5233ff, #8f57e8);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
}

.badge-secondary {
  background: linear-gradient(135deg, #8f57e8, #9966ff);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
}

.badge-accent {
  background: linear-gradient(135deg, #9966ff, #a678ed);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
}

/* Statistics counter animation */
.counter {
  font-variant-numeric: tabular-nums;
}

/* Mobile menu animation */
.mobile-menu-enter {
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-menu-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* Hero section background pattern with new colors */
.hero-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(82, 51, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(143, 87, 232, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(153, 102, 255, 0.05) 0%, transparent 50%);
}

/* Service icons hover effect */
.service-icon {
  transition: all 0.3s ease;
}

.service-icon:hover {
  transform: rotate(10deg) scale(1.1);
}

/* Case study card special effects */
.case-study-card {
  position: relative;
  overflow: hidden;
}

.case-study-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.case-study-card:hover::before {
  left: 100%;
}

/* Typography improvements with new colors */
.text-gradient {
  background: linear-gradient(135deg, #5233ff, #8f57e8, #9966ff, #a678ed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #5233ff, #8f57e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: linear-gradient(135deg, #8f57e8, #9966ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #9966ff, #a678ed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading states */
.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

/* Color-specific hover effects */
.hover-primary:hover {
  background-color: #5233ff;
  color: white;
}

.hover-secondary:hover {
  background-color: #8f57e8;
  color: white;
}

.hover-accent:hover {
  background-color: #9966ff;
  color: white;
}

.hover-purple:hover {
  background-color: #a678ed;
  color: white;
}

/* Border colors */
.border-primary {
  border-color: #5233ff;
}

.border-secondary {
  border-color: #8f57e8;
}

.border-accent {
  border-color: #9966ff;
}

.border-purple {
  border-color: #a678ed;
}

/* Background colors with opacity */
.bg-primary-alpha {
  background-color: rgba(82, 51, 255, 0.1);
}

.bg-secondary-alpha {
  background-color: rgba(143, 87, 232, 0.1);
}

.bg-accent-alpha {
  background-color: rgba(153, 102, 255, 0.1);
}

.bg-purple-alpha {
  background-color: rgba(166, 120, 237, 0.1);
}

/* Glow effects */
.glow-primary {
  box-shadow: 0 0 20px rgba(82, 51, 255, 0.3);
}

.glow-secondary {
  box-shadow: 0 0 20px rgba(143, 87, 232, 0.3);
}

.glow-accent {
  box-shadow: 0 0 20px rgba(153, 102, 255, 0.3);
}

.glow-purple {
  box-shadow: 0 0 20px rgba(166, 120, 237, 0.3);
}
