@font-face{
  font-family: Montserrat;
  src: url("../webfonts/Montserrat-Medium.ttf")
  format("truetype");
}

:root {
  --primary-color: rgba(0, 100, 0, 1);       /* Dark Green */
  --secondary-color: rgba(255, 255, 255, 1); /* White */
  --accent-color: rgba(255, 215, 0, 1);      /* Gold */
  --light-bg: rgba(200, 230, 200, 1);        /* Light Green */
  --dark-accent: rgba(0, 80, 0, 1); /* Deep Green for hover/shadows */
  --default-font: Montserrat;
  --font-size: 1.1rem;
}

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


body{
  font-family: var(--default-font), san-serif;
  font-size: var(--font-size);
  background: whitesmoke;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3rem;
}

header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.internet-connection-status{
  display: flex;
  flex-direction: column;
}

.online, .offline{
  background: var(--light-bg);
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}

.offline{
  background: lightcoral;
}

.header{
  background: white;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0.1rem 0 0.3rem;
  z-index: 1;
}

.logo{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.greenLeaf{
  color: white;
  background: var(--primary-color);
  padding: 1rem;
  border-radius: 0 2rem 0 2rem;
}

.web-services{
  color: var(--primary-color);
}

.bi-telephone{
  color: var(--primary-color);
}

.quote-container{
  align-self: center;
  margin: 2rem 1rem;;
  background: white;
  padding: 1.5rem;
  border-radius: 2rem;
  border: 0.1rem solid;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.h-1{
  display: flex;
  flex-direction: row;
  align-items: center;
  font-weight: bold;
  text-align: center;
  align-self: center;
}

.heading{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.day{
  background: var(--primary-color);
  color: white;
  padding: 1.2rem;
  border-radius: 1rem;
  margin-left: 0.6rem;
}

.close-btn{
  font-size: 2rem;
  background: black;
  border-radius: 50%;
  color: white;
  align-self: flex-end;
}

.bi-x:active{
  opacity: 0.7;
}

.author{
  text-align: right;
  color: var(--primary-color);
}

.quote{
  line-height: 1.6;
  text-align: center;
}

.source{
  color: var(--accent-color);
}

main{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-top: 7.8rem;
}

.section-1{
  background-image: url("../images/african-business-male-people-shaking-hands.jpg");
  color: var(--secondary-color);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.7rem;
  text-align: center;
  padding: 2.3rem 1.5rem;
  width: 100%;
  background-repeat: no-repeat;
}

h1{
  line-height: 1.6;
}

.description{
  line-height: 1.7;
}

.quoteBtn{
  background: var(--primary-color);
  padding: 1.2rem;
  border-radius: 1rem;
  color: white;
  border: 0.1rem solid var(--primary-color);
}

.quoteBtn:hover{
  background: transparent;
  box-shadow: 0.1rem 0.1rem 0.2rem var(--dark-accent);
}

.quoteBtn:active{
  background: var(--dark-accent);
}

@keyframes slideUp{
  0%{
    opacity: 0;
    transform: translateY(1.2rem);
  }
  
  100%{
    opacity: 1;
    transform: translateY(-1.2rem);
  }
}

.sub-section-1{
  opacity: 0;
  transform: translateY(1.2rem);
  animation-name: slideUp;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.section-2, .section-3, .section-4{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 0 0.5rem;
}

.services-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.service{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 1rem;
}

.s-header{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.content{
  padding: 1.7rem;
  line-height: 1.7;
  animation-name: slideUp;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
} 

.s-icon{
  color: var(--primary-color);
  font-size: 2.5rem;
}

h3{
  border-bottom: 0.1rem solid var(--primary-color);
  padding-bottom: 0.6rem;
}

.whyChooseUs-header{
  color: var(--primary-color);
}

.section-3{
  background: var(--secondary-color);
  padding: 3rem; 
  border-radius: 1rem;
  opacity: 0;
  transform: translateY(1.2rem);
  animation-name: slideUp;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
}

.reasons{
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonials-header{
  color: var(--primary-color);
}

.testimonies{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimony, .t-header{
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@keyframes slideDown{
  0%{
    opacity: 0;
    translate: 0 -1rem;
  }
  
  100%{
    opacity: 1;
    translate: 0 1rem;
  }
}

.testimony{
  background: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 1rem;
  margin: 1rem;
  box-shadow: 0.1rem 0.1rem 0.3rem var(--dark-accent);
  gap: 1rem;
  animation-name: slideDown;
  animation-duration: 1.2s;
  animation-fil-mode: forwards;
}

.stars{
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
  color: var(--primary-color);
}

.name{
  font-weight: bold;
}
 
.t-content{
  line-height: 1.6;
}

.testimony:active{
  opacity: 0.6;
}

.section-5{
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--primary-color);
  padding: 1.6rem;
  border-radius: 0 1rem 0 1rem;
  margin: 0 0.5rem;
  color: var(--secondary-color);
  align-self: stretch;
}

.email, .github, .whatsapp{
  color: white;
}

.Author:link, .Author:visited{
  color: var(--primary-color);
}

.Author:hover, .Author:active{
  color: var(--accent-color);
}

@media screen and (min-width: 922px){
  .logo{
    flex-direction: row;
    align-items: center;
  }
  
  main{
    margin-top: 5.7rem;
  }
  
  .reasons{
    display: grid;
    grid-template-columns: auto auto;
  }
  
  .testimonies{
    flex-direction: row;
  }
  
  .services-container{
    flex-direction: row;
  }
}