/* ======= Modern Volunteer Projects CSS ======= */

/* Color Variables */
:root {
  --primary-blue: #00A6FB;
  --primary-dark: #0582CA;
  --text-primary: #051923;
  --text-secondary: #003554;
  --text-muted: #006494;
  --bg-white: #ffffff;
  --bg-light: #d9dcd6;
  --bg-section: #d9dcd6;
  --shadow-light: 0 5px 20px rgba(0, 166, 251, 0.1);
  --shadow-medium: 0 10px 30px rgba(0, 166, 251, 0.15);
  --shadow-strong: 0 15px 40px rgba(0, 166, 251, 0.2);
  --gradient-primary: linear-gradient(135deg, #00A6FB 0%, #0582CA 100%);
  --border-radius: 16px;
  --transition: all 0.3s ease;
}

/* ======= Hero Section ======= */
.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 166, 251, 0.8) 0%, rgba(5, 130, 202, 0.9) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
  text-align: center;
  padding: 60px 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}

/* ======= Volunteer Section ======= */
.volunteer-section {
  padding: 100px 0;
  background: var(--bg-light);
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ======= Projects Grid ======= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.project-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

/* ======= Project Media ======= */
.project-media {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.image-carousel {
  width: 100%;
  height: 100%;
}

.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.video-embed {
  width: 100%;
  height: 250px;
  position: relative;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ======= Project Badges ======= */
.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
}

.project-badge.award {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #8B4513;
}

.project-badge.education {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
}

.project-badge.technology {
  background: linear-gradient(135deg, #2196F3, #1565C0);
  color: white;
}

.project-badge.event {
  background: linear-gradient(135deg, #9C27B0, #6A1B9A);
  color: white;
}

.project-badge.design {
  background: linear-gradient(135deg, #FF5722, #D84315);
  color: white;
}

.project-badge.creative {
  background: linear-gradient(135deg, #E91E63, #AD1457);
  color: white;
}

.project-badge.community {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
}

.project-badge.development {
  background: linear-gradient(135deg, #607D8B, #455A64);
  color: white;
}

/* ======= Project Content ======= */
.project-content {
  padding: 2rem;
}

.project-header {
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.meta-item i {
  color: var(--primary-blue);
  font-size: 1rem;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* ======= Project Tags ======= */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 174, 244, 0.3);
}

/* ======= Call to Action ======= */
.volunteer-cta {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  margin-top: 3rem;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn-volunteer-cta {
  display: inline-flex;
  align-items: center;
  background: white;
  color: var(--primary-blue);
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-volunteer-cta:hover {
  color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ======= Responsive Design ======= */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-divider {
    height: 30px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    margin-bottom: 1rem;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
  
  .project-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .volunteer-cta {
    padding: 2rem 1.5rem;
  }
  
  .cta-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .volunteer-section {
    padding: 60px 0;
  }
  
  .hero-content {
    padding: 40px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .project-media {
    height: 200px;
  }
  
  .project-image {
    height: 200px;
  }
  
  .video-embed {
    height: 200px;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  .project-title {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-divider {
    width: 40px;
    height: 2px;
  }
  
  .volunteer-cta {
    padding: 1.5rem 1rem;
  }
  
  .cta-title {
    font-size: 1.4rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
}

/* ======= Animation Enhancements ======= */
.project-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

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

/* ======= Carousel Enhancements ======= */
.image-carousel .carousel-indicators {
  bottom: 10px;
}

.image-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  margin: 0 2px;
}

.image-carousel .carousel-indicators .active {
  background-color: white;
}

/* ======= Loading States ======= */
.project-image {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.project-image[src] {
  animation: none;
  background: none;
}
