@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    transition: all .3s ease-in-out;
}

:root{
    --topHeader: #ffffff;
    --blueColor: #208bff;
    --yellowColor: #f8e857;
    --goldColor: #f7b74d;
    --headingColor: #208bff;
    --textColor: #474747;
    --whiteColor: #ffffff;
}

html{
    font-family: 'Josefin Sans', sans-serif;
    font-size: 62.5%;
    font-weight: 400;
    scroll-behavior: smooth;
}
/* Added to align the footer */
body{
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 14px;
}
main{
    flex-grow: 1;
}

footer{
    width: 100%;
    background-color: #314373;
    padding: 3em 2em;
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
    display: inline-block;
    color: var(--topHeader);
}
/*
p,h1, h2, h3{
    text-transform: uppercase;

} */

h2 {
   font-size: 3rem;
   font-weight: 400;
   color: var(--headingColor);
}

@media(min-width: 768px){
    h2{
        font-size: 3.3rem;
    }
}
h3{
    font-weight: 400;
}

p{
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--textColor);
}

@media(min-width: 768px){
    p{
        font-size: 2rem;
    }
}

section{
    padding: 6rem 0;
}

.btn{
    background-color: var(--yellowColor);
    color: var(--textColor);
    text-transform: uppercase;
    font-size: 1.4rem;
    padding: 1.6rem 2rem;
    border-radius: 2.1rem;
}

.btn:hover{
    box-shadow: 0 .5rem .5rem -.4rem rgba(0 0 0 / .5);
    transform: scale(1.1);
}
/* Setup Container */
.container{
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 .1rem .5em .2rem rgba(0 0 0 / 20%);
}

/* Small Screen */
@media(min-width: 576px){
    .container{
        width: 540px;
    }
}
/* Medium Screen */
@media(min-width: 768px){
    .container{
        width: 750px;
    }
}
/* Large Screen */
@media(min-width: 992px){
    .container{
        width: 960px;
    }
}
/* X-Large Screen */
@media(min-width: 1200px){
    .container{
        width: 1170px;
    }
}
/* XX-Large Screen */
@media(min-width: 1400px){
    .container{
        width: 1320px;
    }
}

/* Start of the Header Section */
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--topHeader);
    padding: 1.2rem 0;
    z-index: 1000;
}

header .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header .container .menu-bar{
    font-size: 1.8rem;
    color: var(--headingColor);
    cursor: pointer;
}
header .container nav {  /*   This is controls the Header */
    position: absolute;
    top: -100rem;
    left: 0;
    width: 100%;
    background-color: var(--topHeader);
    padding: 1.6rem;
}
/* This controls the distance activating the nav bar distance*/
header .container nav.active{
    top: 8.2rem;
}

header .container nav ul li{
    padding-bottom: 1rem;
}
header .container nav ul li a{
    display: block;
    text-transform: capitalize;
    font-size: 1.6rem;
    color: var(--headingColor);
    padding: 1.2rem 1.2rem;
    border-radius: 2rem;
}
header .container nav ul li a.active,
header .container nav ul li a:hover{
    background-color: var(--headingColor);
    color: var(--whiteColor);
}

@media(max-width: 992px){
    header .container{
        width: 100%;
    }
}
@media(min-width: 992px){
    header{
        padding: 0;
    }
    header .container .menu-bar{
        display: none;
    }

    header .container nav{
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        padding: 1rem 0;
    }

    header .container nav ul{
        display: flex;
        align-items: center;
        column-gap: 1rem;
    }

    header .container nav ul li{
        padding-bottom: 0;
    }
}
.images{
    max-width: 30%;
    height: auto;
}

/* End of the Header Section */

/* Start of the Home Section */
.home{

    height: 100%;
    background-position: center;
    background-size: cover;
    position: relative;  
    top: -40px;    
}

.home .container {
    background: url("img/index.png") no-repeat;
    width: 92.5%; /* 92.5%  Original*/
    height: 67rem;/* 67rem  Original*/
    display: absolute;
    align-items: center;
    justify-content: center;
} 
.home .container::before{
    content:"";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: (0,0,0,1.2);
    z-index: 0.1;
    opacity: 0.6;
}

