body {
  background: linear-gradient(135deg, #e2eeff, #dde2e7);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #1f1f1f;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: background 0.3s, color 0.3s;
  will-change: background, color;
  font-family: "Oxygen", serif;
  font-style: normal;
  background-size: cover;
}
h1,
h2,
h3 {
  font-family: "Merienda", serif;
}
body.dark-mode {
  background: linear-gradient(135deg, #1f1f1f, #2c2c2c);
  color: #ffffff;
  -webkit-backdrop-filter: brightness(0.3);
  backdrop-filter: brightness(0.3);
  font-family: "Oxygen", serif;
}
body.dark-mode .person-one,
body.dark-mode .person-two,
body.dark-mode .person-three ,
body.dark-mode .person-four,
body.dark-mode .person-five {
  background: #1f1f1f;
  color: #ffffff;
  border: 1px solid rgb(67, 66, 66);
}
body.dark-mode .name {
  color: crimson;
}
body.dark-mode .description {
  color: crimson;
}
body.dark-mode .person-one:hover,
body.dark-mode .person-two:hover,
body.dark-mode .person-three:hover ,
body.dark-mode .person-four:hover,
body.dark-mode .person-five:hover {
  box-shadow: 10px 5px 10px 5px #1c1a1a;
}
footer {
  background: #c8ddf9;
  color: #222;
  border: 1px solid cadetblue;
  padding: 2rem;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.footer-section {
  margin: 1rem;
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: rgb(67, 66, 66);
}
.footer-section a {
  color: rgb(67, 66, 66);
}
.footer-section p {
  font-size: 1rem;
  color: rgb(67, 66, 66);
  text-decoration: none;
}

.footer-section a:hover {
  color: rgb(169, 91, 91);
}

.social-media a {
  margin: 0 0.5rem;
  font-size: 1.5rem;
  color: rgb(67, 66, 66);
}

.footer-bottom {
  margin-top: 1rem;
  border-top: 1px solid gray;
  padding-top: 1rem;
}
.menu-button {
  display: none; /* Hide the menu button on larger screens */
}
footer.dark-mode {
  background-color: rgba(67, 66, 66, 0.17);
  color: whitesmoke;
  border: none;
}
footer.dark-mode .footer-section a {
  font-size: 1.2rem;
  color: whitesmoke;
  text-decoration: none;
}
footer.dark-mode .footer-section a:hover {
  color: rgb(169, 91, 91);
}
footer.dark-mode .footer-section h3,
footer.dark-mode .footer-section p {
  color: whitesmoke;
}
.person-one,
.person-two,
.person-three,
.person-four,
.person-five {
  display: flex;
  background: #c8ddf9;
  color: #222;
  border: 1px solid cadetblue;
  width: 700px;
  height: 400px;
  border-radius: 15px;
  transition: flex-flow 1s ease-in;
}
.persons-details {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 2rem 0;
  justify-content: space-around;
}
.icon {
  width: 3rem;
  margin: 2rem 0;
}
.person-one-image,
.person-two-image,
.person-three-image,
.person-five-image,
.person-four-image {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 0 15px 0 15px;
}
.person-one-details,
.person-two-details,
.person-three-details,
.person-four-details,
.person-five-details {
  width: 500px;
  margin-left: 20px;
}
.name {
  margin: 1rem 0;
  padding: 0;
  font-size: 2rem;
  font-weight: bolder;
  color: #8bafde;
}
.description {
  margin: 1rem 0;
  padding: 0;
  font-size: 1.5rem;
  font-weight: bolder;
  font-family: "Dancing Script", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  color: cadetblue;
}
div.icons{
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.description2 {
text-align: justify;
}
.person-one:hover,
.person-two:hover,
.person-three:hover,
.person-five:hover,
.person-four:hover {
  animation: flip 1s 1 ease-in;
  flex-flow: row-reverse;
  box-shadow: 10px 5px 10px 5px cadetblue;
}
.floating {
  position: fixed;
  top: 80%;
  left: 95%;
  transform: translate(-50%, -50%);
}
.floating svg {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  box-shadow: 0.5rem 0.5rem 0.5rem 0.5rem #211e1e;
  animation: floating 2s infinite;
}
.floating svg:hover {
  animation: none;
  scale: 1.2;
  box-shadow: none;
}
.menu-button {
  margin-left: 6rem;
  margin-top: 1rem;
  font-size: xx-large;
}
@keyframes reveal {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}
@keyframes flip {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}
@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(50px);
  }
  100% {
    transform: translateY(0px);
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 768px) {
  body p {
    font-size: 0.9rem;
  }
}
/* Media Queries for Small Screens */
@media (max-width: 500px) {
  .name {
    font-size: 2rem;
    font-weight: 900; /* Smaller font size */
  }
  .person-two-details h2,
  .person-three-details h2,
  .person-five-details h2,
  .person-four-details h2,
  .person-one-details h2 {
    margin-left: 2.5rem;
    width: 70vw;
  }
  .description {
    font-size: 1rem; /* Smaller font size */
  }

  .description2 {
    width: 80vw;
    font-size: small;
  }
  .description {
    color: #8bafde;
  }
  .person-one-details,
  .person-two-details,
  .person-three-details,
  .person-five-details,
  .person-four-details {
    width: 80vw;
  }
  .description {
    width: 64vw;
  }
  .persons-details {
    width: 90vw;
    margin:0 1rem;
  }
  .person-one-image,
  .person-two-image,
  .person-three-image,
  .person-four-image,
  .person-five-image {
    width: 400px;
    height: 300px;
    object-position: top;
  }
  footer {
    margin-top: 3rem;
  }
  .description {
    margin-left: 2.5rem;
    font-size: 1.3rem;
  }
.description{
  font-size: larger;
}
  .person-one:hover,
  .person-two:hover,
  .person-three:hover,
  .person-five:hover,
  .person-four:hover {
    flex-direction: column;
    animation: none;
  }
  .person-one,
  .person-two,
  .person-three,
  .person-five,
  .person-four {
    width: 90vw;
    height: 40rem;
    margin-left: 0;
    flex-direction: column;
    margin-top: 2rem;
    margin-bottom: 1rem;
    
  }
  .description{
text-align: center;
  }
  .description2{
    margin: 0;
  }
}

@media screen and (max-width: 321px) {
  h2.name {
    font-size: 1.3rem;
  }
  p.description {
    font-size: 1rem;
    margin-left: 1rem;
  }
  div.person-one,
  div.person-two,
  div.person-three,
  div.person-four,
  div.person-five {
    width: 100vw;
    height: 40rem;
    margin-left: 0;
  }
  .person-one-image,
  .person-two-image,
  .person-three-image,
  .person-four-image,
  .person-five-image {
    width: 100vw;
    height: 20rem;
    aspect-ratio: 1/1;
  }
}
