@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.my-20 {
  margin: 20px 0 20px 0;
}

.pd2 {
  padding: 20px;
}

.tx-3 {
  font-size: 3em;
}

.tx-1 {
  font-size: 1em;
}

.justify {
  text-align: justify;
}

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

li {
  list-style: none;
}

body {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  font-family: "Ubuntu", sans-serif;
}

nav {
  position: fixed;
  height: 100vh;
  background-color: rgba(79, 79, 250, 0.724);
  top: 0;
  left: 0;
  z-index: 10;
  color: white;
}

.Logo {
  letter-spacing: 11px;
  background-color: black;
  padding: 8px;
}

.menu-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: white;
  height: fit-content;
  margin-top: 45px;
  height: 81vh;
}

.arrow i {
  font-size: 40px;
}

nav ul {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

nav ul li {
  /* margin-top: 10px; */
  padding: 28px;
  text-align: center;
}

nav ul li a i {
  font: larger bolder;
  transition: 0.3s;
}

nav .arrow i:hover {
  color: blue;
}

nav .menu i:hover {
  color: blue;
  transform: scale(1.5);
}

.container {
  margin: 10px 30px 10px 30px;
}

main {
  margin-left: 82px;
  position: relative;
}

.home {
  height: 100vh;
  position: relative;
}

.hero {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  transform: translate(0, 50%);
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

section .user-img {
  z-index: 2;
  border-radius: 50%;
  overflow: hidden;
  height: 175px;
  width: 175px;
  box-shadow: rgba(0, 0, 0, 0.9) 0px 5px 50px;
  opacity: 0.96;
}

.user-img:hover {
  animation: coinToss 2s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

section .user-img img {
  height: 120%;
  width: 100%;
}

@keyframes coinToss {
  0% {
    transform: scale(1) rotateY(0);
  }

  30% {
    transform: scale(1) rotate(10deg);
  }

  60% {
    transform: scale(1) rotate(-10deg);
  }

  100% {
    transform: scale(1) rotateY(0);
  }

  /* 100%{
    transform: scale(1) rotate(0);
  } */
}

.description {
  margin-top: 20px;
  width: min-content;
  text-align: center;
  z-index: 2;
}

section h3 {
  font-size: 1.5rem;
  letter-spacing: 6px;
  color: white;
}

section h1 {
  font-size: 2rem;
  line-height: 60px;
}

section h1 span:first-child {
  color: blue;
}

section h1 span:last-child {
  color: rgb(0, 128, 255);
}

.typewriter {
  width: min-content;
  margin: 0 60px 0 60px;
}

.typewriter h1 {
  overflow: hidden;
  /* Ensures the content is not revealed until the animation */
  border-right: 0.2em solid rgb(225, 218, 218);
  /* The typwriter cursor */
  white-space: nowrap;
  /* Keeps the content on a single line */
  margin: 0 auto;
  /* Gives that scrolling effect as the typing happens */
  letter-spacing: 0.15em;
  /* Adjust as needed */
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: rgba(244, 244, 244, 0.47);
  }
}

.ajaya:first-child {
  transform: rotate3d(0, 0, 1, 90deg);
}

section p {
  color: rgb(71, 65, 65);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.1rem;
}

section p span:first-child {
  color: rgba(8, 8, 240, 0.759);
}

.resume-btn {
  color: white !important;
  font-size: 15px !important;
  height: 40px;
  padding: 10px 20px;
  background-color: rgba(79, 79, 250, 0.724);
  border: none;
  border-radius: 8px;
}

.resume-btn:hover {
  background: blue;
}

.socials ul {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.socials ul li a {
  margin: 20px;
  font-size: 30px;
  color: rgba(0, 0, 255, 0.512);
}

.socials ul li a i:hover {
  color: blue;
  transform: section(1.4);
  transition: 0.6s ease-in-out;
}

section a {
  color: black;
}

.about-me {
  width: auto;
  height: auto;
}

.title {
  color: rgb(57, 117, 247);
  text-shadow: 0 0 3px rgba(137, 137, 237, 0.805);
}

.title span {
  position: relative;
}

.title span::after {
  position: absolute;
  content: "";
  border-bottom: 3px solid rgb(208, 177, 238);
  width: 50%;
  left: 0;
  bottom: -10px;
}

.title h4 {
  line-height: 10px;
}

.sub-title {
  color: black;
  padding: 10px;
  margin: 10px 0px 10px 0px;
}

.contents {
  background-color: #f4f3f8;
  display: flex;
  justify-content: space-between;
}

.contents img {
  width: auto;
  height: auto;
}

.details {
  border: 1px dashed rgba(0, 0, 0, 0.244);
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: auto;
  padding: 20px;
}

.details li {
  padding: 10px;
}

.bar {
  width: 100%;
  height: 40px;
  background: aliceblue;
  overflow: hidden;
  align-items: center;
  display: flex;
  margin-bottom: 10px;
  background: rgba(79, 79, 250, 0.561);
}

.skill {
  width: 20%;
  height: 100%;
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: space-around;
  color: white;
  font-weight: 900;
}

.progress {
  width: 80%;
  height: 100%;
}

.ninety-progress {
  width: 90%;
  height: 100%;
  background: rgba(56, 69, 95, 0.259);
}

.eighty-progress {
  width: 80%;
  height: 100%;
  background: rgba(56, 69, 95, 0.259);
}

.seventy-progress {
  width: 70%;
  height: 100%;
  background: rgba(56, 69, 95, 0.259);
}

.sixty-progress {
  width: 60%;
  height: 100%;
  background: rgba(56, 69, 95, 0.259);
}

.fifty-progress {
  width: 50%;
  height: 100%;
  background: rgba(56, 69, 95, 0.259);
}

.fourty-progress {
  width: 40%;
  height: 100%;
  background: rgba(56, 69, 95, 0.259);
}

.percent {
  color: wheat;
  width: 5%;
  height: 100%;
  background: #064becb3;
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: space-around;
}

.projects-wrapper {
  padding: 20px;
  display: flex;
  justify-content: space-around;
}

.project-box {
  width: 300px;
  height: 400px;
  /* border: 1px solid rgba(0, 0, 0, 0.346); */
  background-color: rgba(0, 255, 255, 0.145);
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  overflow: hidden;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  position: relative;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.529);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  opacity: 0;
  transition: 0.4s;
}

.btn-58 {
  position: absolute;
  z-index: 100;
  left: 27%;
  top: 46%;
  display: none;
  cursor: pointer;
  align-items: center;
  background-color: #06f;
  border: 2px solid #06f;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  height: 48px;
  justify-content: center;
  letter-spacing: -0.8px;
  line-height: 24px;
  min-width: 140px;
  outline: 0;
  padding: 0 17px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-58:focus {
  color: white;
}

.button-58:hover {
  background-color: #3385ff;
  border-color: #3385ff;
  fill: #06f;
  color: white;
}

.button-58:active {
  background-color: #3385ff;
  border-color: #3385ff;
  fill: #06f;
}

@media (min-width: 768px) {
  .button-58 {
    min-width: 170px;
  }
}

.project-box:hover > a .btn-58 {
  display: block;
}

.project-box:hover > .overlay {
  opacity: 1;
}

.project-img {
  width: 100%;
  height: 300px;
  overflow: hidden;
  padding: 10px;
}

.project-title {
  padding: 20px;
}

.resume-screenshot {
  text-align: center;
  margin: auto;
}

.resume-screenshot img {
  width: 50%;
  margin: auto;
  padding: 10px;
}

.sub-contents {
  display: flex;
  flex-wrap: wrap;
  padding: 25px;
}

.sub-contents li {
  text-align: justify;
}

.sub-contents li span {
  font-weight: 900;
}

.a-underline {
  text-decoration: underline rgba(125, 23, 220, 0.365) 3px;
}

table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

table th {
  text-align: center;
  background-color: rgba(124, 158, 236, 0.471);
}

td,
th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

.contactus {
  display: flex;
  flex-direction: row;
  padding: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  width: 50%;
  background-color: rgba(79, 79, 250, 0.724);
  padding: 50px;
}

.input-control {
  padding: 10px;
  border: none;
  border-bottom: 1px solid wheat;
  margin: 10px 0 10px 0px;
  background: none;
  color: white;
}
.input-control::placeholder {
  color: white;
}

.input-control:focus {
  outline: none;
}

.contact-submit {
  margin-top: 40px;
  width: max-content;
  padding: 8px;
  background: #0f294f76;
  border: none;
}

.contact-submit:hover {
  cursor: pointer;
  background-color: #06f;
}

.contact-details {
  width: 50%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  background-color: #dddddd48;
}
.cont-detail {
  display: flex;
  flex-direction: row;
  justify-content: left;
  padding: 20px 20px 20px 0px;
}

.contact-icon i {
  font-size: 20px;
  color: white;
}

.contact-icon i::before {
  background-color: #06f;
  padding: 20px;
  margin-right: 20px;
  border-radius: 50%;
}

@media only screen and (max-width: 800px) {
  nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
  }

  .home {
    height: 100vh;
    width: auto;
    position: relative;
  }

  .hero {
    transform: scale(0.9) translate(0, 50%);
  }

  .about-me {
    display: flex;
    flex-direction: column;
  }

  .contents {
    display: flex;
    flex-direction: column;
  }

  .contents img {
    width: auto;
  }

  table {
    font-size: 0.9em;
  }
  .bar {
    width: 100%;
  }

  .skill {
    width: 30%;
  }
  .progress {
    width: 60%;
  }
  .percent {
    width: 10%;
  }

  .contactus {
    display: flex;
    flex-direction: column;
  }

  .contact-form {
    width: 100%;
  }

  .contact-details {
    width: 100%;
  }
}

@media only screen and (max-width: 500px) {
  nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
  }

  .home {
    width: auto;
    height: 70vh;
    position: relative;
  }

  .hero {
    position: absolute;
    top:65px;
    transform: scale(0.7);
  }

  .contents {
    display: flex;
    flex-direction: column;
  }

  .contents img {
    width: auto;
  }

  .details {
    display: flex;
    flex-direction: column;
  }

  table {
    font-size: 0.4em;
  }

  .bar {
    width: 100%;
  }

  .skill {
    width: 60%;
  }
  .progress {
    width: 20%;
  }
  .percent {
    width: 20%;
  }
}

@media only screen and (max-width: 400px) {
  nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 112vh;
  }

  .home {
    height: 50vh;
    width: auto;
    position: relative;
  }

  .hero {
    position: absolute;
    transform: scale(0.6);
  }

  .about-me {
    width: auto;
  }

  .contents {
    display: flex;
    flex-direction: column;
  }

  .contents img {
    width: auto;
  }

  .details {
    display: flex;
    flex-direction: column;
  }

  .details ul li {
    text-align: start;
  }

  table {
    font-size: 0.9em;
    width: 100%;
  }

  .bar {
    width: 100%;
  }

  .skill {
    width: 60%;
  }
  .progress {
    width: 20%;
  }
  .percent {
    width: 20%;
  }

  .contactus {
    display: flex;
    flex-direction: column;
  }
}
