/* KJPP AFR - Shared Modern Styles for All Pages */
/* Hero Gradient dengan Pattern */
.hero-gradient {
  background: linear-gradient(135deg, rgba(255, 74, 54, 0.92) 0%, rgba(139, 92, 246, 0.88) 100%);
  position: relative;
}

.hero-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.15;
}

/* Glassmorphism Effect */
.glassmorphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Modern Card Hover */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

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

.card-hover:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Gradient Border */
.gradient-border {
  position: relative;
  background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #ff4a36, #8b5cf6) border-box;
  border: 3px solid transparent;
}

.dark .gradient-border {
  background: linear-gradient(#1e293b, #1e293b) padding-box, linear-gradient(135deg, #ff8c42, #8b5cf6) border-box;
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, #ff8c42 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .text-gradient {
  background: linear-gradient(135deg, #ff8c42 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}
.floating {
  animation: float 6s ease-in-out infinite;
}

/* Pulse Glow */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 74, 54, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 74, 54, 0.8);
  }
}
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Page Hero Specific */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1rem;
}

/* Feature Box Modern */
.feature-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dark .feature-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.feature-box:hover {
  transform: translateY(-8px);
  border-color: var(--brand-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Icon Circle Gradient */
.icon-circle-gradient {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  box-shadow: 0 10px 20px rgba(255, 74, 54, 0.3);
  transition: all 0.3s ease;
}

.icon-circle-gradient:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 30px rgba(255, 74, 54, 0.4);
}

/* Stats Counter */
.stats-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

.dark .stats-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Form Input Modern */
.form-input-modern {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.dark .form-input-modern {
  background: #1e293b;
  border-color: #334155;
  color: white;
}

.form-input-modern:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(255, 74, 54, 0.1);
}

/* Button Primary Modern */
.btn-primary-modern {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 74, 54, 0.3);
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 74, 54, 0.4);
}

/* Section Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
  margin: 3rem 0;
}

/* Timeline Modern */
.timeline-item {
  position: relative;
  padding-left: 3rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  box-shadow: 0 0 0 4px rgba(255, 74, 54, 0.2);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 0.4375rem;
  top: 1.5rem;
  width: 2px;
  height: calc(100% - 1rem);
  background: linear-gradient(180deg, var(--brand-primary), transparent);
}

.timeline-item:last-child::after {
  display: none;
}

/* Badge Modern */
.badge-modern {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 74, 54, 0.1), rgba(139, 92, 246, 0.1));
  color: var(--brand-primary);
  border: 1px solid rgba(255, 74, 54, 0.2);
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* Mobile Menu Styles */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

#mobileMenu.block {
  max-height: 100vh;
  overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-gradient::before {
    opacity: 0.1;
  }
  .glassmorphism {
    background: rgba(255, 255, 255, 0.15);
  }
  .page-hero {
    min-height: 40vh;
  }
}
/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  animation: float 3s ease-in-out infinite;
}

@keyframes bounce-subtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.bounce-subtle {
  animation: bounce-subtle 2s ease-in-out infinite;
}
