@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Maven+Pro:wght@400..900&display=swap');

:root {
  --header-height: 3rem;
  --font-semi: 600;
  --hue-color: 224;
  --first-color: #4169E1;
  --second-color: #191716;
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  --z-back: -10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: .875rem;
  }
}

*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #D1E3DD;
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
  transition: all 0.5s ease;
  overflow-x: hidden;
}

::selection {
   background-color: var(--first-color);
   color: white;
}

.logo {
   display: flex;
   justify-content: center;
   align-items: center;
   cursor: pointer;
   transition: all 0.3s ease;
}

.logo img {
   width: 1.1rem;
   height: 1.1rem;
   margin-right: 0.5rem;
   transition: all 0.3s ease;
}

.back-to-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 3.5rem;
  right: 10rem;
  background-color: var(--first-color);
  color: white;
  font-size: 2rem;
  padding: 10px;
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 7px 2px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease-out;
  z-index: 1000;
  cursor: pointer;
  user-select: none;
  box-shadow: 0px 7px 25px -7px rgba(65, 105, 225, 0.6);
}

.back-to-top:hover {
  transform: scale(1.05);
  background-color: transparent;
  backdrop-filter: blur(5px);
  border: 1px solid var(--first-color);
  color: var(--first-color)
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

h1, h2, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
  transition: all 0.5s ease;
}
.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
  transition: all 0.5s ease;
}

.text {
  display: inline-block;
  max-width: 27.75rem;
  overflow: hidden;
  border-right: 0.35rem solid var(--first-color);
  white-space: nowrap;
  animation: typing var(--typing-duration) steps(var(--typing-steps), end) alternate-reverse infinite;
}


@keyframes typing {
  from {
      width: 0;
  }
  to {
      width: calc(100% - 1.5rem);;
  }
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #D1E3DD;
  transition: all 0.5s ease;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}

@media screen and (max-width: 767px) {
  #hamburger {
    display: block;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 50%;
    padding: 2rem;
    background-color: rgba(25, 23, 22, 0.7);
    backdrop-filter: blur(7.5px);
    transition: all 0.4s ease;
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    border: 1px solid var(--second-color);
    margin-top: 0.5%;
  }
}

.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__link {
  position: relative;
  color: #fff;
  transition: all 0.3s ease-out;
}

.nav__link:hover {
  position: relative;
}

.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  border-radius: 1rem;
  left: 0;
  top: 1.5rem;
  background-color: var(--first-color);
  transition: all 0.5s ease;
}

.nav__logo {
  color: var(--second-color);
}

.nav__toggle {
  color: var(--second-color);
  transition: all 0.5s ease;
  font-size: 1.5rem;
  cursor: pointer;
}

.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 1.5rem;
  background-color: var(--first-color);
  transition: all 0.5s ease;
}

.show {
  right: -38%;
  animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
  from {
      transform: scale(0);
  }
  to {
      transform: scale(1);
  }
}

.home {
  position: relative;
  row-gap: 5rem;
  padding: 4rem 0 5rem;
}

.home__data {
  align-self: center;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-5);
}

.home__title-color {
  color: var(--first-color);
  transition: all 0.5s ease;
  font-family: "Maven Pro", sans-serif;
}

.home__social {
  display: flex;
  flex-direction: column;
}

.home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.5rem;
  color: var(--second-color);
}

.home__social-icon:hover {
  color: var(--first-color);
  transition: all 0.5s ease;
}

.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
  animation: float 4s ease-in-out infinite;
}

.home__blob {
  fill: var(--first-color);
  transition: all 0.5s ease;
}

.home__blob-img {
  width: 50rem;
  height: 55rem;
  transform: scale(0.6);
  filter: grayscale(1);
}

.button {
  display: inline-block;
  background-color: var(--first-color);
  transition: all 0.5s ease;
  color: #fff;
  padding: 0.75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: 3rem;
  transition: 0.3s;
  user-select: none;
  border: 1px solid var(--first-color);
}

