/*==================== 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: 10px !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, 70vw) !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
  aspect-ratio: 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;
  padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
  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);
  /* iOS text size inflation prevention */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0 0 var(--header-height) 0;
  /* Account for safe area on notched iPhones */
  margin-bottom: calc(var(--header-height) + env(safe-area-inset-bottom, 0px));
  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;
  /* iOS smooth scrolling */
  -webkit-overflow-scrolling: touch;
}

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 1.5rem;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Section divider */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--text-color-light),
    transparent
  );
}

.section {
  position: relative;
}

/* No divider for home section */
.home.section::before {
  display: none;
}

/* Auto height for services and contact to ensure mobile fitting */
.services.section,
.contact.section {
  padding: 1.5rem 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 {
  height: 100vh;
  max-height: 100vh;
  overflow-y: hidden;
  padding: 0;
}

.projects.section,
.certificates.section {
  height: auto;
  min-height: auto;
  max-height: none;
  overflow-y: visible;
  padding: 1.5rem 0;
}

/* Remove extra space in mobile view */
@media screen and (max-width: 767px) {
  .projects.section,
  .certificates.section {
    min-height: auto;
    padding: 2rem 0;
  }

  .services.section,
  .contact.section {
    padding: 1.5rem 0;
  }

  /* Center contact section on mobile */
  .contact__container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 1.25rem;
    max-width: 500px;
    margin: 0 auto;
  }

  .contact__information {
    justify-content: center;
    justify-self: center;
    text-align: left;
  }

  .contact__form {
    justify-self: center;
    width: 100%;
  }

  .form-group {
    display: flex;
    justify-content: center;
  }
}

/* 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%;
  margin-bottom: var(--mb-2);
  position: relative;
  padding-bottom: 1rem;
}

.section__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--first-color),
    transparent
  );
  border-radius: 2px;
}

.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);
  /* iOS safe area for bottom nav on notched iPhones */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.header {
  width: 100%;
}

/*==================== 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__logo-img {
  height: 2.3rem;
  max-height: calc(var(--header-height) - 0.5rem);
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

/* Light / Dark Mode Logo Adaptation */
.nav__logo-img--dark {
  display: none;
}

.nav__logo-img--light {
  display: block;
}

body.dark-theme .nav__logo-img--dark {
  display: block;
}

body.dark-theme .nav__logo-img--light {
  display: none;
}

.nav__logo:hover .nav__logo-img {
  transform: scale(1.05);
}

.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;
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    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: 10px;
  object-fit: cover;
}

.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 ====================*/

/* Separator line between skills and projects */
.skills.section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--text-color-light),
    transparent
  );
}

.skills__wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Popup button group */
.skills__btn-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.skills__github-card {
  position: relative;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 1.1rem 1.4rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(6, 9, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.skills__github-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skills__github-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.skills__github-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--first-color);
}

.skills__github-label i {
  font-size: 1rem;
}

