/*=============== Google Fonts ===============*/
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap");

/*=============== Css Variables ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  --title-color: #4a4a4a;
  --text-color: #555;
  --text-color-alt: #999;
  --bg-color: #fff;
  --bg-color-alt: #e9ecef;
  --border-color: #f1f1f1;
  --primary-color: #6d56c1;
  --primary-color-alt: #5c47a7;

  /*========== Font and typography ==========*/
  --roboto-font: "Roboto", sans-serif;
  --mono-font: "Roboto Mono", monospace;

  --fs-h1: 2.75rem;
  --fs-h2: 2.25rem;
  --fs-lg: 1.125rem;
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /*========== Font Weight ==========*/
  --medium: 500;
  --semibold: 600;
  --bold: 700;

  /*========== Gradient ==========*/
  --linear-gradient: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.3)
  );
}

/*=============== Base ===============*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
textarea {
  font-family: var(--roboto-font);
  font-size: var(--fs-base);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--mono-font);
  font-weight: var(--bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

textarea,
input {
  background: none;
  border: none;
  outline: none;
}

/*=============== Reusable Css ===============*/
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.grid {
  display: grid;
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section__title {
  font-size: var(--fs-h2);
  line-height: 1.17em;
  font-weight: var(--medium);
  margin-bottom: 1.12em;
}

.text-lg {
  font-size: var(--fs-lg);
  line-height: 1.67em;
}

.text-sm {
  font-size: var(--fs-sm);
  line-height: 1.43em;
}

.text-xs {
  font-size: var(--fs-xs);
  line-height: 1.5em;
}

.skills__title,
.resume__title {
  color: var(--text-color-alt);
  letter-spacing: 0.4em;
  margin-bottom: 2.8em;
}

/*=============== Header ===============*/
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: 0.3s;
}

.nav {
  height: calc(var(--header-height) + 0.875rem);
  display: flex;
  align-items: flex-end;
}

.nav__list {
  display: flex;
  column-gap: 3.25rem;
}

.nav__link {
  color: #fff;
  font-size: 0.9rem;
  font-weight: var(--bold);
  font-family: var(--mono-font);
  text-transform: uppercase;
  position: relative;
  transition: 0.3s;
}

.nav__link:hover {
  opacity: 0.5;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -0.5rem;
  width: 7px;
  height: 2px;
  background-color: #fff;
  opacity: 0;
  transition: 0.3s;
}

.nav__link:hover::after {
  opacity: 1;
}

.nav__close,
.nav__toggle {
  display: none;
}

/* Active Link */
.active-link {
  opacity: 0.5;
}

.active-link::after {
  opacity: 1;
}

/* Scroll Header */
.scroll-header {
  position: fixed;
  background-color: var(--bg-color);
  box-shadow: 0 5px 8px 0 rgb(0 0 0 / 14%);
}

.scroll-header .nav__link {
  color: var(--text-color);
}

.scroll-header .nav {
  align-items: center;
}

.scroll-header .nav__link::after {
  background-color: var(--text-color);
}

.scroll-header .nav__link:hover,
.scroll-header .active-link {
  color: var(--primary-color);
}

/*=============== Home ===============*/
.home {
  background: url(/assets/img/background5.jpg);
  background-size: cover;
  background-position: 50%;
  padding-top: 5.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

@media (max-width: 768px) {
  .home {
    background-image: url(/assets/img/profilalex.jpg);
    background-size: cover;
  }
}

.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--linear-gradient);
}

.home__container {
  grid-template-columns: 4fr 8fr;
  column-gap: 1.875rem;
}

.home__img,
.home__data {
  z-index: 10;
}

.home__img {
  width: 290px;
  height: auto;
  border-radius: 0.3rem;
  transform: translateY(3.125rem);
  box-shadow: 0 0 27px rgb(96 96 96 / 34%);
}

.home__name,
.home__work,
.home__list,
.home__social-link {
  color: #fff;
  font-family: var(--mono-font);
}

.home__name {
  font-size: var(--fs-h1);
  line-height: 1.14em;
  margin: 0.9em 0 0.23em;
}

.home__work {
  margin-bottom: 2.5em;
}

.home__list dt {
  float: left;
  font-weight: var(--bold);
  opacity: 0.4;
}

.home__list dd {
  padding-left: 6.25em;
}

.home__list dd:not(:last-child) {
  margin-bottom: 0.94em;
}

.home__socials {
  margin: 1.25rem 0 2.2rem;
}

.home__social-link {
  font-size: 1.7rem;
  line-height: 1.36em;
  margin-right: 0.25rem;
  opacity: 0.4;
  transition: 0.3s;
}

