/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /* Light Green Theme Variables (Default Light Theme) */
  --hue: 152; /* Light Green */
  --first-color: hsl(var(--hue), 70%, 45%);
  --first-color-alt: hsl(var(--hue), 80%, 35%);
  --first-color-alt-2: hsl(var(--hue), 60%, 40%);
  --first-color-light: hsl(var(--hue), 60%, 80%);

  --title-color: hsl(var(--hue), 15%, 15%);
  --text-color: hsl(var(--hue), 8%, 35%);
  --text-color-light: hsl(var(--hue), 8%, 55%);
  --body-color: hsl(var(--hue), 20%, 98%); /* White with light green tint */
  --container-color: #ffffff; /* White */
  --border-color: hsl(var(--hue), 20%, 90%);

  /*========== Font and typography ==========*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

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

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

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: hsl(var(--hue), 15%, 95%);
  --text-color: hsl(var(--hue), 8%, 75%);
  --text-color-light: hsl(var(--hue), 8%, 60%);
  --body-color: hsl(var(--hue), 30%, 8%); /* Dark Green tint */
  --container-color: hsl(var(--hue), 25%, 12%);
  --border-color: hsl(var(--hue), 20%, 18%);
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 3rem;
    --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: .875rem;
    --smaller-font-size: .813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--body-color);
  color: var(--text-color);
  overflow-x: hidden;
  transition: background-color .4s, color .4s;
}

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

h1, h2, h3, h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

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

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

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 3rem;
}

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

.main {
  overflow: hidden;
  position: relative;
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: .5rem;
  background-color: var(--first-color);
  color: #fff; /* Always white for primary button */
  padding: 1rem 1.5rem;
  border-radius: 4rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .4s, transform .3s;
}

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

.button:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-.25rem);
}

/*=============== CUSTOM CURSOR ===============*/
.cursor__ball {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.cursor__ball--big {
  width: 40px;
  height: 40px;
  border: 1px solid var(--first-color);
  transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor__ball--small {
  width: 8px;
  height: 8px;
  background-color: var(--first-color);
}

/* Hover effects for cursor */
.hovered .cursor__ball--big {
  width: 60px;
  height: 60px;
  background-color: hsla(var(--hue), 60%, 50%, 0.2);
  border-color: transparent;
}

@media screen and (max-width: 1023px) {
  .cursor__ball {
    display: none;
  }
}

/*=============== BLOB ===============*/
.blob__container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  filter: blur(100px);
  opacity: 0.3;
  animation: blob-bounce 20s infinite ease-in-out alternate;
}

@keyframes blob-bounce {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50vw, 50vh) scale(1.2); }
  100% { transform: translate(-20vw, 80vh) scale(0.8); }
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: background-color .4s, box-shadow .4s;
}

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

.nav__logo {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  font-size: var(--h3-font-size);
}

.nav__buttons {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
}

.change-theme,
.nav__toggle, 
.nav__close {
  display: flex;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color .4s;
}

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

@media screen and (max-width: 1149px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: var(--container-color);
    padding-block: 4rem 3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: top .4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 2.5rem;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 2rem;
}

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

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

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

/* Show menu */
.show-menu {
  top: 0;
}

