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

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /*   
        Purple: hsl(250, 66%, 75%)
        Blue: hsl(207, 90%, 72%)
        Pink: hsl(356, 66%, 75%)
        Teal: hsl(174, 63%, 62%)
  */
  --first-hue: 250;
  --sat: 66%;
  --lig: 75%;
  --second-hue: 219;
  --first-color: hsl(var(--first-hue), var(--sat), var(--lig));
  --first-color-alt: hsl(var(--first-hue), var(--sat), 71%); /* -4% */
  --title-color: hsl(var(--second-hue), 15%, 95%);
  --text-color: hsl(var(--second-hue), 8%, 75%);
  --text-color-light: hsl(var(--second-hue), 4%, 55%);
  --body-color: hsl(var(--second-hue), 48%, 8%);
  --container-color: hsl(var(--second-hue), 32%, 12%);
  
  /*========== Light theme colors ==========*/
  --light-text-color: #000000;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 1.75rem;
  --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;
  --tiny-font-size: 0.625rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semibold: 600;

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

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.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;
  }
}

/*=============== BASE ===============*/
* {
  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);
  transition: 0.4s; /* for light mode animation */
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

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

.icon {
  font-size: 1.5rem;
}
.heart-icon {
  font-size: 1rem;
  color: black;
}
/*=============== THEME ===============*/
.change__theme {
  font-size: 1.25rem;
  cursor: pointer;
  transition: 0.3s;
}

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

/* Enhanced theme toggle button */
.change-theme {
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  z-index: 10;
  transition: color 0.3s;
}

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

