@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;
  --normal-font: 400;
  --bold-font: 700;
  --bolder-font: 900;
  --bg-color: #fcfcfc;
  --primary-color: #4756df;
  --secondary-color: #ff7235;
  --primary-shadow: #8b8eaf;
  --secondary-shadow: #a17a69;
  --bottom-margin: 0.5rem;
  --bottom-margin-2: 1rem;
  --line-height: 1.7rem;
  --transition: 0.3s;
}

html {
  scroll-behavior: smooth;
}

/* CSS Resets */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.background-container {
  position: relative;
  z-index: -1;
}

#animated-background {
  position: fixed;
  top:0px;
  left:0px;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: none;
  color: var(--secondary-color);
}

body {
  font-family: var(--font-family);
}

nav {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3.5rem;
    background-color: var(--bg-color);
    box-shadow: 0 3px 5px rgb(0,0,0,0.1);
    min-width: 100%;
}

nav h1 {
    color: var(--primary-color);
}

nav a {
    color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

nav ul {
    display: flex;
    gap: 1.9rem;
}

nav ul li {
    font-weight: var(--bold-font);
}

.burger-menu {
    color: var(--primary-color);
    font-size: 2rem;
    border: 0;
    background-color: transparent; 
    cursor: pointer;
    display: none; 
}

.bio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: 68.75rem;
  margin: 100px auto 50px auto;
  z-index: 1;
}

.bio img{
  height: 25rem;
  width: 25rem;
}

.bio-about {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  width: 25rem;
  padding: 0.625rem;
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--primary-shadow);
}

.bio-about button{
  font-weight: bold;
  padding: 0.625rem;
  border-radius: 10px 10px 10px 10px;
}

.bio-about button:hover {
  background-color: var(--primary-color);
border: 2px solid var(--primary-color);
cursor: pointer;
}

.bio h2 {
  margin-bottom: var(--bottom-margin);
}

.bio p {
  line-height: var(--line-height);
  padding: 0.3rem 0;
  margin-bottom: var(--bottom-margin);
}
.bio-text span {
  color: var(--primary-color);
  font-weight: bold;
}

.more-skills {
  background-color: var(--bg-color);
  padding: 0.625rem;
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--primary-shadow);
  margin: 15rem auto 15rem auto;
}

.more-about{
  background-color: var(--bg-color);
  padding: 1rem 6rem;
  margin: 25px auto 25px auto;
}

.more-about h2 {
  margin-bottom: var(--bottom-margin);
  text-align: center;
}

.more-about p {
  line-height: var(--line-height);
  padding: 0.4rem;
  text-align: justify;
}

.skills {
  background-color: var(--bg-color);
  padding: 1rem 6rem;
  margin: auto auto 25px auto;
}
.skills h2 {
  margin-bottom: 20px;
  text-align: center;
}

.skills ul { 
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 68.75rem;
  gap: 1.9rem;
  margin: auto;
}

.skills ul li {
  background-color: var(--primary-color);
  color:lightsalmon;
  text-shadow: 0 0 3px #000000;
  font-weight: bold;
  padding: 0.625rem;
  border-radius: 7.5px;
}

.projects {
  padding: 32px 0;
  margin-top: 2rem;
  margin: auto auto 25px auto;
  width: 90%;
}

.project-media {
  width: 65%;
  height: 60%;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; 
}

.projects-container p {
  padding: 0.4rem;
}

.projects-title {
  text-align: center;
}

.project-card {
  background-color: var(--bg-color);
  text-align: center;
  padding: 1rem;
  max-width: 25rem;
}

.project-title {
  margin-bottom: var(--bottom-margin);
  text-align: center;
  margin-bottom: 1rem;
}

.project-details {
  margin-bottom: var(--bottom-margin);
}

.project-card {
  background-color: #ffffff;
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--primary-shadow);
  padding: 20px;
  margin: 10px;
}

.project-card a {
  display: block;
  line-height: 1.9rem;
}

.contact {
  margin-top: 2rem;
}

.contact h2 {
  text-align: center;
  margin-bottom: var(--bottom-margin-2);
}

.contact-form-container {
  background-color: var(--bg-color);
  max-width: 40.75rem;
  margin: 0 auto;
  padding: 0.938rem;
  border-radius: 5px;
  box-shadow: 0 3px 10px var(--secondary-shadow);
}

.contact-form-container label {
  line-height: 2.7em;
  font-weight: var(--bold-font);
  color: var(--primary-color);
}

.contact-form-container textarea {
  min-height: 6.25rem;
  font-size: 14px;
}

.contact-form-container .input-field {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 5px;
  border: none;
  border: 2px outset var(--primary-color);
  font-size: 0.875rem;
  outline: none;
}

.input-field::placeholder {
  padding: 0.5rem;
  color: var(--primary-color);
}

.submit-btn {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background-color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1rem;
  font-weight: var(--bold-font);
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

.socials {
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 1%;
  bottom: 50%;
}

.socicon {
  width: 2rem;
  height: 2rem;
}

footer {
  background-color: var(--bg-color);
  padding: 1.25rem;
  text-align: center;
  margin: 2rem 0 0;
}

/*random balls background*/

.ball {
  position: absolute;
  border-radius: 100%;
  opacity: 0.7;
  width: 100%;
  height: 100%;
  z-index: -1;
}

@media screen and (max-width: 720px) {
  nav {
    padding: 1.5rem 1rem;
  }

  nav ul {
    position: fixed;
    background-color: var(--bg-color);
    flex-direction: column;
    top: 86px;
    left: 10%;
    width: 80%;
    text-align: center;
    transform: translateX(120%);
    transition: transform 0.5s ease-in;
  } 
  
  nav ul li {
    margin: 8px;
  }

  #burger-menu {
    display: block; 
  }

  nav ul.show {
    transform: translateX(0);
  }

  .bio {
    margin-top: 7rem;
    flex-direction: column;
    gap: 0;
  }

  .bio img {
    height: 15rem;
    width: 15rem;
    margin-bottom: 7rem; 
  }

  .bio-about{
    width: 20.5rem;
  }

  .more-about {
    margin-top: 2rem;
    padding: 1rem 3.5rem;
  }

  .more-about h2 {
    text-align: center;
  }

  .more-about p {
    text-align: justify;
  }

   .projects-container {
    flex-direction: column;
    width: 100%;
  }  

  .contact-form-container {
    max-width: 23.75rem;
  }
}

@media screen and (max-width: 420px) {
  .socials {
    position: relative;
    flex-direction: row;
    bottom: auto;
    right:auto;
    justify-content: center;
    margin-top: 1rem;
  }

  .bio img {
    height: 23rem;
    width: 23rem;
  }

  .bio-about{
    max-width: 15rem;
  }
  
  .bio {
    width: 13rem;
  }

  .project-container {
    width: 17.875rem;
  }

  .contact-form-container {
    max-width: 20rem;
  }

} 

