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

/* <!-- VARIABLE CSS --> */
:root {
  --header-height: 3rem;

  --hue: 0;
  --sat: 0%;
  --title-color: hsl(var(--hue), var(--sat), 20%);
  --title-color-dark: hsl(var(--hue), var(--sat), 0%);
  --text-color: hsl(var(--hue), var(--sat), 32%);
  --body-color: hsl(var(--hue), var(--sat), 96%);
  --container-color: #fff;

  /* FONT AND TYPGRAPHY  */
  --body-font: "Poppins", sans-serif;

  --big-font-size: 3.5rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.813rem;
  --tiny-font-size: 0.625rem;

  /* FONT-WEIGHT */
  --font-normal: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /* MARGINS-BOTTOM */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-0-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* RESPONSIVE TYPOGRAPHY */
@media screen and (max-width: 992px) {
  :root {
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body,
button,
input,
textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* REUSABLE CSS CLASSES */
.section {
  padding: 5rem 0 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: 4rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

/* LAYOUT */
.container {
  max-width: 968px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* BUTTONS */
.button {
  display: inline-block;
  background-color: var(--title-color);
  color: var(--container-color);
  padding: 1.25rem 2rem;
  border-radius: 1rem;
  font-weight: var(--font-medium);
}

.button:hover {
  background-color: var(--title-color-dark);
}

.button__icon {
  margin-left: var(--mb-0-5);
}

.button--flex {
  display: inline-flex;
  align-items: center;
}

/*FOR LARGE DEVICES*/
@media screen and (max-width: 992px) {
  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }

  .button {
    padding: 1rem 1.7rem;
  }

  .button__icon {
    width: 22px;
    height: 22px;
  }
}

/*FOR MEDIUM DEVICES*/
@media screen and (max-width: 768px) {
  body {
    margin: 0 0 var(--header-height) 0;
  }

  .section {
    padding: 2rem 0 4rem;
  }

  .section__subtitle {
    margin-bottom: var(--mb-3);
  }
}

/*FOR SMALL DEVICES*/

@media screen and (max-width: 350px) {
  :root {
    --big-font-size: 2.25rem;
  }

  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: white;
  /* box-shadow: 0.5px 0 6px rgba(102, 102, 102, 0.3); */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.09);
}

.nav {
  height: calc(var(--header-height) + 1.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
}

.nav__logo,
.nav__toggle {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__list {
  display: flex;
  column-gap: 2rem;
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: 0.3s;
}

.nav__toggle {
  display: none;
}

/*ACTIVE LINK*/
.nav__link:hover {
  color: var(--title-color-dark);
}

/*      BREAKPOINTS      */
/*FOR MEDIUM DEVICES*/
@media screen and (max-width: 768px) {
  .nav {
    height: var(--header-height);
  }

  .nav__menu {
    display: none;
  }

  .nav__toggle {
    font-size: 1.1rem;
    cursor: pointer;
  }

  .nav__toggle {
    display: block;
  }
}

/* for home section */

.home__content {
  grid-template-columns: 116px repeat(2, 1fr);
  padding-top: 5.5rem;
  column-gap: 2rem;
  align-items: center;
}

.home__social {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 1rem;
}

.home__social-icon {
  font-size: 1.5rem;
  color: var(--title-color);
}

.linkedin:hover {
  color: #0a66c2;
}

.github:hover {
  color: black;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-0-25);
}

.home__hand {
  width: 3rem;
  height: 3rem;
  margin-left: 0.5rem;
}

.home__subtitle {
  position: relative;
  font-size: var(--h3-font-size);
  padding-left: 4.7rem;
  font-weight: var(--font-normal);
  margin-bottom: var(--mb-0-1);
}

.before-subtitle {
  content: "";
  position: relative;
  width: 60px;
  height: 0.7px;
  background-color: var(--text-color);
  right: 0rem;
  top: 1rem;
}

.home__description {
  max-width: 400px;
  margin-bottom: var(--mb-3);
}

.home__img {
  background: url(../assets/me.jpg);
  /* background-position: center; */
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 0 0 3px rgb(47, 47, 47);
  justify-self: center;
  order: 1;
  width: 305px;
  height: 305px;
  animation: profile__animate 8s ease-in-out infinite 1s;
}

@keyframes profile__animate {
  0% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
  }

  100% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }
}

/*FOR LARGE DEVICES*/
@media screen and (max-width: 992px) {
  .home__content {
    grid-template-columns: 100px repeat(2, 1fr);
    column-gap: 1.25rem;
  }

  .home__hand {
    width: 30px;
    height: 30px;
  }

  .home__subtitle {
    padding-left: 3.75rem;
    margin-bottom: var(--mb-0-1);
  }

  .before-subtitle {
    width: 42px;
    top: 0.8rem;
  }

  .home__description {
    max-width: initial;
    margin-bottom: var(--mb-2-5);
  }

  .home__img {
    width: 256px;
    height: 256px;
    box-shadow: inset 0 0 0 2px rgb(47, 47, 47);
  }
}

/*FOR MEDIUM DEVICES*/
@media screen and (max-width: 768px) {
  .home__content {
    display: flex;
    flex-direction: column;
    padding-top: 3.5rem;
    text-align: center;
  }

  .home__img {
    order: -1;
    justify-self: center;
  }

  .home__data {
    grid-column: 1/3;
    justify-content: center;
  }

  .home__img {
    box-shadow: inset 0 0 0 2px rgb(47, 47, 47);
    width: 220px;
    height: 220px;
  }

  .home__social {
    width: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }

  .home__social-icon {
    font-size: 1.2rem;
  }

  .before-subtitle {
    margin-left: 5rem;
  }
}

/*FOR SMALL DEVICES*/

@media screen and (max-width: 350px) {
  .home__img {
    width: 180px;
    height: 180px;
  }

  .home__hand {
    width: 22px;
    height: 22px;
  }
}

/* about section */
.about__container {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  column-gap: 2rem;
}

.about__img {
  width: 385px;
  border-radius: 1.5rem;
  justify-self: center;
  height: 293px;
}

.about-heading {
  font-size: 1.5rem;
  color: var(--title-color-dark);
  font-weight: 600;
  margin-bottom: 15px;
}

.about__description {
  padding: 0 4rem 0 0;
  margin-bottom: 1.5rem;
}

/*FOR LARGE DEVICES*/
@media screen and (max-width: 992px) {
  .about__container {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }

  .about__img {
    height: 250px;
    width: 340px;
  }

  .about__data {
    text-align: center;
  }

  .about__description {
    padding: 0 5rem;
    margin-bottom: 1.5rem;
  }
}

/*FOR MEDIUM DEVICES*/
@media screen and (max-width: 576px) {
  .about__description {
    padding: 0;
  }

  .about__img {
    height: 220px;
    width: 290px;
  }
}

/* skills section */
.skills__container {
  grid-template-columns: repeat(3, 350px);
  column-gap: 2rem;
  justify-content: center;
}

.skills__content {
  background-color: var(--container-color);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2rem 4rem;
  border-radius: 1.25rem;
}

.skills__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  text-align: center;
  margin-bottom: var(--mb-1-5);
}

.skills__box {
  display: flex;
  justify-content: center;
  column-gap: 2.5rem;
}

.skills__group {
  display: grid;
  align-items: flex-start;
  row-gap: 2rem;
}

.skills__data {
  display: flex;
  column-gap: 0.5rem;
}

.skills .bx-badge-check {
  font-size: 1rem;
  color: var(--title-color);
}

.skils__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  line-height: 18px;
}

