.h {
  height: 80vh;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
  padding: 0 3rem;
}

.h img {
  width: 68vh;
  padding: 1vh;

}

.intro .intro-title {
  font-size: 30px;
  text-align: center;
  color: var(--txt);
  margin-bottom: 2rem;
  font-weight: 500;

}

.intro .intro-description {
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 2.6rem;
  letter-spacing: 0px;
  text-align: center;
  color: rgb(73, 81, 91);
  letter-spacing: 1px;
}

.intro .get-started {
  display: block;
  padding: 1rem 3rem;
  text-decoration: none;
  color: black;
  font-size: 19px;
  border: 2px solid var(--bgg);
  transition: all 0.3s;
  border-radius: 8px;
  background-color: transparent;
  transform: scale(0.85);
  letter-spacing: 0.5px;
}

.intro .get-started:hover {
  color: white;
  background-color: var(--bgg);
}

.img-hero {
  width: 60%;
  height: 80%;
}

.hero-img {
  width: 100%;
  height: 100%;
}

.categories-container {
  padding-top: 3.5rem;
  background-color: var(--bgg);
}

.categories-container .categories-title {
  text-align: center;
  font-weight: 400;
  letter-spacing: 1px;
  color: white;
}

.categories-container .categories {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4rem;
}

.categories:hover {
  transform: translateZ(1.10);
  transition: ease-in-out 10ms;
}

.category {
  width: 80%;
  background-color: var(--bg);
  margin-bottom: 4rem;
  display: flex;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  height: 38vh;
  border: 2px solid white;
  border-radius: 8px;
}

