/* Custom CSS for Sonexa Landing Page */

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo styling */
.sonexa-logo {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.sonexa-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Badge animations */
.badge-container {
  display: flex;
  gap: 1rem;
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  justify-content: center;
}

.badge-animation-1 {
  animation: popIn 0.5s ease-out 0.2s both;
}

.badge-animation-2 {
  animation: popIn 0.5s ease-out 0.4s both;
}

.badge-animation-3 {
  animation: popIn 0.5s ease-out 0.6s both;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  70% {
    transform: scale(1.1) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Feature card animations */
.feature-card .feature-detail {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease-out;
}

.feature-card:hover .feature-detail {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-container {
  transform: scale(1.1);
}

.feature-icon-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Lucide icon styling */
.feature-icon-inner [data-lucide] {
  display: block !important;
  width: 2rem !important;
  height: 2rem !important;
  stroke-width: 2;
}

/* Fallback for Lucide icons */
[data-lucide] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  font-size: 16px;
  line-height: 1;
}

/* Video control icons specific styling */
#video-controls [data-lucide] {
  color: white;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ensure icons are visible in buttons */
button [data-lucide] {
  display: inline-flex !important;
  vertical-align: middle;
}

/* Ensure SVG icons are visible when loaded */
[data-lucide] svg {
  display: block !important;
  width: 100%;
  height: 100%;
}

/* Fallback for empty icon containers */
.feature-icon-inner:empty::before {
  content: "?";
  font-size: 1.5rem;
  font-weight: bold;
  color: #6b7280;
}

/* Debug styling for icon containers */
.feature-icon-inner:empty {
  border: 2px dashed #e5e7eb;
  background-color: #f9fafb;
}

/* Chat message animations */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.visible {
  opacity: 1;
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-on-scroll.visible .chat-message-left {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.5s ease-out 0.3s forwards;
}

.animate-on-scroll.visible .chat-message-right {
  opacity: 0;
  transform: translateX(20px);
  animation: slideInRight 0.5s ease-out 1s forwards;
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Savings animation */
.savings-highlight {
  position: relative;
  animation: pulse 2s infinite;
}

.savings-highlight::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 8px;
  background: linear-gradient(45deg, rgba(16, 185, 129, 0.3), rgba(59, 130, 246, 0.3));
  z-index: -1;
  animation: glow 2s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes glow {
  0% {
    opacity: 0.5;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.5), 0 0 10px rgba(59, 130, 246, 0.5);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8), 0 0 30px rgba(59, 130, 246, 0.8);
  }
}

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

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

.modal-content {
  background-color: white;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: all 0.3s ease-out;
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

/* Video Player Styles */
#video-overlay {
  transition: opacity 0.3s ease-in-out;
}

#video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 1rem;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease-in-out;
  z-index: 10;
}

#video-controls button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

#video-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

#video-controls button:active {
  transform: scale(0.95);
}

#progress-bar {
  cursor: pointer;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

#progress-bar:hover {
  height: 8px;
}

#progress {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 3px;
  transition: width 0.1s ease;
  position: relative;
}

#progress::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#progress-bar:hover #progress::after {
  opacity: 1;
}

#current-time,
#total-time {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Animations for floating elements */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes float-slow {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

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

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

/* Wave animations */
@keyframes wave {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-15px) translateX(10px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

@keyframes wave-slow {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-25px) translateX(-15px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

.animate-wave {
  animation: wave 15s ease-in-out infinite;
}

.animate-wave-slow {
  animation: wave-slow 20s ease-in-out infinite;
}

/* Animated pulse for gradient circles */
@keyframes pulse-slow {
  0% {
    opacity: 0.3;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.3;
    transform: scale(0.95);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 8s infinite ease-in-out;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

/* Text animation for hero section */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animation-delay-300 {
  animation-delay: 0.3s;
}

/* Text shadow effect */
.text-shadow-glow {
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* FAQ Styles */
.faq-item .faq-question:hover {
  background-color: #f9fafb;
}

.faq-item .faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .feature-icon-container {
    width: 60px;
    height: 60px;
  }

  .feature-icon-inner {
    width: 45px;
    height: 45px;
  }

  .feature-icon-inner [data-lucide] {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }
}

/* Video player responsive - Fixed */
@media (max-width: 768px) {
  #video-controls {
    padding: 0.75rem;
  }

  #video-controls .flex {
    gap: 0.5rem;
  }

  #video-controls button {
    padding: 0.375rem;
  }

  #current-time,
  #total-time {
    font-size: 0.75rem;
  }

  #progress-bar {
    height: 8px;
  }

  #progress-bar:hover {
    height: 10px;
  }
}