.button:hover {
  box-shadow: 0px 8px 25px -7px rgba(65, 105, 225, 0.6);
  background: transparent;
  border: 1px solid var(--first-color);
  color: var(--first-color);
}

.about__container {
  row-gap: 2rem;
  text-align: center;
}

.about__subtitle {
  margin-bottom: var(--mb-2);
}

.about__img {
  justify-self: center;
  border-radius: 50%;
  width: 15rem;
  height: 15rem;
  user-select: none;
  pointer-events: none;
}

.about__img img {
  width: 200px;
  border-radius: 50%;
}

.skills__container {
  display: grid;
  row-gap: 1rem;
  text-align: center;
}

.skills__subtitle {
  margin-bottom: var(--mb-2);
}

.skills__text {
  margin-bottom: var(--mb-4);
}

.skills__data {
  border: 0.3px solid var(--first-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-weight: var(--font-semi);
  height: 3.3rem;
  padding: 0.5rem 1rem;
  margin-bottom: var(--mb-4);
  border-radius: 3rem;
  box-shadow: 0px 7px 25px -12px rgba(65, 105, 225, 0.6);
}

.skills__icon {
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: var(--first-color);
  transition: all 0.5s ease;
}

.skills__names {
  display: flex;
  align-items: center;
}

.skills__bar {
  position: absolute;
  left: 1rem;
  bottom: 0;
  background-color: var(--first-color);
  transition: all 0.5s ease;
  height: 0.15rem;
  border-radius: 3rem;
  z-index: var(--z-back);
}

.skills__html {
  width: 85%;
}

.skills__css {
  width: 80%;
}

.skills__js {
  width: 75%;
}

.skills__mongodb{
  width: 60%;
}

.skills__react {
  width: 70%;
}

.skills__tailwind {
  width: 55%;
}

.skills__java {
  width: 70%;
}

.skills__python {
  width: 60%;
}

.skills__nodejs {
  width: 60%;
}
.skills__bootstrap {
  width: 60%;
}

.skills__git {
  width: 60%;
}

.home__title-color {
  text-shadow: 0px 4px 30px rgba(14, 36, 49, 0.15);
}

.skills__img {
  margin-top: 3.5rem;
  border-radius: 0.5rem;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
}

.work__container {
  row-gap: 2rem;
}

.btn span:nth-child(2) {
   display: none; 
}

.work__img {
  box-shadow: 0px 2px 25px -7px rgba(65, 105, 225, 0.6);
  border-radius: 0.5rem;
  overflow: hidden;
}

.work__img img {
  transition: 1s;
}

.work__img img:hover {
  transform: scale(1.1);
}

.contact__input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  border-radius: 3rem;
  border: 1.5px solid var(--second-color);
  transition: all 0.5s ease;
  outline: none;
  margin-bottom: var(--mb-4);
  background-color: rgba(255, 255, 255, 0.2);
  padding: 1rem 1.5rem;
  box-shadow: 0px 5px 25px -12px rgba(65, 105, 225, 0.6);
}

.contact__input:focus {
  box-shadow: 0px 5px 25px -10px rgba(65, 105, 225, 0.6);
}

.contact__button {
  display: flex;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
  margin: 0 115px;
  width: 9.123rem;
  height: 3rem;
  justify-content: center;
  align-items: center;
}

.work__img {
  border-radius: 0.8rem;
}

.footer {
  background-color: var(--second-color);
  transition: all 0.5s ease;
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.footer__title {
  font-size: 2rem;
  margin-bottom: var(--mb-4);
}

.footer__social {
  margin-bottom: var(--mb-4);
}

.footer__icon {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 var(--mb-2);
}

.footer__copy {
  font-size: var(--smaller-font-size);
}

@media screen and (max-width: 320px) {
  .home {
    row-gap: 2rem;
  }
  .home__img {
    width: 200px;
  }
}

@media screen and (min-width: 480px) and (max-width: 767px) {
  #nav-menu {
    height: 23rem;
    padding: 1.8rem;
  }
}