/* Change background header */
.bg-header {
  background-color: var(--container-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

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

/*=============== HOME ===============*/
.home__container {
  padding-top: 3rem;
  row-gap: 3rem;
}

.home__data {
  text-align: center;
}

.home__greeting {
  display: block;
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
  margin-bottom: .5rem;
}

.home__name {
  font-size: var(--biggest-font-size);
  line-height: 120%;
  margin-bottom: 1.5rem;
}

.home__profession {
  margin-bottom: 2rem;
}

.home__profession-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: .75rem;
}

.home__split-line {
  width: 40px;
  height: 2px;
  background-color: var(--text-color);
}

.home__profession-text {
  font-family: var(--second-font);
  font-weight: var(--font-medium);
  color: var(--first-color);
}

.home__profession-items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

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

.home__social-link {
  font-size: 1.5rem;
  color: var(--title-color);
  transition: color .4s, transform .3s;
  display: inline-block;
}

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

.home__cv {
  margin-bottom: 2rem;
}

.home__image-wrapper {
  position: relative;
  justify-self: center;
  width: 280px;
  height: 380px;
}

.home__blob-wrapper {
  width: 100%;
  height: 100%;
  background-color: var(--container-color);
  border-radius: 12rem 12rem 2rem 2rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 2px solid var(--border-color);
  transition: background-color .4s, border-color .4s;
}

.home__image {
  width: 250px;
}

.home__shape {
  position: absolute;
  background-color: var(--first-color);
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  opacity: 0.6;
}

.home__shape-1 {
  width: 150px;
  height: 150px;
  top: -2rem;
  left: -2rem;
}

.home__shape-2 {
  width: 100px;
  height: 100px;
  bottom: -1rem;
  right: -1rem;
  background-color: hsl(200, 60%, 64%);
}

.home__shape-3 {
  width: 80px;
  height: 80px;
  top: 50%;
  right: -2rem;
  background-color: hsl(100, 60%, 64%);
}

/*=============== ABOUT ===============*/
.about__container {
  row-gap: 3rem;
}

.about__image-wrapper {
  position: relative;
  justify-self: center;
  width: 280px;
  height: 380px;
}

@media screen and (max-width: 767px) {
  .about__image-wrapper {
    display: none;
  }
}

.about__blob-wrapper {
  width: 100%;
  height: 100%;
  background-color: var(--container-color);
  border-radius: 12rem 12rem 2rem 2rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 2px solid var(--border-color);
  transition: background-color .4s, border-color .4s;
}

.about__image {
  width: 250px;
}

.about__shape {
  position: absolute;
  background-color: var(--first-color);
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  opacity: 0.6;
}

.about__shape-1 {
  width: 150px;
  height: 150px;
  bottom: -2rem;
  left: -2rem;
}

.about__shape-2 {
  width: 100px;
  height: 100px;
  top: -1rem;
  right: -1rem;
  background-color: hsl(15, 60%, 64%);
}

.about__title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about__description {
  margin-bottom: 2rem;
  line-height: 160%;
}

.about__description b {
  color: var(--title-color);
}

.about__info {
  display: flex;
  column-gap: 2rem;
  margin-bottom: 2.5rem;
}

.about__info-item {
  display: flex;
  flex-direction: column;
  row-gap: .5rem;
}

.about__info-number {
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.about__info-text {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

/*=============== PROJECTS ===============*/
.projects__container {
  position: relative;
}

.projects__card {
  background-color: var(--container-color);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: border-color .4s, transform .4s, background-color .4s;
}

.projects__card:hover {
  border-color: var(--first-color);
  transform: translateY(-.5rem);
}

.projects__image-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.projects__img {
  width: 100%;
  transition: transform .4s;
}

.projects__card:hover .projects__img {
  transform: scale(1.1);
}

.projects__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 1rem;
  opacity: 0;
  transition: opacity .4s;
}

.projects__card:hover .projects__overlay {
  opacity: 1;
}

.projects__link {
  display: inline-flex;
  background-color: var(--first-color);
  color: #fff;
  padding: .75rem;
  border-radius: 50%;
  font-size: 1.25rem;
  transform: translateY(1rem);
  transition: transform .4s, background-color .4s;
}

.projects__card:hover .projects__link {
  transform: translateY(0);
}

.projects__link:hover {
  background-color: var(--first-color-alt);
}

.projects__data {
  position: relative;
}

.projects__number {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--second-font);
  font-size: 2.5rem;
  color: var(--border-color); /* Adjusted for light/dark theme */
  font-weight: var(--font-semi-bold);
  line-height: 1;
}

.projects__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: .5rem;
}

.projects__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
  line-height: 130%;
}

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

/* Swiper class */
.swiper-button-prev::after,
.swiper-button-next::after {
  content: '';
}

.swiper-button-prev,
.swiper-button-next {
  width: initial;
  height: initial;
  font-size: 2rem;
  color: var(--title-color);
  background-color: var(--container-color);
  padding: .25rem;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  transition: border-color .4s, background-color .4s, color .4s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: var(--first-color);
  border-color: var(--first-color);
  color: #fff;
}

.swiper-button-prev {
  left: 0;
  top: -3rem;
}

.swiper-button-next {
  right: 0;
  top: -3rem;
}

.swiper-pagination {
  position: initial;
  margin-top: 2.5rem;
}

.swiper-pagination-bullet {
  background-color: var(--text-color-light);
  opacity: 1;
  transition: background-color .4s, width .4s;
}

.swiper-pagination-bullet-active {
  background-color: var(--first-color);
  width: 1.5rem;
  border-radius: .5rem;
}


/*=============== SERVICES / SKILLS ===============*/
.services__container {
  row-gap: 1.5rem;
}

