@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

*,
*::before,
*::after {
  font-size: 62.5%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ######################################## LOADING SCREEN #################################################### */

.loading-screen {
  display: inline-block;
  background: black;
  height: 100vh;
  width: 100vmax;
  z-index: 5;
  position: fixed;
  animation: loading3 5s forwards 2s ease-out;
}

@keyframes loading3 {
  from {
    z-index: 5;
  }
  to {
    z-index: -1;
  }
}

.loading-screen .loading-text {
  top: 45%;
  left: 40%;
  font-size: 2rem;
  display: inline-block;
  position: absolute;
}

.loading-screen .loading-text::after {
  content: "";
  font-size: 2rem;
  display: inline-block;
  animation: loading2 3s forwards 2s ease-out;
}

.loading-screen .loading {
  animation: loading1 3s forwards 2s ease-out;
  border: 1px solid green;
  position: absolute;
  width: 2px;
  top: 50%;
  left: 40%;
}

@keyframes loading2 {
  0% {
    content: "0%";
  }
  25% {
    content: "25%";
  }
  50% {
    content: "50%";
  }
  80% {
    content: "100%";
  }
  100% {
    content: "Complete";
  }
}

@keyframes loading1 {
  from {
    width: 1rem;
  }
  to {
    width: 15rem;
  }
}

/* ###### UTILITY CLASS ####### */

.text-white {
  color: #bcbcbc;
}

.bg-black {
  color: #000;
}

/* ################################## HEADER ################################### */

.header {
  height: 95vh;
  width: 100vw; /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #1f1c18,
    #8e0e00
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  font-family: "Roboto", sans-serif;
}

/*###### Nav Bar #####*/
.navbar {
  background: #000000; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #434343,
    #000000
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #434343,
    #000000
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  display: flex;
  justify-content: flex-end;
}

ul {
  list-style-type: none;
}

header .navbar .nav-items {
  margin: 2rem 1rem;
}

.item {
  display: inline-block;
  padding: 0.5rem;
}

a {
  text-decoration: none;
  color: black;
  font-size: 2rem;
  color: #ababab;
}

/* ################################# HOME ######################################### */

.main {
  height: 300px;
  margin: 10rem;
}

.img1 {
  width: 40%;
  float: left;
  margin: 0 0 0 15rem;
}

.main .img1 img {
  max-width: 300px;
  object-fit: cover;
  margin: 0 0 0 0rem;
}

.main .resume {
  float: right;
  width: 40%;
}

.main .resume .name {
  font-size: 4rem;
  text-align: center;
  text-transform: uppercase;
  margin: 1rem 2rem;
}

.main .resume .intro {
  font-size: 1.4rem;
  text-align: center;
  word-spacing: 0.2em;
}

.btn1 {
  display: inline-block;
  text-decoration: none;
  background: black;
  padding: 7px 7px;
  font-size: 1.1rem;
  margin: 5rem 20rem;
  border-radius: 12px;
  max-width: 200px;
}

.btn1:hover {
  background: #232323;
  box-shadow: 0px 0px 20px 0px #232323;
}

.main::after {
  content: "";
  display: block;
  clear: both;
}

/* ####################################### blog ########################################################## */

.blogs {
  background: #000;
  height: 31%;
  padding: 6rem 0rem;
  margin: 0rem 20rem;
}

.blogs-heading {
  color: #8e0e00;
  font-size: 11rem;
  margin: 7rem 0px 6rem 0.5rem;
}

.blog1 {
  height: 190px;
  display: inline-block;
  padding: 3rem;
  background: #8e0e00; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #1f1c18,
    #8e0e00
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #1f1c18,
    #8e0e00
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.blogs .blog1 .blog-img {
  width: 50%;
  float: left;
}

.blogs .blog1 .blog-img img {
  max-width: 350px;
  object-fit: cover;
  margin: 0rem 7rem 0rem 0rem;
}

.blogs .blog1 .blog-text {
  float: right;
  width: 50%;
  font-size: 2rem;
  text-align: center;
}

.blog1::after {
  content: "";
  display: block;
  clear: both;
}

.blog2 {
  display: inline-block;
  margin: 10rem 0;
  padding: 3rem 2rem 3rem 2rem;
  height: 200px;
  background: #8e0e00; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #1f1c18,
    #8e0e00
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #1f1c18,
    #8e0e00
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.blogs .blog2 .blog-img {
  width: 49%;
  /* float: right; */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: space-between; */
}

.blogs .blog2 .blog-img img {
  max-width: 350px;
  object-fit: cover;
  margin: 2rem 0rem 0rem 0rem;
}

.blogs .blog2 .blog-text {
  float: left;
  width: 50%;
  font-size: 2rem;
  text-align: center;
}

.blog2-heading {
  font-size: 2.5rem;
  /* text-decoration: wavy; */
}

.btn2 {
  display: inline-block;
  text-decoration: none;
  background: black;
  padding: 8px 8px;
  font-size: 2rem;
  margin: 2rem 11rem 2rem 11rem;
  border-radius: 12px;
  max-width: 100px;
}

.btn2:hover {
  background: #232323;
  box-shadow: 0px 0px 20px 0px #232323;
}

.blog2::after {
  content: "";
  display: block;
  clear: both;
}

/* ############################################### PROJECT ############################################# */

.projects {
  display: flex;
  width: 80vw;
  /* border: 2px solid blue; */
  flex-direction: column;
  margin: 0rem auto 7rem;
  height: 80rem;
  background: black;
  align-items: center;
  justify-content: space-between;
}
.project-heading {
  width: 64rem;
  /* border: 2px solid yellow; */
  align-self: flex-start;
  text-align: center;
  font-size: 11rem;
  margin: 0 0 0rem 0;
  color: #8e0e00;
}
.project-1 {
  width: 80rem;
  height: 26rem;
  /* border: 2px solid yellow; */
  display: flex;
}

.project-2 {
  width: 80rem;
  height: 27rem;
  /* border: 2px solid yellow; */
  display: flex;
  /* background: red; */
}

.project-img {
  width: 40rem;
  object-fit: cover;
  /* border: 2px solid green; */
  height: 29rem;
}

.project-text {
  display: flex;
  flex-direction: column;
  width: 40rem;
  /* border: 2px solid green; */
  justify-content: space-evenly;
  background: linear-gradient(to right, #1f1c18, #8e0e00);
  font-size: 1rem;
  height: 29rem;
}

.project-content {
  /* border: 2px solid red; */
  text-align: center;
  font-size: 1.4rem;
}

.project-heading2 {
  /* border: 2px solid red; */
  text-align: center;
  height: 4rem;
  font-size: 3rem;
}

.project-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-btn {
  display: inline-block;
  text-decoration: none;
  background: black;
  padding: 7px 7px;
  font-size: 1.5rem;
  margin: 2% 34%;
  border-radius: 12px;
  max-width: 200px;
  color: white;
  /* font-weight: 500; */
}

.project-btn:hover {
  background: #8e0e005b;
  box-shadow: 0px 0px 20px 0px #232323;
}

/* ####################################################### FOOTER ##################################################### */

.footer {
  margin: 0rem 0rem 0rem 0rem;
  background: #8e0e00; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #1f1c18,
    #8e0e00
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #1f1c18,
    #8e0e00
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  padding: 2rem;
  height: 12vh;
}

.social-media-links {
  display: flex;
  justify-content: center;
  font-size: 1rem;
}

.social-media-links a {
  color: black;
}

.email {
  font-size: 2rem;
  display: flex;
  justify-content: center;
  color: black;
}

.footer-icons {
  margin: 2rem;
}

/* ############################### MEDIA QUERIES ######################## */

@media (max-width: 1200px) {
  * {
    font-size: 32%;
    margin: 0;
    padding: 0;
  }

  .header {
    width: 100vw;
    height: 100vh;
  }

  .loading-screen {
    background: black;
    height: 100vh;
    width: 100vw;
    z-index: 5;
    position: fixed;
    animation: loading3 5s forwards 2s ease-out;
  }

  .main {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .resume2 {
    display: flex;
    flex-direction: column;
    margin: auto;
    align-items: center;
  }

  .img1 {
    width: 35rem;
    float: none;
    margin: 0;
  }

  .main .img1 img {
    max-width: 35rem;
    object-fit: cover;
    /* margin: 0 4.2rem; */
  }

  .main .resume {
    float: none;
    width: 40%;
  }

  .main .resume .name {
    width: 40rem;
    font-size: 5rem;
    text-align: center;
    text-transform: uppercase;
    margin: 4rem 2rem;
  }

  .main .resume .intro {
    height: 20rem;
    width: 40rem;
    font-size: 3rem;
    text-align: center;
    word-spacing: 0.2em;
    margin: 0 1.5rem;
  }

  .btn1 {
    display: block;
    text-decoration: none;
    background: black;
    padding: 7px 7px;
    font-size: 1.8rem;
    margin: 24rem auto 0;
    border-radius: 12px;
    width: 18rem;
  }

  .blogs {
    width: 50rem;
    height: 169rem;
    padding: 5rem 0rem 0rem 0rem;
    margin: 0rem auto;
  }
  .blog1 {
    height: 50rem;
    width: 40rem;
    display: flex;
    flex-direction: column;
    margin: 0rem 1.5rem;
    /* padding: 0rem 4rem; */
    align-items: center;
  }

  .blogs .blog-img {
    float: none;
    display: block;
    width: 25px;
  }

  .blogs .blog2 .blog-img {
    /* display: flex; */
    width: 88%;
    height: 34%;
    /* border: 2px solid blue; */
    align-items: center;
    flex-direction: column;
  }

  .blogs .blog1 .blog-img img {
    max-width: 30rem;
    /* display: block; */
    /* margin: 0rem 0rem 0rem 0rem; */
    transform: translate(-17%, 24%);
  }

  .blogs .blog1 .blog-text {
    /* display: block; */
    float: none;
    width: 30rem;
    margin: 8rem 0rem 0rem 0rem;
  }

  .blog2 {
    height: 43rem;
    width: 40rem;
    display: flex;
    flex-direction: column-reverse;
    margin: 22rem 1.5rem 0rem;
    align-items: center;
  }

  .blogs .blog-img {
    float: none;
    display: block;
    width: 25px;
  }

  .blogs .blog2 .blog-img img {
    max-width: 30rem;
    /* display: block; */
    margin: 1rem 0rem 0rem 0rem;
    transform: translate(0%, 13%);
  }

  .blogs .blog2 .blog-text {
    /* display: block; */
    float: none;
    width: 30rem;
    margin: 3rem 0rem 0rem 0rem;
  }
  .btn2 {
    display: inline-block;
    text-decoration: none;
    background: black;
    padding: 8px 8px;
    font-size: 2rem;
    margin: 1rem 0rem;
    border-radius: 12px;
    max-width: 100px;
  }

  .blog2 .btn2 {
    transform: translate(-1%, 24%);
    margin: 1rem 0rem 0rem 0rem;
  }

  .footer {
    margin: 1rem 0 0 0;
  }

  .projects {
    height: 183rem;
    /* border: 2px solid blue; */
    justify-content: space-evenly;
  }

  .project-heading {
    /* border: 2px solid blue; */
    align-self: center;
    width: 50rem;
  }

  .project-1 {
    flex-direction: column;
    /* margin: 5rem; */
    width: 44rem;
    height: 69rem;
    /* border: 2px solid yellow; */
    align-items: center;
  }

  .project-2 {
    flex-direction: column;
    /* margin: 5rem; */
    width: 44rem;
    height: 69rem;
    /* border: 2px solid yellow; */
    align-items: center;
  }
}

@media (max-width: 400px) {
  * {
    font-size: 25%;
  }

  .header {
    height: 94vh;
  }

  .btn1 {
    margin: 25rem auto 0;
    font-size: 1.8rem;
    max-width: 18rem;
  }
}