.change-theme-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Theme toggle animation */
.theme-toggle-spin {
  animation: spin 0.5s ease;
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*========== Variables light theme ==========*/
body.light-theme {
  --title-color: hsl(var(--second-hue), 15%, 15%);
  --text-color: var(--light-text-color);
  --body-color: hsl(var(--second-hue), 100%, 99%);
  --container-color: #ffffff;
  --card-color: #f1f5f9;
  --first-color: #7e6ee1;
  --button-text-color: #ffffff;
}

/*========== 
    Color changes in some parts of 
    the website, in light theme
==========*/
.light-theme .scroll-header {
  box-shadow: 0 2px 4px hsla(0, 0%, 1%, 0.1);
}

.light-theme .nav__menu {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.light-theme .section__subtitle {
  color: var(--text-color);
}

.light-theme .home__social-link {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .home__social-link::after,
.light-theme .footer__social-link {
  background-color: var(--first-color);
}

.light-theme .active-work,
.light-theme .footer__title,
.light-theme .footer__link,
.light-theme .footer__copy {
  color: #ffffff;
}

.light-theme .home__social-link {
  color: var(--first-color);
  background-color: #ffffff;
}

.light-theme .home__scroll {
  color: var(--first-color);
}

.light-theme .home__social::after {
  background-color: var(--first-color);
}

.light-theme .home__scroll-icon {
  color: var(--first-color);
}

.light-theme .home__scroll-name {
  color: var(--first-color);
}

.light-theme .about__box {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .button,
.light-theme .skills__content,
.light-theme .services__card,
.light-theme .work__card,
.light-theme .testimonial__card,
.light-theme .contact__card,
.light-theme .contact__form-div {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme::-webkit-scrollbar {
  background-color: hsl(var(--second-hue), 8%, 80%);
}

/* Experience section light theme */
.light-theme .experience__tabs {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.light-theme .experience__tab {
  color: var(--light-text-color);
}

.light-theme .experience__tab.active {
  color: #334155;
  background-color: #e2e8f0;
  font-weight: 600;
}

.light-theme .timeline {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.light-theme .timeline__item:not(:last-child)::after {
  background-color: #e2e8f0;
}

.light-theme .timeline__logo {
  background-color: transparent;
  border: 2px solid #e2e8f0;
}

.light-theme .timeline__logo.education {
  background-color: #f1f5f9;
  color: var(--first-color);
}

.light-theme .timeline__date {
  color: var(--light-text-color);
}

.light-theme .timeline__title {
  color: #334155;
}

.light-theme .timeline__role {
  color: var(--light-text-color);
}

.light-theme .timeline__list {
  color: #334155;
}
/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

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

.main {
  overflow: hidden;
}

.section {
  padding: 4.5rem 0 1rem;
}

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

.section__title {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: 2rem;
}

.section__subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

/*=============== HEADER & NAV===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* height: var(--header-height); */
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: 0.4s;
}

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

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

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

.nav__menu {
  position: fixed;
  bottom: 1rem;
  background-color: hsla(var(--second-hue), 32%, 16%, 0.8);
  width: 90%;
  border-radius: 4rem;
  padding: 1rem 2.25rem;
  backdrop-filter: blur(10px);
  transition: 0.4s;
}

.nav__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__link {
  color: var(--text-color);
  font-size: 1.25rem;
  padding: 0.4rem;
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: 0.4s;
  display: flex;
  border-radius: 5rem;
}

/* Active link */
.active-link {
  background: linear-gradient(
    180deg,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.5),
    hsla(var(--first-hue), var(--sat), var(--lig), 0.2)
  );
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
  border-radius: 5rem;

  color: var(--title-color);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 4px 4px hsla(0, 0%, 4%, 0.3);
}

/*=============== HOME ===============*/
.home__container {
  position: relative;
  row-gap: 4.5rem;
  padding-top: 2rem;
  overflow: visible;
}

.home__data {
  text-align: center;
  position: relative;
  z-index: 1;
}

.home__greeting,
.home__education {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.home__greeting {
  display: block;
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.home__education {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 0.75rem;
}

/* Typed.js cursor styling */
.typed-cursor {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  opacity: 1;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.home__location {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  background: linear-gradient(
    135deg, 
    hsla(var(--first-hue), var(--sat), var(--lig), 0.3),
    hsla(var(--first-hue), var(--sat), var(--lig), 0.1)
  );
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  cursor: pointer;
}

.home__location i {
  color: var(--first-color);
  margin-right: 0.5rem;
  font-size: 1rem;
}

.home__location:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px hsla(var(--first-hue), var(--sat), var(--lig), 0);
  }
  100% {
    box-shadow: 0 0 0 0 hsla(var(--first-hue), var(--sat), var(--lig), 0);
  }
}

.home__name {
  font-size: var(--biggest-font-size);
  color: var(--first-color);
}

.home__img {
  width: 550px;
  opacity: 0.8;
}

.home__handle {
  justify-self: center;
  width: 190px;
  height: 273px;
  background: linear-gradient(
    180deg,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.7),
    hsla(var(--first-hue), var(--sat), var(--lig), 0.1)
  );

  border-radius: 10rem 10rem 1rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.home__button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.home__social,
.home__scroll {
  position: absolute;
}

.home__social {
  bottom: 4rem;
  left: 0;
  display: grid;
  row-gap: 0.5rem;
  pointer-events: auto;
  z-index: 10;
  position: absolute;
}

.home__social-link {
  width: max-content;
  background-color: var(--container-color);
  color: var(--first-color);
  padding: 0.25rem;
  border-radius: 0.5rem;
  display: flex;
  font-size: 1rem;
  transition: 0.4s;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1;
  position: relative;
}

.home__social-link:hover {
  background-color: var(--first-color);
  color: #ffffff;
}

.home__social::after {
  content: "";
  width: 32px;
  height: 1px;
  background-color: var(--first-color);
  transform: rotate(90deg) translate(16px, 4px);
}

.home__scroll {
  color: var(--first-color);
  right: -1.5rem;
  bottom: 4rem;
  display: grid;
  row-gap: 2.25rem;
  justify-items: center;
  position: absolute;
  overflow: visible;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

.home__scroll-icon {
  font-size: 1.25rem;
  pointer-events: auto;
  z-index: 10;
}

.home__scroll-name {
  font-size: var(--smaller-font-size);
  transform: rotate(-90deg);
  pointer-events: auto;
  z-index: 10;
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--body-color);
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  font-weight: var(--font-medium);
  transition: 0.4s;
}

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

.button--ghost {
  background-color: transparent;
  color: var(--first-color);
  border: 1px solid var(--first-color);
}

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

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

.about__data {
  text-align: center;
}

.about__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.about__box {
  background-color: var(--container-color);
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
}

.about__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.about__title {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-bottom: 0.15rem;
}

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

.about__description {
  margin-bottom: 2rem;
}

/*=============== SKILLS ===============*/
/* Skills section */
.skills__container {
  row-gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Skills cloud */
.skills__cloud {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Skills category */
.skills__category {
  background-color: #111827;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.skills__category-title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Skills tags container */
.skills__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Skills tag */
.skills__tag {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background-color: rgba(167, 137, 212, 0.1);
  border: 1px solid rgba(167, 137, 212, 0.3);
  transition: all 0.3s;
}

.skills__tag:hover {
  transform: translateY(-5px);
  background-color: rgba(167, 137, 212, 0.2);
  border-color: var(--first-color);
}

.skills__tag img {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

.skills__tag span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
}

/* Light theme */
.light-theme .skills__category {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.light-theme .skills__tag {
  background-color: #f8f9fa;
  border: 1px solid rgba(167, 137, 212, 0.3);
}

.light-theme .skills__tag:hover {
  background-color: rgba(167, 137, 212, 0.1);
  border-color: var(--first-color);
}

.light-theme .skills__tag span {
  color: #334155;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .skills__category {
    padding: 1.25rem;
  }
}

@media screen and (min-width: 992px) {
  .skills__tags {
    gap: 1.25rem;
  }
}

/* Services modal */
.services__modal {
  position: fixed;
  inset: 0;
  background-color: hsl(var(--second-hue), 28%, 16%, 0.7);
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  transition: 0.4s;
  z-index: var(--z-modal);
  visibility: hidden;
  opacity: 0;
}

.services__modal-content {
  background-color: var(--body-color);
  padding: 4.5rem 1.5rem 2.5rem;
  border-radius: 1.5rem;
  position: relative;
}

.services__modal-title,
.services__modal-description {
  text-align: center;
}

.services__modal-title {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.services__modal-description {
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
}

.services__modal-list {
  display: grid;
  row-gap: 0.75rem;
}

.services__modal-item {
  display: flex;
  align-items: flex-start;
  column-gap: 0.5rem;
}

.services__modal-icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

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

.services__modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
}
/*Active modal*/

.active-modal {
  visibility: visible;
  opacity: 1;
}

/*=============== WORK ===============*/

.work__container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.work__filters {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.75rem;
  margin-bottom: 2rem;
}

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

.work__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.15);
}

.work__card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 8px 24px hsla(var(--second-hue), 48%, 8%, 0.2);
}

/* JS tilt effect glare */
.js-tilt-glare {
  border-radius: 1rem;
}

.work__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.work__title {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.work__description {
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin-bottom: 0.7rem;
  flex-grow: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
}

.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 0.15rem 0;
}

.work__tag {
  display: inline-block;
  background: rgba(167, 137, 212, 0.12);
  color: var(--first-color);
  font-size: 0.78em;
  font-weight: 500;
  padding: 0.13em 0.65em;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
  border: 1px solid var(--first-color);
}

.work__tag:hover {
  background: var(--first-color);
  color: var(--body-color);
  border-color: var(--first-color);
}

.work__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  justify-content: flex-start;
}

.work__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--first-color);
  font-size: var(--small-font-size);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: var(--container-color);
  transition: 0.3s;
  white-space: nowrap;
}

.work__button:hover {
  background-color: var(--first-color);
  color: var(--body-color);
}

/* Active item work*/
.active-work {
  background-color: var(--first-color);
  color: var(--body-color);
}

/*=============== TESTIMONIAL ===============*/
.testimonial__card {
  background-color: var(--container-color);
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  margin-bottom: 3rem;
}

.testimonial__img {
  width: 60px;
  border-radius: 3rem;
  margin-bottom: 1rem;
}

.testimonial__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 0.25rem;
}

.testimonial__description {
  font-size: var(--small-font-size);
  margin-bottom: 0.15rem;
}

/* Swiper class */
.swiper-pagination-bullet {
  background-color: var(--text-color-light);
}

.swiper-pagination-bullet-active {
  background-color: var(--first-color);
}

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

.contact__title {
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

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

.contact__card {
  background-color: var(--container-color);
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  text-align: center;
}

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

.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: 0.75rem;
}

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

.contact__button:hover .contact__button-icon {
  transform: translateX(0.25rem);
}

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

.contact__form-div {
  position: relative;
  margin-bottom: 2rem;
  height: 4rem;
}

.contact__form-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--text-color-light);
  background: none;
  border-radius: 0.75rem;
  padding: 1.5rem;
  font-size: var(--normal-font-size);
  color: var(--text-color);
  outline: none;
  z-index: 1;
}

