/* Custom CSS for ISS Experiment Sales Page */

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 50, 65, 0.3); }
  50% { box-shadow: 0 0 30px rgba(255, 50, 65, 0.6); }
}

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

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

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

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #ff3241 0%, #107e7d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom button effects */
.btn-glow:hover {
  box-shadow: 0 10px 30px rgba(255, 50, 65, 0.4);
  transform: translateY(-2px);
}

/* Sticky header show/hide animation */
.sticky-header-show {
  transform: translateY(0) !important;
}

/* Progress bar animation */
.progress-bar-animated {
  transition: width 2s ease-in-out;
}

/* Hover effects for experiment categories */
.experiment-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Tooltip styles */
.tooltip {
  position: relative;
  cursor: pointer;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #17242d;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

.tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  border: 5px solid transparent;
  border-top-color: #17242d;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.8);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Sticky reservation button */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  transform: translateY(20px);
}

.sticky-cta.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Live chat button */
.chat-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  background: linear-gradient(135deg, #107e7d 0%, #17242d 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(16, 126, 125, 0.3);
}

.chat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 126, 125, 0.4);
}

/* Counter animations */
.counter {
  display: inline-block;
  transition: all 0.3s ease;
}

.counter-update {
  color: #ff3241;
  transform: scale(1.1);
}

/* Background particles effect */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: particle-float 20s linear infinite;
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1);
  }
}

/* Responsive design improvements */
@media (max-width: 768px) {
  .sticky-cta {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
  
  .sticky-cta button {
    width: 100%;
  }
  
  .chat-button {
    bottom: 80px;
  }
}

/* Form validation styles */
.form-error {
  border-color: #ff3241 !important;
  background-color: rgba(255, 50, 65, 0.05);
}

.form-success {
  border-color: #107e7d !important;
  background-color: rgba(16, 126, 125, 0.05);
}

.error-message {
  color: #ff3241;
  font-size: 14px;
  margin-top: 5px;
}

.success-message {
  color: #107e7d;
  font-size: 14px;
  margin-top: 5px;
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #ff3241;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Print styles */
@media print {
  .no-print,
  .sticky-cta,
  .chat-button,
  button {
    display: none !important;
  }
}