/* Custom Color Variables */
:root {
  --primary-color: #582765;        /* Deep Purple */
  --primary-dark: #3d1a47;         /* Darker Purple */
  --primary-light: #7a3886;        /* Lighter Purple */
  --accent-color: #e27a52;         /* Coral/Orange */
  --accent-dark: #d86841;          /* Darker Coral */
  --accent-light: #f09d7a;         /* Lighter Coral */
}

/* Custom Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 1s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 1s ease-out;
}

.animate-slideInLeft {
  animation: slideInLeft 1s ease-out;
}

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

/* Hero Section Enhancements */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--primary-color), var(--primary-dark), var(--primary-color));
}

/* Card Hover Effects */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* Button Hover Effects */
button, a {
  transition: all 0.3s ease;
}

/* Donation Amount Button Active State */
.donation-amount.active {
  background-color: var(--primary-color);
  color: white;
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(to right, var(--accent-color), var(--accent-light));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Mobile Menu Transition */
#mobile-menu {
  transition: max-height 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
}

#mobile-menu.show {
  max-height: 500px;
}

/* Image Overlay on Hover */
.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
  opacity: 1;
}

/* Section Reveal Animation */
.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}

/* Focus States for Accessibility */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  nav, footer, #donate {
    display: none;
  }
}

/* Custom Tailwind Color Classes */
.text-primary {
  color: var(--primary-color);
}

.text-accent {
  color: var(--accent-color);
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-accent {
  background-color: var(--accent-color);
}

.border-primary {
  border-color: var(--primary-color);
}

.border-accent {
  border-color: var(--accent-color);
}

.hover\:bg-primary:hover {
  background-color: var(--primary-color);
}

.hover\:bg-accent:hover {
  background-color: var(--accent-color);
}

.hover\:text-primary:hover {
  color: var(--primary-color);
}

.hover\:text-accent:hover {
  color: var(--accent-color);
}