.contact__form-tag {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: 0.25rem;
  background-color: var(--body-color);
  z-index: 10;
}

.contact__form-area {
  height: 17rem;
}

.contact__form-area textarea {
  resize: none;
}
/*=============== FOOTER ===============*/
.footer {
  background-color: var(--first-color);
}

.footer__container {
  padding: 2rem 0 6rem;
}

.footer__title,
.footer__link {
  color: var(--body-color);
}

.footer__title {
  text-align: center;
  margin-bottom: 2rem;
}

.footer__list {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.footer__social-link {
  background-color: var(--body-color);
  color: var(--first-color);
  padding: 0.35rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  display: inline-flex;
}

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

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--container-color);
}

::-webkit-scrollbar-track {
  border-radius: 1.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 0.5rem;
}

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

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .nav__menu {
    padding: 1rem 1.5rem;
  }

  .home__button {
    flex-direction: column;
  }

  .home__handle {
    width: 150px;
    height: 203px;
  }

  .home__img {
    width: 550px;
  }

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

  .skills__box {
    column-gap: 1rem;
  }

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

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

  .services__container {
    grid-template-columns: 145px;
    justify-content: center;
  }

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

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

@media screen and (min-width: 435px) {
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .work__img {
    width: 100%;
    height: 180px;
  }
}

