/* 3D Liquid Glass & Animations */

/* Background with dynamic gradients to simulate liquid/glass */
body.liquid-theme {
  background: radial-gradient(circle at 50% 0%, #2b395b 0%, #1a1f33 100%);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Liquid Glass Container */
.glass-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 3rem;
  margin: 4rem auto;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  z-index: 10;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Inner glow / liquid shine */
.glass-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 8s infinite alternate;
  pointer-events: none;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* 3D Tilt Element Wrapper */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease-out;
}

.tilt-card-inner {
  transform: translateZ(50px); /* Pushes content out for 3D effect */
}

/* Floating animated orbs in background */
.liquid-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  animation: float 10s infinite ease-in-out alternate;
  pointer-events: none;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(116, 142, 235, 0.2); /* Periwinkle hint */
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(212, 175, 55, 0.15); /* Gold hint */
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(50px) scale(1.1); }
}

/* Typography Enhancements for Glass Pages */
.glass-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.glass-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
}

/* Glass Buttons */
.btn-glass {
  display: inline-block;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* =========================================
   RICH UI COMPONENTS FOR LIQUID GLASS
   ========================================= */

/* Grids */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Inner Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(5px);
}

.glass-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.glass-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Progress Bar */
.progress-wrapper {
  margin: 2rem 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 600;
}

.progress-container {
  width: 100%;
  height: 20px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #f3d573);
  border-radius: 10px;
  width: 0%;
  transition: width 1.5s ease-in-out;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
  padding-left: 2rem;
  border-left: 2px solid rgba(255,255,255,0.2);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  background: #d4af37;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(212,175,55,0.8);
}

.timeline-date {
  font-weight: bold;
  color: #d4af37;
  margin-bottom: 0.5rem;
  display: block;
}

/* Video Placeholder */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(0,0,0,0.4);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.video-placeholder::after {
  content: '▶';
  font-size: 4rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease, transform 0.3s ease;
}

.video-placeholder:hover::after {
  color: #fff;
  transform: scale(1.1);
}

/* Quick Don Buttons */
.donation-tiers {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.tier-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.5);
  color: #d4af37;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tier-btn:hover, .tier-btn.active {
  background: rgba(212,175,55,0.2);
  box-shadow: 0 0 15px rgba(212,175,55,0.4);
  transform: translateY(-2px);
}

/* FAQ */
.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1rem;
}

.faq-q {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.faq-a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* General Layout adjustments */
main.glass-page-main {
  padding-top: 100px; 
  padding-bottom: 100px;
  min-height: 80vh; 
  display: flex; 
  align-items: flex-start; 
  justify-content: center;
}

.glass-container {
  width: 100%;
}

