@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,900;1,700&display=swap");

/* Variables */
:root {
  --font-family: "Roboto", sans-serf;
  --bg-color: #2b2a30;
  --accent-color: #fc0e49;
  --text-primary: white;
}
/* Variables end */

html {
  scroll-behavior: smooth;
}

/* CSS Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style-type: none;
}

body {
  font-family: var(--font-family);
}
/* CSS Resets end */

/* Scroll bar reset */

body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-track {
  background: var(--bg-color);
}
body::-webkit-scrollbar-thumb {
  background-color: #7a7265;
  border-radius: 20px;
}

/* Scroll bar reset end */

/* Navbar */
.nav__container {
  position: fixed;
  width: 100%;
  padding-top: 2rem;
  z-index: 100;
  transition: all 250ms ease-in-out;
  height: 78px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) -75%, rgba(0, 0, 0, 0));
}
.centered-nav__container {
  justify-content: center;
  max-width: none;
}
.nav__container__left {
  display: flex;
  cursor: pointer;
}
.nav__container__left__img {
  cursor: pointer;
}
.nav__container__left__name {
  text-transform: uppercase;
  text-align: center;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  padding: 0.5rem;
}
.nav__container__right {
  display: flex;
  justify-content: space-between;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.nav__container__middle {
  display: flex;
  justify-content: space-between;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.nav__link {
  display: inline-block;
  text-decoration: none;
  height: auto;
  background-color: transparent;
  background-size: 200% 200%;
  background-image: linear-gradient(to top, var(--accent-color) 50%, transparent 50%);
  transition: background-position 300ms, color 300ms ease, border-color 300ms ease;
  border: 0px;
  padding: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-bottom: 0.25rem;
  border-radius: 1px;
  height: 70px;
  line-height: 342%;
}
.nav__link__title {
  color: var(--text-primary);
}
.nav__link:hover {
  background-position: 0 100%;
}
.nav__link__active {
  border-bottom: 4px solid var(--accent-color);
}
.header-scroll {
  padding-top: 0px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) -75%, rgba(0, 0, 0, 0.7));
}

/* Navbar ends */

.background-one {
  background-image: url(./public/wood.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100vh;
  position: absolute;
  z-index: -5;
}
.background-two {
  background-image: url(./public/steel.PNG);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 239vh;
  position: absolute;
  top: 100vh;
  z-index: -5;
}
.outer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 25vh;
}
.main-box {
  width: 70vw;
  max-width: 1200px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0px 2px 30px 9px black;
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: white;
}

.bio {
  padding-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-repeat: no-repeat;
  background-image: linear-gradient(0deg, var(--bg-color) -20%, rgba(43, 42, 48, 0.5) 73%);
  height: 74.7vh;
}

.bio__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  width: 50%;
  padding: 1.1rem;
}
.bio__box__title {
  font-size: 50px;
  margin-bottom: var(--bottom-margin);
}
.bio__box__text {
  line-height: 1.7rem;
  font-size: 19px;
}
/* Hero section ends */

/* Skills section */

.skills {
  display: flex;
  flex-direction: column;
  padding-top: 50px;
  align-items: center;
  background: var(--bg-color);
  color: var(--text-primary);
}
.skills__title {
  font-size: 21px;
  margin-bottom: 20px;
}
.skills__container {
  display: flex;
}
.skills__container__icon {
  margin: 5px;
  width: 100px;
}

/* Skills section ends */

/* Projects section */
.projects {
  background-color: var(--bg-color);
  padding: 0px;
  margin-top: 0px;
  padding-top: 54px;
}
.projects__title {
  color: var(--text-primary);
  text-align: center;
  padding: 20px 0px 20px 0px;
  font-size: 46px;
}
.projects__items-col {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
}
.projects__items-col__item {
  display: flex;
  flex-direction: row;
  padding: 0.5rem;
  border-radius: 30px;
  color: var(--text-primary);
  margin-bottom: 2rem;
  border: 2px solid var(--bg-color);
  transition: border 500ms ease-in-out;
}
.projects__items-col__item a {
  text-decoration-color: var(--text-primary);
}
.projects__items-col__item a:hover {
  text-decoration-color: var(--accent-color);
}
.projects__items-col__item:hover {
  border-color: var(--text-primary);
}
.projects__items-col__item__img {
  width: 400px;
  height: 300px;
  border-radius: 10px;
}
.projects__items-col__item__img:hover {
  cursor: pointer;
}
.projects__items-col__item__container {
  padding: 1rem;
}
.projects__items-col__item__container__title {
  padding-bottom: 0.5rem;
  font-size: 26px;
  color: var(--text-primary);
  text-decoration: underline;
  display: inline-block;
}
.projects__items-col__item__container__title:hover {
  cursor: pointer;
  color: var(--accent-color);
  text-decoration: underline;
}
.projects__items-col__item__container__description {
  padding-bottom: 1.5rem;
  font-size: 17px;
  color: var(--text-secondary);
}
.projects__items-col__item__container__title-sub {
  padding-bottom: 0.5rem;
  font-size: 16px;
  color: var(--text-primary);
}
.projects__items-col__item__container__description-sub {
  padding-bottom: 1.5rem;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Projects section ends */

/* Media queries for responsiveness */
@media screen and (max-width: 1200px) {
  .main-box {
    width: 92vw;
  }
}
@media screen and (max-width: 950px) {
  .projects__items-col__item__img {
    width: 300px;
    height: 200px;
  }
}
@media screen and (min-width: 700px) {
  .projects__items-col__item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
  }
}
@media screen and (max-width: 700px) {
  .projects__items-col__item {
    flex-direction: column;
    align-items: center;
  }
  .bio__box {
    width: 75%;
  }
  .projects__items-col__item__img {
    width: auto;
    height: 150px;
  }
}
@media screen and (max-width: 600px) {
  .skills__container__icon {
    width: 75px;
  }
}