.home .container .home-text{
    position: absolute;
    text-align: center;
    align-items: center;  
}
.home .container .home-text h2{
    font-weight: 300;
    font-size: 1.8rem;
    color: var(--whiteColor);
}
.home .container .home-text h1{
    color: var(--headingColor);
    font-size: 5.8rem;
    margin: 3rem 0;
}

.home .container .home-text p{
    max-width: 67.3rem;
    margin-bottom: 4rem;
}

.home .container .home-img{
    display: none;
    
}
@media(min-width: 768px){  /* Original 768 */
    .home .container{
        justify-content: flex-start;
    }
    .home .container .home-text{
        text-align: left;
    }
    .home .container .home-text h2{
        font-size: 3.3rem;
    }
    .home .container .home-text h1{
        font-size: 6.8rem;
    }
}

@media( min-width: 992px){ /* Original 992px */
    .home .container .home-img{
        display: flex;
    }
.home .container .home-img img{
    height: 69.7rem;
}

@media(min-width: 1024px){
    .home{
        padding-top: 12rem;
    }

}
@media(min-width: 1200px){
    .home{
        padding-top: 12rem;
    }

}
}
/* End of the Home Section */

/* Start of the Services */

.services{
    position: relative;
    border-bottom: .2rem solid #f0f0f0;
        
}

.services .container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(30rem, 100%), 1fr));
    gap: 5rem;    
}

.services .container .serv-box{
    display: flex;
    flex-direction: column;
}
.services .container .serv-box .serv-heading{
    text-align: center;
    margin-bottom: 6rem;    
}
.services .container .serv-box .serv-heading h3{
    font-size: 3.3rem;
    color: var(--blueColor);    
}
.services .container .serv-box .serv-heading h4{
    font-size: 2rem;
    font-weight: 300;
    color: var(--textColor);
    text-transform: uppercase;   
}
.services .container .serv-box .serv-img img{
    max-width: 100%;
}

.services .container .serv-box p{
    max-width: 51.5rem;
    margin-bottom: 6rem;
    margin-top: 6rem;
}
.services .container .serv-box .list{
    margin-bottom: 5rem;
}
.services .container .serv-box .list ul li{
    position: relative;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--blueColor);
    text-transform: capitalize;
    margin-bottom: 2rem;
    margin-left: 1rem;
}

.services .container .serv-box .list ul li::before{
    content: " . ";
    position: absolute;
    top: 0;
    left: -1rem;
}

.services .container .serv-box a{
    max-width: 21.6rem;
    margin: auto;
    margin-bottom: 5rem;
}

.services .like{
    display: none;

}

@media(min-width: 768px){
    .services .container .serv-box .list{
        display: flex;
        gap: 2rem;
    }

    .services .container .serv-box .serv-img{
        text-align: center;
    }

    .services .container .serv-box p{
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .services .like{
        position: absolute;
        bottom: -8rem;
        left: calc(50% - 15rem/2);
        width: 15rem;
        height: 15rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--whiteColor);
        box-shadow: 0 .5rem .5rem rgba(0 0 0 /20%), .1rem 0 1rem rgba(0 0 0 / 20%);
    }

    .services .like i{
        color: var(--headingColor);
        font-size: 3rem;
    }
    .services .like:hover{
        box-shadow: 0 .5rem .5rem -.4rem rgba(0 0 0 / .5);
        transform: scale(1.3);
    }
}

@media(min-width: 992px){
    .services .container .serv-box .list{
        justify-content: space-between;
    }
}