.home__social-link:hover {
  opacity: 1;
}

/*=============== Hello ===============*/
.hello__details {
  margin-bottom: 1.67em;
  text-align: justify;
}

/*=============== Buttons ===============*/
.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 1.1em 2.1em;
  border-radius: 1.56rem;
  font-weight: var(--semibold);
  transition: 0.3s;
}

.button:hover {
  background-color: var(--primary-color-alt);
}

.button--flex {
  display: inline-flex;
  align-items: flex-start;
  column-gap: 0.3rem;
}

/*=============== Services ===============*/
.services__container {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.875rem;
}

.services__item {
  border: 1px solid var(--border-color);
  padding: 2.5rem 1.25rem 1.875rem;
  text-align: center;
}

.icon__box {
  border: 1px solid var(--border-color);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  margin: 0 auto;
  margin-bottom: 1.25rem;
  position: relative;
  display: flex;
}

.services__icon {
  width: 32px;
  margin: auto;
}

.services__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  animation: service-dot 2s linear infinite;
  animation-play-state: paused;
}

.services__item:hover .services__dot {
  animation-play-state: running;
}

@keyframes service-dot {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(1turn);
  }
}

.dot {
  width: 13px;
  height: 13px;
  background-color: var(--title-color);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0.9rem;
}

.services__title {
  margin-bottom: 0.8em;
}

/*=============== Resume ===============*/
.resume__container {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3.75rem;
}

.resume__title {
  color: var(--text-color-alt);
  letter-spacing: 0.4em;
  margin-bottom: 2.8em;
}

.resume__item {
  border-left: 2px solid var(--primary-color);
  padding-left: 1.6rem;
  position: relative;
}

.resume__item:not(:last-child) {
  padding-bottom: 3rem;
}

.resume__item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  position: absolute;
  left: -0.56rem;
  background-color: var(--bg-color);
}

.resume__subtitle {
  color: var(--primary-color);
  margin-bottom: 0.36em;
}

.resume__date {
  color: var(--text-color-alt);
  margin-bottom: 0.7em;
}

.resume__description {
  text-align: justify;
}

/*=============== Skills ===============*/
.skills__container {
  grid-template-columns: repeat(2, 445px);
  column-gap: 7rem;
}

.skills__list {
  row-gap: 1.8rem;
}

.skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}

.skills__bar,
.skills__percentage {
  height: 5px;
  border-radius: 0.25rem;
}

.skills__bar {
  background-color: var(--bg-color-alt);
}

.skills__percentage {
  display: block;
  background-color: var(--primary-color);
}

/*=============== Projects ===============*/
.project__categories {
  display: flex;
  flex-wrap: wrap;
  column-gap: 3rem;
  row-gap: 0.25rem;
  margin-bottom: 1.875rem;
}

.category__btn {
  color: var(--text-color-alt);
  font-weight: var(--bold);
  font-family: var(--mono-font);
  position: relative;
}

.category__btn:hover {
  color: var(--primary-color);
}

.category__btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -0.5rem;
  width: 7px;
  height: 2px;
  background-color: var(--primary-color);
  opacity: 0;
  transition: 0.3s;
}

.category__btn:hover::after {
  opacity: 1;
}

.active-work {
  color: var(--primary-color);
}

.active-work::after {
  opacity: 1;
}

.projects__container {
  row-gap: 2.5rem;
}

.project__item {
  grid-template-columns: 5fr 7fr;
}

.project__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
  border-radius: 10px;
}

.project__data {
  padding: 3rem 3rem 2.5rem 1.875rem;
}

.project__title {
  margin-bottom: 0.8em;
  text-align: justify;
}

.project__description {
  margin-bottom: 2.5em;
  text-align: justify;
}

.project__stack {
  margin-bottom: 1.25em;
}

.tags li {
  display: inline-block;
  margin-right: 0.6rem;
  box-shadow: 0 1px 4px rgb(0 0 0 / 14%);
  padding: 0.3rem 0.6rem;
  border-radius: 0.2rem;
}

.project__link {
  float: right;
  margin-top: 3.9em;
  color: blue;
  font-family: var(--mono-font);
}

/*=============== Testimonials ===============*/
.testimonial__bg {
  background: url(../img/background5.jpg);
  background-size: cover;
  background-position: 50%;
  position: relative;
}

.testimonial__bg::before {
  content: "";
  background: var(--linear-gradient);
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
}

.testimonial__icon {
  height: 88px;
  width: 88px;
  border-radius: 50%;
  position: absolute;
  top: -2.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-color);
  font-size: 1.75rem;
  color: var(--primary-color);
  padding-top: 2.75rem;
  text-align: center;
}

