/* ============================================
   Tailwind Custom CSS - Dayah Ruhul Qur'ani
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

/* --- Base Styles --- */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
}

/* --- Islamic Pattern Decoration --- */
.islamic-pattern {
  background-image: 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");
}

/* --- Hero Section --- */
.hero-gradient {
  background: linear-gradient(135deg, #012970 0%, #1e40af 50%, #2563eb 100%);
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(1,41,112,0.85) 0%, rgba(30,64,175,0.7) 50%, rgba(37,99,235,0.6) 100%);
}

/* --- Animated Gradient Background --- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

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

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

/* --- Fade In Up --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}


/* --- Counter Animation --- */
@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.animate-count {
  animation: countUp 0.6s ease-out forwards;
}

/* --- Card Hover Effects --- */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(1, 41, 112, 0.15);
}

/* --- Glass Effect --- */
.glass {
  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);
}

/* --- Navbar --- */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link-custom {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-custom:hover::after {
  width: 80%;
}

/* --- Dropdown Menu --- */
.dropdown-menu-custom {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.dropdown-parent:hover .dropdown-menu-custom {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Section Divider --- */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 2px;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* --- Pulse Ring --- */
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #2563eb;
  animation: pulseRing 2s ease-out infinite;
}

/* --- Swiper Custom --- */
.swiper-pagination-bullet-active {
  background: #2563eb !important;
}

.tentang-swiper {
  width: 100%;
  height: 100%;
}

.tentang-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tentang-swiper .swiper-pagination {
  bottom: 10px !important;
}

.tentang-swiper .swiper-pagination-bullet {
  background: white;
  opacity: 0.6;
  width: 8px;
  height: 8px;
}

.tentang-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #2563eb !important;
}

/* --- News Card Image --- */
.news-img-wrapper {
  overflow: hidden;
}

.news-img-wrapper img {
  transition: transform 0.5s ease;
}

.news-img-wrapper:hover img {
  transform: scale(1.05);
}

/* --- Stats Counter Background --- */
.stats-bg {
  background: linear-gradient(135deg, #012970 0%, #1e40af 100%);
  position: relative;
}

.stats-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* --- Breadcrumb --- */
.breadcrumb-custom a {
  color: #60a5fa;
  transition: color 0.3s;
}

.breadcrumb-custom a:hover {
  color: #93bbfd;
}

/* --- Form Input Focus --- */
.form-input-custom:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

/* --- PSB Step Indicator --- */
.step-active {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.step-complete {
  background: #10b981;
  color: white;
}

/* --- Scroll to Top Button --- */
.scroll-top-btn {
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- WhatsApp Float Button --- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  color: white;
  font-size: 28px;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.875rem;
  }

  .mobile-nav-open {
    transform: translateX(0) !important;
  }
}

/* --- Loading Skeleton --- */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* --- Print Styles --- */
@media print {
  .no-print {
    display: none !important;
  }
}
