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

html {
  scroll-behavior: smooth;
}

body {
  background: url("./assests/images/main-background.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

h1,
h2,
h3,
h5 {
  font-family: "Roboto", sans-serif;
}

p,
a,
span,
li {
  font-family: "Montserrat", sans-serif;
  color: rgba(255, 255, 255, 0.8);
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  margin-top: 50px;
}

nav {
  height: 60px;
  width: 85%;
  color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.074);
  border: 1px solid rgba(255, 255, 255, 0.222);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-left: auto;
  margin-right: 0;
  border-radius: 65px 0px 0px 65px;
}

.nav-item > ul {
  list-style: none;
}

.nav-links {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 17px;
  transition: color 0.3s;
}

.nav-links:hover {
  color: white;
}

main {
  padding: 60px 0;
}

.cricle {
  height: 600px;
  width: 600px;
  background: grey;
  opacity: 0.1;
  border-radius: 100%;
  position: absolute;
  top: 1px;
  right: 1px;
  z-index: -10;
}

section {
  scroll-margin-top: 80px;
}

#Home {
  height: 85vh;
}

.profile-container {
  height: 350px;
}

.profile {
  height: 250px;
  padding-left: 50px;
}

.mouse-btn {
  margin: 10px auto;
  width: 35px;
  height: 60px;
  border: 3px solid rgba(122, 122, 124, 0.918);
  border-radius: 20px;
  display: flex;
}

.mouse-scroll {
  display: block;
  width: 15px;
  height: 15px;
  background: linear-gradient(
    170deg,
    rgba(122, 122, 124, 0.918),
    rgb(123, 124, 124)
  );
  border-radius: 50%;
  margin: auto;
  animation: scrolling13 1s linear infinite;
}

@keyframes scrolling13 {
  0% {
    opacity: 0;
    transform: translateY(-15px);
  }
  100% {
    opacity: 1;
    transform: translateY(15px);
  }
}

#skills {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.skills-wrapper {
  width: 100%;
}

.page-heading {
  margin-bottom: 30px;
  font-size: 30px;
  font-weight: bolder;
}

.center-content {
  flex-grow: 1;
  min-height: calc(100vh - 120px);
}

.box {
  min-height: 40px;
  background-color: rgba(255, 255, 255, 0.074);
  border: 1px 1px 1px solid rgba(255, 255, 255, 0.222);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 50px;
  justify-content: flex-start;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.box-spacing {
  margin-right: 40px;
}

.list {
  text-align: start;
  padding-top: 30px;
}

.list > li {
  font-size: 20px;
  margin-bottom: 13px;
}

.box p {
  font-weight: normal;
  font-size: 25px;
  margin-bottom: 15px;
}

.box img {
  width: 50px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.box img:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

#Projects {
  height: 96vh;
}

.custom-card {
  background-color: rgba(255, 255, 255, 0.074);
  border: 1px solid rgba(255, 255, 255, 0.222);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card-img-wrapper img {
  border-radius: 15px 15px 0px 0px;
}

.tags {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 12px;
  border-radius: 15px;
  padding: 5px 10px;
}

.globe img {
  filter: brightness(0) invert(1);
  height: 12px;
  padding-right: 5px;
}

.globe a {
  color: white;
  font-size: 12px;
  border-radius: 15px;
  padding: 5px 10px;
  background-color: rgba(255, 255, 255, 0.074);
  border: 1px solid rgba(255, 255, 255, 0.222);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.globe a:hover {
  color: white;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 119, 255, 0.349);
}

#Projects .animated-button {
  margin-top: 70px;
}

.animated-button {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  border: none;
  font-size: 16px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: #ffffff40;
  box-shadow: 0 0 0 2px #ffffff20;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button span:last-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-60%, -60%);
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.074);
  border: 1px solid rgba(255, 255, 255, 0.222);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button span:first-child {
  position: relative;
  z-index: 1;
}

.animated-button:hover {
  border: 1px solid rgba(255, 255, 255, 0.222);
  color: #ffffff;
}

.animated-button:active {
  scale: 0.95;
}

.animated-button:hover span:last-child {
  width: 150px;
  height: 150px;
  opacity: 1;
}

#About {
  height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.big-box {
  max-width: 700px;
  height: 300px;
  color: white;
  background-color: rgba(255, 255, 255, 0.074);
  border: 1px solid rgba(255, 255, 255, 0.222);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font-size: 14px;
  padding: 40px;
  border-radius: 20px;
}

#Contact {
  min-height: 40vh;
}

