/*==================== GOOGLE FONTS ====================*/

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

/*==================== UNIVERSAL RESET ====================*/

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

/*==================== VARIABLES CSS ====================*/

:root {
  --header-height: 3rem;
  /*========== Colors ==========*/
  /* Change favorite color */
  --hue-color: 250;
  /*Purple 250 - Green 142 - Blue 230 - Pink 340*/
  /* HSL color mode */
  --trans: 0.388;
  --first-color: #000000;
  --first-color-second: rgb(0, 0, 0);
  --first-color-alt: var(--first-color);
  --first-color-lighter: var(--first-color);
  --title-color: hsl(var(--hue-color), 8%, 15%);
  --text-color: hsl(var(--hue-color), 8%, 45%);
  --text-color-light: hsl(var(--hue-color), 8%, 65%);
  --input-color: hsl(var(--hue-color), 70%, 96%);
  --body-color: hsl(var(--hue-color), 60%, 99%);
  --container-color: #fff;
  --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);

  /*========== Font and typography ==========*/
  --body-font: "Poppins", sans-serif;
  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  /*========== Margines ==========*/
  /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 100;
}

.back {
  border-radius: 50% !important;
  border: 4px solid var(--first-color) !important;
  box-shadow: 0 8px 32px rgba(88, 172, 220, 0.3) !important;
  transition: all 0.3s ease !important;
  width: min(300px, 90vw) !important;
  height: min(300px, 90vw) !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
}

.back:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 12px 48px rgba(88, 172, 220, 0.4) !important;
}
/* Font size for large devices */

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3rem;
    --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;
  }
}

/*========== Variables Dark theme ==========*/