.skills__level {
  font-size: var(--tiny-font-size);
}

/*FOR LARGE DEVICES*/
@media screen and (max-width: 992px) {
  .skills__container {
    grid-template-columns: max-content;
    row-gap: 2rem;
  }
}

/*FOR MEDIUM DEVICES*/
@media screen and (max-width: 576px) {
  .skills__container {
    grid-template-columns: 1fr;
  }

  .skills__content {
    padding: 1.5rem;
  }
}

/*FOR SMALL DEVICES*/

@media screen and (max-width: 350px) {
  .skills__box {
    column-gap: 1.25rem;
  }

  .skills__name {
    font-size: var(--small-font-size);
  }
}

/* qualification section */
.qualification__container {
  max-width: 768px;
}

.qualification__tabs {
  display: flex;
  justify-content: center;
  margin-bottom: var(--mb-2);
}

.qualification__button {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
  margin: 0 var(--mb-2);
  cursor: pointer;
}

.qualification__button:hover {
  color: var(--title-color-dark);
}

.qualification__icon {
  font-size: 1.8rem;
  margin-right: var(--mb-0-25);
}

.qualification__active {
  color: var(--title-color-dark);
}

.qualification__section {
  display: grid;
  grid-template-columns: 0.5fr;
  justify-content: center;
}

