/* Custom animations and styles for Home page */

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

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

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

@keyframes pulseDelayed {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

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

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

.fade-in-up {
  animation: fadeInUp 0.4s ease-out forwards;
  opacity: 0;
}

.fade-in-left {
  animation: fadeInLeft 0.4s ease-out forwards;
  opacity: 0;
}

.fade-in-right {
  animation: fadeInRight 0.4s ease-out forwards;
  opacity: 0;
}

.animate-pulse-delayed {
  animation: pulseDelayed 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 700ms;
}

.platform-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 5rem;
  padding: 0.5rem 1rem;
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid rgb(55, 65, 81);
  transition: all 0.3s;
  animation: scaleIn 0.3s ease-out forwards;
  opacity: 0;
}

.platform-logo:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

@media (min-width: 640px) {
  .platform-logo {
    width: 10rem;
    height: 5rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Scroll reveal animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Hero scroll effects */
.hero-content {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Button styles */
.btn-primary,
.btn-outline {
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
}

.btn-outline:hover {
  transform: translateY(-1px);
}

/* Feature card hover effect */
.feature-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Modal Animations */
.modal-enter {
  animation: fadeIn 0.2s ease-out forwards;
}

.modal-enter-content {
  animation: scaleIn 0.3s ease-out forwards;
}

.modal-exit {
  animation: fadeOut 0.2s ease-in forwards;
}

.modal-exit-content {
  animation: scaleOut 0.2s ease-in forwards;
}


/* Accordion Styles */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}
.accordion-item.active .accordion-content {
  grid-template-rows: 1fr;
}
.accordion-inner {
  overflow: hidden;
}
.accordion-icon {
  transition: transform 0.3s ease;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}


/* Custom File Input */
input[type="file"] {
  display: none;
}

/* Custom Select Styles */
.custom-select-content {
  transform-origin: top;
  transition: all 0.12s ease-out;
  opacity: 0;
  transform: translateY(-4px) scale(0.95);
  pointer-events: none;
  padding: 10px 6px;
  display: block !important; /* Always block but hidden via opacity/transform */
}
.custom-select-item{
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}
.custom-select-container.active .custom-select-content {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.custom-select-container.active .custom-select-trigger {
  border-color: #374151 !important;
  box-shadow: none !important;
}
/* Ensure blue border shows when closed and focused */
.custom-select-container:not(.active) .custom-select-trigger:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 1px #3b82f6 !important;
}
.custom-select-item:hover {
  background-color: #1f2937;
}
.custom-select-item.selected {
  background-color: #1f2937;
}
.custom-select-item .check-icon {
  display: none;
}
.custom-select-item.selected .check-icon {
  display: flex;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.8);
}

.blog-content {
  color: white;
}
.feature-card i{
  font-size: 24px;
}