@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }

  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }

  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }

  .home__img {
    width: 300px;
    bottom: 25%;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }

  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }

  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }

  .contact__form {
    width: 360px;
    padding-top: 2rem;
  }

  .btn {
    margin-left: auto;
    margin-right: auto;
  }

  .contact__container {
    justify-items: center;
  }
}

@media screen and (min-width: 768px) {

  #hamburger {
    display: none;
  }

  body {
    margin: 0;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .section-title {
    margin-bottom: var(--mb-6);
  }

  .section-title::after {
    width: 80px;
    top: 3rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  
  .nav__list {
    display: flex;
    padding-top: 0;
  }

  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }

  .nav__link {
    color: var(--second-color);
    transition: all 0.5s ease;
  }

  .btn {
    margin-left: auto;
    margin-right: auto;
  }

  .home {
    padding: 8rem 0 2rem;
  }

  .home__img {
    width: 400px;
    bottom: 10%;
  }

  .about__container {
    padding-top: 2rem;
  }


  .about__img {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about__img img {
    width: 300px;
  }

  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
  }

  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }

  .work__img img {
    height: 100%;
    width: 100%;
  }
}

@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }

  .home {
    padding: 10rem 0 2rem;
  }

  .btn {
    margin-left: auto;
    margin-right: auto;
  }

  .home__img {
    width: 450px;
  }
}

@media screen and (max-width: 1270px) {
  .github {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .contact__form{
    transition: all 0.3s ease;
    transform: scale(0.88);
    margin-right: 0.5rem;
  }

  #nav-menu {
    height: 22.7rem;
    padding: 1.8rem;
  }

  #switch {
    margin-left: -0.5rem;
  }

  .professional {
    transform: scale(0.95);
  }

  .about__text {
    transform: scale(0.95);
  }

  .about__subtitle {
    transform: scale(0.95);
  }

  .about__img {
    transform: scale(0.95);
    margin-left: 2.5rem;
  }

  .btn {
    margin-left: auto;
    margin-right: auto;
  }

  .placeholder {
    transition: transform 0.55s ease-out, font-size 0.55s ease-out, background-color 0.5s ease-out, color 0.45s ease-out;
  }

  .back-to-top {
    right: 1.6rem;
    bottom: 1.6rem;
    transform: scale(0.9);
  }

  .button {
    transform: scale(0.86);
    margin-left: -0.6rem;
  }

  #submit {
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
  }
  
  #home {
    margin-top: -1rem;
  }

  .skills__container {
    transform: scale(0.85);
    margin-top: -5rem;
  }

  .skills__data {
    margin-bottom: var(--mb-3);
  }

  .skills__subtitle, .skills__text {
    transform: scale(1.15);
  }

}

@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-20px);
	}
	100% {
		transform: translatey(0px);
	}
}

.container, .container2 {
    width: 55px;
    height: 31px;
    position: relative;
    transform: scale(0.7);
    box-shadow: 0px 5px 25px -10px rgba(65, 105, 225, 0.6);
    border-radius: 3rem;
}

.container {
    margin-right: -0.55rem;
}

.container2 {
    margin-left: -0.55rem;
}

.checkbox, .checkbox2 {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
  
.switch, .switch2 {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #4169E1;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.switch2 {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.switch {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#switch {
    display: flex;
}

.slider, .slider2 {
    width: 27px;
    height: 27px;
    position: absolute;
    left: calc(50% - 27px/2 - 11px);
    top: calc(50% - 27px/2);
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15), 0px 3px 1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-out;
    cursor: pointer;
}
  
.checkbox:checked + .switch {
    background-color: #FF7F11;
}

.checkbox2:checked + .switch2 {
    background-color: #FF7F11;
}
  
.checkbox:checked + .switch .slider {
    left: calc(50% - 27px/2 + 10px);
    top: calc(50% - 27px/2);
}

.checkbox2:checked + .switch2 .slider2 {
    left: calc(50% - 27px/2 + 10px);
    top: calc(50% - 27px/2);
}

.input-contain{
  position: relative;
}

