@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fffafc 0%, #f8f4f6 100%);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.navbar .logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.8rem;
  color: #d94f70;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.navbar .logo:hover {
  transform: scale(1.05);
}

.navbar .logo img {
  height: 40px;
  width: auto;
  margin-right: 10px;
  transition: transform 0.3s ease;
  border-radius: 8px;
  background: transparent;
}

.navbar .logo:hover img {
  transform: scale(1.1);
}

.navbar .logo-text {
  display: inline-block;
}

.navbar nav a {
  color: #555;
  text-decoration: none;
  margin-left: 30px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.navbar nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d94f70;
  transition: width 0.3s ease;
}

.navbar nav a:hover::after {
  width: 100%;
}

.navbar nav a:hover {
  color: #d94f70;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #d94f70 0%, #c13f5f 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,100 1000,0"/></svg>');
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo img {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.hero-logo img:hover {
  transform: scale(1.05);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Content */
main {
  padding: 60px 0;
}

.section {
  margin-bottom: 80px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #c5325c;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #d94f70, #c13f5f);
  border-radius: 2px;
}

/* About Section */
.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content h2 {
  font-size: 2.5rem;
  color: #c5325c;
  margin-bottom: 30px;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #555;
}

/* Stats Section */
.stats {
  background: white;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-item .number {
  font-size: 3rem;
  font-weight: 700;
  color: #d94f70;
  margin-bottom: 10px;
}

.stat-item .label {
  font-size: 1.1rem;
  color: #666;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.team-member {
  background: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #f0f0f0;
  transition: border-color 0.3s ease;
}

.team-member:hover img {
  border-color: #d94f70;
}

.team-member h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 10px;
}

.team-member p {
  color: #666;
  font-size: 0.95rem;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.gallery-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-content {
  padding: 20px;
}

.gallery-item-content h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
}

.gallery-item-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Activity Date Styling */
.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.activity-category,
.activity-author,
.activity-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 10px;
}

.activity-category {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.activity-author {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.activity-date {
  background: rgba(217, 79, 112, 0.1);
  color: #d94f70;
}

.activity-category i,
.activity-author i,
.activity-date i {
  font-size: 0.7rem;
}

/* Loading, Error, and Empty States */
.loading-state, .error-state, .empty-state {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-top: 30px;
}

.loading-state i.fa-spin {
  animation: spin 1s linear infinite;
}

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

.error-state button:hover {
  background: rgba(217, 79, 112, 0.1) !important;
  text-decoration: none !important;
}

.empty-state p, .error-state p, .loading-state p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

/* Volunteer Section */
.volunteer-section {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #d94f70 0%, #c13f5f 100%);
  color: white;
  border-radius: 20px;
  margin: 60px 0;
}

.volunteer-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

.volunteer-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: white;
  color: #d94f70;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  background: #f8f9fa;
}

/* Connect Section */
.connect {
  text-align: center;
  padding: 60px 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.connect h2 {
  font-size: 2.5rem;
  color: #c5325c;
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.social-links a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  padding: 20px;
  border-radius: 15px;
  background: #f8f9fa;
}

.social-links a:hover {
  color: #d94f70;
  background: white;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.social-links i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #d94f70;
  transition: transform 0.3s ease;
}

.social-links a:hover i {
  transform: scale(1.2);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: white;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.mobile-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 15px 0;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #d94f70;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #d94f70;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1rem; }
  .section-title { font-size: 2rem; }
  .about-content, .volunteer-section, .connect, .stats { padding: 30px 20px; }
  
  /* Hide desktop nav and show hamburger */
  .navbar nav { display: none; }
  .hamburger { display: flex !important; }
  
  /* Mobile menu positioning */
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
  }
  
  .social-links { gap: 30px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .container { padding: 0 15px; }
  .team-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  
  /* Ensure hamburger is visible on very small screens */
  .hamburger { 
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-menu {
    padding: 15px;
  }
  
  .mobile-menu a {
    padding: 12px 0;
    font-size: 16px;
  }
}