.skills__github-title {
  margin: 0;
  color: #f3f4f6;
  font-size: clamp(1.1rem, 2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.skills__github-title span {
  color: #f3f4f6;
}

.skills__github-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skills__github-year,
.skills__github-year-option {
  background: #2f6fe8;
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.skills__github-year:hover,
.skills__github-year-option:hover {
  transform: translateY(-1px);
}

.skills__github-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  padding-top: 0.9rem;
}

.skills__github-calendar-wrapper {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.skills__github-calendar-wrapper::-webkit-scrollbar {
  height: 5px;
}

.skills__github-calendar-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.skills__github-calendar-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.skills__github-months {
  display: flex;
  justify-content: space-between;
  width: calc(53 * 11px + 52 * 3px);
  margin-left: 2rem;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.skills__github-calendar-body {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: max-content;
}

.skills__github-weekdays {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 95px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  margin-top: 0.55rem;
}

.skills__github-heatmap {
  display: grid;
  grid-template-columns: repeat(53, 11px);
  grid-template-rows: repeat(7, 11px);
  grid-auto-flow: column;
  gap: 3px;
  width: max-content;
  padding: 0.55rem 0.55rem;
  border-radius: 0.8rem;
  background: rgba(13, 17, 24, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.skills__github-heatmap .skills__github-cell {
  display: block;
  width: 11px;
  height: 11px;
  min-width: 11px;
  min-height: 11px;
  max-width: 11px;
  max-height: 11px;
  border-radius: 2.5px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.05);
  box-sizing: border-box;
  flex-shrink: 0;
}

.skills__github-cell.level-0 {
  background: rgba(22, 27, 34, 1);
}

.skills__github-cell.level-1 {
  background: rgba(22, 119, 72, 0.55);
}

.skills__github-cell.level-2 {
  background: rgba(35, 160, 89, 0.7);
}

.skills__github-cell.level-3 {
  background: rgba(68, 203, 123, 0.82);
}

.skills__github-cell.level-4 {
  background: rgba(99, 241, 167, 1);
}

.skills__github-year-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 82px;
  padding-top: 0.4rem;
}

.skills__github-year-option {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.45rem 0.7rem;
  text-align: right;
  font-weight: 500;
  opacity: 0.7;
}

.skills__github-year-option.active {
  background: #2f6fe8;
  color: #fff;
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .skills__github-card {
    padding: 1rem 0.9rem 0.8rem;
  }

  .skills__github-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
  }

  .skills__github-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
  }

  .skills__github-controls {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
  }

  .skills__github-panel,
  .skills__github-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .skills__github-year-list {
    width: 100%;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .skills__github-calendar-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.6rem;
  }

  .skills__github-calendar-body {
    width: max-content;
  }

  .skills__github-months {
    display: flex;
    justify-content: space-between;
    width: calc(53 * 10px + 52 * 3px);
    margin-left: 1.8rem;
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
  }

  .skills__github-weekdays {
    height: 88px;
    font-size: 0.62rem;
    margin-top: 0.45rem;
  }

  .skills__github-heatmap {
    grid-template-columns: repeat(53, 10px);
    grid-template-rows: repeat(7, 10px);
    gap: 3px;
    width: max-content;
    padding: 0.45rem;
  }

  .skills__github-heatmap .skills__github-cell {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    max-width: 10px;
    max-height: 10px;
    border-radius: 2px;
  }
}

@media screen and (max-width: 480px) {
  .skills__github-label {
    font-size: 0.75rem;
  }

  .skills__github-title {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  .skills__github-year {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }
}

.skills__popup-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 160px;
  height: 120px;
  background-color: var(--container-color);
  border: 2px solid transparent;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 1rem;
  font-family: inherit;
}

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

.skills__popup-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.skills__popup-btn span {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.skills__popup-btn:hover {
  border-color: var(--first-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* Skills Modal Overlay */
.skills__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  overscroll-behavior: contain;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.skills__modal.active {
  opacity: 1;
  visibility: visible;
}

.skills__modal-content {
  background-color: var(--container-color);
  border-radius: 1.5rem;
  padding: 2rem 2rem 2.5rem;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  position: relative;
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

.skills__modal.active .skills__modal-content {
  transform: scale(1);
}

.skills__modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--title-color);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.skills__modal-close:hover {
  background: rgba(var(--first-color-rgb, 88, 172, 220), 0.15);
  color: var(--first-color);
}

.skills__modal-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills__modal-title-icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.skills__modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skills__sub-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skills__sub-title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(var(--first-color-rgb, 88, 172, 220), 0.3);
}

.skills__category-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--first-color);
}

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

.skills__category-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin: 0;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 0.5rem;
}

.skills__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.25rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
  cursor: default;
}

.skills__item:hover {
  background-color: rgba(var(--first-color-rgb, 88, 172, 220), 0.1);
}

.skills__icon-wrapper {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: var(--body-color);
  padding: 0.4rem;
  transition: transform 0.3s ease;
}

.skills__item:hover .skills__icon-wrapper {
  transform: scale(1.1);
}

.skills__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.skills__name {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  text-align: center;
}

/* Legacy support for old classes */
.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%;
}

/* Skills responsive adjustments */
@media screen and (max-width: 576px) {
  .skills__wrapper {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .skills__category {
    padding: 1.25rem;
  }

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

  .skills__icon-wrapper {
    width: 40px;
    height: 40px;
  }

  .skills__icon {
    width: 26px;
    height: 26px;
  }
}

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

.qualification.section {
  padding: 3rem 0 4rem;
  overflow: visible;
}

.qualification__container {
  max-width: 650px;
  overflow: visible;
}

.qualification__tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: var(--mb-2-5);
  padding: 0.5rem;
  overflow: visible;
}

.qualification__button {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  background-color: var(--container-color);
  border: 2px solid transparent;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.qualification__button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--first-color) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.qualification__button span,
.qualification__button i {
  position: relative;
  z-index: 1;
}

.qualification__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--first-color);
}

.qualification__button:hover::before {
  opacity: 0.1;
}

.qualification__icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.qualification__button:hover .qualification__icon {
  transform: scale(1.1);
}

.qualification__button.qualification__active {
  background: linear-gradient(
    135deg,
    var(--first-color),
    var(--first-color-alt)
  );
  color: #fff;
  border-color: var(--first-color);
  box-shadow: 0 8px 30px rgba(88, 172, 220, 0.35);
}

.qualification__button.qualification__active .qualification__icon {
  color: #fff;
}

/* Timeline Container */
.qualification__timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 30px;
  max-width: 530px;
  margin-left: auto;
  margin-right: auto;
}

.qualification__timeline::before {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--first-color), transparent);
  border-radius: 3px;
}

/* Qualification Cards */
.qualification__card {
  display: flex;
  gap: 1.25rem;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid transparent;
  max-width: 500px;
}

.qualification__card::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 1.75rem;
  width: 12px;
  height: 12px;
  background-color: var(--first-color);
  border-radius: 50%;
  border: 3px solid var(--body-color);
  box-shadow: 0 0 0 3px var(--first-color);
  z-index: 2;
}

.qualification__card:hover {
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
  border-color: var(--first-color);
}

.qualification__card-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--first-color),
    var(--first-color-alt)
  );
  border-radius: 0.75rem;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(88, 172, 220, 0.3);
  transition: transform 0.3s ease;
}

