@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Euphoria+Script&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary: #1a5d1a;
  --secondary: #fe6800;
  --accent: #e55604;
  --light: #f8f1f1;
  --white: #ffffff;
  --dark: #1d1d1d;
  --kenya-red: #bb0000;
  --kenya-green: #006600;
  --kenya-black: #000000;
  --header-font: "Raleway", sans-serif;
  --paragraph-font: "Montserrat", sans-serif;
  --links-font: "Quicksand", sans-serif;
  --special-font: "Euphoria Script", cursive;
  --other-font: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--paragraph-font);
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  position: relative;
}

/* Blobs and decorative elements */
.icon-leaf {
  position: absolute;
  opacity: 0.1;
  z-index: -1;
}

.icon-leaf-1 {
  top: 15%;
  left: 10%;
  transform: rotate(30deg);
  font-size: 80px;
  color: var(--primary);
}

.icon-leaf-2 {
  bottom: 20%;
  right: 15%;
  transform: rotate(-15deg);
  font-size: 100px;
  color: var(--kenya-green);
}

.icon-mountain {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(
    to right,
    var(--kenya-red),
    var(--kenya-black),
    var(--kenya-green)
  );
  opacity: 0.1;
  z-index: -1;
  clip-path: polygon(
    0 100%,
    100% 100%,
    100% 0,
    90% 30%,
    80% 10%,
    70% 40%,
    60% 20%,
    50% 50%,
    40% 30%,
    30% 60%,
    20% 40%,
    10% 70%,
    0 50%
  );
}

/* Header styles */
header {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("./Images/hero.jpg") no-repeat center center/cover;
  height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.header-content {
  max-width: 800px;
  padding: 0 20px;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.logo {
  height: 50px;
  margin: 0 20px;
}

h1 {
  font-family: var(--header-font);
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 1em 2em;
  background-color: var(--secondary);
  color: var(--white);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.5ch;
  cursor: pointer;
}

#read-more {
  border-radius: 10px;
  background-color: var(--light);
  outline: 1px solid var(--secondary);
  color: var(--secondary);
}

.home-btn {
  background-color: var(--light);
  color: var(--dark);
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  font-size: 1.2ch;
}

.donate-btn {
  background-color: var(--kenya-green);
}

.btn:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.home-btn:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--dark);
}

/* Section styles */
section {
  padding: 80px 20px;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-family: var(--header-font);
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

h3 {
  font-family: var(--header-font);
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary);
}

p {
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  line-height: 1;
  font-size: 4ch;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: 40rem;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Event section */
.event-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--kenya-red),
    var(--kenya-black),
    var(--kenya-green)
  );
}

.event-card h3 {
  color: var(--dark);
}

.event-content-box {
  display: flex;
  gap: 2rem;
  align-items: start;
  margin-block: 1rem;
  background-color: var(--light);
  border-radius: 10px;
  padding: 2rem;
}

.event-image {
  height: 20rem;
}

.event-img {
  height: 20rem;
  min-width: 100%;
  border-radius: 10px;
}

.event-date {
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.event-date i {
  margin-right: 10px;
}

.event-location {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.event-location i {
  margin-right: 10px;
}

.event-features {
  margin: 20px 0;
}

.event-features li {
  margin-bottom: 10px;
  list-style-type: none;
  position: relative;
  padding-left: 30px;
}

.event-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.maters {
  background-color: var(--dark);
}

.maters .container h2,
.achievements .container h2 {
  text-align: center;
}

.maters .container > p {
  color: var(--white);
}

/* Achievements section */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.stat-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--kenya-red),
    var(--kenya-black),
    var(--kenya-green)
  );
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--dark);
}

/* Partners section */
.partners {
  background-color: var(--primary);
  color: white;
  text-align: center;
}

.partners h2 {
  color: white;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.partner-logo {
  height: 50px;
  opacity: 1;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.1);
}

/* Testimonial */
.testimonial {
  font-style: italic;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  position: relative;
  background-color: var(--light);
  border-radius: 10px;
}

.testimonial::before,
.testimonial::after {
  content: '"';
  font-size: 4rem;
  color: var(--kenya-black);
  opacity: 0.5;
  position: absolute;
}

.testimonial::before {
  top: 0;
  left: 0;
}

.testimonial::after {
  bottom: 0;
  right: 1rem;
}

.testimonial p {
  color: var(--dark);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 50px 20px;
  text-align: center;
}

.social-links {
  margin: 20px 0;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  margin: 0 15px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary);
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
}

.copyright {
  margin-top: 30px;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .event-content-box,
  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .logo {
    height: 40px;
  }

  section {
    padding: 50px 20px;
  }

  h2 {
    font-size: 2rem;
  }

  .stat-card {
    min-width: 150px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .about-image img {
    height: 20rem;
  }
}

@media (max-width: 500px) {
  .event-content-box {
    display: grid;
  }

  .event-img,
  .event-image {
    height: 12rem;
  }
}

@media (max-width: 400px) {
  .stats-container {
    display: grid;
  }
}
