/* Real Stars Ministries Uganda - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Nunito:wght@300;400;500;600;700;800&display=swap');

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.logo-text h1 {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: #333;
  margin: 0;
}

.logo-text p {
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  color: #666;
  margin: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem;
}

.nav-menu a:hover, .nav-menu a.active {
  color: #dc2626;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons - Red, Blue, Green color scheme */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  animation: pulse 2s infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

.btn-outline {
  border: 2px solid #dc2626;
  color: #dc2626;
  background: transparent;
}

.btn-outline:hover {
  background: #dc2626;
  color: white;
}

.btn-outline-blue {
  border: 2px solid #2563eb;
  color: #2563eb;
  background: transparent;
}

.btn-outline-blue:hover {
  background: #2563eb;
  color: white;
}

.btn-outline-green {
  border: 2px solid #16a34a;
  color: #16a34a;
  background: transparent;
}

.btn-outline-green:hover {
  background: #16a34a;
  color: white;
}

.btn-lg {
  padding: clamp(12px, 3vw, 16px) clamp(24px, 6vw, 32px);
  font-size: clamp(1rem, 3vw, 1.1rem);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Image Container with Donate Button */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-container:hover img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: white;
}

.image-container:hover .image-overlay {
  opacity: 1;
}

.image-overlay h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.image-overlay p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.9);
}

.donate-btn-overlay {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
}

.donate-btn-overlay:hover {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #dbeafe 0%, #fff 50%, #f0fdf4 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.hero-content {
  text-align: center;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  margin-bottom: 1.5rem;
  animation: slideUp 1s ease-out;
  line-height: 1.2;
  color: hwb(0 91% 7% / 0.945);
}

.hero .highlight {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 4vw, 1.3rem);
  color: hwb(0 91% 7% / 0.945);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: slideUp 1s ease-out 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 1s ease-out 0.6s both;
}

/* Stats Section */
.stats {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  transition: transform 0.3s;
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-number {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  opacity: 0.9;
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: clamp(1rem, 3vw, 1.1rem);
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.card h3 {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  margin-bottom: 1rem;
}

.card p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.card-impact {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #374151;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

/* Grid Layouts */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: white;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: white;
}

.gallery-overlay p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.9);
}

/* Gallery Filter */
.gallery-filter {
  margin: 0.25rem;
  transition: all 0.3s;
}

.gallery-filter.active {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

/* Testimonials */
.testimonial {
  background: linear-gradient(135deg, #dbeafe, #f0fdf4);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-direction: column;
}

.testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-text {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-style: italic;
  color: #333;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: #333;
}

.testimonial-role {
  color: #666;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.3s;
}

.testimonial-dot.active {
  background: #dc2626;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, #1e3a8a, #7c3aed);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: #dc2626;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #dc2626;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

/* Floating Donate Button */
.floating-donate {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  animation: bounce 2s infinite;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #dc2626;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border-radius: 15px;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #666;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #dc2626;
}

.modal-body {
  text-align: center;
}

.donation-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.donation-amount {
  padding: 1rem;
  background: #f8f9fa;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.donation-amount:hover,
.donation-amount.selected {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

#customAmount {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 1rem;
}

#customAmount:focus {
  outline: none;
  border-color: #dc2626;
}

#modalCaption {
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Cause Cards Special Styling */
.cause-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 2rem;
}

.cause-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.cause-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.cause-content {
  padding: 2rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  border-radius: 5px;
  transition: width 1s ease-out;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.urgent-badge {
  background: #ef4444;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
  40%, 43% { transform: translateY(-15px); }
  70% { transform: translateY(-7px); }
  90% { transform: translateY(-3px); }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

.slide-up {
  animation: slideUp 1s ease-out;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .testimonial-content {
    flex-direction: column;
  }
  
  .floating-donate {
    bottom: 1rem;
    right: 1rem;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .image-overlay {
    padding: 1rem;
  }
  
  .image-overlay h4 {
    font-size: 1.2rem;
  }
  
  .image-overlay p {
    font-size: 0.9rem;
  }
  
  .donation-amounts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .testimonial {
    padding: 2rem;
  }
  
  .cause-content {
    padding: 1.5rem;
  }
  
  .gallery-item {
    height: 250px;
  }
  
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
}

@media (max-width: 320px) {
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .floating-donate {
    bottom: 0.5rem;
    right: 0.5rem;
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  .image-overlay {
    padding: 0.75rem;
  }
  
  .modal-content {
    padding: 1rem;
    margin: 0.5rem;
  }
}