.qualification__content {
  display: none;
}

.qualification__content-active {
  display: block;
}

.qualification__data {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.5rem;
}

.qualification__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.qualification__subtitle {
  display: inline-block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
}

.qualification__calendar {
  font-size: var(--small-font-size);
}

.qualification__rounder {
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: var(--text-color);
  border-radius: 50%;
}

.qualification__line {
  display: block;
  width: 1px;
  height: 100%;
  background-color: var(--text-color);
  transform: translate(6px, -7px);
}

/*FOR LARGE DEVICES*/
@media screen and (max-width: 992px) {
  .qualification__container {
    margin-left: auto;
    margin-right: auto;
  }
}

/*FOR MEDIUM DEVICES*/
@media screen and (max-width: 768px) {
  .qualification__container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }
}

@media screen and (max-width: 576px) {
  .qualification__section {
    grid-template-columns: initial;
  }

  .qualification__button {
    margin: 0 var(--mb-0-75);
  }
}

/*FOR SMALL DEVICES*/

@media screen and (max-width: 350px) {
  .qualification__data {
    gap: 0.5rem;
  }
}

/* projects section */
.work__filters {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.75rem;
  margin-bottom: var(--mb-2);
}

.work__item {
  cursor: pointer;
  color: var(--title-color);
  padding: 0.25rem 0.75rem;
  font-weight: var(--font-medium);
  border-radius: 0.5rem;
  text-transform: capitalize;
}

.work__item:hover {
  background-color: var(--title-color);
  color: var(--container-color);
}

.work__container {
  grid-template-columns: repeat(2, max-content);
  gap: 3rem;
  justify-content: center;
}

.work__card {
  height: fit-content;
  background-color: var(--container-color);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.25rem;
  border-radius: 1rem;
}

.work__img {
  width: 295px;
  border-radius: 1rem;
  border: 1px solid black;
  margin-bottom: var(--mb-1);
}

.work__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-5);
}

.work__button {
  color: var(--text-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
}

.work__button-icon {
  font-size: 1rem;
  transition: 0.4s;
}

.work__button:hover .work__button-icon {
  transform: translateX(00.25rem);
}

/*Active Work*/
.active-work {
  background-color: var(--title-color);
  color: var(--container-color);
}

/*FOR LARGE DEVICES*/
@media screen and (max-width: 992px) {
  .work__container {
    gap: 1.25rem;
  }

  .work__card {
    padding: 1rem;
  }

  .work__img {
    margin-bottom: 0.75rem;
  }

  .work__title {
    margin-bottom: 0.25rem;
  }
}

/*FOR MEDIUM DEVICES*/
@media screen and (max-width: 768px) {
  .work__container {
    grid-template-columns: max-content;
  }
}

@media screen and (max-width: 576px) {
  .work__container {
    grid-template-columns: 1fr;
  }

  .work__img {
    width: 100%;
  }
}

/*FOR SMALL DEVICES*/

@media screen and (max-width: 350px) {
  .work__item {
    font-size: var(--small-font-size);
  }

  .work__filters {
    column-gap: 0.25rem;
  }
}

/* contact section */
.contact__container {
  justify-content: center;
  align-items: center;
  column-gap: 6rem;
  padding-bottom: 3rem;
}

.contact__title {
  text-align: center;
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1-5);
}

.contact__info {
  display: grid;
  /* grid-row: auto; */

  column-gap: 6rem;
  grid-template-columns: 1fr 1fr;
}

.contact__card {
  background-color: var(--container-color);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
}

.contact__card-icon {
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: var(--mb-0-25);
}

.contact__card-title,
.contact__card-data {
  font-size: var(--small-font-size);
}

.contact__card-title {
  font-weight: var(--font-medium);
}

.contact__card-data {
  display: block;
  margin-bottom: var(--mb-0-75);
}

