/* ============================================================
   ALL SAINTS CHURCH, FARIDABAD - PRODUCTION STYLESHEET
   Clean, Responsive, Sacred Catholic Parish Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary-maroon: #4a0e17;
  --dark-maroon: #26050b;
  --header-maroon: #3d0a11;
  --card-header: #4d0c15;
  --accent-gold: #c5a059;
  --bright-gold: #ffd978;
  --bg-dark: #120406;
  --card-cream: #fffdf7;
  --border-cream: #e9dec9;
  --text-dark: #1c1917;
  --text-muted: #666666;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: #f5f5f4;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
}

.font-cinzel {
  font-family: 'Cinzel', Georgia, serif;
}

.font-serif-sacred {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ==========================================
   5-SECOND ANIMATIONS (AS REQUESTED)
   ========================================== */

/* 1. Moving gradient effect across the logo every 5 seconds */
@keyframes logoGoldShimmer {
  0%, 65% {
    background-position: -200% center;
  }
  85%, 100% {
    background-position: 200% center;
  }
}

.animate-logo-gradient {
  background: linear-gradient(
    90deg, 
    #edd9a3 0%, 
    #d4af37 25%, 
    #fff7dc 50%, 
    #d4af37 75%, 
    #aa771c 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoGoldShimmer 5s ease-in-out infinite;
}

@keyframes iconGoldAura {
  0%, 65% {
    filter: drop-shadow(0 0 1px rgba(212, 175, 55, 0.2));
    transform: scale(1);
  }
  85% {
    filter: drop-shadow(0 0 10px rgba(255, 230, 138, 0.95)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    transform: scale(1.05);
  }
  100% {
    filter: drop-shadow(0 0 1px rgba(212, 175, 55, 0.2));
    transform: scale(1);
  }
}

.animate-logo-icon {
  animation: iconGoldAura 5s ease-in-out infinite;
}

/* 2. Light shaded gradient pulsing effect on Hero Cross every 5s */
@keyframes crossShadePulse {
  0%, 60% {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
    opacity: 0.88;
    transform: scale(1);
  }
  80% {
    filter: drop-shadow(0 0 16px rgba(255, 240, 175, 0.98)) drop-shadow(0 0 28px rgba(212, 175, 55, 0.75));
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
    opacity: 0.88;
    transform: scale(1);
  }
}

.animate-cross-glow {
  animation: crossShadePulse 5s ease-in-out infinite;
}

/* 3. Hero entrance text reveal on initial open and refresh */
@keyframes heroTextReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-title-enter {
  animation: heroTextReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-sub-enter {
  animation: heroTextReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}

.hero-pillars-enter {
  animation: heroTextReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  opacity: 0;
}

/* ==========================================
   SOOTHING HOVER EFFECTS FOR CARDS & DIVS
   ========================================== */

.card-soothing-hover {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-soothing-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(90, 20, 30, 0.22), 0 8px 16px -4px rgba(197, 160, 89, 0.2);
  border-color: rgba(197, 160, 89, 0.7) !important;
}

/* Menu Hover Effect */
.nav-link {
  position: relative;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f2e9dc;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #c5a059, #ffe299, #c5a059);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 9999px;
}

.nav-link:hover {
  color: #ffdf88;
}

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

/* Hero circular pillars hover */
.pillar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, #5c131e 0%, #34070e 100%);
  border: 2px solid #c5a059;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pillar-item:hover .pillar-circle {
  transform: scale(1.12);
  border-color: #ffe694;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.7);
}

/* Buttons */
.btn-prayer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ba8c3b 0%, #d4af37 50%, #aa771c 100%);
  color: #1a080c;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(186, 140, 59, 0.3);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-prayer-top:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.45);
}

.btn-card-action {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #470b13;
  color: #fdfaf3;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-card-action:hover {
  background: #61111c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(71, 11, 19, 0.35);
}

/* Floating WhatsApp button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #0b1a0e;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.7);
}

/* Modal Popup Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #22070d;
  border: 1px solid rgba(197, 160, 89, 0.5);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  color: #faf6ee;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  animation: modalEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  background: linear-gradient(90deg, #3f0b13 0%, #58111b 50%, #3f0b13 100%);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: transparent;
  border: none;
  color: #ecc982;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: #fff;
}