.category:hover {
  transform: translateY(-10px);
  background-color: rgb(176, 241, 255);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-image {
  width: 32%;
}

.category-image img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.category-image:nth-of-type(2) img,
.category-image:nth-of-type(4) img {
  border-radius: 0 8px 8px 0;
}

.category-info {
  width: 68%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
}

.category-info p {
  margin-bottom: 1.7rem;
}

.category .category-title {
  font-weight: 400;
  font-size: 19px;
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.5;
}

.category .category-link {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  text-decoration: none;
  font-size: 15px;
  border: 2px solid rgb(18, 38, 64);
  transition: all 0.3s;
  color: black;
  background-color: transparent;
  border-radius: 5px;
  letter-spacing: 0.5px;
}

.category .category-link:hover {
  background-color: #193254;
  color: white;
}

.about-container {
  width: 100%;
  padding: 5rem 0;
  display: flex;
  justify-content: center;
}

.about-items {
  width: 80%;
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.about-items>div {
  border-radius: 8px;
  width: 50%;
  height: 100%;
  border: 2px solid black;
}

.about .about-title {
  font-weight: 500;
  font-size: 20px;
  text-align: center;
  letter-spacing: 0.5px;
}

.about .about-description {
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  position: relative;
}

.about-description p {
  height: 8.5rem;
  font-size: 17px;
  color: #405D72;
  text-align: justify;
}

.about-description .buttons {
  display: flex;
  gap: 1rem;
  bottom: 0;
}

.about-description .star,
.about-description .sponsor {
  width: 7rem;
  height: 3rem;
  text-decoration: none;
  font-size: 15px;
  border: 2px solid rgb(18, 38, 64);
  transition: all 0.3s;
  color: white;
  background-color: #193254;
  border-radius: 5px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
  gap: 0.3rem;
}

.about-description .star {
  background-color: white;
  color: black;
}

.about-description .sponsor i {
  transform: translateY(1.6px);
}

.about-description .star:hover {
  background-color: #193254;
  color: white;
}

.about-description .sponsor:hover {
  background-color: transparent;
  color: black;
}

.contribute .contribute-title {
  font-weight: 500;
  font-size: 20px;
  text-align: center;
  letter-spacing: 0.5px;
}

.contribute .contribute-description {
  line-height: 1.3;
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.contribute-description p {
  height: 8.5rem;
  font-size: 17px;
  color: #405D72;
  text-align: justify;
}

.contribute .contribute-link {
  width: 7rem;
  height: 3rem;
  background-color: white;
  padding: 0.9rem 1.3rem;
  color: black;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  letter-spacing: 0.5px;
  border-radius: 5px;
  transition: all 0.3s;
  gap: 0.4rem;
  border: 2px solid black;
}

.contribute .contribute-link:hover {
  background-color: black;
  color: white;
}

/* Dark Theme */

.dark-theme .intro-title {
  color: white;
}

.dark-theme .intro-description {
  color: #dee2e6;
}

.dark-theme .get-started {
  color: black;
  border-color: white;
  background-color: transparent;
  color: white;
}

.dark-theme .get-started:hover {
  background-color: white;
  color: black;
}

.dark-theme .category .category-link {
  transition: all 0.3s;
  color: white;
  background-color: transparent;
  border: 2px solid white;
}

.dark-theme .category:hover {
  background-color: #1A1A1A;
  border: 2px solid white;
}

.dark-theme .category .category-link:hover {
  background-color: white;
  color: #000;
}

.dark-theme .about,
.dark-theme .contribute {
  background-color: #193254;
}

.dark-theme .about-title,
.dark-theme .contribute-title {
  color: white;
}

.dark-theme .star,
.dark-theme .sponsor,
.dark-theme .contribute-link {
  border: 2px solid white;
}

.dark-theme .star {
  background-color: #193254;
  color: white;
}

.dark-theme .star:hover {
  background-color: white;
  color: black;
}

.dark-theme .sponsor:hover {
  background-color: #193254;
  color: white;
}

.dark-theme .contribute-link {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.dark-theme .contribute-link:hover {
  background-color: white;
  color: black;
}

.dark-theme .about-description p,
.dark-theme .contribute-description p {
  font-size: 17px;
  color: #dee2e6;
}

@media screen and (max-width: 768px) {
  .h {
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
  }

  .intro {
    position: relative;
    width: 100%;
    padding: 0;
    height: 90vh;
    text-align: center;
  }

  .intro .intro-title {
    position: absolute;
    top: 1.4rem;
    padding: 0 1rem;
    margin-bottom: 1.2rem;
    font-size: 1.7rem;
  }

  .intro .intro-description {
    position: absolute;
    top: 27.2rem;
    font-size: 1.1rem;
    padding: 0 1.5rem;
  }

  .intro .get-started {
    position: absolute;
    bottom: 0.8rem;
    width: 100%;
  }

  .h img {
    position: absolute;
    top: 10.6rem;
    height: auto;
    width: 45vh;
  }

  .categories-title {
    font-size: 1.75rem;
    text-align: center;
  }

  .category {
    flex-direction: column;
    height: auto;
    position: relative;
  }

  .category-image,
  .category-info {
    width: 100%;
  }

  .category-image img {
    border-radius: 8px 8px 0 0;
    height: 28vh;
    position: relative;
    top: 0;
    display: block;
  }

  .category:nth-of-type(2),
  .category:nth-of-type(4) {
    flex-direction: column-reverse;
  }

  .category-image:nth-of-type(2) img,
  .category-image:nth-of-type(4) img {
    border-radius: 8px 8px 0 0;
  }

  .category-info {
    position: relative;
    padding: 1.3rem 1rem;
    padding-bottom: 1.8rem;
    align-items: center;
    justify-content: unset;
  }

  .category .category-title {
    width: 100%;
    font-size: 1.2rem;
    text-align: center;
  }

  .category-info p {
    text-align: center;
  }

  .category-link {
    text-align: center;
  }

  .about {
    height: auto;
  }

  .about-container {
    padding: 3rem 1rem;
  }

  .about-items {
    flex-direction: column;
    gap: 3rem;
  }

  .about-items>div {
    width: 100%;
  }

  .about,
  .contribute {
    padding: 1.5rem;
  }

  .about-title,
  .contribute-title {
    font-size: 18px;
  }

  .about-description p,
  .contribute-description p {
    font-size: 16px;
  }

  .about-description .buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }

  .star,
  .sponsor,
  .contribute-link {
    width: 100%;
    text-align: center;
    height: 3.5rem;
  }
}

@media screen and (max-width: 480px) {
  .about-container {
    padding: 2rem 0.5rem;
  }

  .h img {
    max-width: 50vh;
  }

  .about-title,
  .contribute-title {
    font-size: 16px;
  }

  .about-description p,
  .contribute-description p {
    font-size: 15px;
    margin-bottom: 3.5rem;
  }

  .about,
  .contribute {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
  }


  .buttons {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
  }

  .star,
  .sponsor,
  .contribute-link {
    font-size: 14px;
    height: 3rem;
  }
}


/* About and Contribute Section Responsive Styling */
.about-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 5rem 0;
}

.about-items {
  display: flex;
  gap: 3rem;
  width: 80%;
  max-width: 1200px;
  /* Restrict width on larger screens */
}

.about,
.contribute {
  flex: 1;
  /* Ensures both sections take equal space side-by-side */
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid black;
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.about-title,
.contribute-title {
  font-weight: 500;
  font-size: 1.2rem;
  text-align: center;
}

.about-description p,
.contribute-description p {
  font-size: 1rem;
  color: #405D72;
  text-align: justify;
}

.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.star,
.sponsor,
.contribute-link {
  padding: 0.8rem;
  font-size: 0.9rem;
  border: 2px solid rgb(18, 38, 64);
  border-radius: 5px;
  text-align: center;
  color: black;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.star:hover,
.sponsor:hover,
.contribute-link:hover {
  background-color: #193254;
  color: white;
}

@media screen and (max-width: 768px) {
  .about-items {
    flex-direction: column;
    /* Stacks sections vertically on smaller screens */
  }

  .about-title,
  .contribute-title {
    font-size: 1rem;
  }

  .about-description p,
  .contribute-description p {
    font-size: 0.9rem;
  }

  .star,
  .sponsor,
  .contribute-link {
    width: 100%;
    /* Buttons take full width in smaller screens */
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  .about-container {
    padding: 1rem 0.5rem;
  }

  .about-title,
  .contribute-title {
    font-size: 0.9rem;
  }

  .about-description p,
  .contribute-description p {
    font-size: 0.8rem;
  }

  .about-items {
    gap: 1.5rem;
  }
}

body.dark-theme .about,
body.dark-theme .contribute {
  background-color: #193254;
  /* Dark theme background */
  border: 2px solid #555;
  /* Dark theme border */
}

body.dark-theme .about-description p,
body.dark-theme .contribute-description p {
  color: #e0e0e0;
  /* Dark theme text color */
}

body.dark-theme .sponsor,
body.dark-theme .contribute-link {
  border: 2px solid #e0e0e0;
  /* Light border for dark theme */
  color: white;
  /* Button text color for dark theme */
}

body.dark-theme .star:hover,
body.dark-theme .sponsor:hover,
body.dark-theme .contribute-link:hover {
  background-color: #405D72;
  /* Darker hover background for buttons */
  color: white;
  /* Text color on hover */
}

/* Responsive Styles for Dark Theme */
body.dark-theme .about-items {
  display: flex;
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  /* Restrict width on larger screens */
}

@media screen and (max-width: 768px) {
  body.dark-theme .about-items {
    flex-direction: column;
    /* Stacks sections vertically on smaller screens */
  }

  body.dark-theme .about-title,
  body.dark-theme .contribute-title {
    font-size: 1rem;
  }

  body.dark-theme .about-description p,
  body.dark-theme .contribute-description p {
    font-size: 0.9rem;
  }

  body.dark-theme .star,
  body.dark-theme .sponsor,
  body.dark-theme .contribute-link {
    width: 100%;
    /* Buttons take full width in smaller screens */
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  body.dark-theme .about-container {
    padding: 1rem 0.5rem;
  }

  body.dark-theme .about-title,
  body.dark-theme .contribute-title {
    font-size: 0.9rem;
  }

  body.dark-theme .about-description p,
  body.dark-theme .contribute-description p {
    font-size: 0.8rem;
  }

  body.dark-theme .about-items {
    gap: 1.5rem;
  }
}


/* Overlay */
.rate-us-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  /* Dark overlay effect */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Rate Us Box */
.rate-us-box {
  background-color: #0044cc;
  /* Dark blue background */
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: center;
  width: 300px;
}

/* Close Button */
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: white;
  cursor: pointer;
}

/* Stars */
.stars {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.stars .star {
  font-size: 30px;
  color: #ccc;
  /* Default star color */
  cursor: pointer;
  transition: color 0.2s, box-shadow 0.2s;
  /* Transition for color and shadow */
  border: none;
  /* Remove any border */
}

.stars .star:hover,
.stars .star.hovered,
.stars .star.selected {
  color: #ffdd57;
  /* Yellow stars when hovered or selected */
  box-shadow: 0px 0px 10px rgba(255, 221, 87, 0.6);
  /* Soft glow on hover */
}

/* Submit Button */
.submit-button {
  background-color: #007bff;
  /* Primary button color */
  color: white;
  padding: 8px 12px;
  border: 2px solid #103f72;
  /* Add a border with a darker shade of blue */
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
  /* Smooth transition */
}

.submit-button:hover {
  background-color: #0056b3;
  /* Darker background on hover */
  border-color: #00c3ff;
  /* Glowing border effect on hover */
  box-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff;
  /* Glowing effect */
  color: #fff;
}

/* Active state for the overlay */
.rate-us-overlay.active {
  visibility: visible;
  opacity: 1;
}