@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Oswald:wght@200..700&family=Poppins: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&display=swap");

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bgcolor);
}

:root {
  --bodywidth: 900px;
  --textcolor: grey;
  --headcolor: black;
  --boxpadding: 15vh;
  --boxmargin: 10vh;
  --bgcolor: white;
  --navbox-margin: 5%;
}

/* Scrollbar Width */
::-webkit-scrollbar {
  width: 4px;
}

/* Scrollbar Track */
::-webkit-scrollbar-track {
  background: var(--bgcolor);
}

/* Scrollbar Thumb */
::-webkit-scrollbar-thumb {
  background: grey;
  width: 4px;
  height: 6px;
  border-radius: 10px;
}

/* Thumb on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--headcolor);
  box-shadow: 0px 6px 8px black;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    /* transform: translateY(-20px); */
  }
  100% {
    opacity: 1;
    /* transform: translateY(0); */
  }
}

@keyframes zoomin {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes up_to_down {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------
   TABLETS (max-width: 900px)
   ------------------------ */
@media (max-width: 900px) {
  :root{
    --bodywidth: 100vw;
  }
  html {
    padding: 40px;
    flex-direction: column;
    align-items: center;
  }
  body {
    max-width: var(--bodywidth);
  }
  .intro {
    flex-direction: column;
    row-gap: 20px;
    align-items: center;
  }
  .greet {
    font-size: 32px;
    text-align: center;
  }
  .pronouns, .about-head {
    font-size: medium;
    text-align: center;
  }
  .me {
    height: 180px;
    width: 180px;
  }
  .education {
    padding-top: 8vh;
    margin-top: 5vh;
  }
  .heading {
    font-size: 28px;
  }
  .project-box {
    grid-template-columns: 1fr;
    row-gap: 35px;
    margin-top: 5%;
  }
  .skill-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 14px;
  }
  .contact-line {
    font-size: large;
  }
  .contact-links {
    column-gap: 18px;
  }
  .social-links-box {
    width: 58px;
    height: 58px;
  }
  .social-links {
    width: 58px;
  }
  nav svg {
    width: 35px;
    height: 35px;
  }
}

/* ----------------------------
   MOBILES (max-width: 600px)
   ---------------------------- */
@media (max-width: 620px) {

  :root{
    --bodywidth: 90%;
    --boxmargin: 0px;
    --navbox-margin: 5%;
    --boxpadding: 5vh;
  }

  body{
    width: var(--bodywidth);
  }
  .intro {
    flex-direction: column;
    row-gap: 25px;
    align-items: center;
  }
  .greet {
    font-size: 35px !important;
  }
  .greet img{
    width: 40px;
    height: 40px;
  }
  .pronouns {
    font-size: medium !important;
  }
  .about-head {
    font-size: 25px !important;
  }
  .about{
    font-size: 12px !important;
  }
  .me {
    height: 110px !important;
    width: 110px !important;
  }
  .education {
    margin-top: 0px;
  }
  .heading {
    font-size: 25px !important;
  }
  .content {
    margin: 0 !important;
    padding: 0 !important;
    row-gap: 12px !important;
  }
  .education-card img {
    width: 40px !important;
    height: 40px !important;
  }
  .degree {
    font-size: 12px !important;
  }
  .branch, .score, .tnr-loc {
    font-size: 8px !important;
  }
  .skill-grid {
    grid-template-columns: repeat(4, 1fr) !important; 
    grid-template-rows: repeat(4, 1fr) !important;
    gap: 10px;
  }
  .skill-name,
  .tech,
  .project-links a {
    font-size: x-small !important;
    padding: 3px 6px !important;
  }
  .project-box {
    grid-template-columns: 1fr !important;
    row-gap: 25px; 
  }
  .proj-card {
    padding-bottom: 8px;
    border-radius: 10px;
  }
  .project-title {
    font-size: medium;
  }
  .project-description {
    font-size: small;
  }
  .contact-line {
    font-size: large !important;
    letter-spacing: 2px !important;
    padding: 2px !important;
  }
  .contact-links {
    column-gap: 10px !important;
    margin-top: 20px !important;
  }
  .social-links-box img{
    width: 40px;
    height: 40px;
  }
  .social-links{
    width: 50px !important;
    height: 50px !important;
  }
  .comment{
    bottom: -22% !important;
  }
  .navbox {
    padding: 2px;
  }
  .navbar {
    padding: 4px;
    border-radius: 25px;
  }
  nav svg {
    width: 26px;
    height: 26px;
    padding: 5px;
  }
}


html{ 
  padding: 0px 2%;
  padding-top: 6vh;
  margin: 0;
  transition: all 0.4s ease-in-out;
  display: flex;
  justify-content: center;
}

body{
  max-width: var(--bodywidth);
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 5vh;
}

.intro, .education,.projects, .skills, .contact{
  animation: up_to_down 0.5s cubic-bezier(0.63, 0.2, 0.4, 0.98) forwards;
  width: 100%;
}

/* HOME TAB */
.intro {
  display: flex;
  justify-content: space-evenly;
  column-gap: 9%;
}

.greet {
  color: var(--headcolor);
  font-size: 48px;
  font-weight: 600;
  font-family: poppins, serif;
  padding: 2px;
  box-sizing: border-box;
  transition: all 0.2 ease-in-out;
}

.greet:hover{
  text-shadow: 0px 0px 8px rgb(255, 129, 56);
}

.pronouns{
  padding-left: 5px;
  color: var(--headcolor);
  font-family: inter, serif;
  font-weight: 500;
  font-size: large;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.about-head{
  color: var(--headcolor);
  font-family: inter, serif;
  font-weight: 800;
  font-size: x-large;
  letter-spacing: 1px;
}


.about {
  color: var(--textcolor);
  font-family: inter, serif;
  font-weight: 400;
  letter-spacing: 1px;
  font-size: small;
}

.me-box {
  perspective: 1000px;
}

.me {
  border: 2px solid rgba(245, 245, 240, 0.686);
  border-radius: 250px;
  box-shadow: 0px 0px 20px rgb(19, 221, 218);
  height: 240px;
  width: 240px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease-out;
  transform-style: preserve-3d;
}

/* EDUCATION PART */

.education {
  padding-top: var(--boxpadding);
  margin-top: var(--boxmargin);
  box-sizing: border-box;
}

.heading {
  margin-bottom: 20px;
  padding: 2px;
  letter-spacing: 1px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--headcolor);
  font-size: xx-large;
  box-sizing: border-box;
}

.content {
  margin: 20px;
  padding: 5px;
  box-sizing: border-box;
  display: grid;
  row-gap: 25px;
}

.education-card {
  display: flex;
  padding: 5px;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.deg-det{
  display: flex;
  column-gap: 15px;
  align-items: center;
}

.education-card img{
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: fill;
    object-position: center;
    border: 2px solid rgba(200, 193, 193, 0.558);
    box-shadow: 0px 0px 4px rgb(236, 231, 231);
}

.info,.tnr-loc{
  display: grid;
}

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

.degree {
  color: var(--headcolor);
  font-family: inter, serif;
  padding: 2px;
  font-size: large;
  font-weight: 600;
  box-sizing: border-box;
  letter-spacing: 1px;
  display: flex;
  column-gap: 8px;
  align-items: center;
}

.branch,.score{
  color: rgb(165, 164, 164);
  font-family: poppins, serif;
  padding: 1px;
  font-size: small;
  font-weight: 600;
  box-sizing: border-box;
}

.tnr-loc{
  color: rgb(149, 148, 148);
  font-family: poppins, serif;
  padding: 1px;
  font-weight: 600;
  font-size: 13px;
  box-sizing: border-box;
}

.tenure , .location{
  display: flex;
  justify-content: flex-end;
}

.degree svg{
  visibility: hidden;
  transition: all 0.4s ease-in-out;
}

.education-card:hover .degree svg {
  visibility: visible;
  transform: translateX(-4px);
}

/* SKILLS */

.skills {
  padding-top: var(--boxpadding);
  margin-top: var(--boxmargin);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  grid-template-rows: repeat(3, 1fr);
  gap: 25px;
}

.skill-content{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skill-grid svg{
  width: 45px;
  height: 45px;
  fill: var(--bgcolor);
  border: 2px solid rgba(206, 202, 202, 0.459);
  box-shadow: 0px 0px 4px rgba(199, 201, 201, 0.786);
  border-radius: 50%;
  transition: all 0.1s ease-in-out;
}

.skill-name{
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: all 0.4s ease-in-out;
  border-radius: 10px;
  padding: 4px;
  box-sizing: border-box;
  font-family: inter, serif;
  font-weight: 600;
  font-size: small;
  text-align: center;
  color: var(--bgcolor);
  background-color: var(--headcolor);
}

.skill{
  display: grid;
  justify-content: center;
  row-gap: 4px;
}

.skill:hover .skill-name {
  opacity: 0.8;
  transform: translateY(-50%);
}

.skill:hover svg {
  transform: scale(1.15);
}

/* PROJECTS */
.projects {
  padding-top: var(--boxpadding);
  margin-top: var(--boxmargin);
}

.project-box {
  margin-top: 10%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  row-gap: 50px;
  column-gap: 20px;
}

a{
  text-decoration: none;;
}

.proj-card{
  padding-bottom: 15px;
  overflow: hidden;
  object-fit: fill;
  display: grid;
  width: 100%;
  box-sizing: border-box;
  row-gap: 10px;
  border: 1px solid rgba(168, 168, 166, 0.421);
  border-radius: 20px;
  transition: all 0.2s ease-in-out;
  background-color: var(--bgcolor);
}

.project-content,.techstack,.project-links{
  padding: 15px;
  box-sizing: border-box;
}

.proj-card:hover{
  box-shadow: 0px 2px 10px rgb(219, 223, 223);
  transform: translateY(-5%);
}

.image-demo{
  object-fit:fill;
  object-position: center;
  width: 100%;
  transition: all 0.2s ease-in-out;
}

.project-content{
  font-family: inter, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.project-title{
  margin-bottom: 12px;
  color: var(--headcolor);
  font-size: large;
  font-weight: 800;
  font-family: inter, serif;
}

.project-description{
  color: var(--textcolor);
  font-size: small;
  font-weight: 500;
}

.image-demo:hover{
  transform: scale(1.05);
}

ul{
  list-style: none;
}

.techstack,.project-links{
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.tech{
  padding: 4px 8px;
  box-sizing: border-box;
  color: var(--headcolor);
  background-color: rgba(241, 237, 237, 0.529);
  border-radius: 5px;
  font-family: inter, serif;
  font-weight: 600;
  font-size: smaller;
  transition: all 0.2s ease-in-out;
}

.tech:hover{
  transform: scale(1.05);
  box-shadow: 0px 0px 4px rgba(231, 232, 232, 0.64); 
}

.project-links a{
  margin: 0 5px;
  background-color: var(--headcolor);
  color: var(--bgcolor);
  padding: 5px 10px;
  border-radius: 10px;
  font-family: inter, serif;
  font-weight: 600;
  font-size: small;
  transition: all 0.2s ease-in-out;
}

.project-links a:hover{
  letter-spacing: 1px;
  box-shadow: 0px 0px 8px rgba(240, 243, 243, 0.64); 
}


/* CONTACT */
.contact {
  padding-top: var(--boxpadding);
  margin-top: var(--boxmargin);
}

.contact-line {
  margin: auto;
  text-align: center;
  color: var(--textcolor);
  letter-spacing: 4px;
  font-weight: 600;
  font-family: great vibes, serif;
  font-size: x-large;
  padding: 5px;
  box-sizing: border-box;
}

/* CONTACT FORM */

.contact-links {
  margin: 5% 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 30px;
}

.social-links-box {
  position: relative;;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  height: 76px;
  box-sizing: border-box;
}

.social-links {
  background-color: rgb(31, 30, 30);
  padding: 6px;
  box-sizing: border-box;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 75px;
  transition: background-color 1s ease-in-out;
  transition: box-shadow 2s ease-in-out;
  transition: transform 0.25s ease-in-out;
}

.social-links:hover {
  background-image: linear-gradient(white, aqua, white);
  box-shadow: 0px 0px 10px cyan;
  transform: scale(1.05);
}

.comment {
  position: absolute;
  bottom: -50%;
  color: var(--headcolor);
  font-family: poppins, serif;
  display: inline;
  font-size: smaller;
  font-weight: 600;
  background-color: rgba(0, 255, 255, 0.234);
  padding: 6px;
  border-radius: 25px;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  box-sizing: border-box;
}

.social-links:hover ~ .comment {
  opacity: 1;
}

.navbox{
  position: sticky;
  bottom: var(--navbox-margin);
  padding: 2px;
  display: flex;
  justify-content: center;
}

.navbar{
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 35px;
  border: 1px solid rgba(128, 128, 128, 0.577);
  box-shadow: 0px 2px 4px rgba(193, 193, 193, 0.514);
  backdrop-filter: blur(10px);
}

.nav-btn{
  display: flex;
  justify-content: center;
  align-items: center;
  transition:all 0.2s ease-in-out;
}

button{
  outline: none;
  border: none;
  background: none;
}
.nav-link{
  fill: none;
  stroke-width: 2px;
}

.spl{
  fill: none;
  stroke-width: 1px;
}

nav svg{
  width: 45px;
  height: 45px;
  stroke: var(--headcolor);
  box-sizing: border-box;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.2s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav svg:hover{
  margin: 0px 15px;
  transform: scale(1.1);
  background-color: rgba(238, 237, 237, 0.434);
}