/* For medium devices */
@media screen and (min-width: 630px) {
  .nav__menu {
    width: 328px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  .about__info {
    grid-template-columns: repeat(3, 180px);
    justify-content: center;
  }

  .about__description {
    padding: 1rem 5rem;
    width: 600px;
    margin: 0 auto 2rem auto;
  }

  .about__box {
    padding: 1.75rem 0.95rem;
  }

  .skills__container {
    justify-content: center;
  }

  .skills__content {
    padding: 4rem 4rem;
  }

  .skills__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
  }

  .skills__box {
    column-gap: 5.5rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 177px);
    justify-content: center;
  }

  .services__modal-content {
    width: 500px;
    padding: 4.5rem 2.5rem 2.5rem;
  }

  .services__modal-description {
    padding: 0 3.5rem;
  }

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

  .work__img {
    width: 250px;
  }

  .testimonial__container {
    width: 600px;
    margin: auto;
  }

  .contact__container {
    display: grid;
    grid-template-columns: 220px 340px;
    column-gap: 2rem;
    justify-content: center;
  }

  .contact__info {
    grid-template-columns: 200px;
    gap: 1rem;
  }

  .contact__form {
    width: 340px;
  }
  /* .contact__info {
    grid-template-columns: 350px;
    justify-content: center;
  }

  .contact__form {
    width: 360px;
    margin: 0 auto;
  } */
}

/* @media screen and (min-width: 767px) {
  /* .work__container {
    grid-template-columns: repeat(2, max-content);
  } */

