@import url("https://fonts.googleapis.com/css2?family=Indie+Flower&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  scroll-behavior: smooth;
  margin: 0;
}

body {
  background-color: #070707;
  color: #fffffc;
  font-family: "Inter", serif;
}

a {
  text-decoration: none;
}

.greeting {
  font-size: 7vw;
  font-family: "Inter", serif;
  font-weight: 300;
  justify-content: center;
}

.nameContainer {
  display: flex;
  flex-direction: row;
  margin-top: 30px;
  height: 500px;
  justify-content: center;
  align-items: center;
  margin-left: 12px;
}

.greetingWrapper {
  text-align: center;
}

.name {
  font-weight: 700;
  background-image: linear-gradient(45deg, #8b0000, #ff0000, #dc143c, #800000);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientAnimation 3s linear infinite;
  animation-direction: alternate;
  background-size: 300% 100%;
  text-shadow: none;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.icon {
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 5px solid red;
  border-radius: 100%;
}

.icon::after {
  position: absolute;
  top: 100%;
  left: 50%;
  margin: 1px 0 0 -6px;
  display: block;
  content: "";
  border: 6px solid transparent;
  border-top: 10px solid red;
  border-bottom: none;
}

.subtitle {
  margin-top: 10px;
  font-size: 1.2rem;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: sticky;
  top: 8px;
  margin-left: 12px;
  margin-right: 12px;
  z-index: 69;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.19);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(7.6px);
  -webkit-backdrop-filter: blur(7.6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.headerLinks {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
  gap: 36px;
  margin-right: 30px;
}

.link {
  font-size: 32px;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  color: #fffffc;
  position: relative;
  text-shadow: 0px 0px 9px #ce0e0e;
}

.link::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background-color: #ce0e0e;
  bottom: 0;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.link:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}

.logo {
  width: 100px;
  margin-left: 28px;
  transition: opacity 0.5s;
}

.logo:hover {
  opacity: 0.6;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: #fffffc;
}

.nav-item {
  display: none;
}

.nav-item.active {
  display: block;
}

.intro-location {
  text-decoration: underline;
}

#skillsContainer {
  margin-top: 420px;
}

#skillsTitle {
  font-size: 69px;
  font-weight: 200;
  text-align: center;
  text-shadow: 0px 0px 4px #ce0e0e;
}

.skillIcons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px;
  margin-top: 100px;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.skills {
  width: 130px;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  transition: all 0.4s;
}

.skills:hover {
  filter: none;
  -webkit-filter: grayscale(0);
}

#footerContainer {
  height: 375px;
  background-color: #070707;
  opacity: 1;
  background-image: radial-gradient(
    #8c0000 0.8500000000000001px,
    #070707 0.8500000000000001px
  );
  background-size: 17px 17px;
  border-top: 4px dashed #8c0000;
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: space-between;
}

.footerTitles {
  margin-top: 6px;
  margin-bottom: 6px;
  font-family: "Indie Flower", cursive;
  font-size: 36px;
}

.aboutme {
  width: 400px;
  font-family: "Indie Flower", cursive;
  margin: 0px 28px;
}

.aboutme p {
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  font-family: "Inter", serif;
  font-weight: 300;
}

.abtme {
  font-size: 36px;
}

.contact {
  max-width: 600px;
  width: 100%;
}

.contact input,
.contact textarea {
  width: 100%;
  box-sizing: border-box;
}

.contact input {
  padding: 10px;
  border-style: solid;
  border-width: 2px;
  border-radius: 5px;
  margin-bottom: 10px;
  background-color: #070707;
  color: white;
}

.contact input:focus-within {
  outline: none;
  border-color: rgb(211, 12, 12);
  border-width: 2px;
}

textarea {
  background-color: #070707;
  color: white;
  border-width: 2px;
  border-radius: 5px;
  border-style: solid;
}

textarea:focus-within {
  outline: none;
  border-color: rgb(211, 12, 12);
}

form {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.contactBtn {
  background-color: #070707;
  color: white;
  margin-top: 10px;
  margin-bottom: 8px;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  border-style: solid;
  border-radius: 2px;
  border-color: white;
  transition: all 0.1s;
}

.contactBtn:hover {
  opacity: 0.6;
}

.contactBtn:active {
  border-color: rgb(211, 12, 12);
}

.socials {
  margin: 0 8%;
}

.socials-btn img {
  width: 64px;
  height: 64px;
  transition: all 0.25s;
  margin: 0 10px;
  filter: brightness(0) invert(1); /*make image white*/
}

.socials-btn img:hover {
  opacity: 0.6;
}

@media (max-width: 1479px) {
  .socials-btn img {
    width: 45px;
    height: 45px;
    margin: 0 2px;
  }
}

@media (max-width: 1400px) {
  .greeting {
    font-size: 9vw;
  }
}

@media (max-width: 1285px) {
  .skillIcons {
    gap: 60px;
  }
  .skills {
    width: 110px;
  }
}

@media (max-width: 1200px) {
  .footerTitles {
    font-size: 32px;
  }

  .aboutme p {
    font-size: 14px;
    line-height: 24px;
  }

  .socials-btn img {
    width: 40px;
    height: 40px;
    margin: 0px;
  }
}

@media (max-width: 1057px) {
  .skillIcons {
    gap: 50px;
  }
  .skills {
    width: 90px;
  }
}

@media (max-width: 992px) {
  .greeting {
    font-size: 12vw;
  }

  .footerTitles {
    font-size: 28px;
  }

  .aboutme p {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
  }
}

@media (max-width: 875px) {
  .skillIcons {
    gap: 30px;
  }
  .skills {
    width: 85px;
  }
}

@media (max-width: 768px) {
  .skillIcons {
    gap: 25px;
  }
  .skills {
    width: 80px;
  }

  .socials-btn img {
    width: 32px;
    height: 32px;
    margin: 0px;
  }

  .contact input {
    padding: 5px;
  }

  .contactBtn {
    font-size: 12px;
    font-weight: bold;
  }

  .footerTitles {
    font-size: 26px;
  }

  .aboutme p {
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
  }

  .subtitle {
    font-size: 14px;
  }

  .link {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    box-sizing: border-box;
    position: fixed;
    left: -115%;
    top: 105px;
    gap: 0;
    flex-direction: column;
    width: 100%;
    transition: 0.25s;
    border-radius: 8px;
    border-width: 1px;
    border-color: white;
    border-style: solid;
    background-color: #0f0f0f;
    overflow: hidden;
    padding-left: 0px;
  }

  .nav-item {
    margin: 8px 0;
  }

  .nav-link {
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    color: #fffffc;
    display: block;
    padding: 18px 0px;
    text-align: center;
  }

  .nav-link:active {
    color: #c01919;
  }

  .nav-menu.active {
    left: 0;
  }
}

@media (max-width: 669px) {
  .skillIcons {
    gap: 20px;
  }
  .skills {
    width: 70px;
  }
}
@media (max-width: 576px) {
  .skillIcons {
    gap: 10px;
  }
  .skills {
    width: 60px;
  }

  .greeting {
    font-size: 14vw;
  }

  .footerTitles {
    font-size: 24px;
  }

  .aboutme p {
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
  }
}

@media (max-width: 464px) {
  .skillIcons {
    gap: 10px;
  }
  .skills {
    width: 50px;
  }
}