.testimonial__container {
  padding-top: 5rem;
  padding-bottom: 7.8rem;
}

.testimonial__item {
  padding: 0 5.75rem;
}

.testimonial__description,
.author__project,
.author__name {
  color: #fff;
}

.author__name {
  text-transform: uppercase;
  margin-bottom: 0.56em;
  font-weight: 400;
}

.author__project {
  font-style: italic;
  opacity: 0.7;
  margin-bottom: 1.25em;
}

.testimonial__description {
  text-align: justify;
}

.ruler {
  width: 100%;
  height: 1px;
  background-color: #a98a79;
  margin-bottom: 1.25rem;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  content: "";
}

.swiper-button-next img,
.swiper-button-prev img {
  width: 20px;
  height: 20px;
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: 3.25rem;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid #fff;
  opacity: 1;
  margin: 0 3px !important;
}

.swiper-pagination-bullet-active {
  background-color: #fff;
}

/*=============== Blog ===============*/
.posts__container {
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.875rem;
  margin-bottom: 2.5rem;
}

.post__img {
  vertical-align: middle;
}

.post__content {
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.875rem 2.5rem 1.25rem;
}

.post__date {
  text-transform: uppercase;
  color: var(--text-color-alt);
  margin-bottom: 0.8em;
}

.post__title {
  margin-bottom: 1.1em;
  color: var(--text-color);
}

.post__description {
  color: var(--text-color-alt);
  text-align: justify;
}

/*=============== Contact ===============*/
.contact {
  background: url(../img/background5.jpg);
  background-size: cover;
  background-position: 50%;
  position: relative;
}

.contact::before {
  content: "";
  background: var(--linear-gradient);
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.contact__content {
  z-index: 10;
  position: relative;
}

.contact__container {
  grid-template-columns: 4fr 5fr 3fr;
  column-gap: 1.875rem;
  padding-top: 1.25rem;
}

.contact .section__title,
.contact__list,
.contact__social-link,
::placeholder,
.contact__input,
.contact__form-title,
.footer__copy {
  color: #fff;
  font-family: var(--mono-font);
}

.contact__list {
  margin-bottom: 3.25rem;
}

.contact__list dt {
  float: left;
  font-weight: var(--bold);
  text-transform: uppercase;
}

.contact__list dd {
  padding-left: 6.25em;
  margin-bottom: 0.94em;
}

.contact__socials li {
  margin-bottom: 0.75rem;
}

.contact__social-link {
  font-family: var(--roboto-font);
}

.contact__form {
  position: relative;
}

.contact__form-title {
  margin-bottom: 1.25em;
}

.contact__input-div {
  margin-bottom: 0.94em;
}

.contact__input {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  padding: 0.625rem;
}

.textarea {
  height: 7.2rem;
  resize: none;
}

.contact__input:focus {
  box-shadow: inset 0 0 5px 0 #fff;
}

.contact__message {
  position: absolute;
  bottom: 34%;
  left: 0;
  font-family: var(--mono-font);
  color: #fff;
}

.color-dark {
  opacity: 0.4;
}

.color-light {
  opacity: 1;
}

.contact__button {
  margin-top: 1.875rem;
  width: 100%;
  box-shadow: 0 1px 29px rgb(0 0 0 / 40%);
}

.footer__copy {
  opacity: 0.4;
  margin-top: 3.75rem;
  text-align: center;
}

/*=============== Blog Details ===============*/
.blog__header {
  height: 400px;
  background: url(../img/background5.jpg);
  background-size: cover;
  background-position: 50%;
  position: relative;
}

.blog__header::before {
  content: "";
  background: var(--linear-gradient);
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
}

.blog__details {
  background-color: #fff;
  padding: 3rem 4.25rem 3.75rem;
  margin-top: -16rem;
  box-shadow: 0 1px 21px rgb(0 0 0 / 14%);
  z-index: 10;
  position: relative;
  margin-bottom: 6.25rem;
}

.back__to-home {
  display: inline-flex;
  column-gap: 0.6rem;
  text-transform: uppercase;
  color: var(--text-color);
}

.post__details-title {
  text-transform: uppercase;
  margin-top: 1.67em;
  margin-bottom: 0.84em;
}

.post__details-date {
  color: var(--text-color-alt);
  margin-bottom: 1.12em;
}

.post__details {
  margin-bottom: 1.12em;
  text-align: justify;
}

figure {
  padding-top: 0.625rem;
  padding-bottom: 2.2rem;
}

figcaption {
  color: var(--text-color-alt);
  font-style: italic;
  font-family: var(--mono-font);
  margin-top: 1.4em;
}

.post__social-share {
  display: inline-flex;
  column-gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.post__share {
  margin-top: -2px;
  color: var(--text-color);
}

.post__share-link {
  color: var(--title-color);
  font-size: 1.75rem;
  opacity: 0.4;
  margin-right: 0.14em;
}

.post__share-link:hover {
  color: var(--primary-color);
  opacity: 1;
}

/*=============== Style Switcher ===============*/
.style__switcher {
  position: fixed;
  right: 0;
  top: 15px;
  padding: 0.625rem;
  box-shadow: 5px 1px 10px rgba(0, 0, 0, 0.4);
  background-color: var(--bg-color);
  z-index: 101;
  transform: translateX(100%);
  transition: 0.3s;
}

.open {
  transform: translateX(0);
}

.style__switcher-toggler {
  position: absolute;
  height: 46px;
  width: 46px;
  background-color: var(--primary-color);
  right: 105%;
  top: 0;
  text-align: center;
  line-height: 45px;
  font-size: 1.75rem;
  color: #fff;
  cursor: pointer;
  border-radius: 50px;
}

.colors {
  display: flex;
  column-gap: 0.625rem;
}

.colors span {
  display: inline-block;
  height: 25px;
  width: 25px;
  border-radius: 2px;
}

.color-1 {
  background-color: #4a4a4a;
}

.color-2 {
  background-color: #6d56c1;
}

/*=============== Cards ===============*/

/*=============== ChatBot ===============*/
.chatbot-toggler {
  position: fixed;
  bottom: 20px;
  right: 20px;
  outline: none;
  border: none;
  height: 50px;
  width: 50px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 4px 6px;
}

.chatbot-toggler:hover {
  background-color: var(--primary-color-alt);
  transform: scale(1.1);
}

body.show-chatbot .chatbot-toggler {
  transform: rotate(45deg);
}

.chatbot-toggler span {
  color: #ffffff;
  position: absolute;
  font-size: 1.5rem;
}

body.show-chatbot .chatbot-toggler span:first-child {
  opacity: 0;
}

body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
}

.chatbot {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 400px;
  max-width: 90%;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: bottom right;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 999;
}

body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.chatbot header {
  padding: 15px;
  text-align: center;
  color: #fff;
  background: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 15px 15px 0 0;
}

.chatbot header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.chatbot header .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
}

