@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: #0d0d0d;
  overflow-x: hidden;
}

.container {
  background-size: contain;
  display: flex;
  width: 100%;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 8vh;
  width: 100%;
  padding: 0 5%;
  background-color: rgb(53, 51, 51);
  background: linear-gradient(to right, rgb(220, 139, 229), rgb(3, 252, 252));
  position: fixed;
  top: 0;
  left: 0;
}
.hamburger {
  display: none;
}
.menu-overlay {
  display: none;
}
.name {
  margin-left: 20px;
  font-size: larger;
}

.name>span {
  margin-right: 5px;
  font-weight: 800;
  color: aqua;
  font-size: larger;
}

.actions {
  display: flex;
  gap: 10px;
  margin-right: 30px;
}

.actions>a {
  text-decoration: none;
}

main {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10vh;
}

.introSection {
  display: flex;
  flex-shrink: 0;
  overflow: hidden;
  margin-top: 25vh;
}

.Intro {
  margin-right: 50px;
}

.intro {
  font-size: 45px;
  font-weight: 900;
  color: aliceblue;
}

.Intro span {
  font-weight: 900;
  color: aqua;
}

.domain {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  color: aliceblue;
}

.image {
  height: 30vh;
  width: 15vw;
  border-radius: 100%;
  margin-left: 100px;
}

.location {
  margin-top: 15px;
  font-size: large;
  color: aliceblue;
  font-weight: 400;
}

.location span {
  margin-right: 5px;
}

.link {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  font-size: 30px;
  color: white;
}

.dp {
/*   height: 30vh; */
  width: 15vw;
  border-radius: 100%;
  object-fit: contain;
}

.About {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 80px;
  margin-left: 100px;
}

.about {
  height: auto;
  width: 40%;
  color: aliceblue;
}

.about h2 {
  margin: 20px 0 0 0;
  font-size: 30px;
}

.about h3 {
  font-weight: 400;
  margin-bottom: 20px;
}

.personal {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  font-weight: 300;
  font-size: medium;
}

.personal span {
  font-weight: 400;
}

.details {
  font-weight: 300;
}

.resume {
  border: none;
  border-radius: 15px;
  height: 40px;
  width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px;

  background-color: white;
}

.resume span {
  color: black;
  font-weight: 400;
  text-decoration: none;
}

.resume a {
  text-decoration: none;
}

.keySkill {
  height: 40vh;
  width: 30%;
  z-index: -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-right: 100px;
  position: relative;
}

.skill {
  height: 19vh;
  width: 19vh;
  border-radius: 10px;
  background-color: rgb(56, 60, 63);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill img {
  height: 35px;
}

.sName {
  border-radius: 10px;
}

.sName p {
  color: white;
  border: 0.2px solid rgba(255, 255, 255, 0.3);
  width: 80px;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  padding: 2px;
  border-radius: 15px;
  margin-bottom: 2px;
  position: absolute;
  animation: jiggle 4s ease-in-out infinite;
}

.p1 {
  top: 0;
  left: 0;
  /* animation-delay: 0.2s; */
}

.p2 {
  top: 0;
  right: -50px;
  /* animation-delay: 0.4s; */
}

.p3 {
  bottom: 0;
  left: 0;
  /* animation-delay: 0.6s; */
}

.p4 {
  bottom: 0;
  right: 0;
  /* animation-delay: 0.8s; */
}

@keyframes jiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(3deg);
  }

  50% {
    transform: rotate(-3deg);
  }

  75% {
    transform: rotate(3deg);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

#box2 {
  animation: bounce 2s ease-in-out infinite;
}

#box4 {
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.5), 0 0 30px rgba(0, 247, 255, 0.4);
  }

  100% {
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
  }
}

#box3 img {
  animation: bounce 4s ease-in-out infinite;
}

#box1 img {
  animation: spin 5s ease infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.education {
  width: 100%;
  margin-top: 80px;
  margin-left: 100px;
  color: aliceblue;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.studies {
  margin-top: 20px;
  margin-left: 40px;
}

.degree {
  display: flex;
  gap: 10px;
}

.degree i {
  border: 0.2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  padding: 10px;
  text-align: center;
}

.studyDetail {
  margin-bottom: 20px;
}

.studyDetail p {
  line-height: 1.4;
}

.skillSec {
  width: 100%;
  margin-top: 80px;
  justify-content: flex-start;
  margin-left: 100px;
  color: aliceblue;
}

.heading {
  font-weight: 300;
  margin: 30px 0;
}

.tech h3 {
  margin-bottom: 20px;
}

/* .techStack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.techStack span {
    width: 50px;
    margin-left: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: darkgrey;
    border: none;
    border-radius: 50%;
}
.techStack img {
    height: 25px;
} */
.techStack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.techStack span {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  /* adjust as needed */
}

.iconCircle {
  width: 55px;
  height: 55px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.iconCircle img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.techStack p {
  font-size: 14px;
  color: white;
  text-align: center;
  margin: 0;
  font-weight: 300;
}

.iconCircle:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.3);
}

.projects {
  width: 100%;
  color: aliceblue;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: 80px;
}

.projectHeading {
  margin: 50px 0;
  width: 100%;
  text-align: left;
}

.projectContainer {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  height: auto;
  width: 70%;
}

