/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.3.6,
* Autoprefixer: v10.3.1
* Browsers: last 4 version
*/

:root {
  --background-color: #fcfdfe;
  --main-color: #132779;
  --text-color: #091a5f;
  --link-color: #1E3699;
  --visited-color: #1E3699;
  --active-color: #fcfdfe;
  --project-color: #767676;
  --font-bold: 700;
  --font-normal: 400;
}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

:target:before {
  content: "";
  display: block;
  height: 150px;
  margin: -150px 0 0;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: var(--font-normal);
  color: var(--main-color);
  font-size: 18px;
  line-height: 150%;
  background-color: var(--background-color);
}

h1 {
  font-size: 30px;
  font-weight: var(--font-bold);
  color: var(--main-color);
}

h2 {
  font-size: 24px;
  font-weight: var(--font-bold);
  color: var(--main-color);
}

h3 {
  font-size: 20px;
  font-weight: var(--font-bold);
  color: var(--main-color);
}

a {
  font-size: 20px;
  color: var(--link-color);
  text-decoration: none;
}

/* a:visited {
  color: var(--visited-color);
} */

a:hover,
a:focus {
  text-decoration: underline;
  color: #465EC1;
}

a:active {
  color: var(--active-color);
}


/* ----------------------- Header ----------------------- */
.page-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  position: sticky;
  top: 0;
  width: 95%;
  max-width: 1200px;
  background-color: var(--background-color);
  margin: 0 auto;
  padding: 0 0.8rem;
  border-bottom: 2px solid var(--project-color);;
  overflow: hidden;
  z-index: 300;
}

.page-header__item:last-child {
  -webkit-box-flex: 2;
      -ms-flex-positive: 2;
          flex-grow: 2;
  text-align: right;
}

.navigation-logo {
  -webkit-animation: fadeIn;
          animation: fadeIn;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
}

.navigation-list {
  list-style-type: none;
}

.navigation-list li {
  display: inline-block;
  padding: 5px;
}

.navigation-list__item--active {
  text-decoration: none;
}

/* ----------------------  Profile Section ------------------ */

