@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,900;1,700&display=swap");
@media screen and (max-width: 720px) {
  /*changes reflects on screen with a width of 720px and below*/
  nav {
    padding: 1.5rem 1rem;
  }
  nav ul {
    position: fixed;
    flex-direction: column;
    top: 86px;
    width: 80%;
    text-align: center;
    transform: translateX(120%);
    transition: transform var(--transition) ease-in-out;
  }

  nav ul li {
    margin: 8px;
  }
  #burger-menu {
    display: block;
  }

  nav ul.show {
    transform: translateX(0);
  }
  .hero {
    margin-top: -4rem;
    flex-direction: column;
    gap: 0;
  }

  .hero img {
    height: 37.5rem;
    width: 30rem;
  }

  .bio {
    width: 20.5rem;
  }
  .more-about {
    margin-top: 2rem;
    padding: 1rem 3.5rem;
  }

  .more-about h2 {
    text-align: center;
  }

  .more-about p {
    text-align: justify;
  }
  .icon {
    width: 5.875rem;
    height: 5.25rem;
  }
  .projects-container {
    flex-direction: column;
  }

  .project-container {
    width: 90%;
    height: auto;
  }

  .project-pic {
    height: 180px;
  }
  .contact-form-container {
    max-width: 23.75rem;
  }
}


@media screen and (max-width: 420px) {
  .hero img {
    height: 17.5rem;
    width: 13rem;
  }

  .bio {
    width: 18.3rem;
  }

  .project-container {
    width: 100%;
    padding: 10px;
  }

  .project-pic {
    height: 150px;
  }

  .contact-form-container {
    max-width: 17.75rem;
  }
  .burger-menu {
    font-size: 1.5rem;
  }
  nav ul {
    width: 100%;
  }
}


/* Variables */
:root {
  --font-family: "Roboto", sans-serf;
  --normal-font: 400;
  --bold-font: 700;
  --bolder-font: 900;
  --bg-color: #11ffee00;
  --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 ease-in-out;
  --dark-bg-color: #121212;
  --dark-text-color: #ffffff;
  --light-bg-color: #ffffff;
  --light-text-color: #121212;
}
/* Variables end */

html {
  scroll-behavior: smooth;
}

/* CSS Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: black;
}

a:hover {
 color: var(--primary-color);
}

body {
  font-family: var(--font-family);
  scroll-behavior: smooth;
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.light-mode {
  background-color: var(--light-bg-color);
  color: var(--light-text-color);
}

nav {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3.5rem;
  background-color: var(--bg-color);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  transition: top var(--transition) ease-in-out;
}

#dark-mode-toggle {
  cursor: pointer;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: inherit;
}

.hidden-nav {
  top: -80px !important;
}

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 {
  display: none;
  cursor: pointer;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: 68.75rem;
  margin: auto;
  }

.hero img {
  max-width: 30%;
  height: auto;
}


.bio {
  width: 25rem;
  padding: 0.625rem;
  border-radius: 6px;
  box-shadow: 0px 2px 15px 2px var(--primary-shadow);
}

.bio h1 {
  margin-bottom: var(--bottom-margin);
}

.bio p {
  line-height: var(--line-height);
  padding: 0.3rem 0;
}

.more-about {
  background-color: var(--bg-color);
  padding: 1rem 6rem;
}

.more-about h2 {
  margin-bottom: var(--bottom-margin);
  text-align: center;
}

.more-about p {
  line-height: var(--line-height);
  padding: 0.4rem;
  text-align: center;
}
.skills {
  max-width: 68.75rem;
  margin: auto;
  text-align: center;
  margin-top: 2.5rem;
}


.skill-header {
  margin-bottom: 1rem;
}

.skills-wrapper img {
  padding: 1.25rem;
}

.icon {
  width: 11.875rem;
  height: 11.25rem;
}
.icon-card {
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--secondary-shadow);
  padding: 20px;
  margin: 10px;
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
}

.light-mode .icon-card{
  background-color: var(--light-bg-color);
  color: var(--light-text-color);
}

.projects {
  background-color: var(--bg-color);
  padding: 32px 0;
  margin-top: 2rem;
}

.project-pic {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
}

.projects-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.projects-title {
  text-align: center;
  margin-bottom: 1rem;
}


.project-container {
  width: 400px;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.project-container p {
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
  padding: 0.4rem;
}

.light-mode .project-container p{
  background-color: var(--light-bg-color);
  color: var(--light-text-color);
}

.project-title {
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
  margin-bottom: var(--bottom-margin);
}

.light-mode .project-title{
  background-color: var(--light-bg-color);
  color: var(--light-text-color);
}

.project-details {
  margin-bottom: var(--bottom-margin);
}


.project-card {
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--primary-shadow);
  padding: 20px;
  margin: 10px;
}

.light-mode .project-card{
  background-color: var(--light-bg-color);
  color: var(--light-text-color);
}

.contact {
  margin-top: 2rem;
}

.contact h2 {
  text-align: center;
  margin-bottom: var(--bottom-margin-2);
}

.contact-form-container {
  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:hover{
  zoom: 130%;
}

.socicon {
  width: 2rem;
  height: 2rem;
}
footer {
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
  padding: 1.25rem;
  text-align: center;
  margin: 2rem 0 0;
}

.light-mode footer{
    background-color: var(--light-bg-color);
  color: var(--light-text-color);
}
.scroll-up {
  position: fixed;
  right: 0.5%;
  bottom: 3%;
  cursor: pointer;
}

.up-arrow {
  width: 2rem;
  height: 2rem;
}