body.dark-theme {
  /* HSL color mode */
  --first-color-second: hsl(var(--hue-color), 30%, 8%);
  --title-color: hsl(var(--hue-color), 8%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 75%);
  --input-color: hsl(var(--hue-color), 29%, 16%);
  --body-color: hsl(var(--hue-color), 28%, 12%);
  --container-color: hsl(var(--hue-color), 29%, 16%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
}

/*========== Button Dark/Light ==========*/

.nav__btns {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  flex-shrink: 0;
  padding-left: 0.5rem;
  height: 100%;
}

.change-theme {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: var(--title-color);
  cursor: pointer;
  display: flex;
  align-items: center;
}

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

/*==================== BASE ====================*/

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*==================== REUSABLE CSS CLASSES ====================*/

.noSelect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.section {
  padding: 1.5rem 0 3rem;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Auto height for services and contact to ensure mobile fitting */
.services.section,
.contact.section {
  padding: 2rem 0;
  height: auto;
  min-height: auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Full height sections */
.home.section,
.projects.section,
.certificates.section {
  height: 100vh;
  max-height: 100vh;
  overflow-y: hidden;
  padding: 0;
}

/* Compact titles for full-height sections */
.projects .section__title,
.certificates .section__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

.projects .section__subtitle,
.certificates .section__subtitle {
  font-size: clamp(0.8rem, 2vw, 1rem);
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.25rem, 5vw, var(--h1-font-size));
  padding: 0 0.5rem;
  max-width: 100%;
}

.section__subtitle {
  display: block;
  font-size: clamp(0.8rem, 2.5vw, var(--small-font-size));
  margin-bottom: var(--mb-2);
  padding: 0 0.5rem;
}

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

/*==================== LAYOUT ====================*/

.container {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 2rem);
  overflow-x: hidden;
  padding-left: var(--mb-1);
  padding-right: var(--mb-1);
}

.grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

main {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

section {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

.header {
  width: 100%;
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

/*==================== NAV ====================*/

.nav {
  width: 100%;
  max-width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.25rem;
  gap: clamp(0.75rem, 3vw, 2rem);
  box-sizing: border-box;
  overflow: hidden;
}

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

.nav__logo {
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: auto;
  padding-right: 0.5rem;
  display: flex;
  align-items: center;
  height: 100%;
}

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

.nav__toggle {
  font-size: clamp(1rem, 3.5vw, 1.1rem);
  cursor: pointer;
}

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

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    padding: 1.5rem 0.5rem 3.5rem;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
    border-radius: 1.5rem 1.5rem 0 0;
    transition: 0.3s;
    overflow: hidden;
    box-sizing: border-box;
  }
}

.nav__list {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 2.5vw, 2rem);
  row-gap: clamp(0.75rem, 2.5vw, 1.5rem);
  max-width: 100%;
}

.nav__item {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 0.15rem;
  min-width: 0;
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-size: clamp(0.6rem, 2vw, var(--small-font-size));
  color: var(--title-color);
  font-weight: var(--font-medium);
  text-align: center;
  line-height: 1.1;
  max-width: 100%;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  padding: 0.25rem 0.1rem;
}

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

.nav__icon {
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  margin-bottom: 0.2rem;
  flex-shrink: 0;
}

.nav__close {
  position: absolute;
  right: 1rem;
  bottom: 0.5rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  cursor: pointer;
  color: var(--first-color);
}

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

/* show menu */

.show-menu {
  bottom: 0;
}

/* Active link */

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

/* Change background header */

.scroll-header {
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
}

/*==================== HOME ====================*/

.home.section {
  height: 100vh;
  max-height: 100vh;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  padding: 0;
}

.home__container {
  gap: 1rem;
  padding: 0 0.5rem;
  max-width: 100%;
  overflow-x: hidden;
  height: 100%;
  max-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.home__content {
  grid-template-columns: 0.5fr 3fr;
  padding-top: 1rem;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - var(--header-height) - 4rem);
}

.home__social {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 0.75rem;
  opacity: 1;
  visibility: visible;
  z-index: 10;
  position: relative;
}

.home__social-icon {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--first-color);
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.home__social-icon:hover {
  color: var(--first-color-alt);
  opacity: 75%;
}

.home__img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home__img img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.home__blob {
  width: 200px;
  fill: var(--first-color);
}

.home__blob-img {
  width: 255px;
}

.home__data {
  grid-column: 1/3;
  max-width: 100%;
  overflow: hidden;
  max-height: 100%;
}

.home__title {
  font-size: clamp(1.5rem, 5vw, var(--big-font-size));
  line-height: 1.2;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
}

.title-highlight {
  color: var(--first-color);
  display: inline-block;
}

.home__subtitle {
  font-size: clamp(0.9rem, 3.5vw, var(--h3-font-size));
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.home__description {
  margin-bottom: var(--mb-1);
  font-size: clamp(0.85rem, 2.5vw, var(--normal-font-size));
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home__scroll {
  display: block;
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.home__scroll-button {
  color: var(--first-color);
  transition: 0.3s;
}

.home__scroll-button:hover {
  transform: translateY(0.25rem);
}

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

.home__scroll-name {
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-right: var(--mb-0-25);
}

.home__scroll-arrow {
  font-size: 1.25rem;
}

/*==================== BUTTONS ====================*/

.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: clamp(0.75rem, 2vw, 1rem);
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  border: 2px solid var(--first-color);
  font-size: clamp(0.85rem, 2.5vw, var(--normal-font-size));
}

.button:hover {
  background-color: rgba(255, 255, 255, 0);
  border: 2px solid var(--first-color-alt);
  color: var(--first-color-alt);
}

.button__icon {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-left: var(--mb-0-5);
  transition: 0.3s;
}

.button--white {
  background-color: #fff;
  color: var(--first-color);
}

.button--white:hover {
  background-color: #fff;
}

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

.button--small {
  padding: 0.75rem 1rem;
}

.button--link {
  padding: 0;
  background-color: transparent;
  color: var(--first-color);
}

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

/*==================== ABOUT ====================*/

.about__container {
  gap: 1rem;
  padding: 0 1rem;
  max-width: 100%;
  overflow: hidden;
}

.about__img {
  width: 100%;
  max-width: 200px;
  border-radius: 0.5rem;
  justify-self: center;
  align-self: center;
}

.about__image {
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 3/4;
  border: 3px solid var(--first-color) !important;
  box-shadow: 0 4px 20px rgba(88, 172, 220, 0.3) !important;
  transition: all 0.3s ease !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  justify-self: center;
  align-self: center;
  display: block;
  margin: 0 auto;
}

.about__image:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 6px 28px rgba(88, 172, 220, 0.4) !important;
}

.about__data {
  max-width: 100%;
  width: 100%;
  padding: 0 0.5rem;
}

.about__description {
  text-align: center;
  margin-bottom: var(--mb-1-5);
  font-size: 0.875rem;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.about__info {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-1-5);
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 0.5rem;
}

.about__info-title {
  font-size: 1rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.about__info-name {
  font-size: 0.75rem;
}

.about__info-name,
.about__info-title {
  display: block;
  text-align: center;
}

.about__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/*==================== SKILLS ====================*/

.skills__container {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  padding: 0 1rem;
  max-width: 100%;
}

.skills__container-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
}

.skills__container-img {
  height: clamp(35px, 8vw, 40px);
  width: clamp(35px, 8vw, 40px);
  max-width: 100%;
  object-fit: contain;
}

.skills__container-img:hover {
  transform: rotate(25deg);
}

.skills__container-name {
  font-size: clamp(0.65rem, 2vw, var(--smaller-font-size));
  display: block;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

/*==================== QUALIFICATION ====================*/

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

.qualification__button {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

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

.qualification__subtitle {
  display: inline-block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
}
.qualification__subtitle a {
  text-decoration: none;
  color: var(--first-color);
}
.qualification__subtitle a:hover {
  color: var(--text-color-light);
}

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

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

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

.qualification [data-content] {
  display: none;
}

.qualification__active[data-content] {
  display: block;
}

.qualification__button.qualification__active {
  color: var(--first-color);
}

/*==================== SERVICES ====================*/

.services__container {
  gap: 1rem;
  grid-template-columns: 1fr;
  padding: 0 1rem;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}

.services__content {
  position: relative;
  background-color: var(--container-color);
  padding: 1.5rem 1rem 1rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-sizing: border-box;
}

.services__content:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.services__content > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.services__icon {
  display: block;
  font-size: 1.15rem;
  color: var(--first-color);
  margin-bottom: 0.25rem;
}

.services__title {
  font-size: 0.875rem;
  margin-bottom: 0;
  font-weight: var(--font-medium);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.25;
  hyphens: auto;
}

.services__button {
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0;
  align-self: flex-start;
  margin-top: 0.25rem;
}

.services__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.services__modal {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(0.5rem, 2vw, 1rem);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transform: 0.3s;
}

.services__modal-content {
  position: relative;
  background-color: var(--container-color);
  padding: 1rem 0.75rem;
  border-radius: 0.5rem;
  max-width: 90%;
  max-height: 85vh;
  overflow-y: auto;
}

.services__modal-services {
  row-gap: 0.75rem;
}

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

.services__modal-service p {
  font-size: 0.8rem;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.services__modal-title {
  font-size: 0.95rem;
  font-weight: var(--font-medium);
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding-right: 1.75rem;
  line-height: 1.4;
}

.services__modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.25rem;
  color: var(--first-color);
  cursor: pointer;
}

.services__modal-icon {
  color: var(--first-color);
  margin-right: 0.25rem;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Active Modal */

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

.disable-scroll {
  overflow: hidden;
}

/*==================== PORTFOLIO ====================*/

.portfolio__container {
  overflow: initial;
}

.portfolio__content {
  padding: 0 1.5rem;
}

.portfolio__img {
  width: 265px;
  border-radius: 0.5rem;
  justify-self: center;
}

.portfolio__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

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

.portfolio__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: "";
}

.swiper-portfolio-icon {
  font-size: 2rem;
  color: var(--first-color);
}

.swiper-button-prev {
  left: -0.5rem;
}

.swiper-button-next {
  right: -0.5rem;
}

.swiper-container-horizontal > .swiper-pagination-bullets {
  bottom: 0.5rem;
}

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

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullet {
  outline: none;
}

/*==================== PROJECTS ====================*/

.projects {
  padding: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: hidden;
  display: flex;
  align-items: center;
}

.projects__container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.projects__slider-container {
  padding: 0.5rem 0.5rem 1.5rem;
  position: relative;
  width: 100%;
  max-width: 95%;
  margin: 0 auto;
  height: auto;
  max-height: calc(95vh - 4rem);
  overflow: hidden;
}

.projects__slider-container .swiper {
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  max-height: calc(90vh - 6rem);
}

.project__card {
  background: var(--container-color);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: auto;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.project__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.project__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: linear-gradient(
    135deg,
    var(--first-color),
    var(--first-color-alt)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project__badge i {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: #fff;
}

.project__image-container {
  position: relative;
  width: 100%;
  height: clamp(180px, 30vh, 250px);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
  display: block;
  opacity: 1;
  background-color: #e9ecef;
  border: 1px solid #ddd;
}

.project__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  opacity: 1;
  z-index: 1;
  background-color: #f0f0f0;
}

.project__card:hover .project__image {
  transform: scale(1.05);
}

.project__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project__card:hover .project__overlay {
  opacity: 1;
}

.project__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
  justify-content: space-between;
}

.project__title {
  font-size: clamp(1rem, 4vw, var(--h3-font-size));
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.project__subtitle {
  font-size: clamp(0.8rem, 3vw, var(--small-font-size));
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: var(--font-medium);
}

.project__description {
  font-size: clamp(0.75rem, 2.5vw, var(--small-font-size));
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
}

.project__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.project__tech-item {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--first-color);
  color: #fff;
  border-radius: 1rem;
  font-size: clamp(0.7rem, 2vw, var(--smaller-font-size));
  font-weight: var(--font-medium);
}

.project__actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding-top: 0.5rem;
}

.project__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: clamp(0.5rem, 2vw, 0.65rem) clamp(0.8rem, 3vw, 1.25rem);
  background: var(--first-color);
  color: #fff;
  border-radius: 0.5rem;
  font-size: clamp(0.75rem, 2.5vw, var(--small-font-size));
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  min-width: clamp(100px, 20vw, 120px);
}

.project__btn:hover {
  background: var(--first-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.project__btn--secondary {
  background: transparent;
  color: var(--first-color);
  border: 2px solid var(--first-color);
}

.project__btn--secondary:hover {
  background: var(--first-color);
  color: #fff;
}

.project__btn-icon {
  font-size: 1rem;
}

.projects__slider-container .swiper-button-next,
.projects__slider-container .swiper-button-prev {
  width: 45px;
  height: 45px;
  background: var(--container-color);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.projects__slider-container .swiper-button-next:hover,
.projects__slider-container .swiper-button-prev:hover {
  background: var(--first-color);
  transform: scale(1.1);
}

.projects__slider-container .swiper-button-next:hover i,
.projects__slider-container .swiper-button-prev:hover i {
  color: #fff;
}

.projects__slider-container .swiper-button-next {
  right: 10px;
}

.projects__slider-container .swiper-button-prev {
  left: 10px;
}

.swiper-projects-icon {
  font-size: 2rem;
  color: var(--first-color);
  transition: color 0.3s ease;
}

.projects__slider-container .swiper-pagination {
  bottom: 0;
}

.projects-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--text-color-light);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.projects-pagination .swiper-pagination-bullet-active {
  background: var(--first-color);
  opacity: 1;
  width: 30px;
  border-radius: 5px;
}

/*==================== CERTIFICATES ====================*/

.certificates {
  padding: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: hidden;
  display: flex;
  align-items: center;
}

.certificates__container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.certificates__slider-container {
  padding: 1rem 0.5rem 2rem;
  position: relative;
  width: 100%;
  max-width: 95%;
  margin: 0 auto;
  height: auto;
  max-height: calc(90vh - 6rem);
  overflow: hidden;
}

.certificates__slider-container .swiper {
  width: 100%;
  height: 100%;
  max-height: calc(85vh - 8rem);
  overflow: hidden;
}

.certificate__card {
  background: var(--container-color);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: auto;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.certificate__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.certificate__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: linear-gradient(
    135deg,
    var(--first-color),
    var(--first-color-alt)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.certificate__badge i {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: #fff;
}

.certificate__image-container {
  position: relative;
  width: 100%;
  height: clamp(200px, 35vh, 300px);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  flex-shrink: 0;
  display: block;
  opacity: 1;
  background-color: #e9ecef;
  border: 1px solid #ddd;
}

.certificate__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
  opacity: 1;
  z-index: 1;
  background-color: #f0f0f0;
}

.certificate__card:hover .certificate__image {
  transform: scale(1.03);
}

.certificate__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate__card:hover .certificate__overlay {
  opacity: 1;
}

.certificate__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}

.certificate__title {
  font-size: clamp(1rem, 4vw, var(--h3-font-size));
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.certificate__subtitle {
  font-size: clamp(0.8rem, 3vw, var(--small-font-size));
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.certificate__date {
  font-size: clamp(0.75rem, 2.5vw, var(--small-font-size));
  color: var(--text-color-light);
  font-weight: var(--font-medium);
  margin-bottom: 0.75rem;
}

.certificate__actions {
  margin-top: auto;
}

.certificate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: clamp(0.5rem, 2vw, 0.65rem) clamp(0.8rem, 3vw, 1.25rem);
  background: var(--first-color);
  color: #fff;
  border-radius: 0.5rem;
  font-size: clamp(0.75rem, 2.5vw, var(--small-font-size));
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.certificate__btn:hover {
  background: var(--first-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.certificate__btn-icon {
  font-size: 1rem;
}

.certificates__slider-container .swiper-button-next,
.certificates__slider-container .swiper-button-prev {
  width: 45px;
  height: 45px;
  background: var(--container-color);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.certificates__slider-container .swiper-button-next:hover,
.certificates__slider-container .swiper-button-prev:hover {
  background: var(--first-color);
  transform: scale(1.1);
}

.certificates__slider-container .swiper-button-next:hover i,
.certificates__slider-container .swiper-button-prev:hover i {
  color: #fff;
}

.certificates__slider-container .swiper-button-next {
  right: 10px;
}

.certificates__slider-container .swiper-button-prev {
  left: 10px;
}

.certificates__slider-container .swiper-pagination {
  bottom: 0;
}

.certificates__slider-container .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--text-color-light);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.certificates__slider-container .swiper-pagination-bullet-active {
  background: var(--first-color);
  opacity: 1;
  width: 30px;
  border-radius: 5px;
}

.project-arrow-animate {
  animation: arrow-animate 1s ease-in-out infinite;
}

@keyframes arrow-animate {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

/*==================== PROJECT IN MIND ====================*/

.project {
  text-align: center;
}
.project__bg {
  background-color: var(--first-color-second);
  padding-top: 3rem;
}
.project__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-0-75);
}
.project__description {
  margin-bottom: var(--mb-1-5);
}
.project__title,
.project__description {
  color: #fff;
}
.project__img {
  width: 232px;
  justify-self: center;
}

/*==================== TESTIMONIAL ====================*/

/*==================== CONTACT ME ====================*/

.contact__container {
  row-gap: 2rem;
  padding: 0 1rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
}
.contact__information {
  display: flex;
  margin-bottom: var(--mb-2);
  justify-self: start;
}
.contact__icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-right: var(--mb-0-75);
}
.contact__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}
.contact__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}
.contact__subtitle a {
  text-decoration: none;
  color: var(--text-color-light);
}
.contact__subtitle a:hover {
  color: var(--first-color);
}
.contact__content {
  background-color: var(--input-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem 0.25rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.contact__label {
  font-size: var(--smaller-font-size);
  color: var(--title-color);
}
.contact__input {
  width: 100%;
  background-color: var(--input-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border: none;
  outline: none;
  padding: 0.25rem 0.5rem 0.5rem 0;
  box-sizing: border-box;
  max-width: 100%;
  resize: vertical;
}

.contact__input[type="text"],
.contact__input[type="email"] {
  height: auto;
  min-height: 2.5rem;
}

textarea.contact__input {
  min-height: 8rem;
  resize: vertical;
  font-family: var(--body-font);
}

.contact__form {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  justify-self: start;
}

.contact__inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

/*==================== FOOTER ====================*/

.footer {
  padding-top: 2rem;
}
.footer__container {
  row-gap: 3.5rem;
}
.footer__bg {
  background-color: var(--first-color-second);
  padding: 2rem 0 3rem;
}
.portfolio__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-0-25);
}
.portfolio__subtitle {
  font-size: var(--small-font-size);
}
.footer__links {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}
.footer__link:hover {
  color: var(--first-color-lighter);
}
.footer__social {
  font-size: 1.25rem;
  margin-right: var(--mb-1-5);
}
.footer__social:hover {
  color: var(--first-color-lighter);
}
.footer__copy {
  font-size: var(--smaller-font-size);
  text-align: center;
  color: var(--text-color-light);
  margin-top: var(--mb-3);
}
.footer__title,
.footer__subtitle,
.footer__link,
.footer__social {
  color: #fff;
}

/*========== SCROLL UP ==========*/

.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--first-color);
  opacity: 0.8;
  padding: 0 0.3rem;
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transform: 0.4s;
}
.scrollup:hover {
  background-color: var(--first-color-alt);
}
.scrollup__icon {
  font-size: 1.5rem;
  color: #fff;
}

/* Show scroll */

.show-scroll {
  bottom: 5rem;
}

/*========== SCROLL BAR ==========*/

::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-bar-color);
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-light);
}