.qualification__card:hover .qualification__card-icon {
  transform: scale(1.1) rotate(5deg);
}

.qualification__card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qualification__card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.qualification__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin: 0;
  line-height: 1.3;
}

.qualification__badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
}

.qualification__badge::before {
  content: "-";
  margin-right: 0.25rem;
}

.qualification__badge--completed {
  color: var(--first-color);
}

.qualification__subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin: 0;
}

.qualification__subtitle a {
  text-decoration: none;
  color: var(--first-color);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.3s ease;
}

.qualification__subtitle a:hover {
  color: var(--title-color);
  text-decoration: underline;
}

.qualification__subtitle i {
  font-size: 1rem;
}

.qualification__logo {
  height: 24px;
  width: auto;
  max-width: 100px;
  margin-right: 0.5rem;
  vertical-align: middle;
  border-radius: 0.25rem;
  object-fit: contain;
}

.qualification__description {
  font-size: var(--small-font-size);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0.25rem 0;
}

.qualification__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.qualification__tag {
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: var(--font-medium);
  background-color: var(--input-color);
  color: var(--first-color);
  border-radius: 0.5rem;
  border: 1px solid var(--first-color);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.qualification__tag:hover {
  background-color: var(--first-color);
  color: #fff;
  transform: translateY(-2px);
}

.qualification__calender {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--text-color-light);
}

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

/* Content visibility */
.qualification [data-content] {
  display: none;
}

.qualification__active[data-content] {
  display: block;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy styles for backward compatibility */
.qualification__data {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.5rem;
}

.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);
}

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

  .qualification__button {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }

  .qualification__timeline {
    padding-left: 28px !important;
  }

  .qualification__timeline::before {
    left: 4px !important;
    width: 2px !important;
  }

  .qualification__card {
    flex-direction: column;
    padding: 1.25rem;
  }

  .qualification__card::before {
    left: -28px !important;
    top: 1.5rem !important;
    width: 10px !important;
    height: 10px !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 2px var(--first-color) !important;
  }

  .qualification__card:hover {
    transform: none;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
  }

  .qualification__card:hover::before {
    transform: none;
  }

  .qualification__card-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    font-size: 1.25rem;
  }

  .qualification__card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

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

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

.services__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 1rem;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}

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

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

.services__content {
  position: relative;
  background-color: var(--container-color);
  padding: 1rem 0.75rem 0.75rem 0.75rem;
  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;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  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.8rem;
  padding: 0.35rem 0.75rem;
  align-self: center;
  margin-top: 0.25rem;
  white-space: nowrap;
}

.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: 1.5rem 0;
  min-height: auto;
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