.chatbot .chatbox {
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
  background-color: #f7f7f7;
}

.chatbot .chatbox::-webkit-scrollbar {
  width: 8px;
}

.chatbot .chatbox::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.chatbox .chat {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.chatbox .outgoing {
  justify-content: flex-end;
}

.chatbox .incoming span {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  margin-right: 10px;
  font-size: 1.5rem;
}

.chatbox .chat p {
  background-color: #e0e0e0;
  color: #000;
  border-radius: 15px;
  padding: 10px 15px;
  max-width: 70%;
  word-wrap: break-word;
  font-size: 1rem;
}

.chatbox .outgoing p {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 15px 15px 0 15px;
}

.chatbox .incoming p {
  background-color: #f0f0f0;
  color: #000;
  border-radius: 15px 15px 15px 0;
}

.chatbot .chat-input {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #fff;
  border-top: 1px solid #ddd;
}

.chatbot .chat-input textarea {
  flex: 1;
  padding: 10px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  resize: none;
}

.chatbot .chat-input span {
  margin-left: 10px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background-color 0.3s ease;
}

.chatbot .chat-input span:hover {
  background: var(--primary-color-alt);
}

/* Media Query pentru dispozitive mobile */
@media screen and (max-width: 576px) {
  .chatbot {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 80%;
    border-radius: 0;
  }

  .chatbot header {
    border-radius: 0;
  }

  .chatbot .chatbox {
    max-height: calc(100% - 120px);
    padding: 10px;
  }

  .chatbot .chat-input {
    padding: 10px;
  }

  .chatbot-toggler {
    right: 20px;
    bottom: 20px;
    height: 45px;
    width: 45px;
  }

  .chatbot header h2 {
    font-size: 1.25rem;
  }

  .chatbot .chat-input span {
    width: 35px;
    height: 35px;
    font-size: 1.25rem;
  }
}

/*=============== Scroll to Top ===============*/
button#scroll-to-top {
  visibility: hidden;
  position: fixed;
  right: 20px; /* Aliniat cu butonul de chatbot */
  bottom: 80px; /* Aliniat pe verticală deasupra butonului de chatbot */
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 50px; /* Dimensiune similară cu butonul de chatbot */
  height: 50px; /* Dimensiune similară cu butonul de chatbot */
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 4px 6px;
  transition: background-color 0.3s, transform 0.3s;
}

