/*Start Variables*/
:root {
  --main-color: #353353;
  --second-color: #5e5c7f;
  --third-color: #ff4c60;
  --main-duration: 0.5s;
  --section-background: #f6f6f6;
  --main-padding: 30px;
  --main-duration: 0.5s;
}
/*End Variables*/

/* Start Global Rule */
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  -webkit-scroll-behavior: smooth;
  -moz-scroll-behavior: smooth;
  scroll-behavior: smooth;
}

body {
  font-family: "Work Sans", sans-serif;
  font-family: "Rubik", sans-serif;
  background-color: #f9f9ff;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: white;
  display: block;
}

h2 a {
  color: inherit;
  display: inline-block;
  cursor: pointer;
  font-weight: lighter;
  font-size: 25px;
}

.container {
  /* We use padding-right and left for when size is small for example for a phone because for a small screen no margin will be do */
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
/* Medium */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
/* Large */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

/* End Global Rule */

/* Start Components */

.section {
  padding-top: 110px;
  position: relative;
}

.section .title {
  position: relative;
}

.section .title h2 {
  color: var(--main-color);
  font-size: 36px;
  margin: 0 0 60px 0;
  margin-left: 14px;
}

.section .title img {
  position: absolute;
  left: 0px;
  top: -14px;
  width: 37px;
  z-index: -1;
}

.h-line::after {
  content: "";
  position: absolute;
  left: 0px;
  bottom: -5px;
  width: 50px;
  height: 2px;
  background-color: var(--third-color);
}

p {
  line-height: 1.6;
  color: var(--main-color);
}

button.up {
  background-color: var(--third-color);
  border: none;
  border-radius: 50px;
  padding: 6px 10px;
  color: white;
  font-size: 30px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  box-shadow: 3px 3px 4px 0px rgb(69 67 96 / 21%);
  cursor: pointer;
  display: none;
}

/* End Components */

/* Start Header */
header {
  position: absolute; /* To make it out I calculated the screen */
  width: 100%;
  left: 0;
  z-index: 2;
  padding: 20px 0px;
  border-bottom: solid 1px rgb(255 255 255 / 10%);
}

header > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

header .logo {
  font-weight: 700;
  font-size: 30px;
}

header .logo span {
  color: var(--third-color);
}

header nav {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

header .bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  padding: 7px;
}

header .bars span {
  width: 20px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50px;
}

@media (min-width: 768px) {
  header nav .bars {
    display: none;
  }
}

header ul {
  display: flex;
}

header ul li {
  display: flex;
  align-items: center;
}

header ul a {
  transition: 0.3s;
  padding-left: 60px;
  font-weight: 700;
}

header ul a:hover {
  color: #ffd15c;
  transition: 0.3s;
}

@media (max-width: 767px) {
  header nav ul {
    display: none;
  }

  /* header nav .bars:hover + ul */
  header nav ul {
    position: absolute;
    top: calc(100% + 20px);
    left: 0px;
    /* display: flex; */
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: calc(100%);
    height: 50vh;
    background-color: #353353f5;
    border-bottom: solid 1px rgb(255 255 255 / 10%);
  }

  header nav .open-ul {
    display: flex;
  }

  header ul a {
    padding-left: 0px;
  }

  header ul li {
    display: block;
  }
}

/* End Header */

/* Start Landing Section */

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 780px;
  background: linear-gradient(114.36deg, #5e5c7f 9.65%, #353353 69.29%);
}

/* To fix the landing section when a phone rotates */
@media screen and (max-height: 435.5px) and (orientation: landscape) {
  .landing {
    height: 500px;
  }
}

.landing .container {
  position: relative;
  top: 75.5px;
  height: calc(100% - 75.5px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing h1 {
  color: white;
  font-weight: 400;
  font-size: 100px;
  margin-top: 0px;
}

.landing h1 span {
  font-weight: 500;
}

.landing .links {
  display: flex;
  font-size: 25px;
  align-items: center;
  justify-content: space-between;
}

.landing .links .button {
  background-color: var(--third-color);
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  transition: 0.3s;
}

.landing .links .button:hover {
  background-color: #d14555;
}

.landing .links .icons a {
  font-size: 30px;
  transition: 0.3s;
}

.landing .links .icons a:hover {
  color: #ffd15c;
}

.landing .links .icons a:not(:first-child) {
  margin-left: 10px;
}

.landing .arrow {
  font-size: 30px;
  margin-bottom: 5px;
  z-index: 2;
}

@media (max-width: 767px) {
  .landing .arrow {
    display: none;
  }
}

@media (max-width: 992px) {
  .landing img {
    width: calc(350px * 0.6);
    margin-top: 20px;
  }

  .landing .container {
    align-items: center;
  }

  .landing .info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
  }

  .landing h1 {
    font-size: 50px;
    margin: 20px 0px;
  }

  .landing .links {
    flex-direction: column;
  }

  .landing .links .button {
    font-size: 20px;
    margin-bottom: 20px;
    padding: 10px 25px;
  }

  .landing .links .icons a {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .landing .container {
    flex-direction: column-reverse;
    align-items: center;
  }

  .landing .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
  }

  /* To fix the landing section when a phone rotates */
  @media (orientation: landscape) {
    .landing {
      height: 757px;
    }
  }
}
/* Emd Landing Section */

/* Start About Me Section */

.about-me .me {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.about-me .me img {
  width: 150px;
  margin-right: 50px;
  border-radius: 50%;
  box-shadow: 0px 5px 20px 0px rgb(69 67 96 / 10%);
}

.about-me .content {
  max-width: 900px;
  min-height: 150px;
  padding: 30px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0px 5px 20px 0px rgb(69 67 96 / 10%);
  color: var(--main-color);
  position: relative;
  font-size: 20px;
}

.about-me .content::before {
  content: "";
  position: absolute;
  left: -40px;
  top: calc(150px / 2 - 15px);
  border: solid;
  border-width: 15px 20px;
  border-color: transparent white transparent transparent;
}
.about-me .content h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 35px 0 30px;
  position: relative;
}

.about-me .skills {
  width: calc(100% - 50px);
}

.about-me .skills span {
  display: inline-block;
  margin: 0px 1px 6px;
  padding: 5px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
}

.my-skills p {
  font-size: 14px;
}

.about-me .skill-bar {
  background-color: #d9d9d9;
  height: 7px;
  border-radius: 50px;
  margin: 0 0 20px;
  position: relative;
}

.about-me .skill-bar span {
  display: block;
  height: 100%;
  border-radius: 50px;
}

.about-me .skill-bar::before {
  content: attr(data-progress);
  position: absolute;
  right: 0px;
  top: -20px;
  color: var(--main-color);
  font-size: 14px;
}

.about-me .v-good span {
  background: #ffd15c;
}

.about-me .good span {
  background: var(--third-color);
}

.about-me .beginner span {
  background: #44d7b6;
}

@media (max-width: 767px) {
  .about-me .me {
    flex-direction: column;
    align-items: center;
  }
  .about-me .me img {
    margin: 0 0 50px;
  }

  .about-me .content {
    max-width: 455px;
  }

  .about-me .content::before {
    left: 50%;
    top: -40px;
    transform: translateX(-50%);
    border-width: 20px 15px;
    border-color: transparent transparent white transparent;
  }
}

/* End About Me Section */

/* Start Resume Section */
.resume .boxs {
  display: grid;
  align-items: start;
  gap: 30px;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  justify-items: center;
}

@media (max-width: 400px) {
  .resume .boxs {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.resume .boxs .box {
  min-width: 200px;
  max-width: 455px;
  padding: 30px;
  border-radius: 20px;
  background-color: white;
  box-shadow: 0px 5px 20px 0px rgb(69 67 96 / 10%);
  position: relative;
}

.resume .boxs .box::before {
  content: "";
  position: absolute;
  top: 76px;
  left: 40px;
  width: 2px;
  height: calc(100% - 60px - 47px);
  background-color: var(--third-color);
}

.resume .boxs .box h3 {
  margin: 0 0 50px;
  position: relative;
  color: var(--main-color);
  font-size: 20px;
}

.resume .boxs .box .timeline-container:not(:last-child) {
  margin-bottom: 50px;
}

.resume .boxs .box .timeline-container {
  padding-left: 50px;
  color: var(--main-color);
  position: relative;
}

.resume .boxs .box .timeline-container::before {
  content: attr(time);
  position: absolute;
  top: -25px;
  left: 50px;
  color: #8b88b1;
  font-size: 14px;
}

.resume .boxs .box .timeline-container i {
  position: absolute;
  top: -30px;
  left: 10px;
  transform: translateX(-50%);
  color: var(--third-color);
  background-color: white;
  font-size: 20px;
  padding: 7px;
}

.resume .boxs .box .timeline-container h4 {
  margin: 10px 0;
}

.certificate-link {
  font-size: 12px;
  color: white;
  background-color: var(--third-color);
  width: fit-content;
  padding: 2px 10px;
  border-radius: 50px;
  transition: var(--main-duration);
  margin-top: 5px;
}

.certificate-link:hover {
  background-color: #d14555;
}

/* End Resume Section */

/* Start Projects Section */

.projects .project-boxes,
.blogs .blog-boxes {
  display: grid;
  align-items: start;
  gap: 30px;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  justify-items: center;
}

@media (max-width: 400px) {
  .projects .project-boxes,
  .blogs .blog-boxes {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
.projects .project-card,
.blogs .blog-card {
  max-width: 350px;
  border-radius: 20px;
  background-color: white;
  box-shadow: 0px 5px 20px 0px rgb(69 67 96 / 10%);
  overflow: hidden;
  transition: var(--main-duration);
}

.projects .project-card .image,
.blogs .blog-card .image {
  position: relative;
}

.projects .project-card .image .tech,
.blogs .blog-card .image .tech {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s linear;
  background-color: rgb(117 108 255 / 73%);
  transition: var(--main-duration);
}

.projects .project-card:hover .tech,
.blogs .blog-card:hover .tech {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 767px) {
  .projects .project-card .image .tech {
    visibility: visible;
    opacity: 1;
    background-color: rgb(117 108 255 / 60%);
  }
}

.projects .project-card .image .tech h4,
.blogs .blog-card .image .tech h4 {
  position: absolute;
  left: 20px;
  top: 0;
  z-index: 1;
  color: white;
  background-color: var(--third-color);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  font-size: 12px;
  padding: 4px 8px;
}

.projects .project-card img,
.blogs .blog-card img {
  width: 100%;
}

.projects .project-card .text,
.blogs .blog-card .text {
  color: var(--main-color);
  padding: 20px;
  position: relative;
}
.projects .project-card .links,
.blogs .blog-card .links {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s linear;
  transition: var(--main-duration);
}

.projects .project-card:hover .links,
.blogs .blog-card:hover .links {
  visibility: visible;
  opacity: 1;
}

.projects .project-card .links a,
.blogs .blog-card .links a {
  width: 50px;
  height: 50px;
  background-color: var(--third-color);
  border-radius: 10px;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
}

.projects .project-card .links a:nth-child(2),
.blogs .blog-card .links a:nth-child(2) {
  margin-left: 10px;
}
/* End Projects Section */

/* Start Blog Section */
.blogs .blog-card {
  cursor: pointer;
}
/* End Blog Section */

/* Start Contact Section */
.contact .info {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
}

@media (max-width: 767px) {
  .contact .info {
    font-size: 20px;
  }
}

.contact .inf {
  padding: 10px;
  border: solid 1px var(--third-color);
  border-radius: 20px;
  max-width: 470px;
  margin: 0 auto 20px;
  overflow: hidden;
}

.contact .info address {
  color: var(--main-color);
}

.contact .info a {
  color: var(--main-color);
}

.contact .info i {
  color: var(--third-color);
  text-align: center;
  margin-bottom: 20px;
}
/* End Contact Section */

/* Start Footer Section */
footer {
  margin-top: 60px;
  background-color: var(--main-color);
  text-align: center;
  color: white;
  padding: 20px 15px;
}

footer span {
  color: var(--third-color);
  font-weight: bold;
}

@media (max-width: 767px) {
  footer {
    font-size: 13px;
  }
}

/* End Footer Section */