/* .contact__info {
    grid-template-columns: 300px;
  }

  .contact__container {
    grid-template-columns: repeat(2, 325px);
    justify-content: center;
  }
} */

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

  .section {
    padding: 6.5rem 0 1rem;
  }

  .section__title {
    margin-bottom: 3.5rem;
  }

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

  .home__handle {
    width: 290px;
    height: 380px;
  }

  .home__img {
    width: 550px;
  }
  .home__social-link {
    padding: 0.4rem;
    font-size: 1.75rem;
  }

  .home__social::after {
    transform: rotate(90deg) translate(16px, -1px);
  }

  .home__scroll-icon {
    font-size: 2rem;
  }

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

  .about__img {
    width: 350px;
  }

  .about__data {
    text-align: initial;
  }

  .about__info {
    justify-content: initial;
    gap: 2rem;
  }

  .about__box {
    text-align: center;
    padding: 1rem 1.25rem;
  }

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

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

  .skills__title {
    margin-bottom: 3.5rem;
  }

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

  .services__card {
    padding: 5rem 2rem 1.5rem;
  }

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

  .work__card {
    width: 100%;
    height: auto;
    min-height: 450px;
  }

  .work__img {
    width: 100%;
    height: 180px;
  }

  .work__title {
    margin-bottom: 0.5rem;
  }

  .testimonial__container {
    width: 970px;
  }

  .testimonial__card {
    padding: 1.5rem 2rem;
  }

  .contact__info {
    grid-template-columns: 430px;
    gap: 1rem;
  }

  .contact__form {
    width: 430px;
  }

  .contact__form-area {
    height: 18rem;
  }

  .contact__container {
    grid-template-columns: repeat(2, 430px);
    column-gap: 6rem;
  }

  .footer__social-link {
    font-size: 1.25rem;
    padding: 0.4rem;
    border-radius: 0.5rem;
  }
}

@media screen and (max-width: 991px) {
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .work__card {
    min-height: 400px;
  }
}

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

  .work__card {
    min-height: auto;
  }
}

/* Experience Section Styles */
.exp .work__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.exp .work__card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.exp .work__img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    padding: 1rem;
}

.exp .work__title {
    font-size: var(--h3-font-size);
    color: var(--title-color);
    margin: 0;
}

.exp .about__title {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin: 0;
}

.exp .work__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--first-color);
    font-size: var(--small-font-size);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--container-color);
    transition: 0.3s;
    margin-top: 0.5rem;
}

.exp .work__button:hover {
    background-color: var(--first-color);
    color: var(--body-color);
}

@media screen and (min-width: 992px) {
    .exp .work__container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 991px) {
    .exp .work__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Experience Section */
.exp__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 0.25rem;
}

.exp__card {
    background-color: var(--container-color);
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    transition: 0.3s;
}

.exp__card:hover {
    transform: translateY(-0.5rem);
}

.exp__img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    padding: 0.05rem;
}

.exp__title {
    font-size: 0.97rem;
    color: var(--title-color);
    margin: 0;
}

.exp__subtitle {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin: 0;
}

.exp__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--first-color);
    font-size: var(--small-font-size);
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--container-color);
    transition: 0.3s;
    margin-top: 0.15rem;
}

.exp__button:hover {
    background-color: var(--first-color);
    color: var(--body-color);
}

@media screen and (min-width: 992px) {
    .exp__container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 991px) {
    .exp__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Project Tech Stack Tags */
.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 0.15rem 0;
}

.work__tag {
  display: inline-block;
  background: rgba(167, 137, 212, 0.12);
  color: var(--first-color);
  font-size: 0.78em;
  font-weight: 500;
  padding: 0.13em 0.65em;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
  border: 1px solid var(--first-color);
}

.work__tag:hover {
  background: var(--first-color);
  color: var(--body-color);
  border-color: var(--first-color);
}

.home.section {
  overflow: visible;
}

/*=============== EXPERIENCE SECTION ===============*/
.experience__container {
  max-width: 768px;
  margin: 0 auto;
}

.experience__tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  background-color: #1e2736;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #2a3545;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

.experience__tab {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: var(--font-medium);
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: 0.3s;
  flex: 1;
  text-align: center;
}

.experience__tab.active {
  color: #e2e8f0;
  background-color: #2a3545;
  font-weight: 600;
}

.experience__content {
  display: none;
}

.experience__content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Timeline styles */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  background-color: #111827;
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
}