/*==================== MEDIA QUERIES ====================*/

/* For small devices */

@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  .nav__menu {
    padding: 2rem 0.25rem 4rem;
  }
  .nav__list {
    column-gap: 0;
  }
  .home__content {
    grid-template-columns: 0.25fr 3fr;
  }
  .home__blob {
    width: 180px;
  }
  .qualification__data {
    gap: 0.5rem;
  }
  .services__container {
    grid-template-columns: 1fr;
    justify-content: center;
    padding: 0 0.5rem;
    gap: 0.75rem;
    max-width: 100%;
    width: 100%;
  }
  .services__content {
    padding: 1rem 0.75rem 0.75rem 0.75rem;
    max-width: 100%;
    width: 100%;
    gap: 0.5rem;
    box-sizing: border-box;
  }
  .services__icon {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }
  .services__title {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    line-height: 1.25;
  }
  .services__button {
    font-size: 0.65rem;
    padding: 0.1rem 0;
  }
  .services__modal {
    padding: 0 0.5rem;
  }
  .services__modal-content {
    padding: 1rem 0.75rem;
    max-width: 92%;
  }
  .services__modal-title {
    font-size: 0.9rem;
    padding-right: 1.5rem;
  }
  .services__modal-close {
    font-size: 1.2rem;
  }
  .services__modal-service p {
    font-size: 0.75rem;
  }
  .project__img {
    width: 200px;
  }
}

