* {
  padding: 0;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

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

input:valid:focus {
  padding-left: 20px !important;
}

.ibm-plex-sans-thin {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.ibm-plex-sans-extralight {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.ibm-plex-sans-light {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.ibm-plex-sans-regular {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.ibm-plex-sans-medium {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.ibm-plex-sans-semibold {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.ibm-plex-sans-bold {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.ibm-plex-sans-thin-italic {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.ibm-plex-sans-extralight-italic {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.ibm-plex-sans-light-italic {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.ibm-plex-sans-regular-italic {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.ibm-plex-sans-medium-italic {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.ibm-plex-sans-semibold-italic {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.ibm-plex-sans-bold-italic {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-style: italic;
}

:root {
  --main-bg-color: #121212;
  --secondary-color: #ff4500;
  --stroke-color: #3e4142;
  --text-color: #f2f2f2;
  --modal-color: #181c1f;
  --footer-nav-color: #0e1113;
  --descriptional-color: #b8c5c9;
  --button-color: #2a3236;
  --wasd-arrow: #2a3236;
  --project-nothovered: rgba(255, 69, 0, 0.25);
}

/* added height margin and overflow hidden */
body {
  background-color: var(--main-bg-color);
  background-image: url(../images/bg.svg);
  background-repeat: no-repeat;
  user-select: none;
  margin: 0;
  height: 100vh;
  overflow: hidden;
}

.nav-container {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--footer-nav-color);
  border-bottom: var(--stroke-color) solid 1px;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 74px;
}

.navbar-text ul li {
  margin-right: 57px;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  color: var(--text-color);
  font-size: 24px;
  list-style: none;
  display: inline-flex;
  transition: color 0.1s ease;
  position: relative;
}

.navbar-text ul li.active a {
  color: var(--secondary-color);
}

.navbar-text li a:hover {
  color: var(--secondary-color);
}

.navbar-text ul li .icon {
  display: none; /* Hide by default */
  position: absolute;
  bottom: -10px; /* Adjust as needed for spacing */
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 8px;
}

.navbar-text ul li.active .icon {
  display: block;
}

.navlogo {
  margin-left: 35px;
  margin-top: 14px;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 36px;
  margin-top: 27px;
  height: 100%;
  display: flex;
}

.navlogo a {
  text-decoration: none;
  color: var(--secondary-color);
}

.navbar-text li a {
  text-decoration: none;
  color: var(--text-color);
}

.footer-container {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 21px;
  width: 100%;
  background-color: var(--footer-nav-color);
  border-top: var(--stroke-color) solid 1px;
  height: 32px;
}

.footerlinks {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.footerlinks li {
  list-style: none;
}

.divider {
  display: flex;
  width: 2px;
  background-color: var(--secondary-color);
}

.mail-icon-wrapper {
  display: flex;
  align-items: center;
}

.github-icon-wrapper {
  display: flex;
  align-items: center;
}

.title {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 34px;
  color: var(--text-color);
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.description {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  color: var(--text-color);
  text-overflow: ellipsis;
  max-width: 300px;
}

.contact-me-container {
  display: flex;
  flex-direction: row;
  height: calc(100dvh - 75px - 75px);
  margin: 180px 180px 180px;
  gap: 104px;
  justify-content: center;
}

/* width */
::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--main-bg-color); /* Fully transparent */
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 25px;
}

main {
  overflow-y: none; /* Allow vertical scrolling in main */
  padding-bottom: 75px; /* Space for the fixed footer */
  height: calc(100vh - 75px - 75px); /* Height for main content area */
}

.download-cv {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-style: normal;
  background-color: var(--button-color);
  border: none;
  color: var(--text-color);
  padding: 20px 62px;
  border-radius: 25px;
  font-size: 24px;
  border: var(--stroke-color) solid 1px;
  cursor: pointer;
  margin-top: 26px;
  font-size: 22px;
}

form {
  display: flex;
  flex-direction: column;
  /* align-items: flex-end; */
  margin: 0;
  padding-bottom: 200px;
  width: 100%;
  /* gap: 16px; */
}

.contact-wrapper {
  display: flex;
  margin-left: 150px;
  margin-right: 150px;
}
.contact-me-content-container {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
}

input[type="submit"] {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-style: normal;
  background-color: var(--secondary-color);
  border: none;
  color: var(--text-color);
  /* padding: 20px 79px; */
  border-radius: 25px;
  font-size: 24px;
  border: var(--stroke-color) solid 1px;
  cursor: pointer;
  width: 150px;
  height: 52px;
  top: 84%;
  position: absolute;
  font-size: 20px;
}

label[for="name"],
label[for="email"],
label[for="message"] {
  margin-left: 20px;
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-size: 20px;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
}

input::placeholder,
textarea::placeholder {
  font-size: 20px;
  opacity: 50%;
}

input,
textarea {
  padding: 0px 6px;
}

input[type="text"] {
  width: 544px;
  color: var(--descriptional-color);
}

#name,
#email,
#message {
  color: var(--text-color);
  font-size: 20px;
  background-color: var(--modal-color);
  border-radius: 25px;
  border-color: var(--stroke-color);
  height: 50px;
  padding-left: 28px;
  resize: none;
  box-shadow: none;
  outline: none;
}

/*  */

.label {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  color: var(--secondary-color);
  text-overflow: ellipsis;
  max-width: 300px;
}

input,
textarea,
select,
button {
  border: var(--stroke-color) 1px solid; /* Remove border */
}

.name {
  width: 35.5em;
  height: 3.125em;
  border-radius: 25px;
  border: 1px solid var(--project-nothovered);
  background-color: var(--modal-color);
  position: relative;
  left: 0.5em;
  bottom: 2.9em;
  z-index: -1;
  background-color: var(--modal-color);
}

.name-message {
  width: 35.5em;
  height: 9.1em;
  border-radius: 25px;
  border: 1px solid var(--project-nothovered);
  background-color: var(--modal-color);
  position: relative;
  left: 0.6em;
  top: -8.8em;
  z-index: -1;
  background-color: var(--modal-color);
}

#message {
  font-family: "IBM Plex Sans", sans-serif; /* Ensure correct font */
  font-weight: 400;
  font-size: 20px;
  color: var(--text-color); /* Apply correct text color */
  background-color: var(--modal-color);
  border-radius: 25px;
  border: 1px solid var(--stroke-color);
  padding: 12px 20px; /* Adjust padding */
  resize: none;
  box-shadow: none;
  outline: none;
  height: 144.53px;
  width: 544px;
}

.navlogo-footer {
  display: none;
}

.hamburger-menu {
  display: none;
}

.M-icon {
  display: none;
}

.m-navbar {
  display: none;
}

@media screen and (max-width: 768px) {
  html,
  body {
    overflow: auto;
    min-height: 100vh;
  }

  input[type="submit"] {
    top: 6%;
    position: relative;
  }

  input::placeholder,
  textarea::placeholder {
    text-align: center;
  }

  label[for="name"],
  label[for="email"],
  label[for="message"] {
    width: max-content;
    position: relative;
    margin: 0;
  }

  #message {
    width: 354px;
  }

  .name-message {
    width: 380px;
    left: 10px;
    display: none;
  }

  .contact-wrapper {
    margin: 0;
  }

  form {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .name {
    width: 23em;
    height: 3.125em;
    border-radius: 25px;
    border: 1px solid var(--project-nothovered);
    background-color: var(--modal-color);
    position: relative;
    left: 0.5em;
    bottom: 2.9em;
    z-index: -1;
    background-color: var(--modal-color);
    display: none;
  }

  input[type="text"] {
    width: 354px;
    color: var(--descriptional-color);
  }

  .title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .download-cv {
    border-radius: 50px;
    height: 56px;
    width: 330px;
    font-size: 22px;
    text-wrap: nowrap;
    padding: 0;
  }

  .contact-me-container {
    display: flex;
    flex-direction: column;
    margin: 0;
    justify-content: start;
    margin-top: 12%;
    gap: 60px;
  }

  ::-webkit-scrollbar {
    width: 1px;
  }

  .line {
    display: none;
  }

  .nav-container {
    display: none;
    justify-content: center;
    position: absolute;
    height: 100%;
    top: 100px;
    width: 100%;
    border: none;
    visibility: hidden;
  }

  .navbar-text ul {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Align items in the center horizontally */
    justify-content: center; /* Align items in the center vertically */
    height: 100%;
    gap: 60px;
  }

  .navbar-text {
    z-index: 15;
    top: -250px;
    font-size: 25px;
    left: 88%;
  }

  .navbar {
    height: 0;
    width: 0;
  }

  .m-navbar li.active {
    color: var(--secondary-color); /* Change text color */
    font-weight: 600;
    position: relative;
  }

  /* Show underline SVG */
  .m-navbar li.active img {
    display: block; /* Ensure it's visible */
  }

  /* Hide underline SVG for non-active items */
  .m-navbar li img {
    display: none;
  }

  .m-navbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    position: absolute;
    align-items: center;
    color: var(--text-color);
    left: 48%;
    top: 35%;
    transform: translate(
      -50%,
      -50%
    ); /* Shifts it back by half its own width & height */
    text-align: center;
    list-style: none;
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Initially hidden */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; /* Smooth transition */
  }

  .m-navbar.openm {
    opacity: 1; /* Make visible when opened */
    visibility: visible; /* Ensure visible when opened */
  }

  .m-navbar li {
    display: flex;
    flex-direction: column; /* Stack icon below the text */
    align-items: center;
    padding: 30px;
    font-size: 30px !important;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
    opacity: 0; /* Initially hidden */
    transform: translateY(-20px); /* Slightly move the elements up */
    animation: fadeIn 0.8s ease forwards; /* Add fade-in animation */
    animation-delay: 0.8s; /* Wait 1 second before starting animation */
  }

  .m-navbar li:nth-child(1) {
    animation-delay: 1s; /* Delay for each item */
  }

  .m-navbar li:nth-child(2) {
    animation-delay: 1.2s; /* Delay for each item */
  }

  .m-navbar li:nth-child(3) {
    animation-delay: 1.4s; /* Delay for each item */
  }

  .m-navbar li:nth-child(4) {
    animation-delay: 1.6s; /* Delay for each item */
  }

  .m-navbar li img {
    padding-top: 5px;
  }

  /* Keyframes for fadeIn animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px); /* Start from above */
    }
    to {
      opacity: 1;
      transform: translateY(0); /* End at the normal position */
    }
  }

  .footer-container {
    padding: 21px 0px;
  }

  .navlogo-footer {
    visibility: visible;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 30px;
    height: 100%;
    width: fit-content;
    display: flex;
  }

  .footerlinks {
    justify-content: space-between;
    padding: 0px 21px;
    width: 100%;
  }

  .divider {
    display: none;
  }
}

/* TEMPORARY MAIN NONE */
@media screen and (max-width: 768px) {
  .hamburger-menu {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-left: 1px solid var(--stroke-color);
    border-right: 1px solid var(--stroke-color);
    border-top: 1px solid var(--stroke-color);
    border-bottom: none;
    background-color: var(--footer-nav-color);
    width: 56px;
    height: 30px;
    position: absolute;
    top: 0px;
    display: flex;
    align-items: end;
    justify-content: center;
    transform: rotate(360deg) translateY(-98%) translateX(-50%);
    cursor: pointer;
    z-index: 10;
  }

  .hamburger-menu img {
    width: 30px;
    height: 20px;
    /* transform: rotate(180deg) translateY(100%); */
  }

  .open {
    height: 85%;
    display: flex;
    align-items: end;
    transition: height 0.4s ease-in-out;
  }

  .close {
    display: flex;
    align-items: end;
    transition: height 0.4s ease-in-out;
  }
}

@media screen and (max-width: 1400px) {
  .hamburger-menu {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-left: 1px solid var(--stroke-color);
    border-right: 1px solid var(--stroke-color);
    border-top: 1px solid var(--stroke-color);
    border-bottom: none;
    background-color: var(--footer-nav-color);
    width: 56px;
    height: 30px;
    position: absolute;
    top: 0px;
    display: flex;
    align-items: end;
    justify-content: center;
    left: 50%;
    transform: rotate(360deg) translateY(-98%) translateX(-50%);
    cursor: pointer;
    z-index: 10;
  }

  .hamburger-menu img {
    width: 30px;
    height: 20px;
    /* transform: rotate(180deg) translateY(100%); */
  }

  .open {
    height: 85%;
    display: flex;
    align-items: end;
    transition: height 0.4s ease-in-out;
  }

  .close {
    display: flex;
    align-items: end;
    transition: height 0.4s ease-in-out;
  }
  html,
  body {
    overflow: auto;
    min-height: 100vh;
  }

  input[type="submit"] {
    top: 6%;
    position: relative;
  }

  input:focus {
    padding-left: 20px;
  }

  input::placeholder,
  textarea::placeholder {
    text-align: center;
  }

  textarea::placeholder {
    padding-top: 12px;
  }

  label[for="name"],
  label[for="email"],
  label[for="message"] {
    width: max-content;
    position: relative;
    margin: 0;
  }

  #name,
  #email,
  #message {
    padding-left: 0px;
  }

  #message {
    width: 354px;
  }

  .name-message {
    width: 380px;
    left: 10px;
    display: none;
  }

  .contact-wrapper {
    margin: 0;
  }

  form {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .name {
    width: 23em;
    height: 3.125em;
    border-radius: 25px;
    border: 1px solid var(--project-nothovered);
    background-color: var(--modal-color);
    position: relative;
    left: 0.5em;
    bottom: 2.9em;
    z-index: -1;
    background-color: var(--modal-color);
    display: none;
  }

  input[type="text"] {
    width: 354px;
    color: var(--descriptional-color);
  }

  .title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .download-cv {
    border-radius: 50px;
    height: 56px;
    width: 330px;
    font-size: 22px;
    text-wrap: nowrap;
    padding: 0;
  }

  .contact-me-container {
    display: flex;
    flex-direction: column;
    margin: 0;
    justify-content: start;
    margin-top: 12%;
    gap: 60px;
  }

  ::-webkit-scrollbar {
    width: 1px;
  }

  .line {
    display: none;
  }

  .nav-container {
    display: none;
    justify-content: center;
    position: absolute;
    height: 100%;
    top: 100px;
    width: 100%;
    border: none;
    visibility: hidden;
  }

  .navbar-text ul {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Align items in the center horizontally */
    justify-content: center; /* Align items in the center vertically */
    height: 100%;
    gap: 60px;
  }

  .navbar-text {
    z-index: 15;
    top: -250px;
    font-size: 25px;
    left: 88%;
  }

  .navbar {
    height: 0;
    width: 0;
  }

  .m-navbar li.active {
    color: var(--secondary-color); /* Change text color */
    font-weight: 600;
    position: relative;
  }

  /* Show underline SVG */
  .m-navbar li.active img {
    display: block; /* Ensure it's visible */
  }

  /* Hide underline SVG for non-active items */
  .m-navbar li img {
    display: none;
  }

  .m-navbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    position: absolute;
    align-items: center;
    color: var(--text-color);
    left: 50%;
    top: 35%;
    transform: translate(
      -50%,
      -50%
    ); /* Shifts it back by half its own width & height */
    text-align: center;
    list-style: none;
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Initially hidden */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; /* Smooth transition */
  }

  .m-navbar.openm {
    opacity: 1; /* Make visible when opened */
    visibility: visible; /* Ensure visible when opened */
  }

  .m-navbar li {
    display: flex;
    flex-direction: column; /* Stack icon below the text */
    align-items: center;
    padding: 30px;
    font-size: 30px !important;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
    opacity: 0; /* Initially hidden */
    transform: translateY(-20px); /* Slightly move the elements up */
    animation: fadeIn 0.8s ease forwards; /* Add fade-in animation */
    animation-delay: 0.8s; /* Wait 1 second before starting animation */
  }

  .m-navbar li:nth-child(1) {
    animation-delay: 1s; /* Delay for each item */
  }

  .m-navbar li:nth-child(2) {
    animation-delay: 1.2s; /* Delay for each item */
  }

  .m-navbar li:nth-child(3) {
    animation-delay: 1.4s; /* Delay for each item */
  }

  .m-navbar li:nth-child(4) {
    animation-delay: 1.6s; /* Delay for each item */
  }

  .m-navbar li img {
    padding-top: 5px;
  }

  /* Keyframes for fadeIn animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px); /* Start from above */
    }
    to {
      opacity: 1;
      transform: translateY(0); /* End at the normal position */
    }
  }

  .footer-container {
    padding: 21px 0px;
  }

  .navlogo-footer {
    visibility: visible;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 30px;
    height: 100%;
    width: fit-content;
    display: flex;
  }

  .footerlinks {
    justify-content: space-between;
    padding: 0px 21px;
    width: 100%;
  }

  .divider {
    display: none;
  }
}

/* CONTACT FORM SUCCESS */
.success {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  background-color: #ff4500;
  border-radius: 50px;
  width: fit-content;
  height: fit-content;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
  gap: 20px;
}

.success img {
  width: 32px;
  height: 32px;
}

.success p {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-style: normal;
  color: #f2f2f2;
  font-size: 21px;
}

@media screen and (max-width: 768px) {
  .success p {
    font-size: 16px;
  }
  .success img {
    width: 32px;
    height: 22px;
  }
}
