*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
li{
    list-style: none;
}
a{
    text-decoration: none;
    
}

.container{
    width: 80%;
    margin: auto;
}
.color-w{
    color: white;
}
.color-g{
    color: gray;
}

.dis-flex{
    display: flex;
}
.space-between{
    justify-content: space-between;
}
.margin-top-bottom5{
    margin: 5% 0;
}
.margin-top-bottom2{
    margin: 2% 0;
}
.padding{
    padding: 2%;
}
.shadow{
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15)
}

header{
    height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    animation-name: switch-img;
    animation-duration: 7s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    /* position: sticky; */
}
@keyframes switch-img{
    0%{
         background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(/images/bg1.jpg); 
    }
    50%{
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),  url(/images/bg2.jpg); 
    }
    100%{
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(/images/bg1.jpg); 
    }
}
.left-for-nav{
    width: 20%;
}
.right-for-nav ul li{
    margin-right: 30px;
}
.right-for-nav ul li a,.right-for-nav i{
    color: gray;
}
.right-for-nav ul li a:hover{
    color: white;
}

.right-for-nav ul li:first-child a{
    color: white;
}
nav hr{
    width: 80%;
    margin: auto;
}
/* nav {
    position: sticky;
    top: 0;
} */


.section-1{
    height: 85%;
    position: relative;
}
.section-1 .container{
    margin-top: 10px;
    height: 100%;
    align-items: flex-end;

}
.card-s-1{
    width: 30%;
}
.card-s-1 h2{
    width: 25%;
    border: 5px solid gray;
    aspect-ratio: 1/1;
    border-radius: 50%;
    text-align: center;
    padding-top: 2%;
}
.card-s-1 p{
    margin-left: 5%;
}

.section-2 .container{
    margin-top: 8%;
}

.left-side{
    width: 70%;
}
.right-side{
    width: 27.5%;
}
.links-for-s-2 h3{
    width: 20%;
    margin-top: 1%;
}
.links-for-s-2 ul{
    margin-top: 1%;
    flex: 1;
}
.links-for-s-2 ul li {
    margin-right: 3%;
}
.links-for-s-2 ul li a:hover{
    color: black;
}
.links-for-s-2 ul li a{
    transition: 0.3s;
}
.section-2 .container .left-side hr{
    margin-bottom: 5%;
    border-color: lightgrey;
}
.left-card-for-s-2,.right-card-for-s-2{
    width: 47.5%;
}
.left-card-for-s-2 img{
    width: 100%;
}
.left-card-for-s-2 .sentence{
    width: 100%;
    padding: 5%;
}
.left-card-for-s-2 .sentence p{
    margin: 3% 0;
}
.cards-for-r-card img{
    width: 50%;
    margin-right: 5%;
}  
.sentence-for-card{
    width: 100%;
}
.sentence-for-card h3{
    margin: 3% 0;
}
.directions button{
    border-style: none;
    border: 2px solid gray;
    width: 6%;
    aspect-ratio: 1/1;
    padding: 1%;
    border-radius: 50%;
    margin-right: 2%;
    color: gray;
    background-color: white;
    transition: 0.3s;
    margin-bottom: 2%;
}
.directions button:hover{
    color: white;
    background-color: blue;
    border-color: blue;
}
.card-for-right-side-s-2 img{
    margin-right: 5%;
}
.card-for-right-side-s-2 p{
    width: 100%;
}

.sentence-for-right-side h2{
    margin-bottom: 5%;
}
.sentence-for-right-side p{
    margin: 10% 0;
}

.links-for-s-2:first-child ul li {
    margin-right: 4%;
}
.links-for-s-2:first-child h2{
     width: 20%;
     margin-right: 5%;
}
.links-for-s-2:not(:first-child) h2{
    width: 25%;
    margin-right: 5%;
}
.right-side .left-card-for-s-2 .sentence h3{
    padding: 5%;
}
.card-for-s-3{
    width: 32.5%;
}
.card-for-s-3 img{
    width: 100%;
    
}
.sentence-on-img{
    text-align: center;
    transform: translateY(-120%);
} 
.sentence-on-img h4{
    margin: 5% 0;
    color: white;
}
.sentence-on-img p{
    color: gray;
}
.sentence-on-img button{
    width: 20%;
    margin-bottom: 3%;
    border-style: none;
    padding: 1%;
    transition: 0.3s;
}
.sentence-on-img button:hover{
    background-color: blue;
    color: white;
}
.icons i{
    width: 10%;
    aspect-ratio: 1/1;
    padding: 2%;
    border: 1px solid gray;
    border-radius: 50%;
    transition: 0.3s;
}
.icons i:hover{
    color: white;
    background-color: blue;
    border: 1px solid blue;
}
.right-side .left-card-for-s-2 {
    width: 100%;
}
.right-side .left-card-for-s-2 .sentence{
    padding: 0;
}
.card-fro-s-4 .sentence-for-s-4{
    margin-top: 3%;
    width: 100%;
}
.card-fro-s-4 .sentence-for-s-4 p{
    margin: 2% 0;
}
.card-fro-s-4 p:first-of-type {
    color: gray; 
}

.card-fro-s-4 img{
    width: 27.5%;
    margin-right: 3%;
}
.section-4 .right-side .sentence p:first-of-type {
    color:gray;
}
.section-5 .container{
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn{
    border-style: none;
    width: 12.5%;
    padding: .7%;
    border-radius: 15px;
    border: 1px solid gray;
    background-color: white;
    color: gray;
    transition: 0.3s;
}
.btn:hover{
    color: white;
    background-color: blue;
}
footer{
    background-color: #161616;
}
.s-1for-footer{
    width: 30%;
}
footer h2{
    color: white;
    margin-bottom: 5%;
}
.s-2-for-footer{
    width: 10%;
    display: flex;
    flex-direction: column;
}
.s-2-for-footer  a{
    text-decoration: none;
    color: gray;
    margin: 5% 0;
    transition: 0.3s;
}
.s-2-for-footer  a:hover{
    color: blue;
}
.s-3-for-footer{
    width: 30%;
}
.s-3-for-footer form input{
    padding: 2%;
    border-style: none;
    background-color:#161616;
    border-bottom: 2px solid gray;
    width: 100%;
    color: gray;
}
.s-3-for-footer form input::placeholder{
    color: gray;
}
.section-4 .right-side .left-card-for-s-2 .sentence{
    padding: 4%;
}