:root {
  --color-white: white;
  --color-greenyellow: #adff2f;
  --color-black: black;
  --color-bg-portfolio: linear-gradient(to top, #ffcb03, #74d11d);
  --color-bg-portfolio2: linear-gradient(to top left, #ffb003, #ffcb03);
  --color-bg-portfolio-element: linear-gradient(
    to bottom right,
    #ffb003,
    #ffcb03
  );
  --text-shadow: 4px 3px 5px var(--color-black);
}

* {
  margin: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

html {
  font-size: 16px;
  min-width: 100vmin;
}

body {
  color: var(--color-white);
  background-color: var(--color-black);
}

li {
  list-style: none;
}

.about_me {
  position: fixed;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  width: 70%;
  font-size: 2rem;
  background-image: var(--color-bg-portfolio);
  color: black;
  padding: 2.5rem;
  border-radius: 7px;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: 10;
  animation: slideIn 0.3s;
  animation-timing-function: ease;
}

.slideOut {
  animation: slideOut 0.5s;
}

.close_about {
  text-decoration: none;
  font-size: 4rem;
  color: white;
  background-color: black;
  border: 2px solid black;
  border-radius: 5px;
  padding: 0 1.5rem;
  float: right;
}

.close_about:active {
  background-color: white;
  color: black;
}

@keyframes slideOut {
  0% {
    position: fixed;

    transform: translate(-50%, -50%);
  }
  100% {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-250%, -50%);
  }
}

@keyframes slideIn {
  0% {
    position: fixed;

    transform: translate(50%, -50%);
  }
  100% {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.about_me h1 {
  text-align: left;
  padding: 1rem;
}

.about_me p {
  text-align: left;
  border: 2px solid black;
  padding: 2rem;
  border-radius: 15px;
  /* transform: translateY(30%); */
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  width: 40%;
  height: 25%;
  font-size: 2rem;
  background-color: var(--color-black);
  padding: 2.5rem;
  border-radius: 7px;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.close_modal {
  position: absolute;
  top: 70%;
  left: 37%;
  border: none;
  background: var(--color-greenyellow);
  width: 200px;
  height: 50px;
  border-radius: 30px;
}

.close_modal:hover {
  cursor: pointer;
  background-color: var(--color-white);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 5;
}

.logo {
  position: absolute;
  left: 1rem;
  top: 0;
}

.logo img {
  position: inherit;
  margin: 1em 1em;
  height: 2rem;
  width: 3rem;
}

.logo :hover {
  cursor: pointer;
}

.navbar {
  display: flex;
  height: 4rem;
  background-color: var(--color-greenyellow);
  width: 100%;
  align-items: center;
  z-index: 1;
}

.navbar.sticky {
  position: fixed;
  background-color: rgba(247, 210, 4, 0.89);
}

.navbar__links {
  margin-left: 7rem;
}

.navbar__links a {
  font-size: 1.3rem;
  margin-right: 2rem;

  text-decoration: none;
  text-transform: uppercase;
  color: var(--color-white);
  text-shadow: 2px 2px 6px black;
}

.navbar__links a:hover,
.navbar__links a:active {
  color: var(--color-greenyellow);
}

.profile_picture {
  float: right;
  position: relative;
  top: 7rem;
  right: 10%;
  animation: fadeIn 1.5s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.profile_picture img {
  max-height: 700px;
  max-width: 600px;
}

.hero {
  background-color: aqua;
  background-image: linear-gradient(
      rgba(76, 83, 81, 0.5) 100%,
      rgb(0, 0, 0, 0.5) 100%
    ),
    url(./imgs/img2.jpg);
  background-size: cover;
  min-height: 54vmax;
  padding: 0 3em;
  font-size: 2rem;
}

.socials_nav {
  margin-right: 50%;
  margin-left: 6rem;
  margin-top: 0.2rem;
}

.socials_nav ul {
  display: flex;
}

.socials_nav li {
  width: 48px;
  height: 52px;
  margin: auto 0.5rem;
  filter: drop-shadow(1px 1px 3px var(--color-black));
}

.socials_nav li:hover {
  cursor: pointer;
  scale: 110%;
}

/* Socials Floating Right */
.socials {
  /* using socials on navbar */
  display: none;
  padding: 0;
  margin: 0;
  float: right;
  position: -webkit-sticky;
  position: sticky;
  top: 50vh;
  right: 1%;
}

.socials ul {
  background-image: var(--color-bg-portfolio);
  border-radius: 15px;
  padding: 5px;
  filter: drop-shadow(2px 2px 5px black);
}

.socials li {
  height: 48px;
  width: 48px;
  margin-bottom: 5px;
  margin-top: 5px;
}

.twitter_icon img {
  width: 38px;
  height: 38px;
  margin-left: 5px;
  margin-top: 5px;
}

.socials li:hover {
  cursor: pointer;
  scale: 120%;
}

.intro {
  display: block;
  margin: auto 5rem;
  padding-top: 20rem;

  max-width: 800px;
  text-shadow: 2px 2px 5px var(--color-black);
}

.intro h2 {
  margin: 0;
  color: var(--color-greenyellow);
  padding-top: 0.2em;
}

.intro p {
  padding-top: 0.5em;
  font-size: 1.8rem;
}

.portfolio {
  display: grid;
  /* background-image: var(--color-bg-portfolio2); */
  background-color: #353333;
  opacity: 1;
  background-image: radial-gradient(#efb00f 2px, transparent 2px),
    radial-gradient(#efb00f 2px, #353333 2px);
  background-size: 80px 80px;
  background-position: 0 0, 40px 40px;
  color: var(--color-white);

  text-align: left;
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.portfolio h1 {
  text-align: center;
  font-size: 5rem;
  margin: 7rem 15rem;
  margin-bottom: 4rem;
  text-shadow: 4px 3px 5px var(--color-black);
}

.portfolio h2 {
  text-align: center;
  margin: 0 auto;
  font-size: 2rem;
  width: 900px;
  text-shadow: var(--text-shadow);
}

.portfolio__element {
  display: inline-block;
  text-align: center;
  margin-bottom: 5rem;
  padding-bottom: 2rem;
  max-width: 90vw;
  background-image: var(--color-bg-portfolio-element);
  border-radius: 20px;
  box-shadow: 5px 5px 10px var(--color-black);
}

.portfolio__element a {
  text-decoration: none;
  color: white;
}

/* .portfolio__element a:hover {
  color: white;
} */

.portfolio__element h2 {
  text-align: left;
  margin: 0;
  padding: 2rem 2rem;
  color: white;
  filter: drop-shadow(5px 4px 10px 50% black);
}

.portfolio__element p {
  font-size: 1.4rem;
  text-align: left;
  align-items: center;
  min-width: 900px;
  margin: 0 2rem;
}

.portfolio_block {
  color: var(--color-black);
  max-width: 80vw;
  /* width: 750px; */
  margin: 6rem auto;
}

.btns {
  padding-top: 2rem;
  margin-left: 0rem;

  font-size: 1.4rem;
}

.btns ul {
  display: flex;
  padding: 0 2rem;
}

.btn__live,
.btn__code {
  list-style: none;
  margin-right: 1rem;
  text-decoration: none;
  background: black;
  font-size: 1.5rem;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid var(--color-black);
}

.btn__live:hover,
.btn__code:hover {
  background-color: var(--color-greenyellow);
  color: black;
  border: 2px solid var(--color-greenyellow);
  cursor: pointer;
}

.portfolio__element img {
  border: 4px solid black;
  border-radius: 20px;
  width: 400px;
  height: 260px;
  filter: drop-shadow(2px 2px 5px black);
}

.description__block {
  display: flex;
  padding-right: 2.5rem;
  max-width: 90vw;
}

.contact_section {
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  max-width: 100vw;
  background-color: var(--color-black);
}

.contact_section h1 {
  margin-top: 8rem;

  text-align: center;
  font-size: 5rem;
  /* margin: 7rem 15rem; */
  text-shadow: 4px 3px 5px var(--color-black);
}

.contact_section h2 {
  width: 40%;
  font-size: 2rem;
  margin: 2rem auto;
  text-align: center;
  /* text-shadow: 4px 3px 5px var(--color-black); */
}

.contact {
  padding: 0 30%;
  padding-bottom: 5rem;
}

.contact_form {
  max-height: 500px;
}

.form_information {
  margin-top: 3rem;
}

input[type="text"],
textarea {
  font-size: 1.4rem;
  text-align: left;
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

.send_submit {
  border: none;
  background: var(--color-greenyellow);
  border-radius: 5px;
  height: 50px;
  width: 100px;
  font-size: 1.5rem;
}

.send_submit:hover {
  cursor: pointer;
  background: var(--color-white);
}

@media only screen and (max-width: 1366px) {
  html {
    font-size: 13px;
  }

  .about_me {
    width: 60%;
    font-size: 2rem;
  }

  .close_about {
    font-size: 3.5rem;
    padding: 0 1.5rem;
  }

  .about_me h1 {
    text-align: left;
    padding: 1rem;
  }
  .modal {
    font-size: 1.6rem;

    padding: 2.5rem;
  }

  .close_modal {
    top: 65%;
    left: 40%;
    width: 100px;
    height: 40px;
  }

  .navbar {
    min-width: 100vmin;
  }

  .navbar__links {
    margin-left: 15rem;
  }

  .socials_nav {
    width: 2vmax;
    margin-left: 4rem;
  }

  .socials_nav ul {
    scale: 80%;
  }

  .profile_picture {
    float: right;
    position: relative;
    top: 5rem;
    right: 10%;
  }

  .profile_picture img {
    height: 500px;
    width: 400px;
  }

  .socials {
    top: 40%;
  }

  .hero {
    min-height: 100vmin;
    min-width: 100vmin;
  }

  .intro {
    padding-top: 15rem;
  }

  .intro p {
    max-width: 40vmax;
  }

  .links {
    float: right;
  }

  .navbar {
    padding: 0;
  }

  .navbar__links {
    min-width: 390px;
  }

  .btns {
    margin-top: 4em;
    padding: 0;
  }

  .portfolio__element img {
    margin: 0;
    transform: translateX(-12vw);
  }

  .portfolio__element p {
    padding-right: 16rem;
  }

  .portfolio_block {
    max-width: 90vw;
  }

  

}

@media only screen and (max-width: 450px) {
  html {
    font-size: 60%;
  }

  .about_me {
    width: 90%;
  }

  .modal {
    text-align: center;
    width: 90%;
    min-height: 250px;
    font-size: 2.5rem;
    background-color: var(--color-black);
    padding: 3.5rem;
    border: 3px solid greenyellow;
  }

  .close_modal {
    position: absolute;
    top: 165px;
    left: 34%;

    background: var(--color-greenyellow);
    width: 100px;
    height: 60px;
    border-radius: 50px;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 5;
  }

  .profile_picture {
    position: relative;
    /* float: right; */
    top: 2rem;
    transform: translateX(15%);
  }

  .profile_picture img {
    max-width: 370px;
    max-height: 450px;
  }

  .hero {
    min-height: 850px;

    padding-bottom: 10rem;
  }

  .socials_nav {
    display: none;
  }

  .socials {
    float: left;
    display: block;
    top: 520px;
    right: 90px;
    z-index: 1;
    position: absolute;
  }

  .socials ul {
    text-align: center;
    display: flex;
    gap: 3rem;
    background-image: none;
  }

  .socials li {
    width: 58px;
    height: 58px;
  }

  .socials li:hover {
    scale: 100%;
  }

  .socials li:active {
    scale: 120%;
  }

  .socials img {
    height: 58px;
    width: 58px;
  }

  .twitter_icon img {
    margin-left: 0;
    height: 47px;
    width: 47px;
  }

  .navbar {
    text-align: center;
    justify-content: center;
  }

  .navbar__links {
    margin: 0;
  }

  .navbar__links a {
    font-size: 1.8rem;
  }

  .navbar__links a:hover {
    color: white;
  }

  .navbar__links a:active {
    color: var(--color-greenyellow);
  }

  .intro {
    margin: 0 auto;
    padding-top: 60rem;
    text-align: center;
  }

  .intro h2 {
    margin: 0 auto;
    margin-bottom: 4rem;
    font-size: 4rem;
  }

  .intro p {
    max-width: fit-content;
    padding: 0;
    margin: 0;
    font-size: 1.5em;
    text-align: justify;
  }

  .portfolio h1 {
    margin: 0;
    padding-top: 5rem;
  }

  .portfolio h2 {
    font-size: 2.5rem;
    margin: 0 auto;
    margin-bottom: 0;
    text-align: center;
    width: 350px;
  }

  .portfolio {
    display: block;
    padding: 0;
    margin: 0;
    padding-top: 4rem;
  }

  .portfolio_block {
    padding: 3rem;
    margin: 0;
  }

  .description__block {
    display: flex;
    flex-direction: column-reverse;
    place-items: center;
  }

  .portfolio__element img {
    width: 90%;
    transform: translateX(5%);
    margin: 2rem 0;
    overflow: hidden;
  }

  .portfolio__element {
    min-width: 85vw;
    height: inherit;
    font-size: 2rem;
  }

  .portfolio__element p {
    min-width: 50%;
    padding-right: 0;
    padding-bottom: 2rem;
    font-size: 2rem;
  }

  .portfolio__element ul {
    position: relative;
  }

  .btns {
    margin: 0;
    padding: 0;
  }

  .btns ul {
    margin: 0;
    padding: 2rem;
    font-size: 2rem;
  }

  .btn__code,
  .btn__live {
    font-size: 2.5rem;
  }

  .contact_section h2 {
    margin-top: 5rem;
    margin-bottom: 0;
    width: 350px;
  }

  .contact {
    margin: 0;
    padding: 10px 30px;
  }
}

@media screen and (max-width: 360px) {
  html {
    font-size: 55%;
  }

  body {
    width: 360px;
  }

  .about_me h1 {
    font-size: 2.5rem;
  }

  .about_me p {
    font-size: 1.9rem;
  }

  .close_about {
    padding: 0 1rem;
    font-size: 3.2rem;
  }

  .intro {
    padding-top: 100px;
  }

  .hero {
    /* width: 320px; */
    background-size: auto;
  }

  .socials {
    position: absolute;
    top: 400px;
    right: 16%;
  }

  .modal {
    scale: 90%;
    left: 43%;
  }

  .overlay {
    max-width: 360px;
  }

  .logo {
    display: none;
  }

  .profile_picture {
    float: none;
    position: inherit;
    transform: translateX(5px);
    margin: 0;
    padding-top: 5rem;
  }

  .profile_picture img {
    width: 250px;
    height: 300px;
  }

  .links ul {
    padding: 0;
    min-width: 300px;
  }

  .navbar__links {
    margin: 0;
    padding: 0;
    font-size: 0.5rem;
  }

  .navbar__links a {
    margin: 0 2rem;
  }

  .navbar {
    min-width: 360px;
  }

  .navbar.sticky {
    margin: 0;
    padding: 0;
    min-width: 360px;
  }

  .portfolio {
    min-width: 360px;
  }

  .portfolio h2 {
    width: 320px;
    text-align: left;
    padding-top: 0;
  }

  .portfolio__element {
    margin-left: -0.8rem;
    margin-right: 0;
    padding: 0;
    padding-bottom: 2rem;
  }

  .portfolio__element img {
    width: 90%;
    margin-left: 6rem;
    margin-top: 2rem;
    overflow: hidden;
  }

  .contact_section {
    min-width: 360px;
  }

  .contact_section h2 {
    padding: 15px;
    width: 330px;
  }
}
