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

/* VARIABLES CSS */
:root {
  --header-height: 3.5rem;
  --hue: 270;
  --first-color: hsl(320, 100%, 55%);
  --first-color-alt: hsl(270, 100%, 45%);
  --title-color: hsl(0, 0%, 95%);
  --text-color: hsl(219, 8%, 75%);
  --body-color: hsl(250, 20%, 8%);
  --container-color: hsl(250, 20%, 12%);


  --body-font: "Rajdhani", sans-serif;
  --title-font: "Orbitron", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.25rem;
  --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;

  /* Font weight */
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 700;

  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-background: -10;
}

@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 4rem;
    --bigger-font-size: 2rem;
    --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;
  }
}


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

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, h4 {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

button, input, textarea {
  outline: none;
  border: none;
}


.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

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

.section {
  padding-block: 5rem 2rem;
}

.section__title,
.section__subtitle {
  text-align: center;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.section__title {
  font-family: var(--title-font);
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
}

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

.section__subtitle span {
  color: var(--first-color);
}

.main {
  overflow: hidden;
}


#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: var(--z-background);
  background-color: var(--body-color);
}


.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav__logo span {
  color: var(--first-color);
}

.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}


@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    padding: 4.5rem 0 0 3rem;
    background-color: hsla(250, 20%, 8%, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: right 0.4s;
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
  }

  .nav__link {
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: color 0.4s;
  }

  .nav__link:hover {
    color: var(--first-color);
  }

  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
  }

  .nav__toggle {
    display: block;
  }
}


.show-menu {
  right: 0;
}


.blur-header {
  background-color: transparent;
}

.blur-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1000%;
  height: 100%;
  background-color: hsla(250, 20%, 8%, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: -1;
}


.active-link {
  color: var(--first-color);
}


.home {
  background-color: transparent;
}

.home__container {
  padding-top: 2rem;
  row-gap: 2.5rem;
}

.home__content {
  display: grid;
  row-gap: 2rem;
}

.home__data {
  text-align: center;
}

.home__subtitle,
.home__education {
  font-size: var(--bigger-font-size);
}

.home__subtitle span,
.home__title {
  color: var(--first-color);
}

.home__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-semi-bold);
  font-family: var(--title-font);
}

.home__description {
  margin-block: 1rem 1.5rem;
}

.home__social {
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}

.home__social-link {
  display: flex;
  padding: 0.5rem;
  background-color: var(--first-color-alt);
  color: var(--title-color);
  font-size: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 0.4s;
}

.home__social-link:hover {
  transform: translateY(-0.25rem);
  background-color: var(--first-color);
}

.home__image {
  justify-self: center;
}


.button {
  display: inline-block;
  padding: 1rem 1.75rem;
  background-color: var(--first-color);
  color: var(--title-color);
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  border: 2px solid var(--first-color);
  box-shadow: 0 0 5px var(--first-color), 0 0 15px var(--first-color-alt);
  transition: all 0.4s;
}

.button:hover {
  background-color: transparent;
  color: var(--first-color);
  box-shadow: 0 0 10px var(--first-color), 0 0 25px var(--first-color), 0 0 50px var(--first-color-alt);
}


.about__container {
  row-gap: 2.5rem;
}

.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: 2rem;
}

.about__image {
  justify-self: center;
}


.skills {
  background-color: transparent;
}

.skills__container {
  padding-bottom: 2rem;
  row-gap: 3.5rem;
}

.skills__data {
  text-align: center;
}

.skills__description {
  margin-bottom: 2rem;
}

.skills__content,
.skills__group {
  display: grid;
}

.skills__content {
  grid-template-columns: repeat(2, max-content);
  column-gap: 4rem;
  justify-content: center;
  align-items: baseline;
}

.skills__group {
  row-gap: 1rem;
  list-style: decimal-leading-zero;
}

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

.skills__item::marker {
  color: var(--first-color);
}

