/* FONT FACE */

/* @import url("..ttps://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap"); */

@font-face {
  font-family: "Poppins";
  src: url("../web fonts/Poppins-ExtraBold.woff2") format("woff2"),
    url("../web fonts/Poppins-ExtraBold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("../web fonts/Ubuntu-Bold.woff2") format("woff2"),
    url("../web fonts/Ubuntu-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("../web fonts/Ubuntu-Medium.woff2") format("woff2"),
    url("../web fonts/Ubuntu-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("../web fonts/Ubuntu-Regular.woff2") format("woff2"),
    url("../web fonts/Ubuntu-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../web fonts/Poppins-Regular.woff2") format("woff2"),
    url("../web fonts/Poppins-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../web fonts/Poppins-Medium.woff2") format("woff2"),
    url("../web fonts/Poppins-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../web fonts/Poppins-SemiBold.woff2") format("woff2"),
    url("../web fonts/Poppins-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../web fonts/Poppins-Bold.woff2") format("woff2"),
    url("../web fonts/Poppins-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/*------------------ Core styles --------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* overflow-x: hidden; */
}
html {
  scroll-behavior: smooth;
}
.container {
  width: 100%;
  max-width: 1480px;
  padding-left: 80px;
  padding-right: 80px;
}
.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.to-top {
  /* display: inline-block; */
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 50px;
  height: 50px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 25px;
  height: 25px;
  border-radius: 4px;
  background-color: crimson;
  animation: topdown 0.5s linear;
}

i.fa-arrow-up {
  position: absolute;
  color: #fff;
  /* text-align: center; */
  animation: topdown 0.7s ease infinite;
}

@keyframes topdown {
  0% {
    top: 0.6px;
  }
  60% {
    bottom: 0.6px;
  }
}

section {
  /* max-height: 120vh; */
  padding-top: 120px;
  padding-bottom: 100px;
}
a{
  text-decoration: none;
}
.btn {
  font-family: "Poppins", sans-serif;
  border: none;
  outline: none;
  background-color: crimson;
  border: 1px solid crimson;
  color: #fff;
  font-size: 18px;
  padding: 10px 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease-out;
}
.btn:hover {
  background-color: transparent;
  color: crimson;
  border: 1px solid crimson;
}
.section-title {
  font-family: "Ubuntu", sans-serif;
  font-size: 50px;
  position: relative;
  /* display: inline-block; */
  text-align: center;
}
.section-title:before {
  content: "";
  position: absolute;
  width: 220px;
  height: 3px;
  background-color: #000;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
}
.section-title:after {
  content: "who i am";
  position: absolute;
  font-size: 25px;
  bottom: -30px;
  color: crimson;
  background-color: #fff;
  padding: 0 5px;
  left: 50%;
  transform: translateX(-50%);
}

/*------------------ Header styles --------------- */

.header {
  width: 100%;
  background-color: #000;
  padding: 30px 0;
  position: fixed;
  z-index: 100;
  font-family: "Ubuntu", sans-serif;
  transition: background 0.7s linear;
}
.header.header-white {
  background-color: crimson;
}
.header.header-white .brand-name,
.header.header-white .navigation-item {
  color: #fff;
}
.brand-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}
.brand-name span {
  color: #4a4d74;
}
header nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
}
header .navigation-item {
  position: relative;
  text-decoration: none;
  color: white;
  margin-right: 30px;
  font-size: 18px;
  letter-spacing: 0.6px;
  transition: all 0.4s ease-in;
}
.fa-bars {
  color: #fff;
  display: none;
}
header .navigation-item::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: rgb(221, 12, 29);
  border-radius: 3px;
  bottom: -8px;
  transform: scale(0);
  transition: all 0.4s ease-in;
}
header .navigation-item :nth-last-child() {
  margin-left: 0;
}
header .navigation-item:hover::before {
  transform: scale(1);
}
header nav ul .navigation-item:hover {
  color: crimson;
}
.header-white nav ul .navigation-item:hover {
  color: #4a4d74;
}

/*------------------ Main section styles --------------- */

.main {
  height: 100vh;
  padding-bottom: 0;
  padding-top: 200px;
  background-color: #000;
  color: #fff;
  font-family: "Ubuntu", sans-serif;
}

.main .main-info h5 {
  font-size: 1.5rem;
  font-weight: 400;
}
.main .main-info h1 {
  margin: 10px 0;
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.main .main-info h4 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.main .main-info h4 span {
  font-size: 2.25rem;
  color: crimson;
}

.main .socials {
  width: 80%;
}
.main .socials .social i {
  color: #fff;
}

/* About Section Styles */
.about {
  padding-bottom: 50px;
  background-color: #fff;
}
.about .about-content {
  margin-top: 50px;
}
.about-content .about-image .img-box {
  width: 400px;
  height: 400px;
}
.about-content .about-image .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-content .about-info {
  width: 55%;
}
.about-info h3 span {
  color: crimson;
}
.about .btn{
  display: inline-block;
  margin-top: 15px;
}

/*------------------ Services Section styles --------------- */

.services {
  background-color: #000;
  color: #fff;
  padding-bottom: 50px;
}
.services .section-title::before {
  content: "";
  background-color: #fff;
}
.services .section-title::after {
  content: "what i provide";
  background-color: #000;
}
.services-cards {
  padding-top: 90px;
  margin-bottom: 80px;
  overflow: hidden;
  box-sizing: border-box;
  flex-wrap: wrap;
}
.services-card {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  flex: 0 0 26.33%;
  text-align: center;
  margin-top: 40px;
  margin-left: 20px;
  padding: 30px 20px;
  max-height: 400px;
  border-radius: 3px;
  cursor: pointer;
  background-color: rgba(36, 35, 35, 0.6);
  transition: background 0.3s ease-out;
}
.services-card:nth-child(1),
.services-card:nth-child(4) {
  margin-left: 0;
}
.services-card i {
  color: crimson;
  font-size: 1.7rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}
.services-card h4 {
  font-size: 1.5rem;
  padding: 20px 0;
}
.services-card p {
  margin: 0 auto;
  font-size: 18px;
  line-height: 27px;
}
.services-card:hover {
  background-color: crimson;
  color: #fff;
}
.services-card:hover i {
  color: #fff;
}
.services-card .box {
  transition: all 0.3s ease;
}
.services-card .box:hover {
  transform: scale(1.05);
}

/*------------------ Skills Section styles --------------- */

.skills .section-title:after {
  content: "what i know";
}
.skills .container {
  padding-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.about-info h3,
.contact .contact-info h3 {
  font-size: 1.6rem;
  font-family: "Poppins", sans-serif;
}
.about-info p,
.contact .contact-info .contact-info_text {
  font-family: "Poppins", sans-serif;
  padding: 15px 0;
  line-height: 27px;
  font-style: 18px;
}
.skills-info{
  padding: 40px 0;
}
.skills-info h3{
  font-size: 2.2rem;
  font-family: "Poppins", sans-serif;
  margin-bottom: 10px;

}
.skills-info .skill {
  margin:30px 0;
}
.skill svg, img{
  width: 180px;
  height: 180px;
  padding: 30px;
  cursor: pointer;
  object-fit: cover;
}



/*------------------ Portfolio Section styles --------------- */

.portfolio {
  background-color: #000;
  color: #fff;
  width: 100%;
}
.portfolio .section-title::before {
  content: "";
  background-color: #fff;
}
.portfolio .section-title::after {
  content: "what i do";
  background-color: #000;
}

.portfolio .works {
  display: flex;
  flex-wrap: wrap;
  padding-top: 100px;
}
.portfolio .work {
  position: relative;
  flex: 0 0 30%;
  max-width: 33.3%;
  padding: 15px;
  width: 300px;
  height: 300px;
  flex-wrap: wrap;
}
.portfolio .work:not(:last-child) {
  margin-right: 2rem;
}
.overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  transition: all 0.7s ease;
}
.overlay-text {
  display: none;
}

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work:hover .overlay {
  display: block;
}
.work:hover .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.7s ease;
}
.overlay-text a {
  text-decoration: none;
  display: block;
  color: #fff;
  font-size: 1.5rem;
  font-family: "Poppins";
  transition: all 0.7s ease;
}

/*------------------ Contact Section styles --------------- */

.contact {
  padding-bottom: 0;
  font-family: "Poppins", sans-serif;
}
.contact .section-title::after {
  content: "get in touch";
}
.contact .container {
  padding-top: 120px;
  margin-bottom: 80px;
}
.contact .contact-info {
  flex: 0 0 50%;
  margin-right: 40px;
}

.contact-form {
  margin-top: 0;
  flex: 0 0 40%;
}
.contact-form input,
textarea {
  padding: 10px 0 10px 10px;
  font-size: 1rem;
  border: 1px solid rgb(173, 173, 173);
  outline: none;
  border-radius: 3px;
  margin-bottom: 20px;
}
.contact-form input::placeholder,
textarea::placeholder {
  color: rgb(131, 131, 131);
}
.contact-form .input {
  margin-top: 1rem;
}
.contact-form .input input {
  width: 45%;
}
.contact-form .input .left {
  margin-right: 20px;
}
.contact-form .message,
textarea {
  width: 100%;
  margin-bottom: 20px;
}
.contact-form .btn {
  margin-top: 20px;
}

.contact .contact-about .box {
  flex: 0 0 40%;
  padding-top: 20px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.contact .contact-about .box i {
  display: inline-block;
  color: crimson;
  font-size: 1.5rem;
  margin-right: 12px;
}
.contact .contact-about .box .info h5 {
  margin-bottom: 5px;
}
.socials {
  flex: 0 0 40%;
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.socials .social i {
  font-size: 2.5rem;
  color: crimson;
  cursor: pointer;
  transition: color 0.2s ease;
}

.socials .social:hover i {
  color: rgb(212, 115, 134);
}

/*------------------ Footer Styles --------------- */

footer {
  font-family: "Ubuntu", sans-serif;
  background-color: #000;
  padding: 15px 0;
  text-align: center;
  color: #fff;
}
footer .creator {
  color: crimson;
}

/*------------------ Media queries --------------- */

@media (max-width: 1130px) {
  .about .about-content .left img {
    height: 350px;
    width: 350px;
  }
  .container {
    padding: 0 50px;
  }
  .main .main-image {
    display: none;
  }
  .skills .skills-stats {
    flex: 0 0 35%;
  }
}
@media (max-width: 1010px) {
  .menu-btn {
    display: block;
    z-index: 999;
  }
  .menu-btn i.active:before {
    content: "\f00d";
  }
  .navbar .menu {
    position: fixed;
    height: 100vh;
    width: 100%;
    left: -100%;
    top: 0;
    background: #111;
    text-align: center;
    padding-top: 80px;
    transition: all 0.3s ease;
  }
  .navbar .menu.active {
    left: 0;
  }
  .navbar .menu li {
    display: block;
  }
  .navbar .menu li a {
    display: inline-block;
    margin: 20px 0;
    font-size: 25px;
  }
  .main .main-info h1 {
    font-size: 70px;
  }
  .main .main-info h4 {
    font-size: 35px;
  }
  .main .btn {
    font-size: 23px;
    padding: 10px 30px;
  }
  .container {
    max-width: 930px;
  }
  .about .about-content {
    text-align: center;
  }
  .about .about-content > div {
    width: 100%;
  }
  .about .about-content .about-image {
    display: flex;
    justify-content: center;
    margin: 0 auto 60px;
  }
  .about .about-content .about-info {
    flex: 100%;
  }
  .services .services-cards .services-card {
    flex: 0 0 45%;
    margin-bottom: 20px;
  }
  .skills .container {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: auto;
  }
  .skills .skills-info {
    flex: 0 0 80%;
  }
  .skills .skills-stats {
    flex: 0 0 80%;
  }
  .portfolio .works {
    justify-content: center;
  }
  .portfolio .work {
    position: relative;
    flex: 0 0 45%;
    max-width: 50%;
    padding: 15px;
    width: 250px;
    height: 250px;
    flex-wrap: wrap;
  }
  .portfolio .work:not(:last-child) {
    margin-right: 1rem;
  }
}
@media screen and (max-width: 960px) {
  .container {
    padding-left: 50px;
    padding-right: 50px;
  }
  .navigation {
    background-color: #111;
    position: absolute;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    list-style: none;
    text-align: center;
    padding-top: 80px;
    display: none;
  }
  .navigation.active {
    display: block;
  }
  header nav ul li {
    margin-bottom: 30px;
    font-size: 30px;
    letter-spacing: 2px;
  }
  .fa-bars {
    display: block;
    z-index: 9999;
    color: #fff;
  }
}
@media (max-width: 690px) {
  .container {
    padding: 0 23px;
  }
  .main .main-info h1 {
    font-size: 55px;
  }
  .main .main-info h4 {
    font-size: 32px;
  }
  .main .btn {
    font-size: 20px;
  }
  .services .services-cards {
    justify-content: center;
  }
  .services .services-cards .services-card {
    flex: 0 0 70%;
    margin: auto 0;
    margin-bottom: 20px;
  }
}
@media (max-width: 580px) {
  .main .main-info h1 {
    font-size: 50px;
  }
  .main .main-info h4 {
    font-size: 27px;
  }
  .about .about-content .about-info p,
  .skills .container .skills-info p {
    font-size: 19px;
  }
  .portfolio .works {
    justify-content: center;
  }
  .portfolio .work {
    position: relative;
    flex: 0 0 80%;
    padding: 15px;
    width: 250px;
    height: 250px;
    flex-wrap: wrap;
  }
  .contact .container {
    justify-content: center;
  }
  .contact .contact-info,
  .contact-form {
    flex: 0 0 80%;
    margin: auto 0;
  }
}
