* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

:root {
  --bg-color: #0c151d;
  --text-color: #fff;
  --main-color: #ffe071;
  --other-color: #a3abb2;
  --second-color: #171f26;

  --h1-font-size: 42px;

}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body {
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

header {
  width: 100%;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20%;
  z-index: 100;
  background: transparent;
}

.logo i{
  height: 60px;
  width: 60px;
  background-color: var(--second-color);
  color: var(--other-color);
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.55s ease;
}

.logo i:hover{
  transform: rotate(360deg);
  color: var(--text-color);
}

section {
  padding: 60px 20%;
}

.all {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}



.main-img img {
  position: relative;
  width: 100%;
  border-radius: 50%;
  background: var(--second-color);
  padding: 10px;
}

.main-text h1 {
  font-size: var(--h1-font-size);
  font-weight: 600;
  line-height: 1;
}

.main-text h4 {
  margin: 5px 0 10px 0;
  font-size: 22px;
  font-weight: 500;
  color: var(--other-color);
}

.main-text p {
  width: 100%;
  word-wrap: break-word;
  margin: 0 0 12px 0;
  font-size: 14px;
  text-align: match-parent;
  font-weight: 500;
  color: var(--other-color);
}

.social i{
  display: inline-block;
  font-size: 25px;
  color: var(--other-color);
  margin-right: 15px;
  transition: all .55s ease;
}

.social i:hover{
  transform: scale(1.08) translateY(-4px);
  color: var(--main-color);
}

.row {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 1rem;
}

.main-row p{
  font-size: 17px;
  color: var(--other-color);
}

.button {
  margin-top: 5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}

.btn1 {
  display: inline-block;
  padding: 16px 38px;
  background: var(--main-color);
  color: var(--bg-color);
  font-size: 17px;
  font-weight: 500;
  border-radius: 10px;
  transition: all .55s;
}

.btn1:hover{
  background: var(--second-color);
  color: var(--text-color);
}

.btn2 {
  display: inline-block;
  padding: 16px 38px;
  background: var(--second-color);
  color: var(--text-color);
  font-size: 17px;
  font-weight: 500;
  border-radius: 10px;
  transition: all .55s;
}

.btn2:hover {
  background: var(--main-color);
  color: var(--bg-color);
}

.center{
  margin-top: 6rem;
  background: var(--second-color);
  color: var(--other-color);
  padding: 35px;
  border-radius: 10px;
  text-align: center;

}

.center h3 {
  font-size: 19px;
  font-weight: 500;
  color: var(--text-color);

}

.portfolio {
  margin-top: 4rem;
  display: grid;
  flex-wrap: wrap;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  align-items: center;
  gap: 2rem;
}

.portfolio-content {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}
.portfolio-content img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.6s;
}

.layer {
  width: 100%;
  height: 0;
  background: Linear-gradient(rgba(0, 0, 0, 0.8), var(--second-color));
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  transition: height 0.5s;
}

.layer h5 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.layer i {
  font-size: 18px;
  background: var(--main-color);
  color: var(--bg-color);
  margin-right: 15px;
  transition: all .55s ease;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portfolio-content:hover img {
  transform: scale(1.1);
}

.portfolio-content:hover .layer {
  height: 100%;
}

.bottom-text p {
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: var(--other-color);
  margin-top: 5rem;
}

@media (max-width: 1920px){
  section {
    padding: 50px 36%;
  }
}

@media (max-width: 1770px){
  section {
    padding: 50px 32%;
  }
}

@media (max-width: 1580px){
  section {
    padding: 50px 30%;
  }
}

@media (max-width: 1420px){
  section {
    padding: 50px 28%;
  }
}

@media (max-width: 1300px){
  section {
    padding: 50px 24%;
  }
}

@media (max-width: 1120px){
  .box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .main-img {
    width: 60%;
  }

  .main-img img {
    margin-bottom: 20px;
  }

  .button {
    gap: 2rem;
  }

  .btn1 {
    padding: 12px 20px;
  }

  .btn2 {
    padding: 12px 20px;
  }
}

@media (max-width: 750px){
  section {
    padding: 50px 14%;
  }
}

@media (max-width: 600px){
  section {
    padding: 50px 7%;
  }
}