/* Animated background for projects section */
.projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(var(--first-color-rgb, 88, 172, 220), 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(var(--first-color-rgb, 88, 172, 220), 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

.projects__container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Project Stats Summary */
.projects__stats {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.projects__stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: var(--container-color);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  min-width: 80px;
}

.projects__stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.projects__stat-item i {
  font-size: 1.25rem;
  color: var(--first-color);
}

.projects__stat-number {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  line-height: 1;
}

.projects__stat-label {
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.projects__slider-container {
  padding: 1rem 50px 2rem;
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  height: auto;
  max-height: none;
  overflow: hidden;
  box-sizing: border-box;
}

.projects__slider-container::-webkit-scrollbar {
  display: none;
}

.projects__slider-container .swiper {
  width: 100%;
  max-width: 600px;
  height: auto;
  overflow: hidden;
  max-height: none;
  margin: 0 auto;
}

/* Ensure swiper slides center their card content */
.projects__slider-container .swiper-slide,
.certificates__slider-container .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
}

/* Enhanced Project Card */
.project__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.project__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--first-color),
    var(--first-color-alt)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project__card:hover::before {
  transform: scaleX(1);
}

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

/* Featured Card Special Styling */
.project__card--featured {
  border: 2px solid var(--first-color);
  background: linear-gradient(
    135deg,
    var(--container-color) 0%,
    rgba(88, 172, 220, 0.05) 100%
  );
}

.project__card--featured::before {
  transform: scaleX(1);
  height: 5px;
  background: linear-gradient(90deg, #ffd700, #ffaa00, #ffd700);
}

/* Project Status Badges */
.project__status {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  font-weight: var(--font-medium);
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.project__status i {
  font-size: 0.9rem;
}

.project__status--featured {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #1a1a1a;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
  animation: pulse-gold 2s infinite;
}

.project__status--completed {
  background: rgba(40, 167, 69, 0.9);
  color: #fff;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.project__status--in-progress {
  background: rgba(255, 193, 7, 0.9);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

@keyframes pulse-gold {
  0%,
  100% {
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 0 2px 20px rgba(255, 215, 0, 0.7);
  }
}

/* Project Glow Effect */
.project__glow {
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--first-color) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.project__card:hover .project__glow {
  opacity: 0.05;
}

.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 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.project__card:hover .project__badge {
  transform: rotate(10deg) scale(1.1);
}

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

.project__image-container {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  flex-shrink: 0;
  display: block;
  opacity: 1;
  background-color: #e9ecef;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.project__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
  opacity: 1;
  z-index: 1;
  background-color: #f0f0f0;
}

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

/* Mobile App dual phone screenshot layout */
.project__image-container--mobile-app {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  position: relative;
}

.project__phone-screenshots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  padding: 0.75rem;
  z-index: 1;
  flex-wrap: wrap;
}

.project__phone-img {
  height: 90%;
  width: auto;
  max-width: 45%;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project__card:hover .project__phone-img {
  transform: scale(1.05);
}

/* Image Preview Lightbox */
.project__lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  padding: 2rem;
  cursor: pointer;
}

.project__lightbox.active {
  opacity: 1;
  visibility: visible;
}

.project__lightbox-img {
  max-height: 90vh;
  max-width: 45%;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  animation: lightboxZoomIn 0.3s ease forwards;
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.project__lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.project__lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media screen and (max-width: 568px) {
  .project__lightbox {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .project__lightbox-img {
    max-width: 85%;
    max-height: 42vh;
  }
}

.project__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
}

.project__overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #fff;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.project__overlay-content i {
  font-size: 2rem;
}

.project__overlay-content span {
  font-size: 0.8rem;
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.project__card:hover .project__overlay-content {
  transform: translateY(0);
  opacity: 1;
}

.project__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* Project Header with Category */
.project__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

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

.project__category {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: rgba(var(--first-color-rgb, 88, 172, 220), 0.15);
  color: var(--first-color);
  border-radius: 0.5rem;
  font-size: clamp(0.6rem, 1.8vw, 0.7rem);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

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

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

/* Enhanced Tech Stack */
.project__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.project__tech-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  background: linear-gradient(
    135deg,
    var(--first-color),
    var(--first-color-alt)
  );
  color: #fff;
  border-radius: 1rem;
  font-size: clamp(0.65rem, 1.8vw, 0.75rem);
  font-weight: var(--font-medium);
  transition: all 0.3s ease;
  cursor: default;
}

.project__tech-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.project__tech-item i {
  font-size: 0.85rem;
}

.project__tech-icon {
  width: 0.85rem;
  height: 0.85rem;
  object-fit: contain;
  vertical-align: middle;
}

/* Project Meta Info */
.project__meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.project__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  color: var(--text-color);
}

.project__meta-item i {
  color: var(--first-color);
  font-size: 1rem;
}

.project__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: auto;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding-top: 0.4rem;
}

.project__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 80px;
  position: relative;
  overflow: hidden;
}

.project__btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.project__btn:hover::before {
  left: 100%;
}

.project__btn--primary {
  background: linear-gradient(
    135deg,
    var(--first-color),
    var(--first-color-alt)
  );
  color: #fff;
  box-shadow: 0 4px 15px rgba(88, 172, 220, 0.3);
}

.project__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(88, 172, 220, 0.4);
  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;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(88, 172, 220, 0.3);
}

.project__btn-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.project__btn:hover .project__btn-icon {
  transform: scale(1.1);
}

/* Enhanced Navigation */
.projects__slider-container .swiper-button-next,
.projects__slider-container .swiper-button-prev {
  width: 32px;
  height: 32px;
  background: var(--first-color);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.projects__slider-container .swiper-button-next:hover,
.projects__slider-container .swiper-button-prev:hover {
  background: var(--first-color-alt);
  transform: translateY(-50%) 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: 8px;
}

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

.swiper-projects-icon {
  font-size: 1rem;
  color: #fff;
  transition: color 0.3s ease;
}

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

/* Enhanced Pagination */
.projects-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--text-color-light);
  opacity: 0.5;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.projects-pagination .swiper-pagination-bullet-active {
  background: linear-gradient(
    135deg,
    var(--first-color),
    var(--first-color-alt)
  );
  opacity: 1;
  width: 35px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(88, 172, 220, 0.4);
}

/* Dark Theme Adjustments */
body.dark-theme .project__card {
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .project__card--featured {
  background: linear-gradient(
    135deg,
    var(--container-color) 0%,
    rgba(88, 172, 220, 0.08) 100%
  );
}

body.dark-theme .project__image-container {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: hsl(var(--hue-color), 29%, 12%);
}

body.dark-theme .projects__stat-item {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .skills__popup-icon,
body.dark-theme .skills__modal-title-icon {
  filter: invert(1);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .projects__stats {
    gap: 0.5rem;
  }

  .projects__stat-item {
    min-width: 70px;
    padding: 0.4rem 0.75rem;
  }

  .project__header {
    flex-direction: column;
    gap: 0.3rem;
  }

  .project__category {
    align-self: flex-start;
  }

  .project__meta {
    gap: 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  .projects__stats {
    gap: 0.4rem;
    margin-bottom: 0.75rem;
  }

  .projects__stat-item {
    min-width: 60px;
    padding: 0.3rem 0.5rem;
  }

  .projects__stat-number {
    font-size: 1.1rem;
  }

  .project__status {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
  }
}

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

.certificates {
  padding: 1.5rem 0;
  min-height: auto;
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.certificates__container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.certificates__slider-container {
  padding: 1rem 50px 2rem;
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  height: auto;
  max-height: none;
  overflow: hidden;
  box-sizing: border-box;
}

.certificates__slider-container::-webkit-scrollbar {
  display: none;
}

.certificates__slider-container .swiper {
  width: 100%;
  max-width: 600px;
  height: auto;
  overflow: hidden;
  max-height: none;
  margin: 0 auto;
}

.certificate__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.certificate__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--first-color),
    var(--first-color-alt)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.certificate__card:hover::before {
  transform: scaleX(1);
}

.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;
  display: flex;
  justify-content: center;
}

.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;
}

.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: 32px;
  height: 32px;
  background: var(--first-color);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.certificates__slider-container .swiper-button-next:hover,
.certificates__slider-container .swiper-button-prev:hover {
  background: var(--first-color-alt);
  transform: translateY(-50%) 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: 8px;
}

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

.swiper-certificates-icon {
  font-size: 1rem;
  color: #fff;
  transition: color 0.3s ease;
}

.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: var(--text-color);
}
.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: auto;
  margin-right: auto;
}
.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: center;
}

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

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