.timeline__item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 45px;
  bottom: -15px;
  width: 2px;
  background-color: #2a3545;
  z-index: 0;
}

.timeline__logo-container {
  flex: 0 0 45px;
  margin-right: 1rem;
}

.timeline__logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
  border: 2px solid #2a3545;
}

.timeline__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline__logo.education {
  background-color: #2a3545;
  color: #fff;
  font-size: 1.25rem;
}

.timeline__content {
  flex: 1;
  padding: 0;
  background-color: transparent;
}

.timeline__date {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.timeline__title {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 0;
  font-weight: 600;
}

.timeline__role {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  font-weight: normal;
}

.timeline__list {
  list-style: disc;
  padding-left: 1.25rem;
  color: #e2e8f0;
  margin-top: 0.75rem;
}

.timeline__list li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
  font-size: 0.8rem;
}

.timeline__list li:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 767px) {
  .experience__tab {
    padding: 0.75rem 1rem;
    font-size: var(--small-font-size);
  }
  
  .timeline__logo-container {
    flex: 0 0 40px;
    margin-right: 0.75rem;
  }
}

/* Skills section */
.skills__container {
  row-gap: 2rem;
}

/* Skills tabs */
.skills__tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  background-color: #1e2736;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #2a3545;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.skills__tab {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: var(--font-medium);
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: 0.3s;
  flex: 1;
  text-align: center;
}

.skills__tab.active {
  color: #e2e8f0;
  background-color: #2a3545;
  font-weight: 600;
}

/* Skills content */
.skills__content {
  display: none;
  padding: 1.5rem;
  background-color: #111827;
  border-radius: 0.75rem;
}

.skills__content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Skills list */
.skills__list {
  display: grid;
  gap: 1.5rem;
}

/* Skills item */
.skills__item {
  background-color: #1e2736;
  padding: 1rem;
  border-radius: 0.5rem;
}

.skills__item-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.skills__icon {
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
}

.skills__item-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e2e8f0;
  flex: 1;
}

.skills__percentage {
  font-size: 0.8rem;
  color: var(--first-color);
}

/* Skills bar */
.skills__bar {
  height: 5px;
  background-color: #2a3545;
  border-radius: 0.25rem;
  overflow: hidden;
}

.skills__progress {
  height: 100%;
  background-color: var(--first-color);
  border-radius: 0.25rem;
}

/* Light theme */
.light-theme .skills__tabs {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.light-theme .skills__tab {
  color: var(--light-text-color);
}

.light-theme .skills__tab.active {
  color: #334155;
  background-color: #e2e8f0;
}

.light-theme .skills__content {
  background-color: #ffffff;
}

.light-theme .skills__tag {
  background-color: #f1f5f9;
}

.light-theme .skills__tag.expert {
  background-color: rgba(167, 137, 212, 0.2);
  border: 1px solid var(--first-color);
}

.light-theme .skills__tag.advanced {
  background-color: rgba(167, 137, 212, 0.15);
  border: 1px solid rgba(167, 137, 212, 0.5);
}

.light-theme .skills__tag.intermediate {
  background-color: rgba(167, 137, 212, 0.1);
  border: 1px solid rgba(167, 137, 212, 0.3);
}

.light-theme .skills__tag span {
  color: #334155;
}

.light-theme .skills__legend-text {
  color: var(--light-text-color);
}

/* Responsive */
@media screen and (max-width: 576px) {
  .skills__legend {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

.light-theme .button {
  color: var(--button-text-color);
  background-color: var(--first-color);
}

.light-theme .button:hover {
  background-color: var(--first-color-alt);
  color: var(--button-text-color);
}

.light-theme .footer {
  background-color: var(--first-color);
}

.light-theme .footer__title,
.light-theme .footer__link,
.light-theme .footer__copy {
  color: var(--button-text-color);
}

.light-theme .footer__social-link {
  background-color: #ffffff;
  color: var(--first-color);
}

/* Heart icon in light theme */
.light-theme .heart-icon {
  color: #ffffff;
}
