.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, hsl(210, 92%, 74%) 0%, #65aee2 100%);
    position: relative;
    overflow: hidden;
}


.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}


.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #000000;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image img{
width: 300px;
    height: 300px;
}
.earth-animation {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.earth {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 100px 100px, #2980b9, #1a5276);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.514), inset 0 0 10px rgba(255, 255, 255, 0.2);
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.earth-surface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Earthmap1000x500.jpg/1024px-Earthmap1000x500.jpg');
    background-size: 400px 200px;
    border-radius: 50%;
    opacity: 0.7;
}

.glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 70%);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-divider .shape-fill {
    fill: #FFFFFF;
}
.great{
display: flex;
justify-content: center;
}
.great img {
  height: 650px;
  width: 1000px;

}
.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .cause-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.63);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
  }

  .cause-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .cause-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .cause-card h3 {
    background-color: #f8f8f8;
    padding: 1rem;
    margin: 0;
    color: black;
    font-size: 1.3rem;
    text-align: center;
  }

  .cause-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .but{
    width: 200px;
    height: 45px;
    background-color: #006305;
    border-radius: 10px;
  }
.but a{
  color: white;
}
  .fact-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0d4e00;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0 10px 10px 0;
  }

  .fact-box h4 {
    color: #035c00;
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }
.causes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.cause-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.63);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cause-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cause-icon {
  background-color: #035700;
  color: white;
  font-size: 2.5rem;
  padding: 1.5rem;
  text-align: center;
 
}

.cause-card h3 {
  background-color: #f8f8f8;
  padding: 1rem;
  margin: 0;
  color: black;
  font-size: 1.3rem;
  text-align: center;
}

.cause-content {
  padding: 1.5rem;
}

.fact-box {
  background-color: #f8f9fa;
  border-left: 4px solid #0d4e00;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 0 10px 10px 0;
}

.fact-box h4 {
  color: #035c00;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.pie-chart-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow:0 4px 5px rgba(0, 0, 0, 0.1);
}

.pie-chart {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: #f5f5f5;
  overflow: hidden;
}

.slice {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 50% 100%);
  transform-origin: center;
}

.slice1 {
  background-color: #750101;
  transform: rotate(0deg);
}

.slice2 {
  background-color: #001866;
  transform: rotate(90deg);
}

.slice3 {
  background-color: #006305;
  transform: rotate(180deg);
}

.slice4 {
  background-color: #806800;
  transform: rotate(230deg);
}

.slice5 {
  background-color: #08007a;
  transform: rotate(280deg);
}

.slice6 {
  background-color: #7a1600;
  transform: rotate(320deg);
}

.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.color-box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.color1 {
  background-color: #6d0000;
}
.color2 {
  background-color: #07006d;
}
.color3 {
  background-color: #006b00;
}
.color4 {
  background-color: #725400;
}
.color5 {
  background-color: #08007c;
}
.color6 {
  background-color: #7c1700;
}

.interactive-timeline {
  margin: 4rem 0;
}
.interactive-timeline h2 {
  color: #000000;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #00530e;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 4px solid #135200;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.534);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.03);
}

.timeline-content h3 {
  color: #135200;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .causes-grid {
    grid-template-columns: 1fr;
  }

  .pie-chart {
    width: 250px;
    height: 250px;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px !important;
    padding-right: 1rem !important;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 20px !important;
    right: auto !important;
  }
}

@media (max-width: 480px) {
  .pie-chart {
    width: 200px;
    height: 200px;
  }

  .timeline-content {
    padding: 1rem;
  }
}

   @media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    } 
}