button#scroll-to-top:hover {
  background-color: var(--primary-color-alt);
  transform: scale(1.1);
}

/*=============== ChatBot ===============*/
.chatbot-toggler {
  position: fixed;
  bottom: 20px;
  right: 20px; /* Aliniat cu butonul de scroll to top */
  outline: none;
  border: none;
  height: 50px;
  width: 50px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 4px 6px;
}

.chatbot-toggler:hover {
  background-color: var(--primary-color-alt);
  transform: scale(1.1);
}

body.show-chatbot .chatbot-toggler {
  transform: rotate(45deg);
}

.chatbot-toggler span {
  color: #ffffff;
  position: absolute;
  font-size: 1.5rem;
}

body.show-chatbot .chatbot-toggler span:first-child {
  opacity: 0;
}

body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
}

/* Media Query pentru dispozitive mobile */
@media screen and (max-width: 576px) {
  button#scroll-to-top {
    right: 20px; /* Realiniere pe dispozitive mobile */
    bottom: 80px; /* Ajustat pentru a nu se suprapune cu butonul de chatbot */
    width: 45px;
    height: 45px;
    font-size: 1.35rem;
  }

  .chatbot-toggler {
    right: 20px;
    bottom: 20px;
    height: 45px;
    width: 45px;
  }
}

/*=============== Cookie ===============*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.cookie-banner p {
  margin: 0;
}

.accept-cookies {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.accept-cookies:hover {
  background-color: #1c919b;
}

/*=============== BreakPoints ===============*/
/* for large devices */
@media screen and (max-width: 1200px) {
  :root {
    --fs-h1: 2.25rem;
    --fs-h2: 1.75rem;
    --fs-lg: 1rem;
    --fs-base: 0.938rem;
    --fs-sm: 0.813rem;
    --fs-xs: 0.687rem;
  }

  .container {
    max-width: 960px;
  }

  .home__container {
    grid-template-columns: 5fr 7fr;
  }

  .skills__container,
  .services__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.875rem;
  }
}

@media screen and (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: 0.3s;
  }

  .show-menu {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    row-gap: 2.125rem;
    text-align: center;
  }

  .nav__toggle,
  .nav__close {
    display: block;
  }

  .nav__close {
    font-size: 1.5rem;
    position: absolute;
    top: 2.7rem;
    left: 8%;
    cursor: pointer;
    color: #fff;
  }

  .nav__toggle {
    color: #fff;
    font-size: 1.25rem;
    opacity: 0.5;
  }

  .scroll-header .nav__toggle {
    color: var(--text-color);
    opacity: 1;
  }

  .home {
    padding-top: 5.25rem;
  }

  .home__img {
    display: none;
  }

  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .project__item,
  .resume__container,
  .home__container {
    grid-template-columns: 1fr;
  }

  .resume__container {
    row-gap: 3.75rem;
  }

  .testimonial__container {
    padding-top: 4.4rem;
    padding-bottom: 6.25rem;
  }

  .testimonial__item {
    padding: 0 3.875rem;
  }

  .posts__container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.875rem;
  }

  .contact__container {
    grid-template-columns: 5fr 7fr;
  }
}

/* for medium devices */
@media screen and (max-width: 768px) {
  .container {
    max-width: 540px;
  }

  .project__img {
    display: none;
  }

  .contact__container,
  .posts__container,
  .skills__container,
  .services__container {
    grid-template-columns: 1fr;
  }

  .skills__container {
    row-gap: 3.75rem;
  }

  .project__data {
    padding: 2rem 1.25rem 1.5rem 1.25rem;
  }

  .testimonial__item {
    padding: 0 3rem;
  }

  .contact__container {
    row-gap: 2rem;
  }

  .blog__details {
    padding: 2.5rem 1.875rem;
  }
}

@media screen and (max-width: 576px) {
  .home {
    padding-top: 4.4rem;
  }

  .project__categories {
    column-gap: 1.5rem;
  }

  .tags li {
    margin-bottom: 0.6rem;
  }

  .testimonial__item {
    padding: 0 1.5rem;
  }

  .swiper-button-next img,
  .swiper-button-prev img {
    width: 1.125rem;
    height: 1.125rem;
  }
}

/* for small devices */
@media screen and (max-width: 350px) {
  :root {
    --fs-h1: 2rem;
  }

  .home__work {
    font-size: var(--fs-sm);
  }

  .home__list {
    font-size: 0.875rem;
  }

  .home__list dd {
    padding-left: 5.75em;
  }

  .home__social-link {
    font-size: 1.3rem;
  }
}
