/* Custom styles for the PHP version */

/* Rainbow effects and animations */
@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.rainbow-hover {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.rainbow-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #BB5129, #2C2C2E, #097351, #2B1B4F);
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: inherit;
  animation: rainbow 3s ease infinite;
}

.rainbow-hover:hover::before,
.rainbow-hover:focus::before {
  opacity: 0.15;
}

.rainbow-hover:hover,
.rainbow-hover:focus {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-hover {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-hover::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #BB5129, #2C2C2E, #097351, #2B1B4F);
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: rainbow 3s ease infinite;
}

.card-hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #BB5129, #2C2C2E, #097351, #2B1B4F);
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: rainbow 3s ease infinite;
}

.card-hover:hover::before,
.card-hover:focus-within::before {
  opacity: 1;
}

.card-hover:hover::after,
.card-hover:focus-within::after {
  opacity: 0.1;
}

.card-hover:hover,
.card-hover:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-hover:hover *,
.card-hover:focus-within * {
  position: relative;
  z-index: 1;
  color: white !important;
}

.card-hover:hover .btn-rainbow,
.card-hover:focus-within .btn-rainbow {
  color: initial !important;
}

.card-hover:hover .btn-rainbow *,
.card-hover:focus-within .btn-rainbow * {
  color: initial !important;
}


.icon-rainbow {
  transition: all 0.3s ease;
}

.rainbow-hover:hover .icon-rainbow,
.rainbow-hover:focus .icon-rainbow,
.card-hover:hover .icon-rainbow,
.card-hover:focus-within .icon-rainbow {
  color: white !important;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

.icon-container {
  position: relative;
  transition: all 0.3s ease;
}

.rainbow-hover:hover .icon-container,
.rainbow-hover:focus .icon-container,
.card-hover:hover .icon-container,
.card-hover:focus-within .icon-container {
  background: rgba(255,255,255,0.2) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.rainbow-border {
  position: relative;
  background: linear-gradient(45deg, #BB5129, #2C2C2E, #097351, #2B1B4F);
  background-size: 300% 300%;
  animation: rainbow 3s ease infinite;
  padding: 2px;
  border-radius: inherit;
}

.rainbow-border-content {
  background: rgb(31 41 55);
  border-radius: inherit;
  position: relative;
  z-index: 1;
}

.btn-rainbow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-rainbow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.btn-rainbow:hover::before {
  left: 100%;
}

.btn-rainbow:hover {
  background: linear-gradient(45deg, #3b82f6, #10b981, #8b5cf6, #f59e0b, #ef4444, #ec4899) !important;
  background-size: 300% 300% !important;
  animation: rainbow 2s ease infinite !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-rainbow * {
  position: relative;
  z-index: 2;
}

/* Slider styles */
.slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.slider::-webkit-slider-track {
  background: linear-gradient(45deg, #BB5129, #2C2C2E, #097351, #2B1B4F);
  background-size: 300% 300%;
  animation: rainbow 3s ease infinite;
  height: 8px;
  border-radius: 4px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid #3b82f6;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Certificate slider */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-scroll {
  animation: scroll 60s linear infinite;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .card-hover:hover,
  .card-hover:focus-within {
    transform: translateY(-2px);
  }
  
  .rainbow-hover:hover,
  .rainbow-hover:focus {
    transform: translateY(-1px);
  }
}