.footer {
  padding-top: 0;
  position: relative;
}
.footer__container {
  row-gap: 2.5rem;
}
.footer__bg {
  background-color: var(--container-color);
  border-top: 1px solid rgba(125, 125, 125, 0.15);
  padding: 2.5rem 0 3rem;
  position: relative;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease;
}
.footer__bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--first-color),
    transparent
  );
  opacity: 0.7;
}
.portfolio__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-0-25);
  color: var(--title-color);
}
.portfolio__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color);
}
.footer__links {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}
.footer__link {
  color: var(--text-color);
}
.footer__link:hover {
  color: var(--first-color);
}
.footer__social {
  font-size: 1.25rem;
  margin-right: var(--mb-1-5);
  color: var(--first-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.footer__social:hover {
  color: var(--first-color-alt);
  transform: translateY(-2px);
}
.footer__copy {
  font-size: var(--smaller-font-size);
  text-align: center;
  color: var(--text-color-light);
  margin-top: var(--mb-3);
  transition: color 0.4s ease;
}
.footer__title {
  color: var(--title-color);
}
.footer__subtitle {
  color: var(--text-color);
  transition: color 0.4s ease;
}

/*========== 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__timeline {
    padding-left: 26px !important;
  }
  .qualification__timeline::before {
    left: 4px !important;
    width: 2px !important;
  }
  .qualification__card {
    padding: 1rem;
    gap: 1rem;
  }
  .qualification__card::before {
    left: -26px !important;
    top: 1.25rem !important;
    width: 8px !important;
    height: 8px !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 2px var(--first-color) !important;
  }
  .services__container {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    padding: 0 0.5rem;
    gap: 0.75rem;
    max-width: 600px;
  }
  .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.75rem;
    padding: 0.3rem 0.6rem;
  }
  .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: auto;
    margin-right: auto;
    width: 100%;
    padding: 0 0.75rem;
  }

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

  .nav {
    padding: 0 1rem;
    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: 170px;
  }

  .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: 100%;
    padding: 0.5rem 0.5rem 2rem;
  }

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

  .project__image-container,
  .certificate__image-container {
    height: 200px;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
  }

  .project__image {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .project__info {
    gap: 0.4rem;
  }

  .project__header {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .project__title {
    font-size: 1.1rem;
  }

  .project__category {
    font-size: 0.7rem;
  }

  .project__subtitle {
    font-size: 0.85rem;
  }

  .project__description {
    font-size: 0.85rem;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    margin-bottom: 0.5rem;
  }

  .project__tech {
    display: none;
  }

  .project__meta {
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .project__meta-item {
    font-size: 0.8rem;
  }

  .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 {
    display: none;
  }

  .project__actions {
    gap: 0.5rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 0.25rem;
    gap: 0.5rem;
    max-width: 500px;
  }

  .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.75rem;
    padding: 0.3rem 0.6rem;
  }

  .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: auto;
    max-width: 200px;
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    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: repeat(3, 1fr);
    padding: 0;
    gap: 1rem;
    max-width: 600px;
  }

  .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.8rem;
    margin-top: 0.3rem;
    padding: 0.35rem 0.75rem;
  }

  .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: auto;
    margin-right: auto;
    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 minmax(0, 1.3fr) minmax(0, 0.7fr);
    padding-top: 3rem;
    gap: 1.5rem;
  }

  .home__data {
    grid-column: initial;
    overflow: visible;
  }

  .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: 1fr;
    padding: 0 2rem;
    row-gap: 2rem;
    align-items: center;
    justify-items: center;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
  }

  .contact__container > div:first-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 3rem;
    width: 100%;
  }

  .contact__information {
    margin-bottom: 0;
  }

  .contact__form {
    justify-self: center;
    width: 100%;
    max-width: 600px;
  }

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

  .form-group {
    display: flex;
    justify-content: center;
  }
  .qualification__timeline {
    padding-left: 30px;
  }
  .qualification__card {
    padding: 2rem;
  }
  .qualification__card::before {
    left: -30px;
  }
  .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(3, 1fr);
    padding: 0;
    gap: 1.5rem;
    max-width: 650px;
  }

  .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: 2rem 0 1rem;
  }
  .section__subtitle {
    margin-bottom: 1rem;
  }
  .header {
    top: 0;
    bottom: initial;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    overflow: visible;
  }
  .header,
  .main,
  .footer__container {
    padding: 0 1rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 0.5rem;
    padding: 0 1rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: visible;
  }
  .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: 0.75rem;
    margin: 0;
    align-items: center;
    height: 100%;
    flex-wrap: nowrap;
  }
  .nav__menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 1;
    min-width: 0;
  }
  .nav__item {
    display: flex;
    align-items: center;
    padding: 0;
    height: 100%;
  }
  .nav__link {
    flex-direction: row;
    gap: 0.25rem;
    padding: 0.5rem 0.5rem;
    height: 100%;
    align-items: center;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .nav__btns {
    height: 100%;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .change-theme {
    margin: 0;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 1.25rem;
  }
  .home__container {
    row-gap: 1rem;
    padding: 0 1.5rem;
  }

  .home__content {
    padding-top: 2rem;
    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;
    gap: 1.5rem;
  }
  .qualification__button {
    padding: 0.6rem 1.25rem;
  }
  .qualification__timeline {
    padding-left: 30px;
  }
  .qualification__card {
    padding: 2rem 2.5rem;
  }
  .qualification__card::before {
    left: -30px;
  }

  .services__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0;
    max-width: 700px;
  }

  .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: 1fr auto;
    align-items: center;
  }
  .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(3, 1fr);
    gap: 2rem;
    padding: 0;
    max-width: 750px;
  }

  .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: 100%;
    max-width: 600px;
    justify-self: center;
  }
  .contact__inputs {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .contact__container {
    grid-template-columns: 1fr;
    padding: 0 2rem;
    row-gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    justify-items: center;
  }
  .form-group button {
    border: none;
  }
  .projects__slider-container {
    max-width: 75%;
    padding: 2rem 50px 4rem;
  }
  .project__image-container {
    height: clamp(300px, 45vh, 420px);
  }
  .projects__slider-container .swiper-button-next {
    right: 8px;
  }
  .projects__slider-container .swiper-button-prev {
    left: 8px;
  }
  .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: 2rem 50px 3rem;
  }

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

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

  .certificate__card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    min-height: auto;
  }

  .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: 700px;
    padding: 1.5rem 2rem 2.5rem;
  }

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

  .project__image-container {
    height: 280px;
  }

  .certificate__image-container {
    height: 280px;
  }

  .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: 36px;
    height: 36px;
  }

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

  .contact__container {
    grid-template-columns: 1fr;
    padding: 0 3rem;
    row-gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    justify-items: center;
  }

  .contact__form {
    width: 100%;
    max-width: 700px;
    justify-self: center;
  }

  .contact__inputs {
    gap: 1.5rem;
  }

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

  .contact__information {
    margin-bottom: 2rem;
  }

  /* Enhanced project stats for large screens */
  .projects__stats {
    gap: 3rem;
    margin-bottom: 1.5rem;
  }

  .projects__stat-item {
    padding: 0.75rem 1.5rem;
    min-width: 100px;
  }
}

/*==================== PROJECT SLIDE ANIMATIONS ====================*/
.swiper-slide.animate-in .project__card {
  animation: slideInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInUp {
  0% {
    opacity: 0.7;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Project card entrance animation */
.project__card {
  animation: cardFadeIn 0.6s ease-out;
}

@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Tech item stagger animation on hover */
.project__card:hover .project__tech-item:nth-child(1) {
  transition-delay: 0.05s;
}
.project__card:hover .project__tech-item:nth-child(2) {
  transition-delay: 0.1s;
}
.project__card:hover .project__tech-item:nth-child(3) {
  transition-delay: 0.15s;
}
.project__card:hover .project__tech-item:nth-child(4) {
  transition-delay: 0.2s;
}
.project__card:hover .project__tech-item:nth-child(5) {
  transition-delay: 0.25s;
}

/* Mobile Project Section Fix */
@media screen and (max-width: 576px) {
  .projects__slider-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0.5rem 1rem 2rem !important;
    box-sizing: border-box !important;
  }

  .project__card {
    padding: 0.75rem !important;
    max-width: 340px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .project__image-container {
    height: 180px !important;
    margin-bottom: 0.75rem !important;
    border-radius: 0.5rem !important;
  }

  .project__title {
    font-size: 1.1rem !important;
  }

  .project__category {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.4rem !important;
  }

  .project__subtitle {
    font-size: 0.85rem !important;
  }

  .project__description {
    display: none;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
  }

  .project__description.show {
    display: block !important;
  }

  .project__tech {
    display: none !important;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
  }

  .project__tech.show {
    display: flex !important;
  }

  .project__mobile-toggles {
    display: flex !important;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .project__toggle-btn {
    flex: 1;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    font-weight: var(--font-medium);
    background: var(--first-color);
    color: #fff;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .project__toggle-btn:hover,
  .project__toggle-btn.active {
    background: var(--first-color-alt);
  }

  .project__meta {
    margin-bottom: 0.5rem !important;
  }

  .project__meta-item {
    font-size: 0.8rem !important;
  }

  .project__btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
  }

  /* Fix arrows position on mobile */
  .projects__slider-container .swiper-button-next,
  .projects__slider-container .swiper-button-prev {
    top: 120px !important;
    transform: translateY(0) !important;
  }

  .projects__slider-container .swiper-button-next:hover,
  .projects__slider-container .swiper-button-prev:hover {
    transform: scale(1.1) !important;
  }
}

/* Hide mobile toggles on desktop */
.project__mobile-toggles {
  display: none;
}

.project__toggle-btn {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Mobile Certificates Section Fix */
@media screen and (max-width: 576px) {
  .certificates__slider-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0.5rem 1rem 2rem !important;
    box-sizing: border-box !important;
  }

  .certificate__card {
    padding: 0.75rem !important;
    max-width: 340px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .certificate__image-container {
    height: 160px !important;
    margin-bottom: 0.5rem !important;
    border-radius: 0.5rem !important;
  }

  .certificate__title {
    font-size: 0.95rem !important;
    margin-bottom: 0.25rem !important;
    text-align: center !important;
  }

  .certificate__subtitle {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
    text-align: center !important;
  }

  .certificate__date {
    font-size: 0.7rem !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
  }

  .certificate__btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
  }

  /* Fix arrows position on mobile for certificates */
  .certificates__slider-container .swiper-button-next,
  .certificates__slider-container .swiper-button-prev {
    top: 100px !important;
    transform: translateY(0) !important;
  }

  .certificates__slider-container .swiper-button-next:hover,
  .certificates__slider-container .swiper-button-prev:hover {
    transform: scale(1.1) !important;
  }
}

/*==================== iOS / iPHONE ADAPTATIONS ====================*/

/* ---- iOS Safari 100vh fix ---- */
/* Safari counts the address bar in 100vh, so we use dvh/svh where supported */
@supports (height: 100dvh) {
  .home.section {
    height: 100dvh;
    max-height: 100dvh;
  }

  .home__container {
    max-height: calc(100dvh - var(--header-height));
  }

  .home__content {
    max-height: calc(100dvh - var(--header-height) - 4rem);
  }
}

/* Fallback for older iOS Safari (< 15.4) using -webkit-fill-available */
@supports (-webkit-touch-callout: none) and (not (height: 100dvh)) {
  .home.section {
    height: -webkit-fill-available;
    max-height: -webkit-fill-available;
  }

  .home__container {
    max-height: -webkit-fill-available;
  }
}

/* ---- Safe Area Insets for notched iPhones (X, 11, 12, 13, 14, 15, 16) ---- */
/* Bottom navigation safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  header {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .nav__menu {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
  }

  /* Adjust scroll-up button to sit above safe area */
  .show-scroll {
    bottom: calc(5rem + env(safe-area-inset-bottom));
  }

  /* Footer safe area */
  .footer__bg {
    padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  }

  /* Body margin for bottom nav */
  body {
    margin-bottom: calc(var(--header-height) + env(safe-area-inset-bottom));
  }

  /* Left/right safe areas for landscape mode */
  .container {
    padding-left: max(var(--mb-1), env(safe-area-inset-left));
    padding-right: max(var(--mb-1), env(safe-area-inset-right));
  }

  /* Home scroll button above safe area */
  .home__scroll {
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

/* ---- iOS Touch Target Sizing (44x44px minimum per Apple HIG) ---- */
@supports (-webkit-touch-callout: none) {
  .nav__link {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav__toggle,
  .nav__close,
  .change-theme {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .home__social-icon {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .button,
  .project__btn,
  .certificate__btn,
  .services__button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .scrollup {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Swiper navigation buttons */
  .swiper-button-next,
  .swiper-button-prev {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ---- Prevent iOS auto-zoom on input focus (must be >= 16px) ---- */
@supports (-webkit-touch-callout: none) {
  .contact__input,
  .contact__label,
  input,
  textarea,
  select {
    font-size: max(16px, var(--normal-font-size)) !important;
  }
}

/* ---- iOS Momentum Scrolling ---- */
@supports (-webkit-touch-callout: none) {
  .nav__menu,
  .services__modal-content,
  .projects__slider-container,
  .certificates__slider-container {
    -webkit-overflow-scrolling: touch;
  }

  /* Prevent text size inflation on iOS */
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* Smooth touch interactions */
  a,
  button,
  .nav__toggle,
  .change-theme,
  .services__content,
  .qualification__button,
  .project__toggle-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Disable hover-dependent animations on touch devices */
  .project__card:hover {
    transform: none;
  }

  .project__card:active {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }

  .qualification__card:hover {
    transform: none;
  }

  .skills__category:hover {
    transform: none;
  }
}

/* ---- iPhone SE / Small iPhone (320-375px) ---- */
@media screen and (max-width: 375px) {
  .home__content {
    grid-template-columns: max-content 1fr;
    gap: 0.5rem;
    padding-top: 1rem;
  }

  .home__social {
    row-gap: 0.4rem;
  }

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

  .home__img {
    max-width: 180px;
  }

  .home__title {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .home__subtitle {
    font-size: 0.78rem;
  }

  .home__description {
    font-size: 0.73rem;
    line-height: 1.4;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .section__title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  .about__image {
    max-width: 160px;
  }

  .about__description {
    font-size: 0.73rem;
    line-height: 1.5;
  }

  .qualification__card {
    padding: 1rem;
  }

  .qualification__title {
    font-size: 0.85rem;
  }

  .qualification__tag {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
  }

  .skills__wrapper {
    padding: 0 0.25rem;
  }

  .skills__category {
    padding: 1rem;
  }

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

  .skills__icon-wrapper {
    width: 36px;
    height: 36px;
  }

  .skills__icon {
    width: 22px;
    height: 22px;
  }

  .skills__name {
    font-size: 0.65rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0 0.25rem;
    max-width: 100%;
  }

  .services__content {
    padding: 0.75rem 0.4rem 0.5rem;
  }

  .services__icon {
    font-size: 1rem;
  }

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

  .services__button {
    font-size: 0.6rem;
  }

  .project__card {
    padding: 0.6rem;
  }

  .project__image-container {
    height: 160px;
  }

  .project__title {
    font-size: 0.95rem;
  }

  .project__actions {
    gap: 0.4rem;
  }

  .project__btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
    min-width: 70px;
  }

  .certificate__card {
    padding: 0.6rem;
  }

  .certificate__image-container {
    height: 140px;
  }

  .certificate__title {
    font-size: 0.85rem;
  }

  .contact__container {
    padding: 0 0.75rem;
    max-width: 100%;
    margin: 0 auto;
  }

  .contact__information {
    justify-content: center;
  }

  .contact__icon {
    font-size: 1.3rem;
  }

  .contact__title {
    font-size: 0.85rem;
  }

  .contact__subtitle {
    font-size: 0.7rem;
  }

  .footer__bg {
    padding: 1.5rem 0.5rem 2rem;
  }
}

/* ---- Standard iPhone (390px - iPhone 14/15/16) ---- */
@media screen and (min-width: 376px) and (max-width: 430px) {
  .home__img {
    max-width: 200px;
  }

  .home__title {
    font-size: 1.35rem;
  }

  .home__subtitle {
    font-size: 0.85rem;
  }

  .home__description {
    font-size: 0.8rem;
  }

  .about__image {
    max-width: 200px;
  }

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

  .project__card {
    max-width: 340px;
    margin: 0 auto;
  }

  .project__image-container {
    height: 190px;
  }

  .certificate__card {
    max-width: 340px;
    margin: 0 auto;
  }

  .skills__wrapper {
    padding: 0 0.5rem;
  }

  .services__container {
    max-width: 360px;
  }
}

/* ---- iPhone Pro Max / Plus (428-440px) ---- */
@media screen and (min-width: 431px) and (max-width: 480px) {
  .home__img {
    max-width: 180px;
  }

  .home__title {
    font-size: 1.5rem;
  }

  .home__description {
    font-size: 0.85rem;
  }

  .project__card {
    max-width: 380px;
    margin: 0 auto;
  }

  .project__image-container {
    height: 200px;
  }

  .certificate__card {
    max-width: 380px;
    margin: 0 auto;
  }

  .services__container {
    max-width: 420px;
  }
}

/* ---- iPhone Landscape Mode ---- */
@media screen and (max-height: 440px) and (orientation: landscape) {
  .home.section {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow-y: auto;
    padding: 1rem 0;
  }

  .home__container {
    max-height: none;
    height: auto;
  }

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

  .home__data {
    grid-column: initial;
  }

  .home__img {
    max-width: 150px;
    order: 1;
  }

  .home__scroll {
    display: none;
  }

  .section {
    padding: 1rem 0;
  }

  .nav__menu {
    max-height: 100vh;
    overflow-y: auto;
  }

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

  .about__image {
    max-width: 180px;
  }

  /* Adjust services for landscape */
  .services__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- iOS Dark Mode Enhancements ---- */
@media (prefers-color-scheme: dark) {
  @supports (-webkit-touch-callout: none) {
    /* Improve contrast for dark mode on iOS */
    body.dark-theme .project__card,
    body.dark-theme .certificate__card,
    body.dark-theme .skills__category,
    body.dark-theme .qualification__card {
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    }

    body.dark-theme .services__content {
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
  }
}

/* ---- iOS Smooth Scrolling & Elastic Bounce Fix ---- */
@supports (-webkit-touch-callout: none) {
  /* Prevent rubber-banding on fixed elements */
  header {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* Smooth swiper on iOS */
  .swiper-wrapper {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }

  .swiper-slide {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* Fix for iOS fixed positioning */
  .scrollup {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* Prevent content from going under the status bar */
  .home.section {
    padding-top: env(safe-area-inset-top, 0px);
  }
}

/* ---- iOS PWA / Add to Home Screen Mode ---- */
@media screen and (display-mode: standalone) {
  header {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .home.section {
    padding-top: env(safe-area-inset-top);
  }

  .show-scroll {
    bottom: calc(5rem + env(safe-area-inset-bottom));
  }
}