.services__card {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: background-color .4s, border-color .4s;
}

.services__header {
  display: flex;
  align-items: flex-start;
  column-gap: 1rem;
  cursor: pointer;
}

.services__icon {
  font-size: 2rem;
  color: var(--first-color);
}

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
}

.services__description {
  font-size: var(--small-font-size);
  line-height: 160%;
}

.services__toggle {
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--title-color);
  background-color: var(--body-color);
  padding: .25rem;
  border-radius: 50%;
  transition: transform .4s, background-color .4s, color .4s;
}

.services__card.active .services__toggle {
  transform: rotate(45deg);
  background-color: var(--first-color);
  color: #fff;
}

.services__info {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s;
}

.services__card.active .services__info {
  grid-template-rows: 1fr;
}

.services__info > div {
  overflow: hidden;
}

.services__subtitle {
  font-size: var(--normal-font-size);
  margin-block: 1.5rem 1rem;
}

.services__skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.services__skill-item {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-size: var(--small-font-size);
}

.services__skill-item i {
  color: var(--first-color);
}

/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 3rem;
}

.contact__description {
  margin-bottom: 2rem;
}

.contact__email-wrapper {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.contact__email {
  font-size: var(--h3-font-size);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  word-break: break-all;
}

.contact__copy-tooltip {
  position: absolute;
  top: -2rem;
  right: 0;
  background-color: var(--first-color);
  color: #fff;
  padding: .25rem .75rem;
  border-radius: .5rem;
  font-size: var(--smaller-font-size);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  transform: translateY(10px);
  pointer-events: none;
}

.contact__copy-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.contact__info {
  display: grid;
  gap: 2rem;
}

.contact__info-item {
  display: flex;
  flex-direction: column;
  row-gap: .5rem;
}

.contact__title {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-size: var(--normal-font-size);
  color: var(--first-color);
}

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

.contact__social {
  display: flex;
  column-gap: 1rem;
}

.contact__social-link {
  font-size: 1.5rem;
  color: var(--title-color);
  transition: color .4s, transform .4s;
  display: inline-block;
}

.contact__social-link:hover {
  color: var(--first-color);
  transform: translateY(-.25rem);
}

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

.contact__channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.contact__channel {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: .5rem;
  transition: border-color .4s, transform .4s, background-color .4s;
}

.contact__channel:hover {
  border-color: var(--first-color);
  transform: translateY(-.5rem);
}

.contact__channel i {
  font-size: 2rem;
  color: var(--first-color);
}

.contact__channel span {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

/*=============== FOOTER ===============*/
.footer {
  padding-block: 4rem 2rem;
  background-color: var(--container-color);
  transition: background-color .4s;
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 2rem;
  text-align: center;
}

.footer__logo {
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.footer__nav {
  display: flex;
  column-gap: 1.5rem;
}

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

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

.footer__copy {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

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

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }
  
  .home__image-wrapper,
  .about__image-wrapper {
    width: 250px;
    height: 340px;
  }

  .services__skills {
    grid-template-columns: 1fr;
  }

  .contact__channels {
    grid-template-columns: 1fr;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .projects__container,
  .services__container {
    grid-template-columns: 380px;
    justify-content: center;
  }

  .contact__info {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .contact__channels {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 768px) {
  .home__container,
  .about__container,
  .contact__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .home__data,
  .about__data {
    text-align: left;
  }

  .home__profession-wrapper,
  .home__social,
  .about__info {
    justify-content: flex-start;
  }

  .home__image-wrapper {
    order: 1;
  }

  .projects__container,
  .services__container {
    grid-template-columns: repeat(2, 350px);
  }

  .footer__container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

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

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

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

  .home__container {
    grid-template-columns: 1fr 1fr;
    padding-top: 5rem;
    column-gap: 4rem;
  }

  .home__image-wrapper {
    width: 400px;
    height: 550px;
  }

  .home__image {
    width: 350px;
  }

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

  .about__image-wrapper {
    width: 400px;
    height: 550px;
  }

  .about__image {
    width: 350px;
  }

  .projects__container {
    grid-template-columns: 1000px;
  }

  .projects__card {
    padding: 2rem;
  }

  .services__container {
    grid-template-columns: repeat(2, 450px);
    column-gap: 3rem;
  }

  .contact__container {
    grid-template-columns: 500px 500px;
    justify-content: center;
    column-gap: 5rem;
  }
}