.contact__button {
  color: var(--text-color);
  font-size: var(--small-font-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.25rem;
}

.contact__button-icon {
  font-size: 1rem;
  transition: 0.3s;
}

.contact__button:hover .contact__button-icon {
  font-size: 00.25rem;
}

.contact-btn {
  font-size: 12px;
  padding: 0.9rem 1.3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 992px) {
  .contact__container {
    column-gap: 3rem;
  }
}

/* For medium devices */
@media screen and (max-width: 768px) {
  .contact__container {
    grid-template-columns: 1fr;
    row-gap: 3rem;
  }

  .contact__info {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .contact__info {
    grid-template-columns: 1fr;
  }
}

/* For small devices */
@media screen and (max-width: 350px) {
}

/* footer section */
.footer {
  background-color: #2d2e32;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.footer__container {
  padding: 2rem 0 2rem;
  color: white;
}

.footer__title,
.footer__link {
  /* color: var(--title-color); */
  color: rgb(234, 234, 234);
}

.footer__title {
  text-align: center;
  margin-bottom: var(--mb-2);
}

.footer__link:hover {
  color: wheat;
}

.footer__list {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-bottom: var(--mb-2);
}

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1.125rem;
}

.footer__social-link {
  background-color: var(--title-color);
  color: var(--container-color);
  font-size: 1.125rem;
  padding: 0.4rem;
  border-radius: 0.5rem;
  display: inline-flex;
}

.footer__social-link:hover {
  background-color: var(--title-color-dark);
}

.copyright {
  text-align: center;
  margin-top: 35px;
  font-size: 15px;
  font-weight: 500;
}

.footer__copy {
  display: block;
  margin-top: 4.5rem;
  color: var(--title-color);
  text-align: center;
  font-size: var(--smaller-font-size);
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 992px) {
  .footer__social-link {
    padding: 0.25rem;
    border-radius: 0.25rem;
    font-size: 1rem;
  }
}

/* LeetCode Profile */
.leetcode__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.leetcode__img {
  width: 100%;
  max-width: 800px;
  border-radius: 1.5rem;
  justify-self: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.leetcode__heading {
  color: var(--title-color);
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
  font-weight: var(--font-medium);
}

.leetcode__description {
  margin-bottom: var(--mb-2);
}

.leetcode-btn {
  margin-top: var(--mb-1);
}

/* For small devices */
@media screen and (max-width: 350px) {
  .leetcode__img {
    width: 100%;
    max-width: 300px;
  }
}

/* For medium devices */
@media screen and (max-width: 768px) {
  .leetcode__container {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }

  .leetcode__img {
    width: 100%;
    max-width: 500px;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .leetcode__img {
    width: 100%;
    max-width: 800px;
  }
}

/* EXPERIENCE SECTION CSS - SHORT & PERFECT ALIGNMENT */

.experience {
  padding: 4rem 0 2rem;
  max-width: 968px;
  margin: 0 auto;
}

.experience__container {
  position: relative;
}

.experience__content {
  margin-left: 3rem;
  position: relative;
}

.experience__data {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.5rem;
  align-items: start;
  margin-bottom: 1rem;
  position: relative;
}

.experience__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  line-height: 1.25;
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.experience__title span {
  display: block;
  font-weight: var(--font-medium);
  font-size: var(--normal-font-size);
  color: hsl(var(--title-color), 40%);
  margin-top: 0.25rem;
}

.experience__period {
  font-size: var(--small-font-size);
  color: hsl(var(--title-color), 30%);
  font-weight: var(--font-medium);
  text-orientation: mixed;
  transform: rotate(180deg);
  white-space: nowrap;
}

.experience__description {
  font-size: var(--smaller-font-size);
  color: hsl(var(--first-color), 70%);
  font-weight: var(--font-medium);
  margin-bottom: 1rem;
  font-family: var(--body-font);
}

.experience__achievements {
  grid-column: 3;
  padding-left: 1.5rem;
  margin: 0;
}

.experience__rounder {
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 12px;
  height: 12px;
  background: linear-gradient(
    135deg,
    var(--first-color),
    hsl(var(--first-color), 70%)
  );
  border: 2px solid var(--container-color);
  border-radius: 50%;
  z-index: 1;
}

.experience__line {
  position: absolute;
  left: 5px;
  top: 2.5rem;
  bottom: -2.5rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    hsl(var(--first-color), 30%),
    hsl(var(--first-color), 20%)
  );
}

/* Mobile */
@media screen and (max-width: 576px) {
  .experience {
    padding: 3rem 0 1.5rem;
  }
  .experience__content {
    margin-left: 0;
  }
  .experience__data {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .experience__period {
    writing-mode: horizontal-tb;
    transform: none;
    margin: 0.5rem 0;
  }
  .experience__achievements {
    grid-column: 1;
    padding-left: 1rem;
  }
  .experience__rounder,
  .experience__line {
    display: none;
  }
}
