*{
  margin: 0;
  padding: 0;
  font-family: 'poppins', sans-serif;
}
body{
  background-color: black;
  color: #fff;
}
html{
  scroll-behavior: smooth;
}
#header{
  width: 100%;
  height: 70vh;
  background-image: url(img/Essential-Tech.jpg);
  background-size: cover;
  background-position: center;
}

.container{
  position: relative;
  padding: 10px 5%;
}
nav{
  position: absolute;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  right: 0;
  padding: 10px 5%;
}

nav ul li{
  display: inline-block;
  list-style: none;
  margin: 5px 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

nav ul li a::after{
  content: '';
  width: 0;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: -4px;
  transition: 0.5s;
}

nav ul li a:hover::after{
  width: 90%;
}

.header-text{
  margin-top: 14%;
  font-size: 20px;
}
.header-text h1{
  font-size: 35px;
  margin-top: 20px;
}
.header-text h1 span{
  color: #ff004f;
}
/*---------------------About--------------------------*/
#about{
  padding: 20px 0;
  color: #ababab;
}
.row{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.about-col-1{
  flex-basis: 30%;
}
.about-col-1 img{
  width: 100%;
  height: 700px;
  border-radius: 12px;
}
.about-col-2{
  flex-basis: 67%;
}

h2{
  font-style: oblique;
  font-size: 25px;
  margin: 10px;
}

.sub-title{
  font-size: 35px;
  font-weight: 600;
  color: #fff;
  margin: 18px 0;
}

.tab-titles{
  display: flex;
  margin: 15px 0 30px;
  padding-left: 40px;

}

.tab-links{
  margin-right: 45px;
  font-size: 24px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.tab-links::after{
  content: "";
  width: 0;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.5s;
}

.tab-links.active-link::after{
  width: 50%;
}

.tab-contents ul li{
  list-style: none;
  margin: 10px 0;
}

.tab-contents ul li span{
  color: #c6003f;
  font-size: 18px;
}
.tab-contents{
  display: none;
}
.tab-contents.active-tab{
  display: block;
}

/*-----------------Services------------------*/
#services{
  padding: 30px 0;
}
.services-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 34px;
  margin-top: 38px;
}
.services-list div{
  background-color: rgb(45, 45, 45);
  padding: 30px;
  font-size: 17px;
  font-weight: 300;
  border-radius: 10px;
  transition: background 0.6s, transform 0.5s;
}
.services-list div i{
  font-size: 44px;
  margin-bottom: 30px;
}

.services-list div h2{
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 15px;
}
.services-list div a{
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  margin-top: 20px;
  display: inline-block;
}
.services-list div:hover{
  background: #c6003f;
  transform: translateY(-10px);
}

/* -----------------------Portfolio--------------------*/

#portfolio{
  padding: 30px 0;
}
.work-list{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 80px;
  margin-top: 35px;
}
.work{
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  max-width: 500px;
}
.work img{
  width: 100%;
  height: 400px;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s;
}
.layer{
  width: 100%;
  height: 0;
  background: linear-gradient(rgb(0,0,0,0.6), #ff004f);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 5px;
  text-align: center;
  transition: height 0.6s;

}
.layer h3{
  font-weight: 700;
  margin-bottom: 15px;
}
.layer p{
  font-size: 16px;
  max-width: 80%;
}
.layer a{
  margin-top: 18px;
  color: #ff004f;
  text-decoration: none;
  font-size: 14px;
  line-height: 38px;
  background: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-align: center;
}
.work:hover img{
  transform: scale(1.1);
}
.work:hover .layer{
  height: 100%;
}
.btn{
  display: block;
  margin: 25px auto;
  width: fit-content;
  border: 1px solid #ff004f;
  padding: 12px 23px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  transition: background 0.7s;
}
.btn:hover{
  background: #ff004f;
}

/* ----------------------Contact--------------------- */
.contact{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contact p {
  margin-bottom: 15px;
}
.contact p i{
  color: #ff004f;
  margin-right: 8px;
  font-size: 18px;
}
.social-icons{
  margin-top: 10px;
}
.social-icons a{
  text-decoration: none;
  font-size: 20px;
  margin-right: 10px;
  color: #ababab;
  display: inline-block;
  transition: transform 0.5s;
}
.social-icons a:hover{
  color: #ff004f;
  transform: translateY(-3px);
}
nav .fa-solid{
  display: none;
}
.thanks{
  width: 100%;
  text-align: center;
  padding: 15px 0;
  background: #262626;
  font-weight: 300;
  margin-top: 15px;
}
.thanks span {
  color: goldenrod;
}