body {
  font-family: 'Poppins', sans-serif;
}

section {
  scroll-margin-top: 80px; /* Adjust for sticky navbar */
}

/* Gradient backgrounds */
.bg-gradient-to-b {
  background: linear-gradient(to bottom, #505a5e, #293f46); /* Updated from indigo to cyan */
}

/* Banner styles */
.banner-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
}

/* Hero dynamic gradient animation */
.hero-bg {
  background: linear-gradient(45deg, #14b8a6, #665759, #14b8a6);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animations */
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes pulseBtn {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animate-slide-in {
  animation: slideIn 1s ease-out;
}

.animate-slide-in-delayed {
  animation: slideInDelayed 1.2s ease-out;
}

.animate-pulse-btn {
  animation: pulseBtn 2s infinite;
}

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

/* Flip card styles */
.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.flip-card-front {
  z-index: 2;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* Ensure button is above templates */
#showcase .container a {
  position: relative;
  z-index: 10;
  display: inline-block;
  margin-top: 1rem;
}

/* Error state */
.carousel-error {
  text-align: center;
  color: #f43f5e;
  font-size: 1.2rem;
  padding: 2rem;
}

#chatbot {
  transition: all 0.3s ease;
}
#chatbot.hidden {
  display: none;
}
#chatbot-trigger {
  transition: all 0.3s ease;
}
#chatbot-trigger.hidden {
  display: none;
}
#chat-messages {
  border: 1px solid #4a5568;
  border-radius: 4px;
}
.template-preview {
  background-color: #4a5568;
}


@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.pulse-btn { animation: pulse 2s infinite; }
@keyframes slideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-slide-in { animation: slideIn 1s ease-out; }
.map-loading { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #f3f4f6;
  padding: 12px 0;
  border-radius: 4px;
  z-index: 50;
  min-width: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.dropdown-menu a {
  color: #111827;
  padding: 10px 20px;
  display: block;
  font-size: 1.1rem;
}
.dropdown-menu a:hover { background-color: #e5e7eb; }
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}
.animate-word-change {
    animation: fadeInOut 2s ease-in-out infinite;
}