.profile {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-flex: 1;
      -ms-flex: auto;
          flex: auto;
  font-size: 20px;
  width: 95%;
  max-width: 1200px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 4rem auto;
  padding: 6rem 1rem;
  background-image:
    -webkit-gradient(linear, left top, right top, from(rgba(48, 48, 48, 0.3)), to(rgba(48, 48, 48, 0.7))),
    url('/img/pano.jpg');
  background-image:
    -o-linear-gradient(left, rgba(48, 48, 48, 0.3), rgba(48, 48, 48, 0.7)),
    url('/img/pano.jpg');
  background-image:
    linear-gradient(to right, rgba(48, 48, 48, 0.3), rgba(48, 48, 48, 0.7)),
    url('/img/pano.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem;
}

.profile__portrait {
  width: 20rem;
  margin: 15px 50px 15px 10px;
  border-radius: 50%;
  -webkit-box-shadow: 0 4px 6px 0 rgba(34, 60, 80, 0.16);
          box-shadow: 0 4px 6px 0 rgba(34, 60, 80, 0.16);
  -webkit-transition: all ease-in-out 0.2s;
  -o-transition: all ease-in-out 0.2s;
  transition: all ease-in-out 0.2s;
}

.profile__portrait:hover {
  -webkit-box-shadow: 0 10px 13px 0 rgba(255, 255, 255, 0.3);
          box-shadow: 0 10px 13px 0 rgba(255, 255, 255, 0.3);
}

.profile__text {
  color: var(--background-color);
  margin: 90px 10px 15px 10px;
  padding: 15px;
  text-align: center;
}

.web-text {
  display: inline-block;
  margin: 0;
  background-color: var(--main-color);
  color: var(--background-color);
  font-size: 18px;
}

.web-text:hover {
  -webkit-animation: fadeIn;
          animation: fadeIn;
  -webkit-animation-duration: 2s;
          animation-duration: 2s;
}

/* ------------------- About Section ----------------------- */
.about {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-flex: 1;
      -ms-flex: auto;
          flex: auto;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  gap: 3rem;
  font-size: 20px;
  width: 95%;
  max-width: 1200px;
  margin: 4rem auto;
  border-top: 2px solid var(--project-color);;
  border-bottom: 2px solid var(--project-color);;
  padding: 6rem 2rem;
}

.about__item {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  padding: 0 2rem;
  max-width: 50%;
}

.about-header {
  text-align: center;
}

.about__skills {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  gap: 3rem;
  max-width: 100%;
}
/* ----------------Skill Bar ----------------
.wrapper {
  margin: 0 auto;
}

.skill {
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.skill > p {
  font-size: 18px;
  margin: 0;
  text-align: left;
}

.skill:before{
  width: 100%;
  height: 6px;
  content: "";
  display: block;
  position: absolute;
  background: #8A8A8A;
  bottom: 0;
}

.skill-header {
  color: var(--background-color);
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: var(--link-color);
  display: block;
  position: relative;
}

.skill-bar:hover {
  animation: fadeIn;
  animation-duration: 1.5s;
}

.skill-bar span{
  position: absolute;
  top: -30px;
  padding: 0;
  font-size: 18px;
  padding: 3px 0;
  font-weight: 500;
}

.skill-count {
  right: 0;
}

.skill1 {
  width: 90%;
  right: 0;
}

.skill2 {
  width: 83%;
  right: 0;
}

.skill3 {
  width: 78%;
  right: 0;
}

.skill4 {
  width: 73%;
  right: 0;
}

.skill5 {
  width: 68%;
  right: 0;
}

.skill6 {
  width: 60%;
  right: 0;
}
Skill bar END --------------------*/

/* ---------------- Work Section -------------------- */
.work {
  text-align: center;
  margin: 4rem auto;
  max-width: 1250px;
  padding: 3rem 0.5rem;
}

.work-header {
  padding-bottom: 1rem;
}

/* start grid fallback */
.project-list__item {
  display: inline-block;
  width: 33%;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.image-container {
  position: relative;
  width: 100%;
}

.project-list__text {
  color: var(--background-color);
  text-decoration: none;
}

.project-photo {
  width: 100%;
  height: auto;
  margin: 0;
  overflow: hidden;
  border-radius: 0.5rem;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 98%;
  width: 100%;
  opacity: 0;
  -webkit-transition: 0.4s ease;
  -o-transition: 0.4s ease;
  transition: 0.4s ease;
  background-color: #132779c9;
  border-radius: 0.5rem;

}

.project-text {
  color: var(--background-color);
  position: relative;
  top: 40%;
  left: 50%;
  padding: 1rem;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.image-container:hover .overlay {
  opacity: 1;
  text-decoration: none;
}

.project-list__item {
  background-color: var(--project-color);
  width: auto;
  min-height: auto;
  margin: 0;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.resume {
  margin-top: 5rem;
}

/* end grid fallback */

@supports (display: grid) {
  .project-list {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: minmax(10px, 1fr) 2.5rem minmax(10px, 1fr) 2.5rem minmax(10px, 1fr);
    grid-template-columns: repeat(3, minmax(10px, 1fr));
    grid-gap: 2.5rem;
    margin: 15px 25px;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}

/* ------------------- Case Study ----------------- */
.case-study {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 95%;
  max-width: 1100px;
  margin: 1rem auto;
  padding: 1rem 1rem;
}

.cs-header {
  text-align: center;
}

.cs-text {
  max-width: 500px;
}

.cs-image-1 {
  -webkit-box-flex: 0;
      -ms-flex: 0 1 auto;
          flex: 0 1 auto;
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
  max-width: 650px;
}

.cs-image-2 {
  max-width: 500px;
}

.cs-image-3 {
  max-width: 250px;
}

.cs-image-4 {
  max-width: 650px;
}

.cs-image-5 {
  max-width: 500px;
}

.cs-image-6 {
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
  width: 85%;
}

.cs-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 1rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}


/* ----------------- Contact Page ------------ */

.contact {
  text-align: center;
  width: 95%;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 6rem 1rem 1rem;
  border-top: 2px solid var(--project-color);;
}

.container-out {
  padding: 15px 0; 
  max-width: 400px; 
  margin: 0 auto; 
}

.container-in {
  padding: 30px 0;
  width: 95%; 
  margin: 0 auto; 
  background: var(--project-color); 
  border-radius: 5px; 
}

.contact-form {
  width: 85%; 
  margin: 0 auto; 
}

.contact-form p {
  margin: 0; 
  margin: 5px 0; 
  color: var(--background-color); 
}

.contact-form input {
  border: none; 
  width: 100%; 
  margin-bottom: 15px; 
  padding: 10px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box; 
  border-radius: 3px; 
}

.contact-form textarea {
  width: 100%; 
  padding: 10px; 
  -webkit-box-sizing: border-box; 
          box-sizing: border-box; 
  border-radius: 3px; 
  min-height: 120px;
  margin-bottom: 15px; 
  resize: vertical; 
}


/* ---------------- Footer -------------- */
.page-footer {
  clear: both;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-align: center;
}

.social-media {
  margin: 0.1rem 1rem 4rem;
}

.social-media__anchor,
.social-media__anchor:visited,
.social-media__anchor:active {
  color: var(--background-color);
}

.social-media__anchor:hover {
  color: var(--background-color);
  opacity: 0.7;
}

/* -------------- Buttons ----------------- */
button,
.button {
  background-color: var(--link-color);
  border: none;
  font-family: inherit;
  color: var(--background-color);
  padding: 0.7rem;
  text-decoration: none;
  display: inline-block;
  margin: 0 auto;
  font-size: 18px;
  border-radius: 7px;
}

button:hover,
button:focus,
.button:hover,
.button:focus {
  background-color: #465EC1;
  cursor: pointer;

}

.project-button {
  background-color: var(--link-color);
  border: none;
  font-family: inherit;
  color: var(--background-color);
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: inline-block;
  margin: 2px 2px;
  font-size: 20px;
  border-radius: 7px;
}

.project-button:hover,
.project-button:focus {
  background-color: #465EC1;
  color: var(--background-color);
  text-decoration: none;
  cursor: pointer;
}

/* ---------------- Media Queries ------------ */
@media all and (max-width: 480px) {

  html {
    scroll-padding-top: 6rem;
  }
  
  .page-header {
    padding: 0.1rem 0.1rem;
  }

  .profile {
    margin: 1rem auto;
    padding: 1rem 2rem;
  }

  .about {
    margin: 4rem auto;
    padding: 6rem 2rem;
  }

  .about__item {
    margin: 5px;
    padding: 5px;
    text-align: center;
  }

  .work {
    margin: 1rem auto;
    padding: 1rem 0;
  }

  .project-list {
    grid-gap: 1rem;
    margin: 1rem;
  }

  .contact {
    margin: 1rem auto;
    padding: 4rem 1rem 0;
  }
  
  .page-footer {
    padding: 2rem 1rem;
  }

}

@media all and (max-width: 576px) {
  .project-list {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }

  .page-header {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding-top: 10px;
  }

  .page-header__item:last-child {
    text-align: center;
    margin-right: 40px;
  }

  .navigation-list {
    text-align: center;
    list-style-type: none;
  }

  .navigation-list li {
    display: inline-block;
    padding: 2px;
  }

  .navigation-list__item--active {
    text-decoration: none;
  }

  .profile__portrait {
    width: 18rem;
    margin: 5px;
  }

  .profile__item {
    margin: 10px;
    padding: 10px;
  }

  .profile__text {
    margin: 25px 10px 10px 10px;
  }

  .about {
    margin: 2rem auto;
    padding: 3rem 2rem;
  }

  .about {
    gap: 3rem;
    width: 100%;
  }

  .about__item {
    max-width: 95%;
    text-align: center;
  }

  .about__skills {
    gap: 1rem;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }

  .work {
    margin: 2rem auto;
    padding: 3rem 2rem;
  }

}

@media all and (min-width: 576px) and (max-width: 1024px) {
  .project-list {
    -ms-grid-columns: 1fr 1rem 1fr;
    grid-template-columns: 1fr 1fr;
  }

  .profile__text {
    margin: 25px 10px 10px 10px;
  }

  .about {
    gap: 3rem;
    width: 100%;
  }

  .about__item {
    max-width: 568px;
  }

  .about__skills {
    gap: 8rem;
  }

}

@media all and (max-width: 768px) {
  .project-list {
    grid-gap: 1.5rem;
  }

  .profile__portrait {
    margin: 5px;
  }

  .profile__item {
    margin: 10px;
    padding: 10px;
    text-align: center;
  }

  h1 {
    font-size: 28px;
  }

  .cs-text {
    max-width: 100%;
  }
  
  .cs-image-1 {
    -webkit-box-flex: 0;
        -ms-flex: 0 1 auto;
            flex: 0 1 auto;
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    max-width: 95%;
  }
  
  .cs-image-2 {
    max-width: 95%;
  }
  
  .cs-image-3 {
    max-width: 70%;
  }
  
  .cs-image-4 {
    max-width: 95%;
  }
  
  .cs-image-5 {
    max-width: 99%;
  }

  .cs-image-6 {
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    width: 95%;
  }

}

@media (hover: hover) and (pointer: fine) {
  .profile__portrait:hover {
    -webkit-box-shadow: 0 10px 13px 0 rgba(255, 255, 255, 0.6);
            box-shadow: 0 10px 13px 0 rgba(255, 255, 255, 0.6);
  }

  .image-container:hover .overlay {
    opacity: 1;
  }
}