* {
  margin: 0px;
  padding: 0px;
}
/* this is my first code so my naming scheme is poor */
body {
  background: linear-gradient(to right, #000000da, rgb(34, 34, 34), #5f5f5f);
  font-family: "Roboto", sans-serif;
}
/* this makes th scroll to top anmation smoother */
html {
  scroll-behavior: smooth;
}
/* nav bar styling starts here */
.nav-bar {
  display: flex;
  justify-content: space-between;
  background: linear-gradient(to right, #000000da, rgb(34, 34, 34), #333333);
  padding: 10px 50px;
  margin-bottom: 30px;
  position: fixed;
  width: 100%;
  top: 0px;
  z-index: 2;
}
/* this styles "Derek" */
.my-logo {
  color: orangered;
}
/* this styles the nav menu e.g home */
.nav-menu {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  list-style: none;
  font-size: 13px;
  margin-top: 7px;
  margin-right: 100px;
}
.nav-menu a {
  text-decoration: none;
  color: white;
}
.nav-menu a:hover {
  color: orangered;
  font-size: 14px;
  transition-duration: 1ms;
}
.hero {
  display: flex;
  justify-content: space-between;
  margin-top: 75px;
}
/* this styles the paragraph in the hero section */
.hero-para {
  vertical-align: middle;
  line-height: 50px;
  padding: 100px 50px;
  box-sizing: border-box;
}
/* this gives the animation effect */
.hero-para {
  animation-name: slideIn;
  animation-duration: 5s;
  animation-delay: 0.1s;
  animation-fill-mode: forwards;
}
@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
.hero-para p {
  font-size: 20px;
  color: rgb(192, 192, 192);
}
.name {
  font-size: 70px;
  color: white;
}
.image-container {
  opacity: 70%;
  padding-bottom: 10px;
}
.hero-para a {
  padding: 8px 20px;
  border-radius: 100px;
  text-decoration: none;
  color: white;
  background-color: orangered;
  font-size: 20px;
}
.hero-para a:hover {
  background: linear-gradient(
    to right,
    rgb(255, 150, 111),
    rgb(255, 111, 59),
    orangered
  );
  font-size: 21px;
  box-shadow: -5px 5px 17px rgba(255, 68, 0, 0.562);
}
.container-2 {
  display: flex;
  justify-content: space-between;
  background-color: rgb(44, 44, 44);
  padding-top: 60px;
}
.image-container-2 {
  margin: 40px;
  border: 5px solid rgb(44, 44, 44);
  border-radius: 20px;
  background-color: #1d1d1d;
  box-shadow: 2px 2px 10px black;
}
.hero-2 {
  margin: 40px;
  line-height: 30px;
}

.hero-para-2 {
  color: #c4c4c4;
  margin-bottom: 30px;
}
.about-me {
  color: white;
}
.who {
  font-size: 25px;
  color: white;
  display: block;
}
.experience {
  background-color: rgb(58, 58, 58);
  font-size: 50px;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 20px;
}
.experience:hover {
  box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.452);
  transform: scale(0.99);
  z-index: 1;
  font-size: 52px;
}
.experience h5 {
  margin: 20px;
  color: #c4c4c4;
}
.experience i {
  font-size: 30px;
}
.hero-2 a {
  padding: 8px 20px;
  border-radius: 100px;
  text-decoration: none;
  color: white;
  background-color: orangered;
  font-size: 20px;
}
.hero-2 a:hover {
  background: linear-gradient(
    to right,
    rgb(255, 150, 111),
    rgb(255, 111, 59),
    orangered
  );
  font-size: 21px;
  box-shadow: -5px 5px 17px rgba(255, 68, 0, 0.562);
}
.services {
  padding: 0px 40px;
  margin-top: 100px;
  margin-bottom: 100px;
}
.service-container {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 20px;
  text-align: center;
  gap: 20px;
  color: #c4c4c4;
}
.service-icons {
  padding: 50px;
  vertical-align: bottom;
  border-radius: 20px;
  background-color: #1d1d1d;
  box-sizing: border-box;
  flex: 1 1 0px;
}
.service-icons:hover {
  animation-name: slideUp;
  animation-duration: 1s;
  animation-delay: 0.2s;
  animation-fill-mode: forwards;
}
/* this styles the animation */
@keyframes slideUp {
  from {
    transform: translateY(-2%);
  }
  to {
    transform: translateY(0);
    box-shadow: 5px 5px 25px rgb(0, 0, 0);
  }
}
.service-icons i {
  font-size: 30px;
  padding: 20px;
}
.projects {
  background: linear-gradient(to left, #000000da, rgb(34, 34, 34), #333333);
  padding: 0px 40px;
  padding-top: 100px;
}
.project-container {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 20px;
  text-align: center;
  gap: 20px;
}
.image {
  margin-bottom: 10px;
  margin-right: 33px;
}
.image img {
  border: 8px solid #333333;
  border-radius: 20px;
  margin-bottom: 20px;
}
.image img:hover {
  box-shadow: 5px 5px 15px rgb(0, 0, 0);
  transform: translateY(-10px);
}

footer {
  background-color: #333333;
  padding: 30px 40px;
}
.footer-container {
  margin-top: 30px;
}
footer p {
  color: #c4c4c4;
  font-size: 15px;
  margin-bottom: 30px;
}
.address-container {
  display: flex;
  justify-content: space-between;
}
label {
  margin-bottom: 10px;
}
input {
  background-color: rgba(0, 0, 0, 0);
  border: 0px;
  color: #c4c4c4;
}
input:focus {
  outline: none;
}
.form1 {
  margin-bottom: 10px;
}
.form1 input {
  border: 1px solid orangered;
  border-radius: 20px;
  padding: 10px;
}
.form2 {
  display: flex;
  flex-direction: column;
}
.form2 input {
  padding: 10px;
  border: 1px solid orangered;
  border-radius: 20px;
  width: 94.5%;
}
textarea {
  background-color: rgba(0, 0, 0, 0);
  border: 1px solid orangered;
  border-radius: 20px;
  width: 100%;
  height: 100px;
  text-decoration: none;
  resize: none;
  text-decoration: none;
  color: #c4c4c4;
  padding: 10px;
  box-sizing: border-box;
}
textarea:focus {
  outline: none;
}
.input-button {
  padding: 8px 20px;
  border-radius: 100px;
  text-decoration: none;
  color: white;
  background-color: orangered;
  font-size: 20px;
}
.input-button:hover {
  background: linear-gradient(
    to right,
    rgb(255, 150, 111),
    rgb(255, 111, 59),
    orangered
  );
  font-size: 21px;
  box-shadow: -5px 5px 17px rgba(255, 68, 0, 0.562);
}
footer li {
  list-style: none;
  color: #c4c4c4;
  font-size: 15px;
  margin-top: 10px;
  margin-bottom: 10px;
}
footer a {
  text-decoration: none;
  color: orangered;
}
.footer-icons i {
  font-size: 30px;
  gap: 30px;
  margin-right: 20px;
  color: orangered;
}
.footer-icons i:hover {
  transform: scale(1.1);
  box-shadow: 3px 3px 10px orangered;
  border-radius: 50px;
}
.arrow {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1002; /* higher than form */
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}
.arrow a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.arrow i {
  color: orangered;
  font-size: 24px;
}
.arrow:hover {
  background: orangered;
}
.arrow:hover i {
  color: #fff;
}
@media screen and (max-width: 768px) {
  * {
    margin: 0px;
    padding: 0px;
  }
  body,
  html {
    overflow-x: hidden;
  }
  .nav-bar {
    overflow: hidden;
    padding-left: 15px;
  }
  .nav-menu {
    display: none;
  }
  .container {
    margin: 0px;
    padding: 0px;
    overflow: hidden;
    text-align: center;
  }
  .hero-para {
    text-align: center;
    margin: auto;
  }
  .hero-para p {
    font-size: 16px;
  }
  .name {
    font-size: 20px;
  }
  .hero-para a {
    font-size: 13px;
  }
  .image-container {
    display: none;
  }
  .image-container:hover {
    transform: scale(0.82);
    opacity: 100%;
  }

  .container-2 {
    overflow: hidden;
    flex-wrap: wrap;
    text-align: center;
  }
  .image-container-2 {
    width: 200px;
    height: 200px;
    margin: auto;
  }
  .image-container-2 img {
    width: 200px;
    height: 200px;
  }
  .hero-para-2 {
    font-size: 13px;
  }
  .hero-2 a {
    font-size: 13px;
  }
  .experience {
    padding: 10px;
    font-size: 20px;
    box-sizing: border-box;
  }
  .experience:hover {
    box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.452);
    transform: scale(1);
    z-index: 1;
    font-size: 22px;
  }
  .experience i {
    font-size: 13px;
  }
  .experience a {
    font-size: 13px;
  }
  .service-container {
    display: grid;
  }
  .service-icons {
    justify-content: center;
    width: 100%;
    font-size: 13px;
  }

  .project-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .project-container .image {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .project-container .image img {
    width: 90vw;
    max-width: 100%;
    height: auto;
  }
  footer {
    padding: 20px 5px;
  }
  .footer-container {
    margin-top: 10px;
  }
  .address-container {
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
  }
  .address {
    margin-bottom: 20px;
  }
  .footer-icons {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  .footer-icons i {
    font-size: 22px;
    margin-right: 10px;
  }
  form {
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 5px;
  }
  .form1,
  .form2 {
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }
  .form1 input,
  .form2 input,
  textarea {
    width: 100% !important;
    min-width: 0;
    margin-bottom: 10px;
    font-size: 14px;
    box-sizing: border-box;
    max-width: 100%;
  }
  .input-button {
    width: 100%;
    font-size: 16px;
    margin-top: 5px;
  }
  footer li {
    font-size: 13px;
  }
  footer p {
    font-size: 13px;
    margin-bottom: 15px;
  }
}
@media screen and (max-width: 375px) {
  .image-container {
    display: none;
  }
  .hero-para p {
    font-size: 13px;
  }
  footer {
    padding: 10px 2px;
  }
  .footer-container {
    margin-top: 5px;
  }
  .footer-icons i {
    font-size: 18px;
    margin-right: 8px;
  }
  .input-button {
    font-size: 14px;
  }
  footer li {
    font-size: 11px;
  }
  footer p {
    font-size: 11px;
  }
}
