/* ============================================
   UTS e-Procure — Custom Styles
   ============================================ */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Fade-in animation for scroll reveals */
[x-cloak] {
  display: none !important;
}

.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);
}

/* Stagger children animations */
.stagger-child {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.stagger-child.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #0D9488 0%, #0891B2 50%, #0D9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero background pattern */
.hero-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
                    radial-gradient(circle at 60% 80%, rgba(13, 148, 136, 0.05) 0%, transparent 50%);
}

/* Card hover glow */
.card-glow {
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.04), transparent);
  transition: left 0.5s ease;
}

.card-glow:hover::before {
  left: 100%;
}

/* Pricing card highlight */
.pricing-popular {
  position: relative;
}

.pricing-popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Button pulse animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

.pulse-btn {
  position: relative;
}

.pulse-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid #0D9488;
  animation: pulse-ring 2s ease-in-out infinite;
}

/* Mobile menu slide */
.mobile-menu-enter {
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.mobile-menu-enter.active {
  transform: translateX(0);
}

/* Testimonial card */
.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

/* Stat counter */
.stat-number {
  background: linear-gradient(135deg, #0D9488, #0891B2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Feature icon container */
.feature-icon {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(13, 148, 136, 0.05));
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #0D9488, #0891B2);
}

.feature-card:hover .feature-icon svg {
  color: white;
}

/* Footer wave */
.footer-wave {
  position: relative;
}

.footer-wave::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40'%3E%3Cpath fill='%230F172A' d='M0,0 C360,40 1080,0 1440,40 L1440,40 L0,40 Z'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