.education__icon {
  display: block;
  font-size: 4rem;
  color: var(--first-color);
  margin-bottom: 0.75rem;
  transition: transform 0.4s;
}

.education__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1.5rem;
}


.projects {
  background-color: transparent;
}

.projects__img {
  width: 100%;
  height: 100%;
}

.projects__modal {
  position: absolute;
  left: 0;
  bottom: -100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 0%, hsla(320, 70%, 40%, 0.8) 120%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 1rem;
  transition: bottom 0.4s;
}

.projects__card:hover .projects__modal {
  bottom: 0;
}

.projects__subtitle,
.projects__button {
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.projects__subtitle {
  display: block;
  margin-bottom: 0.25rem;
}

.projects__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.75rem;
}

.projects__button {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  font-weight: var(--font-medium);
}

.projects__button i {
  font-size: 1.25rem;
}


.contact__container {
  padding-top: 1rem;
}

.contact__form,
.contact__group {
  display: grid;
  row-gap: 1rem;
}

.contact__form {
  position: relative;
}

.contact__input {
  padding: 1rem 1.25rem;
  background-color: var(--container-color);
  border-radius: 0.5rem;
  color: var(--title-color);
  border: 2px solid var(--container-color);
  transition: border-color 0.4s;
}

.contact__input::placeholder {
  color: var(--text-color);
}

.contact__input:focus {
  border-color: var(--first-color);
}

.contact__form textarea {
  height: 11rem;
  resize: none;
  margin-bottom: 2rem;
}

.contact__button {
  justify-self: center;
  cursor: pointer;
}

.contact__message {
  position: absolute;
  left: 0;
  bottom: 4.5rem;
  font-size: var(--small-font-size);
  color: var(--title-color);
}


.footer {
  padding-block: 3.5rem 2rem;
  background-color: var(--container-color);
}

.footer__container {
  row-gap: 2rem;
  text-align: center;
}

.footer__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.25rem;
}

.footer__title span {
  color: var(--first-color);
}

.footer__education {
  font-size: var(--normal-font-size);
}

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

.footer__social-link {
  display: flex;
  padding: 0.5rem;
  background-color: var(--first-color-alt);
  color: var(--title-color);
  font-size: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 0.4s, background-color 0.4s;
}

.footer__social-link:hover {
  transform: translateY(-0.25rem);
  background-color: var(--first-color);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  margin-top: 2rem;
}


::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(250, 8%, 15%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: hsl(250, 8%, 30%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--first-color-alt);
}


.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  display: inline-flex;
  padding: 6px;
  background-color: var(--container-color);
  color: var(--first-color);
  font-size: 1.25rem;
  border-radius: 0.25rem;
  box-shadow: 0 0 10px hsla(320, 80%, 50%, 0.4);
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s, box-shadow 0.4s;
}

.scrollup:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0 20px hsla(320, 100%, 55%, 0.6);
}

.show-scroll {
  bottom: 3rem;
}


.music-player {
  position: fixed;
  bottom: 8rem;
  right: 1rem;
  z-index: var(--z-fixed);
}

.music-control-button {
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--container-color);
  color: var(--first-color);
  border: 2px solid var(--first-color);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 0 10px var(--first-color);
  transition: all 0.4s;
}

.music-control-button:hover {
  background-color: var(--first-color);
  color: var(--title-color);
  box-shadow: 0 0 20px var(--first-color), 0 0 40px var(--first-color-alt);
  transform: scale(1.1) rotate(360deg);
}


@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }
  .skills__content {
    grid-template-columns: max-content;
    row-gap: 1rem;
  }
}

@media screen and (min-width: 576px) {
  .home__container,
  .about__container,
  .skills__container,
  .contact__container {
    grid-template-columns: 360px;
    justify-content: center;
  }
}

@media screen and (min-width: 768px) {
  .nav__menu {
    width: 55%;
  }
  .home__container,
  .about__container,
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
  .home__data,
  .about__data,
  .skills__data,
  :is(.about__data, .skills__data) :is(.section__subtitle, .section__title) {
    text-align: initial;
  }
  .home__social {
    justify-content: initial;
  }
  .about__data {
    order: 1;
  }
}

