/* ===================================================
   PIARIST FATHERS — Animations & Keyframes
   =================================================== */

/* --- Core Keyframes --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulse-gold {
  0%, 100% { color: var(--gold); text-shadow: none; }
  50%       { color: var(--light-gold); text-shadow: 0 0 20px rgba(201,162,39,0.5); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes loader-progress {
  0%   { width: 0%; margin-left: 0; }
  50%  { width: 80%; margin-left: 0; }
  100% { width: 0%; margin-left: 100%; }
}

@keyframes hero-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes particle-drift {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-100vh) translateX(30px) rotate(360deg); opacity: 0; }
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bar-fill {
  from { width: 0; }
}

@keyframes reveal-line {
  from { scaleX: 0; }
  to   { scaleX: 1; }
}

/* --- Hero Animations --- */
.hero-animate-1 { animation: fadeInUp 0.9s ease both 0.2s; }
.hero-animate-2 { animation: fadeInUp 0.9s ease both 0.4s; }
.hero-animate-3 { animation: fadeInUp 0.9s ease both 0.6s; }
.hero-animate-4 { animation: fadeInUp 0.9s ease both 0.8s; }
.hero-animate-5 { animation: fadeInUp 0.9s ease both 1.0s; }

/* --- Floating Orbs --- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: hero-orb 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(36, 87, 164, 0.35);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(201, 162, 39, 0.2);
  bottom: 0;
  left: -50px;
  animation-delay: -3s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(59, 130, 246, 0.2);
  top: 30%;
  left: 30%;
  animation-delay: -6s;
}

/* --- Floating Particles --- */
.particle {
  position: absolute;
  color: rgba(201, 162, 39, 0.6);
  font-size: 1rem;
  pointer-events: none;
  animation: particle-drift linear infinite;
}

/* --- Scroll Reveal (custom, AOS-like) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: none;
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: none;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* --- Timeline --- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  display: none; /* replaced by per-item connector */
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  min-height: 0;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Left column: dot + vertical line */
.timeline-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
  padding-top: 0.3rem;
}

.timeline-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold), 0 4px 12px rgba(201,162,39,0.3);
  flex-shrink: 0;
  z-index: 1;
}

/* Vertical connector line below each dot */
.timeline-dot-col::after {
  content: '';
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,162,39,0.15));
  margin-top: 6px;
  min-height: 2rem;
}

.timeline-item:last-child .timeline-dot-col::after {
  display: none;
}

/* Right column: content */
.timeline-content {
  flex: 1;
  min-width: 0;
  padding-bottom: 0.5rem;
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  background: var(--navy);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(217,181,107,0.35);
  box-shadow: 0 2px 8px rgba(1,16,37,0.15);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-text {
  font-size: 0.95rem;
  color: #3a3228;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .timeline-item {
    gap: 1rem;
    padding-bottom: 2rem;
  }
  .timeline-title {
    font-size: 1.1rem;
  }
}

/* --- Shimmer Effect for Loading States --- */
.shimmer {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* --- Gold Gradient Text --- */
.text-gradient-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Hover Image Zoom --- */
.img-zoom {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-zoom img {
  transition: transform 0.6s ease;
}

.img-zoom:hover img {
  transform: scale(1.06);
}

/* --- Floating Cross / Symbol --- */
.floating-symbol {
  animation: float 4s ease-in-out infinite;
}

/* --- Pulse Ring --- */
.pulse-ring {
  position: relative;
}

.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: pulse-ring-anim 2s ease infinite;
}

@keyframes pulse-ring-anim {
  0%   { inset: -4px; opacity: 0.6; }
  100% { inset: -20px; opacity: 0; }
}

/* --- Glass Card Hover Effect --- */
.glass-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.glass-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(201,162,39,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* --- AOS Overrides --- */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}