@media(min-width: 1200px){
    .services .container .serv-box .list{
        display: flex;
        justify-content: space-between;
    }

    .services .container .serv-box:nth-child(1) .serv-img{
        text-align: left;
    }

    .services .container .serv-box:nth-child(2) .serv-img{
        text-align: right;
    }

    .services .container .serv-box:nth-child(1) .list{
        padding-right: 4rem;
    }

    .services .container .serv-box:nth-child(2) .list{
        padding-left: 4rem;
    }

    .services .container .serv-box p{
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .services .container .serv-box:nth-child(2) p{
        margin-left: auto;

    }
    .services .container .serv-box .list ul li{
        font-size: 2rem;
    }
}

@media(min-width: 1400px){
    .services .container .serv-box:nth-child(2) .list{
        padding-left: 11rem;

    }
}
    
/* End of the Services */


/* Start of the About section */
.about{
    padding: 2rem 0;
}
.about .container h2{
    text-align: center;
    margin-top: 5rem;
    /* 7rem original  for margin-top*/
}
.about .container .about-container{
    display:grid;
    grid-template-columns: repeat(autofit minmax(min(24.8rem, 100%), 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 8rem;
     /* 8rem original  for margin-top*/
}

.about .container .about-container .box{
    padding: 2rem 1.1rem;
    text-align: center;
    cursor: pointer;
}

.about .container .about-container .box:hover{
    box-shadow: 0 .1rem .5em .2rem rgba(0 0 0 / 20%);
    transform: translateY(2rem);
}

.about .container .about-container .box i{
    font-size: 4rem;
    color: var(--blueColor);
    margin-bottom: 4rem;
}

.about .container .about-container .box h3{
    font-size: 2.8rem;
    color: var(--headingColor);
    text-transform: capitalize;
    position: relative;
}
.about .container .about-container .box h3::before{
    content: "";
    position: absolute;
    bottom: -.5rem;
    right: 27%;
    height: .2rem;
    width: 45%;
    background-color: var(--yellowColor);
}

.about .container .about-container .box h4{
    margin-top: 2rem;
}/* original margin-top was 2rem */
/* End of the About section */

/* Start of the Reviews section */
.reviews{
    background: url(../Qualityservice1.png) no-repeat;
    height: 100%;
    background-position: center;
    background-size: cover;
    position: relative;
}

.reviews::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255 255 255 / .7);
}

.reviews .container h2{
    text-align: center;
    position: relative;
}

.reviews .container .review-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.reviews .review-box{
    position: absolute;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
}

.reviews .review-box.inactive{
    position: relative;
    opacity: 1;
}

.reviews .review-box.active{
    position: relative;
    opacity: 1;
}

.reviews .review-box p{
    max-width: 67.5rem;
    margin: 2rem auto;
}

.reviews .review-box img{
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
} 

.reviews .review-box .profile-desc{
    margin-top: 2rem;
}

.reviews .review-box h5{
    font-size: 1.9rem;
    font-weight: 400;
    color: var(--goldColor);
    text-transform: capitalize;
}

.reviews .review-box span{
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--textColor);
    text-transform: capitalize;
}

.reviews .arrow{
    display: block;
    position: absolute;
    font-size: 1rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .5rem;
    z-index: 1;
    cursor: pointer;
}

.reviews .arrow.left{
    left: 1rem;
}

.reviews .arrow.right{
    right: 1rem;
}

.reviews .arrow:hover{
    color: var(--yellowColor);
}

.reviews .dots{
    text-align: center;
    position: absolute;
    width: 100%;
    bottom: 2rem;
    left: 0;
    display: block;
    height: 1.2rem;
    z-index: 2;
}

.reviews .dots .dot{
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    border: .1rem solid #000;
    margin: 0 1rem;
    position: relative;
    cursor: pointer;
}
.reviews .dots .dot.active,
.reviews .dots .dot:hover{
    background-color: var(--yellowColor);
    border-color: var(--yellowColor);
}

.reviews .dots .dot.active{
    animation: review-scale .5s ease-in-out forwards;

}

.reviews .review-box.active img{
    animation: review-show .5s ease-in-out forwards;
}

.reviews .review-box.active .profile-desc{
    animation: review-content-in .4s ease-in-out forwards;
}

.reviews .review-box.inactive .profile-desc{
    animation: review-content-in .4s ease-in-out forwards;/* This allows to see the name of the person commenting .4s */
}

.reviews .review-box.active p{
    animation: review-content-in .5s ease-in-out forwards;
}

@keyframes review-scale{
    0%{
        box-shadow:0 0 0 0 #eee;
    }
    35% {
        box-shadow: 0 0 1rem .5rem #eee;
    }
    70% {
        box-shadow: 0 0 1rem .5rem var(--goldColor);
    }
    100% {
        box-shadow: 0 0 0 0 var(--goldColor);
    }
}