@media screen and (min-width: 1023px) {
  .section {
    padding-block: 7rem 2rem;
  }
  .section__subtitle {
    font-size: var(--normal-font-size);
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__close,
  .nav__toggle {
    display: none;
  }
  .nav__list {
    display: flex;
    flex-direction: row;
    column-gap: 4rem;
  }
  .nav__menu {
    all: unset;
    display: block;
  }
  .blur-header::after {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
  }
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }
  .home__container {
    grid-template-columns: 455px 550px;
    column-gap: 7rem;
    padding-block: 2rem 3rem;
  }
  .home__content {
    row-gap: 4.5rem;
  }
  .home__description {
    margin-block: 1.5rem 2.5rem;
  }
  .home__social {
    column-gap: 1.5rem;
  }
  .about__container {
    grid-template-columns: 550px 460px;
    column-gap: 4.5rem;
    padding-bottom: 1rem;
  }
  .about__description {
    margin-bottom: 3rem;
  }
  .skills__container {
    grid-template-columns: 340px 425px;
    column-gap: 10rem;
    padding-bottom: 4rem;
  }
  .skills__description {
    margin-bottom: 3rem;
  }
  .skills__content {
    column-gap: 8rem;
  }
  .skills__group {
    row-gap: 1.5rem;
  }
  .skills__item {
    font-size: var(--h3-font-size);
  }
  .projects__button {
    font-size: var(--normal-font-size);
  }
  .contact__container {
    grid-template-columns: 680px;
    padding-block: 2.5rem 2rem;
  }
  .contact__form {
    row-gap: 1.5rem;
  }
  .contact__group {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
  .contact__input {
    padding: 1.5rem;
  }
  .contact__form textarea {
    height: 20rem;
  }
  .footer {
    padding-block: 4.5rem 4rem;
  }
  .footer__container {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    text-align: initial;
  }
  .footer__title {
    font-size: var(--bigger-font-size);
  }
  .footer__social {
    column-gap: 1.5rem;
  }
  .footer__copy {
    margin: 0;
    justify-self: flex-end;
  }
  .scrollup {
    right: 3rem;
  }
  .music-player {
    right: 3rem;
    bottom: 8rem;
  }
}


.swiper {
  width: 100%;
  padding-block: 2rem;
}

/* Education Swiper */
.education__container.swiper {
  padding-bottom: 2rem;
}

.education__card.swiper-slide {
  width: 280px;
  height: 380px;
  background-color: transparent;
  border: none;
  perspective: 1000px;
  padding: 0;
}

.education__card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}


.education__card.swiper-slide.is-flipped .education__card-inner {
  transform: rotateY(180deg);
}

.education__card-front,
.education__card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
}

.education__card-front {
  background-color: var(--container-color);
  border: 2px solid var(--container-color);
  transition: border-color 0.4s;
  cursor: pointer; /* ADDED: To indicate it's clickable */
}

.education__card.swiper-slide:hover .education__card-front {
  border-color: var(--first-color);
}

.education__card-back {
  background-color: var(--container-color);
  border: 2px solid var(--first-color);
  transform: rotateY(180deg);
  padding: 0.5rem;
}

.education__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

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


.projects__container.swiper {
  position: relative;
}

.projects__card.swiper-slide {
  width: 350px;
  border: 2px solid transparent;
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.4s;
}
.projects__card.swiper-slide:hover {
   border-color: var(--first-color);
}

.swiper-button-next,
.swiper-button-prev {
  width: 45px;
  height: 45px;
  background-color: var(--container-color);
  border-radius: 50%;
  color: var(--first-color);
  border: 2px solid var(--first-color);
  transition: all 0.4s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--first-color);
  color: var(--title-color);
  box-shadow: 0 0 15px var(--first-color);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.5rem;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}