/* For medium devices */

/* For extra small devices */
@media screen and (max-width: 350px) {
  :root {
    --header-height: 2.75rem;
  }

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

  .contact__container.container {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 0 0.5rem;
  }

  header {
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
  }

  .nav {
    padding: 0 0.75rem;
    height: 2.75rem;
    gap: 0.75rem;
  }

  .nav__logo {
    font-size: 0.85rem;
    margin-right: 0;
  }

  .nav__toggle {
    font-size: 0.95rem;
  }

  .change-theme {
    font-size: 0.95rem;
  }

  .nav__btns {
    gap: 0.6rem;
  }

  .nav__menu {
    padding: 1.25rem 0.5rem 3rem;
  }

  .nav__list {
    gap: 0.5rem;
    row-gap: 0.75rem;
  }

  .nav__item {
    padding: 0 0.15rem;
  }

  .nav__link {
    font-size: 0.6rem;
    line-height: 1.1;
  }

  .nav__icon {
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
  }

  .nav__close {
    font-size: 1.15rem;
    right: 0.75rem;
  }

  .home__container {
    padding: 0 0.25rem;
  }

  .home__content {
    grid-template-columns: max-content 1fr;
    padding-top: 1.5rem;
    gap: 0.5rem;
  }

  .home__social {
    row-gap: 0.5rem;
  }

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

  .home__img {
    max-width: 150px;
  }

  .home__title {
    font-size: 1.25rem;
  }

  .home__subtitle {
    font-size: 0.8rem;
  }

  .home__description {
    font-size: 0.75rem;
  }

  .about__container {
    padding: 0 0.75rem;
    gap: 0.75rem;
  }

  .about__image {
    max-width: 180px;
    border-radius: 10px !important;
  }

  .about__data {
    padding: 0 0.25rem;
  }

  .about__description {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: var(--mb-1);
  }

  .about__info {
    gap: 0.5rem;
    padding: 0 0.25rem;
  }

  .about__info-title {
    font-size: 0.85rem;
  }

  .about__info-name {
    font-size: 0.65rem;
  }

  .button {
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
  }

  .button__icon {
    font-size: 0.9rem;
  }

  .skills__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0 0.5rem;
  }

  .skills__container-img {
    height: 32px;
    width: 32px;
  }

  .skills__container-name {
    font-size: 0.625rem;
  }

  .projects__slider-container,
  .certificates__slider-container {
    max-width: 98%;
    padding: 1rem 0.25rem 3rem;
  }

  .project__card,
  .certificate__card {
    padding: 0.75rem;
    border-radius: 0.75rem;
  }

  .project__image-container,
  .certificate__image-container {
    height: clamp(180px, 30vh, 250px);
  }

  .project__badge,
  .certificate__badge {
    width: 35px;
    height: 35px;
    top: 0.5rem;
    right: 0.5rem;
  }

  .project__badge i,
  .certificate__badge i {
    font-size: 1rem;
  }

  .project__tech {
    gap: 0.3rem;
  }

  .project__actions {
    gap: 0.5rem;
  }

  .services__container {
    padding: 0 0.25rem;
    gap: 0.5rem;
  }

  .services__content {
    padding: 0.75rem 0.5rem 0.5rem 0.5rem;
    border-radius: 0.5rem;
    gap: 0.4rem;
  }

  .services__icon {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .services__title {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .services__button {
    font-size: 0.6rem;
    padding: 0.2rem 0;
  }

  .contact__container {
    padding: 0 0.5rem;
    row-gap: 1.5rem;
  }

  .contact__form {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .contact__inputs {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact__content {
    padding: 0.5rem 0.75rem 0.25rem;
    margin-bottom: 1rem;
  }

  .contact__input {
    font-size: 0.8rem;
    padding: 0.2rem 0.3rem 0.4rem 0;
  }

  textarea.contact__input {
    min-height: 6rem;
    font-size: 0.8rem;
  }

  .form-group {
    width: 100%;
    margin-top: 1rem;
  }

  .form-group button {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .contact__information {
    margin-bottom: 1rem;
  }

  .contact__icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
  }

  .contact__title {
    font-size: 0.9rem;
  }

  .contact__subtitle {
    font-size: 0.75rem;
  }

  .contact__content {
    padding: 0.5rem 0.75rem 0.25rem;
  }

  .contact__input {
    font-size: 0.8rem;
    padding: 0.2rem 0.3rem 0.4rem 0;
  }
}

/* For small devices (landscape phones) */
@media screen and (min-width: 480px) {
  .nav {
    padding: 0 1.25rem;
    gap: 1.25rem;
  }

  .nav__btns {
    gap: 0.85rem;
  }

  .nav__menu {
    padding: 1.5rem 1rem 3.5rem;
  }

  .nav__list {
    gap: 1rem;
    row-gap: 1.25rem;
  }

  .nav__item {
    padding: 0 0.3rem;
  }

  .nav__link {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .nav__icon {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
  }

  .home__content {
    padding-top: 2.5rem;
  }

  .home__img {
    max-width: 180px;
  }

  .home__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .about__container {
    padding: 0 1rem;
    gap: 1rem;
  }

  .about__image {
    max-width: 220px;
  }

  .about__data {
    padding: 0 0.5rem;
  }

  .about__description {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .about__info {
    padding: 0 0.5rem;
  }

  .about__info-title {
    font-size: 0.95rem;
  }

  .button {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .skills__container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 0.75rem;
  }

  .skills__container-img {
    height: 36px;
    width: 36px;
  }

  .skills__container-name {
    font-size: 0.7rem;
  }

  .services__container {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 1rem;
  }

  .services__content {
    padding: 1.5rem 0.75rem 0.85rem 0.75rem;
    gap: 0.5rem;
  }

  .services__content > div {
    gap: 0.3rem;
  }

  .services__icon {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .services__title {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .services__button {
    font-size: 0.75rem;
    margin-top: 0.3rem;
  }

  .services__modal-content {
    padding: 1.25rem 1rem;
  }

  .services__modal-title {
    font-size: 1rem;
  }

  .services__modal-service p {
    font-size: 0.85rem;
  }

  .projects__slider-container,
  .certificates__slider-container {
    max-width: 90%;
    padding: 1.5rem 0.75rem 3.5rem;
  }

  .project__card,
  .certificate__card {
    padding: 1.25rem;
  }

  .contact__container {
    padding: 0 1rem;
    row-gap: 2rem;
  }

  .contact__form {
    width: 100%;
    max-width: 100%;
  }

  .contact__inputs {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact__information {
    margin-bottom: 1.5rem;
  }

  .contact__icon {
    font-size: 1.8rem;
    margin-right: 0.75rem;
  }

  .contact__title {
    font-size: 1rem;
  }

  .contact__subtitle {
    font-size: 0.85rem;
  }

  .contact__content {
    padding: 0.75rem 1rem 0.3rem;
  }

  .contact__input {
    font-size: 0.9rem;
  }

  .contact__container.container {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 0 1rem;
  }

  .form-group {
    width: 100%;
    margin-top: 1rem;
  }

  .form-group button {
    width: auto;
    min-width: 140px;
    padding: 0.75rem 1.5rem;
  }
}

@media screen and (min-width: 568px) {
  .nav {
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

  .nav__btns {
    gap: 1rem;
  }

  .nav__menu {
    padding: 1.75rem 1.25rem 4rem;
  }

  .nav__list {
    gap: 1.25rem;
    row-gap: 1.5rem;
  }

  .nav__item {
    padding: 0 0.4rem;
  }

  .nav__link {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .nav__icon {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
  }

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

  .contact.section {
    padding: 3rem 0 4rem;
    min-height: auto;
  }

  .section__title {
    padding: 0;
  }

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

  .home__container {
    padding: 0 1rem;
  }

  .home__content {
    grid-template-columns: max-content 1fr 1fr;
    padding-top: 3rem;
    gap: 1.5rem;
  }

  .home__data {
    grid-column: initial;
  }

  .home__img {
    order: 1;
    justify-self: center;
    max-width: 220px;
  }

  .home__social {
    row-gap: 1rem;
  }

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

  .about__image {
    max-width: 300px;
  }

  .about__description {
    text-align: left;
  }

  .about__buttons {
    justify-content: flex-start;
  }

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

  .contact__container {
    grid-template-columns: 0.5fr 1fr;
    padding: 0 2rem;
    row-gap: 2.5rem;
    column-gap: 3rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
  }

  .contact__inputs {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .qualification__sections {
    display: grid;
    grid-template-columns: 0.6fr;
    justify-content: center;
  }
  .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: -1.5rem;
  }
  .projects__slider-container {
    max-width: 85%;
  }
  .project__image-container {
    height: clamp(250px, 40vh, 380px);
  }
  .project__card {
    padding: 1.5rem;
  }
  .certificates__slider-container {
    max-width: 85%;
  }
  .certificate__image-container {
    height: clamp(250px, 40vh, 350px);
  }
  .certificate__card {
    padding: 1.5rem;
  }

  .skills__container {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    padding: 0 1rem;
  }

  .skills__container-img {
    height: 38px;
    width: 38px;
  }

  .services__container {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
    gap: 1.5rem;
  }

  .services__content {
    padding: 2.75rem 1rem 1.25rem 1rem;
  }

  .services__icon {
    font-size: 1.4rem;
  }

  .services__title {
    font-size: 1.1rem;
  }

  .services__button {
    font-size: 0.85rem;
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  body {
    margin: var(--header-height) 0 0 0;
  }
  .section {
    padding: 6rem 0 2rem;
  }
  .section__subtitle {
    margin-bottom: 4rem;
  }
  .header {
    top: 0;
    bottom: initial;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    overflow: hidden !important;
  }
  .header,
  .main,
  .footer__container {
    padding: 0 1rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 1rem;
    padding: 0 2rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
  }
  .nav__logo {
    font-size: var(--normal-font-size);
    padding: 0.5rem 1rem;
  }
  .nav__icon,
  .nav__close,
  .nav__toggle {
    display: none;
  }
  .nav__list {
    display: flex;
    column-gap: 2rem;
    margin: 0;
    align-items: center;
    height: 100%;
  }
  .nav__menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    height: 100%;
  }
  .nav__item {
    display: flex;
    align-items: center;
    padding: 0;
    height: 100%;
  }
  .nav__link {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    height: 100%;
    align-items: center;
  }
  .nav__btns {
    height: 100%;
    padding: 0.5rem 0;
  }
  .change-theme {
    margin: 0;
    padding: 0.5rem;
    display: flex;
    align-items: center;
  }
  .home__container {
    row-gap: 5rem;
    padding: 0 1.5rem;
  }

  .home__content {
    padding-top: 5.5rem;
    column-gap: 2rem;
  }

  .home__img {
    max-width: 250px;
  }

  .home__title {
    font-size: var(--big-font-size);
  }

  .home__subtitle {
    font-size: var(--h3-font-size);
  }

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

  .home__blob {
    width: 270px;
  }

  .home__scroll {
    display: block;
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    transform: none;
  }

  .home__scroll-button {
    margin-left: 0;
  }

  .about__container {
    column-gap: 3rem;
    padding: 0 1.5rem;
  }

  .about__img {
    width: 100%;
    max-width: 350px;
  }

  .about__image {
    max-width: 350px;
  }

  .about__description {
    text-align: initial;
    font-size: var(--normal-font-size);
  }

  .about__info {
    justify-content: space-between;
    gap: 1.5rem;
  }

  .about__info-title {
    font-size: var(--h2-font-size);
  }

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

  .about__buttons {
    justify-content: initial;
  }

  .skills__container {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    padding: 0;
  }

  .skills__container-img {
    height: 40px;
    width: 40px;
  }

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

  .qualification__tabs {
    justify-content: center;
  }
  .qualification__button {
    margin: 0 var(--mb-1);
  }
  .qualification__sections {
    grid-template-columns: 0.5fr;
  }

  .services__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0;
  }

  .services__icon {
    font-size: 1.5rem;
  }

  .services__title {
    font-size: var(--h3-font-size);
  }

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

  .services__content {
    padding: 3.5rem 1rem 1.5rem 1.5rem;
  }

  .services__modal-content {
    width: 450px;
    max-width: 85%;
    padding: 1.5rem;
  }

  .services__modal-title {
    font-size: var(--h3-font-size);
  }

  .services__modal-service p {
    font-size: var(--normal-font-size);
  }
  .project__img {
    width: 320px;
  }
  .portfolio__content {
    align-items: center;
  }
  .project {
    text-align: initial;
  }
  .project__bg {
    background: none;
  }
  .project__container {
    background-color: var(--first-color-second);
    border-radius: 1rem;
    padding: 3rem 2.5rem 0;
    grid-template-columns: 1fr max-content;
    column-gap: 3rem;
  }
  .project__data {
    padding-top: 0.8rem;
  }
  .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: -2rem;
  }
  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__bg {
    padding: 3rem 0 3.5rem;
  }
  .footer__links {
    flex-direction: row;
    column-gap: 2rem;
  }
  .footer__socials {
    justify-self: flex-end;
  }
  .footer__copy {
    margin-top: 4.5rem;
  }
}

/* For large devices */

@media screen and (min-width: 1024px) {
  .header,
  .main,
  .footer__container {
    padding: 0;
  }

  .nav {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
  }

  .home__container {
    padding: 0 2rem;
  }

  .home__content {
    column-gap: 3rem;
  }

  .home__img {
    max-width: 280px;
  }

  .back {
    width: min(280px, 25vw) !important;
    height: min(280px, 25vw) !important;
    max-width: 280px !important;
  }

  .back:hover {
    transform: scale(1.03) !important;
  }

  .home__blob {
    width: 320px;
  }

  .home__social {
    display: grid;
    opacity: 1;
    visibility: visible;
  }

  .about__container {
    column-gap: 5rem;
    padding: 0 2rem;
  }

  .about__image {
    max-width: 380px;
  }

  .about__description {
    font-size: var(--normal-font-size);
    line-height: 1.8;
  }

  .contact.section {
    padding: 4rem 0 5rem;
    min-height: auto;
  }

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

  .services__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0;
  }

  .services__content {
    padding: 4rem 1.5rem 2rem 2rem;
  }

  .services__icon {
    font-size: 1.75rem;
  }

  .portfolio__content {
    column-gap: 5rem;
  }
  .portfolio__img {
    width: 350px;
  }
  .swiper-portfolio-icon {
    font-size: 3.5rem;
  }
  .swiper-button-prev {
    left: -3.5rem;
  }
  .swiper-button-next {
    right: -3.5rem;
  }
  .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: -4.5rem;
  }
  .contact__form {
    width: 460px;
    max-width: 100%;
  }
  .contact__inputs {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .contact__container {
    grid-template-columns: 0.4fr 1fr;
    padding: 0 2rem;
    column-gap: 4rem;
    row-gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
  }
  .form-group button {
    border: none;
  }
  .projects__slider-container {
    max-width: 75%;
    padding: 2rem 1.5rem 4rem;
  }
  .project__image-container {
    height: clamp(300px, 45vh, 420px);
  }
  .projects__slider-container .swiper-button-next {
    right: -20px;
  }
  .projects__slider-container .swiper-button-prev {
    left: -20px;
  }
  .project__card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    min-height: auto;
  }

  .project__btn {
    padding: 0.6rem 1.2rem;
  }

  .certificates__slider-container {
    max-width: 75%;
    padding: 1.5rem 1.5rem 3rem;
  }

  .certificate__image-container {
    height: clamp(250px, 30vh, 300px);
  }

  .certificates__slider-container .swiper-button-next {
    right: -10px;
  }
  .certificates__slider-container .swiper-button-prev {
    left: -10px;
  }

  .certificate__card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    max-height: calc(80vh - 4rem);
  }

  .certificate__btn {
    padding: 0.6rem 1.2rem;
  }
}

/* For extra large devices (large desktops) */
@media screen and (min-width: 1440px) {
  .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .nav {
    max-width: 100%;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
  }

  .home__container {
    padding: 0;
  }

  .home__content {
    column-gap: 4rem;
  }

  .home__img {
    max-width: 320px;
  }

  .home__title {
    font-size: 2.5rem;
  }

  .home__subtitle {
    font-size: 1.5rem;
  }

  .about__container {
    column-gap: 6rem;
    padding: 0;
  }

  .about__image {
    max-width: 420px;
  }

  .about__description {
    font-size: 1.1rem;
    line-height: 2;
  }

  .about__info-title {
    font-size: 2rem;
  }

  .projects__slider-container,
  .certificates__slider-container {
    max-width: 900px;
    padding: 1rem 2rem 2rem;
  }

  .project__card,
  .certificate__card {
    padding: 1.5rem;
    min-height: auto;
  }

  .project__image-container {
    height: clamp(250px, 35vh, 350px);
  }

  .certificate__image-container {
    height: clamp(250px, 35vh, 350px);
  }

  .projects__slider-container .swiper-button-next,
  .projects__slider-container .swiper-button-prev,
  .certificates__slider-container .swiper-button-next,
  .certificates__slider-container .swiper-button-prev {
    width: 50px;
    height: 50px;
  }

  .swiper-projects-icon,
  .swiper-certificates-icon {
    font-size: 2.5rem;
  }

  .contact__container {
    grid-template-columns: 0.4fr 1fr;
    padding: 0 3rem;
    column-gap: 5rem;
    row-gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
  }

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

  .contact__inputs {
    gap: 1.5rem;
  }

  .contact__content {
    padding: 1rem 1.5rem 0.5rem;
  }

  .contact__information {
    margin-bottom: 2rem;
  }
}
