/**
 * Theme custom CSS — utilities and components.
 * Keeps Blade files free of inline styles.
 */

/* Layout */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Gradient text utilities */
.grad-text {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, #4f46e5, #06b6d4);
}

.grad-text2 {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, #9333ea, #4f46e5);
}

/* Button utilities */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: white;
  background-image: linear-gradient(to right, #4f46e5, #06b6d4);
  transition: all 0.3s;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  background: white;
  transition: all 0.3s;
  text-align: center;
}

.btn-outline:hover {
  border-color: #6366f1;
  color: #4f46e5;
  background: #eef2ff;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f46e5;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(to right, #4f46e5, #06b6d4);
  border-radius: 9999px;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }

/* FAQ accordion */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-a {
  max-height: 500px;
}

.faq-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-arrow {
  transform: rotate(45deg);
}

.faq-item.open {
  border-color: #818cf8 !important;
  background-color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-item.open .faq-q {
  color: #4f46e5;
}

/* Keyframe animations (used by Tailwind config) */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.animate-marquee {
  animation: marquee 25s linear infinite;
}

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

.animate-pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Toast notification (contact form, etc.) */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #0f172a;
  color: #fff;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast .toast-icon {
  font-size: 1rem;
}

.toast.toast-error {
  background: #b91c1c;
}