.card {
  width: 50%;
  margin-bottom: 20px;
  border: 1px solid rgb(169, 169, 169, 0.3);
  height: auto;
  border-radius: 15px;
}

.card img {
  object-fit: contain;
  width: 100%;
  border-radius: 15px 15px 0 0;
}

.detailContainer {
  padding: 20px;
}

.detailContainer p {
  width: 80%;
  margin: 15px 0;
  font-weight: 300;
}

.technology {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.card {
  margin-bottom: 10px;
  transition: box-shadow 0.5s ease;
}

.technology div {
  width: auto;
  border: 1px solid white;
  padding: 5px;
  font-size: 12px;
  border-radius: 15px;
}

.technology div:hover {
  background-color: rgb(169, 169, 169, 0.3);
}

.card li {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  /* margin-bottom: 20px; */
}

.featureList {
  margin-bottom: 20px;
}

.card a {
  width: auto;
  padding: 10px;
  border: none;
  background-color: aliceblue;
  color: #0d0d0d;
  border-radius: 10px;
  text-decoration: none;
}

.card:hover {
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.3);
}

.contact {
  color: white;
  width: 100%;
  margin-left: 80px;
  margin-top: 100px;
}

.contact h2 {
  margin-bottom: 40px;
}

.contactInfo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 50px;
}

.infoContainer {
  display: flex;
  margin-bottom: 10px;
  line-height: 1.4;
}

.icon {
  height: 35px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 50%;
  margin-right: 10px;
}

.infoContainer a {
  text-decoration: none;
  color: white;
}

@media (max-width: 1024px) {
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 8vh;
    width: 100%;
    background-color: rgb(53, 51, 51);
    background: linear-gradient(to right, rgb(220, 139, 229), rgb(3, 252, 252));
    position: fixed;
    top: 0;
    left: 0;
  }

  .dp {
    height: 13vw;
    /* Make height and width equal */
    width: 13vw;
    object-fit: cover;
    /* Ensure image covers the whole container */
    border-radius: 50%;
    /* Makes it perfectly round */
  }

  .image {
    height: 13vw;
    width: 13vw;
    object-fit: cover;
    border-radius: 50%;
    margin-left: 100px;
  }

  .About {
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 80px;
    justify-content: start;
    margin-left: 100px;
  }

  .personal {
    width: 240px;
    display: flex;
    justify-content: start;
    line-height: 1.5;
  }

  .keySkill {
    height: auto;
    width: calc(28vh + 10px);
    /* Strictly fits 2 boxes and 1 gap */
    z-index: -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-left: 100px;
    position: relative;
  }

  .skill {
    height: 14vh;
    width: 14vh;
    border-radius: 10px;
    background-color: rgb(56, 60, 63);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .projects {
    margin: 0;
  }

  .card {
    width: 80%;
  }

  .detailContainer {
    line-height: 1.5;
  }

  .technology {
    width: 90%;
    gap: 10px;
  }

  .technology div {
    padding: 7px;
  }
}

@media (max-width: 768px) {
  .introSection {
    margin-top: 10vh;
  }

  .image {
    height: 30vh;
    width: 40vw;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 100px;
  }

  .dp {
    height: 20vw;
    /* Make height and width equal */
    width: 20vw;
    object-fit: cover;
    /* Ensure image covers the whole container */
    border-radius: 50%;
    /* Makes it perfectly round */
  }

  .About {
    flex-direction: column;
    justify-content: start;
  }

  .about {
    width: 90%;
    justify-content: start;
    margin-bottom: 35px;
  }

  .keySkill {
    margin: 0 100px 0 0;
  }
}

@media (max-width:700px) {
  .introSection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
  }
  .Intro {
    order: 2;
  }
  .image {
    margin: 0;
  }
  .About h2 {
    margin-left: 25px;
  }
  .About h3 {
    margin-left: 25px;
  }
  .personal {
    margin-left: 25px;
  }
  .details {
    margin-left: 25px;
  }
  .resume {
    margin-left: 25px;
  }
  .p1 {
    left: -70px;
  }
  .p3 {
    left: -70px;
  }
  .p4 {
    right: -50px;
  }
  .actions {
    display: none;
  }
  .hamburger {
    display: block;
  }
 .menu-overlay {
  position: fixed;
  top: 8vh;
  left: 0;
  width: 100vw;
  height: 40vh;
  background-color: rgba(103, 100, 100, 0.8); /* Fully opaque black */
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.menu li {
  margin: 20px 20px;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 300;
  transition: color 0.3s;
}

.menu li a:hover {
  color: #00ffff;
}

  #close {
    display: none;
    font-size: 30px;
  }
  #menu {
    font-size: 30px;
  }
}

@media (max-width: 500px) {
  .Intro {
    padding: 0 0 0 75px;
  }
  .details {
    width: 80%;
  }
  .card {
    width: 130%;
  }
}

@media (max-width:450px) {
  .Intro {
    width: 100%;
  }
  .About {
    margin-left: 20px;
  }
  .details {
    width: 90%;
  }
  .keySkill {
    margin: 0;
  }
  .skillSec {
    margin-left: 20px;
  }
  .techStack {
    gap: 15px;
  }
  .education {
    margin-left: 20px;
  }
  .studies {
    margin-left: 15px;
  }
    .heading {
      width: 90%;
    }
}