.contact-box {
  width: 500px;
  padding: 40px 20px;
  background-color: rgba(255, 255, 255, 0.074);
  border: 1px solid rgba(255, 255, 255, 0.222);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  max-width: 600px;
  margin: auto;
  transition: transform 0.3s ease;
}

.contact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.contact-box img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.contact-box img:hover {
  transform: scale(1.1);
}

label {
  text-align: start;
}

.message {
  margin-top: 10px;
}

input,
textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.074);
  border: 1px solid rgba(255, 255, 255, 0.222);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  color: white;
  padding: 0px 7px 0px 7px;
}

input {
  height: 40px;
  text-align: center;
}

textarea {
  height: 150px;
  resize: none;
  padding: 10px;
}

#submit {
  font-size: 14px;
  background: rgba(255, 255, 255, 0.074);
  color: white;
  padding: 0.8em 1.2em;
  border: none;
  border-radius: 20px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

#submit:hover {
  transform: translateY(-3px);
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
}

#submit:active {
  transform: scale(0.95);
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.social-img footer {
  font-size: 12px;
}

@media (max-width: 768px) {
  header {
    margin-top: 20px;
  }

  nav {
    width: 95%;
    border-radius: 20px;
    height: auto;
    min-height: 60px;
    padding: 10px 20px;
  }

  .navbar-toggler {
    border: none;
    color: rgba(255, 255, 255, 0.5);
  }

  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-top: 15px;
    padding: 15px;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-item {
    margin: 5px 0;
  }

  main {
    padding: 30px 0;
  }

  .cricle {
    height: 300px;
    width: 300px;
  }

  #hero {
    display: flex;
    justify-content: center;
  }

  #Home {
    height: auto;
    min-height: 70vh;
    display: flex;
  }

  .profile-container {
    height: auto;
    margin-bottom: 20px;
  }

  .profile {
    height: 100px;
    padding-left: 0;
    padding-top: 20px;
  }

  .container_mouse {
    padding-top: 60px;
    visibility: hidden;
  }

  .box {
    padding: 30px 20px;
    margin-bottom: 20px;
  }

  .box-spacing {
    margin-right: 0;
  }

  .box p {
    font-size: 20px;
  }

  .box img {
    width: 40px;
    height: 45px;
  }

  .list > li {
    font-size: 16px;
  }

  #Projects {
    height: auto;
    min-height: 80vh;
  }

  .custom-card {
    margin-bottom: 20px;
    max-width: 100%;
  }

  #Contact {
    margin-top: 40px;
  }
  .contact-box {
    width: 95%;
    margin: 0 auto;
    padding: 30px 20px;
  }

  .contact-box img {
    width: 35px;
    height: 35px;
  }

  input,
  textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
  }

  .page-heading {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .profile {
    height: 150px;
  }

  .box {
    padding: 20px 15px;
  }

  .box p {
    font-size: 18px;
  }

  .box img {
    width: 35px;
    height: 40px;
  }

  .list > li {
    font-size: 14px;
  }

  .contact-box {
    padding: 20px 15px;
  }

  .contact-box img {
    width: 30px;
    height: 30px;
  }

  .page-heading {
    font-size: 20px;
  }

  .tags {
    font-size: 12px;
    padding: 3px 6px;
  }

  .profile-container h1 {
    font-size: 1.8rem;
  }
}