@keyframes review-content-in{
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes review-content-out{
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

@keyframes review-show{
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: translateY(1);
    }
}
@keyframes review-hide{
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0);
    }
}
@media(min-width: 768px){
    .reviews .arrow{
        font-size: 2rem;
    }
}
/* End  of the Reviews section */

/* Start of the Contact section */
.contact .container{
    text-align: center;
}

.contact .container p{
    max-width: 67.3rem;
    margin: 5rem auto;
}

.contact .container .contact-container{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 2rem;

}

.contact .contact-container .contact-left,
.contact .contact-container .contact-right{
    flex: 1 1 45%;
    padding: 0 2rem;
}

.contact .contact-container .contact-left form .form-group{
    margin-bottom: 1.5rem;

}

.contact .contact-container .contact-left form .form-group input,
.contact .contact-container .contact-left form .form-group textarea{
    width: 100%;
    padding: 1.5rem 1rem;
    border-radius: .5rem;
    border: .1rem solid #f0f0f0f0;
    font-size: 1.6rem;
}

/* End of the Contact section */


/*  Start of the Progress Bar */

.stepper-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
  
    @media (max-width: 768px) {
      font-size: 12px;
    }
  }
  
  .stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 2px solid #ccc;
    width: 100%;
    top: 20px;
    left: -50%;
    z-index: 2;
  }
  
  .stepper-item::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid #ccc;
    width: 100%;
    top: 20px;
    left: 50%;
    z-index: 2;
  }
  
  .stepper-item .step-counter {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    margin-bottom: 6px;
  }
  
  .stepper-item.active {
    font-weight: bold;
  }
  
  .stepper-item.completed .step-counter {
    background-color: #4bb543;
  }
  
  .stepper-item.completed::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid #4bb543;
    width: 100%;
    top: 20px;
    left: 50%;
    z-index: 3;
  }
  
  .stepper-item:first-child::before {
    content: none;
  }
  .stepper-item:last-child::after {
    content: none;
  }

  /* End of the progress bar */

  /* Start of the Containers */
  .container2{
    margin-top: 35rem;
    
  }
 
  /* Start of the Footer Section */

  .footer .footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3.5rem;
    padding: 20px;
  }
  .footer-row .footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
  }
  .footer-col .links {
    margin-top: 20px;
  }
  .footer-col .links li {
    list-style: none;
    margin-bottom: 10px;
  }
  .footer-col .links li a {
    text-decoration: none;
    color: #bfbfbf;
  }
  .footer-col .links li a:hover {
    color: #fff;
  }
  .footer-col p {
    margin: 20px 0;
    color: #bfbfbf;
    max-width: 300px;
  }
  .footer-col form {
    display: flex;
    gap: 5px;
  }
  .footer-col input {
    height: 40px;
    border-radius: 6px;
    background: none;
    width: 100%;
    outline: none;
    border: 1px solid #7489C6 ;
    caret-color: #fff;
    color: #fff;
    padding-left: 10px;
  }
  .footer-col input::placeholder {
    color: #ccc;
  }
   .footer-col form button {
    background: #fff;
    outline: none;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s ease;
  }
  .footer-col form button:hover {
    background: #cecccc;
  }
  .footer-col .icons {
    display: flex;
    margin-top: 30px;
    gap: 30px;
    cursor: pointer;
  }
  .footer-col .icons i {
    color: #afb6c7;
  }
  .footer-col .icons i:hover  {
    color: #fff;
  }
  @media (max-width: 768px) {
    .footer {
      position: relative;
      bottom: 0;
      left: 0;
      transform: none;
      width: 100%;
      border-radius: 0;
    }
    .footer .footer-row {
      padding: 20px;
      gap: 1rem;
    }
    .footer-col form {
      display: block;
    }
    .footer-col form :where(input, button) {
      width: 100%;
    }
    .footer-col form button {
      margin: 10px 0 0 0;
    }
  }

  /* End of the Footer Seciton */