@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600&display=swap");

* {
  font: 10px;
  margin: 0;
  padding: 0;
  font-family: "Inter Tight";
}

/* Nav  */

nav {
  height: 3rem;
  padding: 0px;
  background-color: rgb(227 222 216);
  display: flex;
  justify-content: left;
  align-items: center;
  font-size: 1.8rem;
  box-shadow: -7px -2px 11px black;
}
nav img {
  height: 2.4rem;
  width: 2.4rem;
  margin-right: 1%;
  margin-left: 7rem;
}
nav a {
  text-decoration: none;
  color: black;
  font-weight: 500;
}
nav a:hover {
  background-color: rgb(140, 8, 8);
  color: white;
  padding: 0.5%;
  animation: opp 2s forwards;
}

/* Home  */

#home {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 1%;
  justify-content: center;
  align-items: center;
}

/* Animation  */

:root {
  --level-one: translateZ(3rem);
  --level-two: translateZ(6rem);
  --level-three: translateZ(9rem);

  --fw-normal: 400;
  --fw-bold: 700;

  --clr: #b7c9e5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
.below-curly-head {
  font-size: 1.5rem;
  margin: 0.7%;
  background-color: rgb(140, 8, 8);
  color: white;
  padding: 1.8%;
  border: 0px solid;
  border-radius: 5px;
  cursor: pointer;
}
.card {
  /* width: 5rem; */
  width: 60vw;
}
.card__content {
  text-align: center;
  position: relative;
  padding: 2em 2em;
  transition: transform 1.5s;
  transform-style: preserve-3d;
}

.card:hover .card__content {
  transform: rotateY(0.5turn);
}

.card__front,
.card__back {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 7px;
  right: 7px;
  padding: 12px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
.card__front::before {
  content: "";
  position: absolute;
}
.card__back {
  transform: rotateY(0.5turn);
  color: black;
}

/* end of animation */

.curly-head {
  margin: 5px;
  font-size: 5rem;
  /* animation: flip 3s forwards; */
  /* animation-delay: calc(.2s * var(--i)); */
}
@keyframes flip {
  0%,
  50% {
    transform: rotateY(180deg);
  }
}
#home p img {
  height: 30rem;
  border: 1.2rem solid rgb(227 222 216);
  border-radius: 5rem 2rem 5rem 2rem;
  opacity: 0.8;
  margin-top: 25px;
}
#home p img:hover {
  border: 1.2rem solid rgb(140, 8, 8);
  animation: oo 0.2s forwards;
}
@keyframes oo {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}
.small-span {
  font-size: 1.5rem;
  font-family: cursive;
}

/* About  */

#aboutme {
  background-color: rgb(227 222 216);
  text-align: center;
  padding: 5px;
}
h5 {
  font-size: 3rem;
  font-family: "Inter Tight";
  font-weight: 400;
  text-align: center;
  margin-bottom: 10px;
}
.desc {
  display: flex;
  flex-direction: column;
}
.desc span {
  margin-bottom: 27px;
  font-size: 1.2rem;
  margin-top: 5px;
}
.highlight-text {
  background-color: rgb(140, 8, 8);
  color: white;
  padding: 4px;
  opacity: 0.5;
  cursor: none;
}
.highlight-text:hover {
  opacity: 1;
  animation: opp 1s infinite;
}

/* skills  */
#skills {
  padding-left: 10%;
  margin-bottom: 15px;
  position: relative;
}

.container {
  background-color: white;
  /* color: rgb(140, 8, 8); */
  border: 2px solid rgb(140, 8, 8);
  border-radius: 15px;
  width: 80%;
  /* height: 10px; */
  margin-bottom: 10px;
  margin-top: 10px;
}
.skill {
  border-radius: 15px;
  /* margin-top: 10px; */
  font-size: 0.5em;
  text-align: right;
  color: white;
  background-color: rgb(140, 8, 8);
  height: 10px;
  padding: 0%;
}
.html {
  width: 90%;
}
.css {
  width: 80%;
}
.js {
  width: 80%;
}
.Bootstrap {
  width: 80%;
}
.react {
  width: 70%;
}
.cc {
  width: 80%;
}

/* Familiar  */

#familiar {
  padding: 1.5%;
  text-align: center;
  background-color: rgb(227 222 216);
  margin-top: 0px;
}
.the-bar {
  display: grid;
  align-items: center;
  gap: 3% 5%;
}
.the-tab {
  height: 3rem;
  width: 20vw;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3px;
}
.the-tab:hover {
  background-color: rgb(140, 8, 8);
  color: white;
  border: 0px;
  border-radius: 10px;
  animation: opp 0.6s forwards;
}
.the-tab img {
  height: 30px;
  margin-right: 15px;
}
.second {
  grid-column-start: 2;
  grid-column-end: 3;
}
.third {
  grid-column-start: 3;
  grid-column-end: 4;
}
.fourth {
  grid-column: 4 5;
}

/* Education  */
#education {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
}
.course {
  font-size: 1.9rem;
  font-weight: 500;
  margin: 5px;
}
#education div {
  margin: 20px;
  height: 7rem;
  width: 25rem;
  border: 0px;
  border-radius: 5px;
  padding: 5px;
}
#education div:hover {
  background-color: rgb(140, 8, 8);
  color: white;
  animation: opp 0.6s forwards;
}
@keyframes opp {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
.place {
  font-size: 1.2rem;
  margin: 5px;
}
.dateandtime {
  font-size: 1.2rem;
  margin: 5px;
}

/* Contact  */
#contact {
  padding: 10px;
  text-align: center;
  background-color: rgb(227 222 216);
}
#contact p {
  font-size: 1.3rem;
  margin: 30px;
}
.socials a {
  margin: 15px;
  opacity: 0.4;
}
.socials a:hover {
  /* opacity: 1; */
  animation: ddd 1s forwards;
}
@keyframes ddd {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

/* Footer  */
footer {
  padding: 10px;
  text-align: center;
  background-color: rgb(227 222 216);
  font-size: 2em;
  /* box-shadow: 60px -16px teal; */
  box-shadow: -2px 3px 20px black;
}

/* responsive  */
@media screen and (max-width: 737px) {
  /* .curly-head{
        font-size: 3rem;
    } */
  #home p img {
    height: 20rem;
  }
  /* footer{
        font-size: 1.8rem;
    } */
  * {
    font-size: 8px;
  }
}

@media screen and (max-width: 596px) {
  #home p img {
    height: 15rem;
  }
  /* h5{
        font-size: 1rem;
    } */
  * {
    font-size: 8px;
  }
  .the-tab img {
    height: 15px;
    margin-right: 5px;
  }
}

/* scroll animation  */
.hidden {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-100%);
  transition: all 2s;
}
.show {
  opacity: 1;
  filter: blur(0px);
  transform: translateX(0);
}
@media (prefers-reduced-motion) {
  .hidden {
    transition: none;
  }
}
