/* Custom CSS following Design Guidelines */

:root {
  /* Primary Colors */
  --deep-teal: #2C6B6B;
  --soft-sage: #8FB5A5;
  --pure-white: #FFFFFF;
  --warm-cream: #FAF8F3;
  
  /* Supporting Colors */
  --gentle-lavender: #B8A9D9;
  --soft-gold: #D4AF37;
  --light-gray: #F5F5F5;
  --charcoal: #333333;
  
  /* Semantic Colors */
  --success-green: #68B984;
  --warning-amber: #F4A261;
  --error-coral: #E76F51;
}

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

body {
  font-family: 'Source Sans Pro', sans-serif;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--pure-white);
}

/* Typography */
.font-playfair {
  font-family: 'Playfair Display', serif;
}

.font-source {
  font-family: 'Source Sans Pro', sans-serif;
}

.font-crimson {
  font-family: 'Crimson Text', serif;
}

/* Custom Components */
.btn-primary {
  background-color: var(--deep-teal);
  color: var(--pure-white);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #235555;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(44, 107, 107, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--deep-teal);
  border: 2px solid var(--deep-teal);
  border-radius: 8px;
  padding: 10px 22px;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--deep-teal);
  color: var(--pure-white);
}

.card-shadow {
  box-shadow: 0 4px 20px rgba(44, 107, 107, 0.1);
  transition: all 0.3s ease;
}

.card-shadow:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44, 107, 107, 0.15);
}

/* Hero Background */
.hero-bg {
  background: linear-gradient(rgba(44, 107, 107, 0.6), rgba(143, 181, 165, 0.4)), 
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%238FB5A5;stop-opacity:0.3" /><stop offset="100%" style="stop-color:%232C6B6B;stop-opacity:0.5" /></linearGradient></defs><rect width="1200" height="800" fill="url(%23grad1)"/><circle cx="300" cy="200" r="2" fill="%23FAF8F3" opacity="0.6"/><circle cx="900" cy="150" r="1.5" fill="%23FAF8F3" opacity="0.4"/><circle cx="600" cy="400" r="3" fill="%23FAF8F3" opacity="0.3"/><circle cx="1000" cy="600" r="2" fill="%23FAF8F3" opacity="0.5"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Mobile menu styles */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Form styles */
.form-input {
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: 'Source Sans Pro', sans-serif;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--deep-teal);
  box-shadow: 0 0 0 3px rgba(44, 107, 107, 0.1);
}

/* Donation Page Specific Styles */
.donation-amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.amount-button {
    position: relative;
    overflow: hidden;
}

.amount-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.amount-button:hover::before {
    left: 100%;
}

.payment-method-card {
    transition: all 0.3s ease;
    transform-origin: center;
}

.payment-method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.donation-form input:focus,
.donation-form select:focus,
.donation-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 107, 107, 0.2);
    border-color: #2C6B6B;
}

.processing-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Security indicator styles */
.security-badge {
    background: linear-gradient(45deg, #4ade80, #22c55e);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Thank you page animations */
.thank-you-container {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive donation grid */
@media (max-width: 768px) {
    .donation-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .donation-amount-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive typography */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem !important;
  }
  
  .section-title {
    font-size: 1.75rem !important;
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard navigation */
*:focus {
  outline: 2px solid var(--deep-teal);
  outline-offset: 2px;
}

/* Enhanced Hero Section Animations and Effects */

/* Floating animations for geometric shapes */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(-5deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

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

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
    animation-delay: 2s;
}

.animate-float-slow {
    animation: float-slow 10s ease-in-out infinite;
    animation-delay: 4s;
}

/* Glowing effect for the main icon */
@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
                    0 0 40px rgba(212, 175, 55, 0.2),
                    0 0 60px rgba(212, 175, 55, 0.1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.5),
                    0 0 60px rgba(212, 175, 55, 0.3),
                    0 0 80px rgba(212, 175, 55, 0.2);
    }
}

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

/* Shimmer effect for the main title */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.animate-shimmer {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* Radial gradient background effect */
.bg-radial-gradient {
    background: radial-gradient(circle at center, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(212, 175, 55, 0.05) 30%, 
                transparent 70%);
}

/* Backdrop blur support */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Enhanced button hover effects */
.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Pulse animation delay classes */
.delay-1000 {
    animation-delay: 1s;
}

.delay-2000 {
    animation-delay: 2s;
}

.delay-3000 {
    animation-delay: 3s;
}

/* Gradient text support for older browsers */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* Enhanced shadow effects */
.shadow-soft-gold\/50 {
    box-shadow: 0 25px 50px -12px rgba(212, 175, 55, 0.5);
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .animate-float,
    .animate-float-delayed,
    .animate-float-slow {
        animation-duration: 4s;
    }
    
    /* Hide some decorative elements on mobile for cleaner look */
    .absolute.top-10.left-10,
    .absolute.bottom-20.left-16 {
        display: none;
    }
}

/* Additional glassmorphism effects */
.glass-card {
    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.37);
}

/* Breathing animation for spiritual elements */
@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.animate-breathe {
    animation: breathe 4s ease-in-out infinite;
}