input{
  height: 3.2rem;
  width: 40rem;
  border: 2px solid black;
  border-radius: 1rem;
}

input:focus{
  outline: none;
  border-color: var(--first-color);
}

input:focus + .placeholder-text .placeholder, :not(input[value=""]) + .placeholder-text .placeholder{
  background: linear-gradient(180deg, #D1E3DD 20%, #DAE9E4);
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.5);
  transform: translate(0, -100%);
}

input:focus + .placeholder-text .placeholder{
  border-color: var(--first-color);
  color: var(--first-color);
}

.placeholder-text{
  position: relative;
  top: -3.77rem;
  bottom: 0;
  left: 0;
  right: 0;
  border: 3px solid transparent;
  background-color: transparent;
  pointer-events: none;
  display: flex;
  align-items: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.placeholder{
  position: absolute;
  font-size: 0.9rem;
  transform: translate(0);
  color: rgba(0, 0, 0, 0.7);
  background-color: transparent;
  padding: 0 0.5rem;
  user-select: none;
  transition: transform 0.25s ease-out, font-size 0.25s ease-out, background-color 0.2s ease-out, color 0.15s ease-out;
}

.stuck {
  transform: translateY(-10rem);
}

input, .placeholder-text{
  font-size: 1.4rem;
  padding: 0 1.2rem;
}
  
.textarea {
  border-radius: 1.5rem;
  font-family: var(--body-font);
}

.textarea:focus {
  border-color: var(--first-color);
}

.btn {
  position: relative;
  outline: 0;
  border: 1px solid transparent;
  background-color: var(--first-color);
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 3.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px #488aec31, 0 2px 4px -1px #488aec17;
  transition: all 0.3s ease;
}

.btn span {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all .4s ease;
}

button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn span:nth-child(2),.btn span:nth-child(3) {
  position: absolute;
  top: 40px;
  color: #fff;
}

.btn span:nth-child(2) {
  background-color: var(--first-color);
}

.btn span:nth-child(3) {
  background-color: var(--first-color);
}

.btn:hover {
  box-shadow: 0px 8px 25px -7px rgba(65, 105, 225, 0.6);
}

.btn:hover span:nth-child(2), .btn:focus span:nth-child(3) {
  top: 0;
}

.btn:focus {
  box-shadow: none;
}

.burger {
  position: relative;
  width: 40px;
  height: 30px;
  background: transparent;
  cursor: pointer;
  display: block;
  transform: scale(0.45);
}

.burger input {
  display: none;
}

.burger span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: black;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.burger span:nth-of-type(1) {
  top: 0px;
  transform-origin: left center;
}

.burger span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.burger span:nth-of-type(3) {
  top: 100%;
  transform-origin: left center;
  transform: translateY(-100%);
}

.burger input:checked ~ span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 0px;
  left: 5px;
}

.burger input:checked ~ span:nth-of-type(2) {
  width: 0%;
  opacity: 0;
}

.burger input:checked ~ span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 28px;
  left: 5px;
}

.github {
  position: fixed;
  height: 10rem;
  width: 10rem;
  top: -10.7rem;
  right: -10.7rem;
  background-color: var(--first-color);
  z-index: 500;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  transition: all 0.5s ease;
  cursor: pointer;
}

.github:hover {
  box-shadow: 0px 5px 25px -1px rgba(65, 105, 225, 0.6);
}

.github i {
  z-index: 1000;
  color: #fff;
  font-size: 2.2rem;
  transform: rotate(100deg);
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

.linkedin {
  position: fixed;
  height: 10rem;
  width: 10rem;
  top: -10.7rem;
  left: -10.7rem;
  background-color: var(--first-color);
  z-index: 500;
  transform: rotate(135deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
  cursor: pointer;
}

.linkedin:hover {
  box-shadow: 0px 5px 25px -1px rgba(65, 105, 225, 0.6);
}

.linkedin i {
  z-index: 1000;
  color: #fff;
  font-size: 1.9rem;
  transform: rotate(180deg);
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}