/*=============== GOOGLE FONTS (loaded via <link> in HTML head) ===============*/

/*=============== PAGE LOADER ===============*/
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z-loader);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme styles for page loader */
.dark-theme .page-loader {
  background: rgba(15, 15, 15, 0.98);
  color: #fff;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
}

.loader-container {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  animation: float 3s ease-in-out infinite;
}

.loader-spinner {
  position: relative;
  width: 120px;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

/* Dark theme styles for loader spinner */
.dark-theme .loader-spinner {
  background: rgba(255, 255, 255, 0.1);
}

.loader-spinner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: load 1.5s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
}

/* Dark theme color for loader bar */
.dark-theme .loader-spinner::after {
  background: var(--first-color);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes load {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  50% {
    transform: scaleX(1);
    transform-origin: left;
  }
  51% {
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}


/* Accessible keyboard navigation */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--title-color);
  color: var(--body-color);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
}
.nav__toggle,
.nav__close,
.change-theme {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav__toggle:focus-visible,
.nav__close:focus-visible,
.change-theme:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 3px;
}
.projects__button--disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(207, 65%, 65%);
  --title-color: hsl(207, 4%, 16%);
  --text-color: hsl(207, 4%, 28%);
  --text-color-light: hsl(207, 4%, 56%);
  --body-color: hsl(207, 4%, 99%);
  --container-color: hsl(207, 4%, 95%);
  --pattern-color: hsl(207, 4%, 90%);

  /* Change the first number */
  /* Blue: 207 - Purple: 250 - Pink: 356 - Teal: 174 */
  --gradient-color: linear-gradient(
    180deg,
    hsla(207, 48%, 72%, 0),
    rgb(6, 93, 165)
  );
  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --first-font: "Lobster", sans-serif;
  --body-font: "Roboto", sans-serif;
  --title-font: "Lora", serif;
  --biggest-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
  --tiny-font-size: 0.625rem;

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

  /*========== z index ==========*/
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-popup: 200;
  --z-loader: 9999;

  /*========== LightRays background ==========*/
  --lightrays-color: #d97706;
  --lightrays-opacity: 0.5;
}

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

/*=============== PERFORMANCE OPTIMIZATIONS ===============*/

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Optimize image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Optimize scrolling */
.main {
  -webkit-overflow-scrolling: touch;
  position: relative;
  overflow-x: hidden;
}

/* Reduce paint and composite operations */
.skills__blob:hover, .services__card:hover {
  transform: translateZ(0);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background 0.4s; /* for dark mode animation */
  overflow-x: hidden;
}
h1,
h2,
h3 {
  color: var(--title-color);
    font-family: "Lobster", sans-serif;
  font-weight: var(--font-medium);
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
/*=============== THEME ===============*/
.nav__buttons {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
}
.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color 0.3s;
}
/*========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: hsl(207, 4%, 95%);
  --text-color: hsl(207, 4%, 65%);
  --text-color-light: hsl(207, 4%, 70%);
  --body-color: hsl(207, 4%, 10%);
  --container-color: hsl(207, 4%, 12%);
  --pattern-color: hsl(207, 4%, 18%);

  /* LightRays - brighter on dark */
  --lightrays-color: #fbbf24;
  --lightrays-opacity: 0.7;
}

/*========== 
    Color changes in some parts of 
    the website, in light theme
==========*/
.dark-theme .nav,
.dark-theme .nav__menu,
.dark-theme .scrollup {
  background-color: var(--container-color);
  box-shadow: 0 4px 20px hsla(207, 24%, 8%, 0.4);
}
.dark-theme .home__shape-wawes,
.dark-theme .home__shape-circle,
.dark-theme .qualification__img,
.dark-theme .testimonial__img {
  filter: invert(1);
}
.dark-theme .home__social-link {
  color: var(--title-color);
}

.dark-theme::-webkit-scrollbar {
  background-color: hsla(207, 4%, 15%);
}
.dark-theme::-webkit-scrollbar-thumb {
  background-color: hsla(207, 4%, 25%);
}
.dark-theme::-webkit-scrollbar-thumb:hover {
  background-color: hsl(207, 4%, 35%);
}

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

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

.section {
  padding-block: 2.5rem;
  position: relative;
  z-index: 1;
}
.section::before,
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--pattern-color) 1px, transparent 1px);
  background-size: 20px 30px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 70%, transparent 100%);
}

.section__border {
  padding-bottom: 3.5rem;
}

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

.qualification__description {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-top: 0.75rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-bottom: 3rem;
}


/*=============== HEADER & NAV ===============*/
.header {
  width: 100%;
  position: fixed;
  bottom: 2rem;
  left: 0;
  z-index: var(--z-fixed);
}
.nav {
  height: calc(var(--header-height) + 0.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--body-color);
  box-shadow: 0 4px 20px hsla(207, 24%, 35%, 0.1);
  padding-inline: 1.5rem;
  border-radius: 3rem;
  transition: background 0.4s; /*for-dark-mode-animation*/
}
.nav__logo,
.nav__toggle,
.nav__close {
  color: var(--title-color);
}
.nav__logo {
  font-family: "Lobster", sans-serif;
  font-weight: var(--font-semi-bold);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}
.nav__toggle {
  display: flex;
  font-size: 1.25rem;
  cursor: pointer;
}
@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    width: 88%;
    left: 0;
    right: 0;
    bottom: -60% /*2rem*/;
    margin: 0 auto;
    background-color: var(--body-color);
    box-shadow: 0 4px 20px hsla(207, 24%, 35%, 0.1);
    padding: 2rem 1.5rem 5rem;
    border-radius: 2rem;
    transition: bottom 0.3s;
  }
}
.nav__list {
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  gap: 2rem 3rem;
}
.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.25rem;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  transition: color 0.3s;
}
.nav__link:hover {
  color: var(--title-color);
}
.nav__link i {
  font-size: 1.25rem;
}
.nav__close {
  position: absolute;
  right: 1.5rem;
  bottom: 0.7rem;
  font-size: 1.5rem;
  cursor: pointer;
}
/* Show menu */
.show-menu {
  bottom: 2rem;
}
/* Active link */
.active-link {
  color: var(--title-color);
}
/*=============== HOME ===============*/
.home__container {
  row-gap: 4rem;
  padding-top: 2rem;
  position: relative;
  z-index: 1;
}
.home__data {
  row-gap: 1.5rem;
}
.home__title {
  text-align: center;
  font-size: var(--biggest-font-size);
  letter-spacing: 0.3px;
  margin-bottom: 0.5rem;
}
.home__blob {
  position: relative;
  width: 200px;
  height: 290px;
  background-color: var(--body-color);
  border: 2px solid var(--text-color-light);
  justify-self: center;
  border-radius: 6.25rem;
  place-items: center;
  transition: background 0.4s; /*for-dark-mode-animation*/
}
.home__perfil {
  width: 170px;
  height: 260px;
  background: var(--gradient-color);
  border-radius: 5.5rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.home__perfil img {
  width: 150px;
  animation: float-astronaut 3s ease-in-out infinite;
}

@keyframes float-astronaut {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.home__shape-wawes,
.home__shape-circle {
  position: absolute;
  opacity: 0.1;
}
.home__button_container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.home__cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 2rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8), 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}
.dark-theme .home__cta-button {
  background: #fff;
  color: #000;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(255, 255, 255, 0.15);
}
.home__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 1), 0 8px 30px rgba(0, 0, 0, 0.35);
}
.dark-theme .home__cta-button:hover {
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 1), 0 8px 30px rgba(255, 255, 255, 0.25);
}
.home__cta-button i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.home__cta-button:hover i {
  transform: translateX(3px);
}
.home__shape-wawes {
  width: 50px;
  left: -1.5rem;
  top: 5rem;
}
.home__shape-circle {
  width: 150px;
  bottom: -2rem;
  right: -3rem;
  transform: rotate(15deg);
  z-index: -1;
}
.home__social {
  justify-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.25rem;
  padding-left: 0;
  margin: 0;
}
.home__social-link {
  font-size: 1.25rem;
  color: var(--text-color-light);
  transition: color 0.3s;
}
.home__social-link:hover {
  color: var(--title-color);
}
.home__info {
  display: grid;
  row-gap: 2rem;
}
.home__info-title {
  font-family: var(--body-font);
  font-size: var(--smaller-font-size);
  font-weight: 400;
  color: var(--text-color-light);
  margin-bottom: 1rem;
}
.home__info-description,
.home__info-number {
  font-family: var(--title-font);
  color: var(--title-color);
}
.home__info-description {
  padding-right: 4rem;
}
.home__info-number {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
}
/*=============== SKILLS ===============*/
.skills__container {
  row-gap: 5rem;
}

.skills__title {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  font-size: 1rem;
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem;
  margin-top: 3rem;
}

/* Soft Skills Badges */
.skills__soft-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.skills__soft-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
  background-color: var(--container-color);
  border: 1px solid var(--pattern-color);
  border-radius: 2rem;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.skills__soft-badge:hover {
  background-color: var(--title-color);
  color: var(--body-color);
  border-color: var(--title-color);
}
.dark-theme .skills__soft-badge {
  border-color: hsla(207, 4%, 35%, 0.3);
}
.dark-theme .skills__soft-badge:hover {
  background-color: var(--body-color);
  color: var(--title-color);
  border-color: var(--title-color);
}

/* Skills Toggle */
.skills__toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.skills__toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border: 2px solid var(--text-color-light);
  border-radius: 2rem;
  background: transparent;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  font-family: var(--body-font);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
}

.skills__toggle-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.skills__toggle-btn:hover {
  color: var(--title-color);
  border-color: var(--title-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skills__toggle-btn:hover i {
  transform: scale(1.1);
}

.skills__toggle-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.skills__toggle-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.skills__toggle-btn.active i {
  color: #000;
}

/* Dark Mode Toggle */
.dark-theme .skills__toggle-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

.dark-theme .skills__toggle-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-theme .skills__toggle-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.dark-theme .skills__toggle-btn.active:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.dark-theme .skills__toggle-btn.active i {
  color: #fff;
}

/* Skills Views */
.skills__view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.skills__view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.skills__view--loop .skills__container {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

/* Skills Marquee */
.skills__marquee {
  overflow: hidden;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0.5rem 0;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 5%, #000 12%, #000 88%, rgba(0,0,0,0.3) 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 5%, #000 12%, #000 88%, rgba(0,0,0,0.3) 95%, transparent 100%);
}

.skills__marquee::before,
.skills__marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.skills__marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--body-color), transparent);
}

.skills__marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--body-color), transparent);
}

.dark-theme .skills__marquee::before {
  background: linear-gradient(to right, var(--body-color), transparent);
}

.dark-theme .skills__marquee::after {
  background: linear-gradient(to left, var(--body-color), transparent);
}

.skills__marquee + .skills__marquee {
  margin-top: 1rem;
}

.skills__marquee:hover .skills__marquee-track {
  animation-play-state: paused;
}

.skills__marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
  padding-left: 0;
}

.skills__marquee-track.marquee-left {
  animation: marquee-left linear infinite;
}

.skills__marquee-track.marquee-right {
  animation: marquee-right linear infinite;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Skills Marquee Item */
.skills__marquee-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2.5rem;
  background: var(--container-color);
  border-radius: 1rem;
  flex-shrink: 0;
  margin-right: 1.5rem;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.skills__marquee-item:hover {
  transform: scale(1.05);
}

.dark-theme .skills__marquee-item {
  background: var(--container-color);
}

.skills__marquee-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.skills__marquee-label {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  white-space: nowrap;
}

.skills__info,
.skills__data,
.skills__blob {
  display: grid;
  text-align: center;
}

.skills__info {
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
}

/*=============== SKILLS HOVER POPUP CARDS ===============*/
.skills__data {
  display: grid;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.4s ease;
}

.skills__data:hover {
  transform: translateY(-5px) scale(1.05);
}

/* Dim other skills when one is hovered */
.skills__data.dimmed {
  opacity: 0.15;
  filter: blur(3px);
  pointer-events: none;
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

/* Ensure popup and hovered elements are not dimmed */
.skills__data.dimmed .skills__popup {
  opacity: 1;
  filter: none;
}

/* Hidden popup that appears on hover */
.skills__popup {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--body-color), var(--container-color));
  border: 2px solid var(--first-color);
  border-radius: 1rem;
  padding: 1.5rem;
  width: 280px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: var(--z-popup);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Show popup on hover */
.skills__data:hover .skills__popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-10px);
}

/* Arrow pointing down for top popup */
.skills__popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: var(--first-color);
}

/* Bottom positioning for when no space above */
.skills__popup.popup-bottom {
  bottom: auto;
  top: 120%;
}

.skills__popup.popup-bottom::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--first-color);
}

.skills__data:hover .skills__popup.popup-bottom {
  transform: translateX(-50%) translateY(10px);
}

/* Alternative positioning for top when no space (fallback) */
@media screen and (max-height: 600px) {
  .skills__popup {
    bottom: auto;
    top: 120%;
  }

  .skills__popup::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--first-color);
  }

  .skills__data:hover .skills__popup {
    transform: translateX(-50%) translateY(10px);
  }
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .skills__popup {
    width: 250px;
    padding: 1rem;
    font-size: var(--small-font-size);
  }

  .skills__data:hover {
    transform: translateY(-3px) scale(1.02);
  }
}

.skills__popup-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.skills__popup-description {
  font-size: var(--small-font-size);
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.skills__popup-level {
  display: block;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
  margin-top: 0.5rem;
}

.skills__blob {
  width: 80px;
  height: 100px;
  background: transparent;
  border-radius: 1rem;
  place-items: center;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: 0.5s ease;
}

.skills__blob:hover {
  background: none;
  transform: scale(1.3);
  border: 1px solid var(--body-color);
  overflow: hidden;
}

.skills__blob img {
  width: 40px;
}

.skills__name {
  font-size: var(--small-font-size);
  margin-bottom: 0.25rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.skills__subtitle {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  background: var(--container-color);
  font-weight: var(--font-medium);
}

.skills__subtitle.advanced { color: #22C55E; background: rgba(34, 197, 94, 0.1); }
.skills__subtitle.intermediate { color: #F59E0B; background: rgba(245, 158, 11, 0.1); }
.skills__subtitle.basic { color: #3B82F6; background: rgba(59, 130, 246, 0.1); }

.dark-theme .skills__subtitle.advanced { color: #4ADE80; background: rgba(74, 222, 128, 0.15); }
.dark-theme .skills__subtitle.intermediate { color: #FBBF24; background: rgba(251, 191, 36, 0.15); }
.dark-theme .skills__subtitle.basic { color: #60A5FA; background: rgba(96, 165, 250, 0.15); }

.skills__blob:hover img {
  animation: bounce-skills 0.9s;
}

@keyframes bounce-skills {
  0% { transform: translate(0); }
  20% { transform: translateY(-7px); }
  40% { transform: translate(0); }
  60% { transform: translateY(-3px); }
  80% { transform: translate(0); }
}

/* Skills Level Dot */
.skills__level-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.skills__level-dot.advanced { background-color: #4CAF50; }
.skills__level-dot.intermediate { background-color: #FF9800; }
.skills__level-dot.basic { background-color: #2196F3; }

/* Dark mode level dots */
.dark-theme .skills__level-dot.advanced { background-color: #66BB6A; }
.dark-theme .skills__level-dot.intermediate { background-color: #FFA726; }
.dark-theme .skills__level-dot.basic { background-color: #42A5F5; }

/* Keyboard Focus Ring */
.skills__data:focus-visible,
.skills__blob:focus-visible,
.skills__toggle-btn:focus-visible,
.skills__marquee-item:focus-visible {
  outline: 3px solid var(--first-color);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

.dark-theme .skills__data:focus-visible,
.dark-theme .skills__blob:focus-visible,
.dark-theme .skills__toggle-btn:focus-visible,
.dark-theme .skills__marquee-item:focus-visible {
  outline-color: #60A5FA;
}

/* Mobile Tap Popup */
@media (hover: none) and (pointer: coarse) {
  .skills__data.tap-active .skills__popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-10px);
  }

  .skills__data.tap-active {
    transform: translateY(-5px) scale(1.05);
  }

  .skills__data.tap-active ~ .skills__data {
    opacity: 0.3;
    filter: blur(2px);
  }
}

/* Accessibility Enhancements */
.nav__link:focus-visible,
.home__cta-button:focus-visible,
.projects__button:focus-visible,
.read-more-btn:focus-visible,
.contact__form-input:focus-visible,
.contact__button:focus-visible,
.scrollup:focus-visible,
.footer__link:focus-visible,
.footer__social-link:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 2px;
}
.contact__form-input:focus,
.contact__form .contact__button:focus {
  outline: none;
  border-color: var(--first-color);
}
.contact__form-input:focus-visible,
.contact__form .contact__button:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 2px;
}
.contact__form-input:valid:not(:placeholder-shown) {
  border-color: #4caf50;
}
.contact__form-input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #f44336;
}

/*=============== QUALIFICATION ===============*/
.qualification {
  position: relative;
}
.qualification__container {
  row-gap: 3.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.qualification__title {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2rem;
}
.qualification__title i {
  font-size: 1rem;
  font-weight: initial;
}
.qualification__info {
  display: grid;
  row-gap: 2rem;
  min-width: 0;
}
.qualification__textalign-center {
  text-align: right;
}
.qualification__name {
  font-size: var(--normal-font-size);
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.qualification__country,
.qualification__year {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}
.qualification__country {
  margin-bottom: 0.75rem;
}
.qualification__img {
  width: 150px;
  position: absolute;
  right: -3rem;
  bottom: 12rem;
  transform: rotate(15deg);
  opacity: 0.1;
}
/*=============== SERVICES ===============*/
.services__container {
  row-gap: 2.5rem;
  justify-content: center;
}
.services__card {
  position: relative;
  width: 260px;
  height: 360px;
  background-color: var(--container-color);
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 7.25rem;
  transition: background 0.4s, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.services__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.dark-theme .services__card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.services__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.03));
  border-radius: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.dark-theme .services__icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}
.services__card:hover .services__icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.05));
}
.dark-theme .services__card:hover .services__icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
}
.services__icon i {
  display: block;
  font-size: 1.75rem;
  color: var(--title-color);
  transition: transform 0.3s ease;
}
.services__card:hover .services__icon i {
  transform: scale(1.1);
}
.services__title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.8rem;
  color: var(--title-color);
}
.services__description {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.services__list {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  text-align: left;
}
.services__list li {
  font-size: var(--tiny-font-size);
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dark-theme .services__list li {
  color: var(--text-color-light);
}
.services__list li i {
  font-size: 0.75rem;
  color: var(--title-color);
  flex-shrink: 0;
}
.services__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--tiny-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--title-color);
  border-radius: 2rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
}
.dark-theme .services__cta {
  color: var(--title-color);
  border-color: var(--title-color);
}
.services__cta:hover {
  background: var(--title-color);
  color: var(--body-color);
  transform: translateX(4px);
}
.services__cta i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}
.services__cta:hover i {
  transform: translateX(4px);
}
.services__border {
  width: 280px;
  height: 380px;
  border: 2px solid transparent;
  border-radius: 7.75rem;
  position: absolute;
  inset: 0;
  left: -6px;
  margin: auto;
  z-index: -1;
  transition: border-color 0.3s ease, border-width 0.3s ease, transform 0.3s ease;
  opacity: 1;
}
.services__card:hover .services__border {
  border-color: var(--title-color);
  border-width: 3px;
  transform: scale(1.03);
}
.services__card:focus-visible {
  outline: 3px solid var(--first-color);
  outline-offset: 3px;
}
.dark-theme .services__card:focus-visible {
  outline-color: #60A5FA;
}
/*=============== PROJECTS ===============*/
.projects__container {
  overflow: initial;
}
.projects__content {
  display: grid;
  justify-content: center;
}
.projects__content .full-description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  line-height: 1.6;
  color: var(--title-color);
}
.projects__content .full-description.expanded {
  max-height: 500px;
  opacity: 1;
}
.projects__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--container-color), var(--body-color));
  font-size: 3rem;
  color: var(--first-color);
}
.skills__chart-icon {
  font-size: 2.5rem;
  color: var(--first-color);
}
.projects__img {
  width: 250px;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
}
.projects__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}
.projects__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1.25rem;
  margin: 0.5rem 0 1.25rem;
}
.projects__button {
  border: 1px solid var(--text-color-light);
  padding: 5px 17px 6px;
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
}
.projects__button:hover {
  background-color: var(--first-color);
  color: white;
  transform: translateY(-1px);
  border-color: var(--first-color);
}
.projects__button i {
  font-size: 1rem;
  transition: transform 0.3s;
}
.projects__button:hover i {
  transform: translateX(0.25rem);
}

/*=============== READ MORE BUTTON ===============*/
.read-more-btn {
  background: transparent;
  color: var(--title-color);
  border: 1px solid var(--title-color);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  display: inline-block;
  text-decoration: none;
}

.read-more-btn:hover {
  background: var(--first-color);
  color: white;
  transform: translateY(-1px);
  border-color: var(--first-color);
  box-shadow: 0 2px 4px rgba(101, 179, 240, 0.2);
}
/* Swiper class */
.projects__container .swiper-button-prev::after,
.projects__container .swiper-button-next::after {
  content: "";
}
.projects__container .swiper-button-prev,
.projects__container .swiper-button-next {
  width: initial;
  height: initial;
  margin: initial;
  font-size: 2.5rem;
  color: var(--title-color);
}
.projects__container .swiper-button-prev {
  left: -1rem;
  top: 4.5rem;
}
.projects__container .swiper-button-next {
  right: -1rem;
  top: 4.5rem;
}
.projects__container .swiper-slide {
  margin-bottom: 4.5rem;
}
.projects__container .swiper-pagination-bullets {
  bottom: 0;
}
.projects__container .swiper-pagination-bullet {
  background-color: var(--text-color-light);
  opacity: initial;
}
.projects__container .swiper-pagination-bullet-active {
  background-color: var(--title-color);
}
/*=============== TESTIMONIAL ===============*/
.testimonial {
  position: relative;
}
.testimonial__content {
  text-align: center;
}
.testimonial__description {
  font-family: var(--title-font);
  color: var(--title-color);
  margin-bottom: 1.5rem;
}
.testimonial__name {
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  margin-bottom: 0.25rem;
}
.testimonial__subtitle {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}
.testimonial__img {
  width: 80px;
  height: 900px;
  transform: rotate(30deg);
  position: absolute;
  top: 4rem;
  right: 18%;
  opacity: 0.1;
}
/* Swiper class */
.testimonial__container .swiper-slide {
  margin-bottom: 4rem;
}
.testimonial__container .swiper-button-prev::after,
.testimonial__container .swiper-button-next::after {
  content: "";
}
.testimonial__container .swiper-button-prev,
.testimonial__container .swiper-button-next {
  font-size: 2rem;
  color: var(--title-color);
  width: initial;
  height: initial;
  top: initial;
  bottom: 0.5rem;
}
.testimonial__container .swiper-button-prev {
  left: calc(50% - 3rem);
}
.testimonial__container .swiper-button-next {
  left: calc(50% - 3rem);
}
.testimonial__container .swiper-button-disabled {
  opacity: initial;
  color: var(--text-color-light);
}
/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 3.5rem;
}
.contact__container.map {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.contact__container.map .contact__content:last-child {
  max-width: 100%;
  text-align: left;
}
.contact__container.map .contact__title {
  justify-content: flex-start;
  margin-bottom: 1rem;
}
.contact__title {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem;
}
.contact__title i {
  font-size: 1rem;
  font-weight: initial;
}
.contact__info,
.contact__data {
  display: grid;
}
.contact__info {
  row-gap: 2rem;
}
.contact__data {
  row-gap: 0.75rem;
}
.contact__form {
  display: grid;
  position: relative;
  row-gap: 2rem;
}
.contact__data-title {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}
.contact__data-info {
  font-size: var(--small-font-size);
  font-family: var(--title-font);
  color: var(--title-color);
}
.contact__button {
  width: max-content;
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
}
.contact__button i {
  font-size: 1rem;
  transition: transform 0.3s;
}
.contact__button:hover i {
  transform: translateX(0.25rem);
}
.contact__form-div {
  position: relative;
  height: 4rem;
}
.contact__form-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: -webkit-fill-available;
  border: 2px solid var(--text-color-light);
  border-radius: 2rem;
  padding: 1.5rem;
  font-size: var(--normal-font-size);
  font-family: var(--title-font);
  color: var(--title-color);
  background: none;
  z-index: 1;
}
.contact__form-tag {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  z-index: var(--z-tooltip);
  background-color: var(--body-color);
  color: var(--title-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  padding: 0.35rem;
  transition: background 0.4s; /*for-dark-mode-animation*/
}
.contact__form-area {
  height: 10rem;
}
.contact__form-area textarea {
  resize: none;
}
.contact__form .contact__button {
  border: none;
  background: none;
  font-size: var(--h2-font-size);
  font-family: var(--title-font);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  margin-top: 0.75rem;
}
.contact__form .contact__button i {
  font-size: 1.5rem;
  font-weight: initial;
}
.contact__message {
  font-size: var(--small-font-size);
  position: absolute;
  bottom: 2.8rem;
  left: 1.5rem;
}
/*MAP*/
.contact__content iframe {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  width: 100%;
  height: 500px;
  max-width: 100%;
  opacity: 0.95;
}

.contact__content iframe:hover {
  border: 1px solid rgba(0, 0, 0, 0.555);
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 41%), 0 10px 10px -5px rgb(0 0 0 / 4%);
  cursor: pointer;
  opacity: 1;
}
/*=============== FOOTER ===============*/
.footer {
  position: relative;
  z-index: 1;
}
.footer__container {
  padding: 3rem 0 7rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.footer__button {
  border: 1px solid var(--text-color-light);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin: 1rem auto;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
}
.footer__button-separator {
  color: var(--text-color-light);
  opacity: 0.5;
}
/*=============== FOOTER CV LINKS HOVER EFFECTS ===============*/
.footer__button a {
  color: var(--title-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__button a i {
  font-size: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer__button a:hover {
  color: var(--first-color);
  text-decoration: underline;
  text-decoration-color: var(--first-color);
  text-underline-offset: 0.2rem;
  background: linear-gradient(135deg, rgba(101, 179, 240, 0.1), rgba(101, 179, 240, 0.05));
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(101, 179, 240, 0.2);
}

.footer__button a:hover i {
  transform: scale(1.2) rotate(5deg);
  color: var(--first-color);
}

.footer__button a:first-of-type:hover {
  color: #4285f4; /* Google blue */
      border: 1px solid #007bffe6;
  text-decoration-color: #4285f4;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(66, 133, 244, 0.05));
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.footer__button a:first-of-type:hover i {
  color: #4285f4;
  transform: scale(1.2) rotate(-5deg);
}

.footer__button a:last-of-type:hover {
  color: #2e7d32; /* Success green */
  border: 1px solid #218a27;
  text-decoration-color: #2e7d32;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(46, 125, 50, 0.05));
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.footer__button a:last-of-type:hover i {
  color: #2e7d32;
  transform: scale(1.2) rotate(5deg);
}

/* Add a subtle animation to the entire button on hover */
.footer__button:hover {
  transform: translateY(-1px);
  transition: transform 0.3s ease;
}

/* Mobile-specific adjustments for better touch interaction */
@media screen and (max-width: 768px) {
  .footer__list {
    column-gap: 1.25rem;
  }

  .footer__button a {
    padding: 0.5rem 0.75rem;
    font-size: var(--small-font-size);
  }

  .footer__button a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(101, 179, 240, 0.15);
  }

  .footer__button a:hover i {
    transform: scale(1.15);
  }
}
.footer__title {
  font-family: "Lobster", sans-serif;
  font-size: var(--biggest-font-size);
  font-weight: var(--font-semi-bold);
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
}
.footer__list,
.footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 0;
  margin: 0;
}
.footer__list {
  margin: 2.5rem 0;
  column-gap: 2.5rem;
  flex-wrap: wrap;
  row-gap: 0.75rem;
}
.footer__link {
  color: var(--title-color);
}
.footer__link:hover {
  text-decoration: underline;
}
.footer__social {
  column-gap: 1.25rem;
}
.footer__social-link {
  font-size: 1.25rem;
  color: var(--title-color);
  transition: transform 0.3s;
}
.footer__social-link:hover {
  transform: translateY(-0.15rem);
}
.footer__copy {
  display: block;
  margin-top: 4.5rem;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: rgb(189, 192, 194);
}
::-webkit-scrollbar-thumb {
  background-color: rgb(150, 162, 171);
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgb(1, 1, 1);
}
/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -30%;
  background-color: var(--body-color);
  box-shadow: 0 4px 12px hsla(207, 24%, 35%, 0.15);
  display: inline-flex;
  padding: 0.35rem;
  border-radius: 0.25rem;
  font-size: 1.1rem;
  color: var(--title-color);
  z-index: var(--z-tooltip);
  transition: bottom 0.3s, transform 0.3s;
}
.scrollup:hover {
  transform: translateY(-0.25rem);
}
/* Show Scroll Up*/
.show-scroll {
  bottom: 7.5rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 345px) {
  .container {
    margin-inline: 1rem;
  }
  .nav__menu {
    padding-bottom: 4rem;
  }
  .nav__list {
    gap: 1rem 1.25rem;
  }
  .skills__info {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects__img {
        width: 270px;
    justify-self: center;
  }
  /* Map responsive styles for small devices */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact__container.map .contact__content:last-child {
    max-width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
  }
  .contact__container.map .contact__content:last-child iframe {
    width: 100%;
    height: 400px;
  }
}

/*=============== DEVICE-SPECIFIC BREAKPOINTS ===============*/
/* Very Small Mobile Devices (320px - 360px) - Galaxy S5, Very Small Phones */
@media screen and (min-width: 320px) and (max-width: 360px) {
  .container {
    margin-inline: 0.75rem;
  }
  .nav__menu {
    padding-bottom: 3.5rem;
  }
  .nav__list {
    gap: 0.75rem 1rem;
  }
  .home__title {
    font-size: 1.25rem;
  }
  .skills__info {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  .projects__img {
    width: 250px;
  }
  .services__card {
    width: 200px;
    height: 320px;
    padding: 2.5rem 1rem;
  }
  /* Contact form responsive styles for very small screens */
  .contact__form {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .contact__form-div {
    height: 3.5rem;
  }
  .contact__form-input {
    padding: 1.25rem;
    font-size: 0.9rem;
  }
  .contact__form-area {
    height: 8rem;
  }
  .contact__form .contact__button {
    font-size: var(--h3-font-size);
    padding: 0.75rem 1.5rem;
  }
  .contact__message {
    font-size: 0.8rem;
    bottom: 2.5rem;
  }
  /* Map optimizations for very small screens */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact__container.map .contact__content:last-child {
    max-width: 100%;
    overflow-x: auto;
  }
  .contact__container.map .contact__content:last-child iframe {
    width: 100%;
    height: 400px;
  }
}

/* Small Mobile Devices (361px - 414px) - iPhone SE, Galaxy S8+ */
@media screen and (min-width: 361px) and (max-width: 414px) {
  .container {
    margin-inline: 1rem;
  }
  .nav__menu {
    padding-bottom: 4rem;
  }
  .nav__list {
    gap: 0.875rem 1.125rem;
  }
  .home__title {
    font-size: 1.35rem;
  }
  .skills__info {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.25rem;
  }
  .projects__img {
    width: 280px;
  }
  .services__card {
    width: 210px;
    height: 340px;
    padding: 3rem 1rem;
  }
  /* Contact form responsive styles for small mobile */
  .contact__form {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .contact__form-div {
    height: 3.75rem;
  }
  .contact__form-input {
    padding: 1.35rem;
    font-size: 0.9rem;
  }
  .contact__form-area {
    height: 8.5rem;
  }
  .contact__form .contact__button {
    font-size: var(--h3-font-size);
    padding: 0.8rem 1.75rem;
  }
  .contact__message {
    font-size: 0.8rem;
    bottom: 2.6rem;
  }
  /* Map optimizations for small mobile */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .contact__container.map .contact__content:last-child {
    max-width: 100%;
    overflow-x: auto;
  }
  .contact__container.map .contact__content:last-child iframe {
    width: 100%;
    height: 400px;
  }
}

/* Medium Mobile Devices (415px - 480px) - iPhone XR, Pixel 7, Galaxy A51 */
@media screen and (min-width: 415px) and (max-width: 480px) {
  .container {
    margin-inline: 1.125rem;
  }
  .home__title {
    font-size: 1.45rem;
  }
  .skills__info {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
  .projects__img {
    width: 300px;
  }
  .services__card {
    width: 220px;
    height: 350px;
    padding: 3.25rem 1.125rem;
  }
  /* Contact form responsive styles for medium mobile */
  .contact__form {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .contact__form-div {
    height: 4rem;
  }
  .contact__form-input {
    padding: 1.5rem;
    font-size: var(--normal-font-size);
  }
  .contact__form-area {
    height: 9rem;
  }
  .contact__form .contact__button {
    font-size: var(--h3-font-size);
    padding: 0.875rem 2rem;
  }
  .contact__message {
    font-size: var(--small-font-size);
    bottom: 2.8rem;
  }
  /* Map optimizations for medium mobile */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact__container.map .contact__content:last-child {
    max-width: 100%;
    overflow-x: auto;
  }
  .contact__container.map .contact__content:last-child iframe {
    width: 100%;
    height: 400px;
  }
}

/* Large Mobile Devices (481px - 768px) - iPhone 12 Pro, iPhone 14 Pro Max, S20 Ultra */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .container {
    margin-inline: 1.25rem;
  }
  .home__title {
    font-size: 1.75rem;
  }
  .skills__info {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem 1.75rem;
  }
  .projects__img {
    width: 350px;
  }
  .services__card {
    width: 240px;
    height: 380px;
    padding: 3.5rem 1.25rem;
  }
  /* Contact form responsive styles for large mobile */
  .contact__form {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
  .contact__form-div {
    height: 4.25rem;
  }
  .contact__form-input {
    padding: 1.5rem;
    font-size: var(--normal-font-size);
  }
  .contact__form-area {
    height: 9.5rem;
  }
  .contact__form .contact__button {
    font-size: var(--h3-font-size);
    padding: 1rem 2.25rem;
  }
  .contact__message {
    font-size: var(--small-font-size);
    bottom: 3rem;
  }
  /* Map optimizations for large mobile */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact__container.map .contact__content:last-child {
    max-width: 100%;
    overflow-x: auto;
  }
  .contact__container.map .contact__content:last-child iframe {
    width: 100%;
    height: 400px;
  }
}

/* Small Tablets (769px - 820px) - iPad Mini, Small Tablets */
@media screen and (min-width: 769px) and (max-width: 820px) {
  .home__container {
    grid-template-columns: 1fr 2fr 1fr;
  }
  .home__data {
    order: 2;
  }
  .home__info:nth-child(3) {
    order: 3;
    text-align: right;
  }
  .home__info {
    margin-top: 8rem;
  }
  .skills__container,
  .qualification__container,
  .services__container,
  .contact__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skills__container,
  .services__container {
    column-gap: 4rem;
  }
  .qualification__container {
    justify-content: center;
    column-gap: 6rem;
  }
  .projects__container {
    width: 500px;
  }
  .projects__img {
    width: 380px;
  }
  .contact__form {
    width: 320px;
  }
  .contact__container {
    justify-content: center;
    column-gap: 6rem;
  }
  /* Contact form responsive styles for small tablets */
  .contact__form {
    width: 340px;
    max-width: 100%;
  }
  .contact__form-div {
    height: 4rem;
  }
  .contact__form-input {
    padding: 1.5rem;
    font-size: var(--normal-font-size);
  }
  .contact__form-area {
    height: 9rem;
  }
  .contact__form .contact__button {
    font-size: var(--h3-font-size);
    padding: 1rem 2rem;
  }
  .contact__message {
    font-size: var(--small-font-size);
    bottom: 2.8rem;
  }
  /* Map optimizations for small tablets */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact__container.map .contact__content:last-child {
    max-width: 100%;
    overflow-x: auto;
  }
  .contact__container.map .contact__content:last-child iframe {
    width: 100%;
    height: 400px;
  }
}

/* Medium Tablets (821px - 1024px) - iPad Air, Nest Hub, Surface Pro 7 */
@media screen and (min-width: 821px) and (max-width: 1024px) {
  .home__container {
    grid-template-columns: 1fr 2fr 1fr;
  }
  .home__data {
    order: 2;
  }
  .home__info:nth-child(3) {
    order: 3;
    text-align: right;
  }
  .home__info {
    margin-top: 10rem;
  }
  .home__info-description {
    padding-right: 0;
  }
  .skills__container,
  .qualification__container,
  .services__container,
  .contact__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skills__container,
  .services__container {
    column-gap: 5rem;
  }
  .qualification__container {
    justify-content: center;
    column-gap: 8rem;
  }
  .projects__container {
    width: 600px;
  }
  .projects__img {
    width: 410px;
  }
  .contact__form {
    width: 360px;
  }
  .contact__container {
    justify-content: center;
    column-gap: 8rem;
  }
  /* Contact form responsive styles for medium tablets */
  .contact__form {
    width: 380px;
    max-width: 100%;
  }
  .contact__form-div {
    height: 4.25rem;
  }
  .contact__form-input {
    padding: 1.5rem;
    font-size: var(--normal-font-size);
  }
  .contact__form-area {
    height: 9.5rem;
  }
  .contact__form .contact__button {
    font-size: var(--h3-font-size);
    padding: 1rem 2.25rem;
  }
  .contact__message {
    font-size: var(--small-font-size);
    bottom: 3rem;
  }
  /* Map optimizations for medium tablets */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 3rem;
    }
  .contact__container.map .contact__content:last-child {
    max-width: none;
    overflow: visible;
  }
  .contact__container.map .contact__content:last-child iframe {
    width: 100%;
    height: 500px;
    max-width: 100%;
  }
}

/* Large Tablets/Small Laptops (1025px - 1200px) - iPad Pro, Nest Hub Max */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
  .section {
    padding-block: 6rem 0;
  }
  .home__title {
    font-size: 2.25rem;
  }
  .home__blob {
    width: 350px;
    height: 500px;
    border-radius: 10.5rem;
  }
  .home__perfil {
    width: 300px;
    height: 450px;
    border-radius: 9rem;
  }
  .home__perfil img {
    width: 250px;
  }
  .home__shape-wawes {
    width: 80px;
    left: -3rem;
    top: 8rem;
  }
  .home__shape-circle {
    width: 200px;
    bottom: -0.5rem;
    right: -4rem;
  }
  .home__data {
    row-gap: 2rem;
  }
  .home__social {
    column-gap: 1.75rem;
  }
  .home__social-link {
    font-size: 1.35rem;
  }
  .home__info {
    grid-template-rows: repeat(3, 110px);
    row-gap: 6rem;
    margin-top: 14rem;
  }
  .skills__container {
    column-gap: 8rem;
  }
  .skills__title {
    margin-bottom: 2.5rem;
  }
  .skills__title i {
    font-size: 1.15rem;
  }
  .skills__name {
    font-size: var(--normal-font-size);
  }
  .skills__info {
    gap: 2.5rem;
  }
  .qualification__container {
    column-gap: 6rem;
  }
  .qualification__title {
    margin-bottom: 2.5rem;
  }
  .qualification__title i {
    font-size: 1.15rem;
  }
  .qualification__name {
    font-size: var(--h3-font-size);
  }
  .qualification__img {
    width: 250px;
    left: -5rem;
    bottom: 4rem;
  }
  .services__container {
    grid-template-columns: repeat(3, max-content);
  }
  .services__card {
    width: 235px;
    height: 375px;
    border-radius: 7.4rem;
    padding: 3.25rem 1.35rem;
  }
  .services__card i {
    font-size: 2.25rem;
  }
  .services__card p {
    margin-top: -0.75rem;
    font-size: 16px;
  }
  .services__border {
    width: 239px;
    height: 355px;
    border-radius: 7.9rem;
  }
  .projects__container {
    width: 800px;
  }
  .projects__container .swiper-button-prev,
  .projects__container .swiper-button-next {
    font-size: 2.75rem;
  }
  .projects__container .swiper-button-prev {
    left: -0.75rem;
  }
  .projects__container .swiper-button-next {
    right: -0.75rem;
  }
  .projects__container .swiper-slide {
    margin-bottom: 5.5rem;
  }
  .projects__img {
    width: 680px;
    margin-bottom: 1.5rem;
  }
  .testimonial__container {
    width: 500px;
  }
  .testimonial__container .swiper-button-prev,
  .testimonial__container .swiper-button-next {
    font-size: 2.25rem;
  }
  .testimonial__container .swiper-button-prev {
    left: calc(50% - 1.75rem);
  }
  .testimonial__container .swiper-button-next {
    right: calc(50% - 4.25rem);
  }
  .testimonial__container .swiper-slide {
    margin-bottom: 5rem;
  }
  .testimonial__description {
    font-size: var(--h2-font-size);
    margin-bottom: 1.75rem;
  }
  .testimonial__img {
    width: 180px;
    height: 950px;
    top: 11rem;
    right: 20%;
  }
  .contact__title {
    margin-bottom: 2.5rem;
  }
  .contact__title i {
    font-size: 1.15rem;
  }
  .contact__form {
    row-gap: 2.25rem;
  }
  .footer__container {
    padding: 3.5rem 0 2.5rem;
  }
  .footer__list {
    column-gap: 2.75rem;
    margin: 2.75rem 0;
  }
  .footer__social {
    column-gap: 1.75rem;
  }
  .footer__social-link {
    font-size: 1.35rem;
  }
  .footer__copy {
    margin-top: 4.5rem;
  }
  /* Map optimizations for large tablets */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 3rem;
    }
  .contact__container.map .contact__content:last-child {
    max-width: none;
    overflow: visible;
  }
  .contact__container.map .contact__content:last-child iframe {
    width: 100%;
    height: 500px;
    max-width: 100%;
  }
}

/*=============== FOLDABLE DEVICES BREAKPOINTS ===============*/
/* Galaxy Z Fold 5 (Folded) - 344x882px */
@media screen and (min-width: 344px) and (max-width: 344px) {
  .container {
    margin-inline: 0.75rem;
  }
  .home__title {
    font-size: 1.15rem;
  }
  .skills__info {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
  }
  .projects__img {
    width: 240px;
  }
  .services__card {
    width: 190px;
    height: 300px;
    padding: 2.25rem 0.875rem;
  }
  /* Map for foldable */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact__container.map .contact__content:last-child {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Surface Duo (Dual Screen) - 540x720px */
@media screen and (min-width: 540px) and (max-width: 540px) {
  .container {
    margin-inline: 1rem;
  }
  .home__title {
    font-size: 1.4rem;
  }
  .skills__info {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.25rem;
  }
  .projects__img {
    width: 290px;
  }
  .services__card {
    width: 215px;
    height: 345px;
    padding: 3rem 1rem;
  }
  /* Map for dual screen */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact__container.map .contact__content:last-child {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Asus Zenbook Fold - 1280x1920px (Large Foldable) */
@media screen and (min-width: 1280px) and (max-width: 1280px) {
  .section {
    padding-block: 10rem 0;
  }
  .home__title {
    font-size: 3.25rem;
  }
  .home__blob {
    width: 450px;
    height: 650px;
    border-radius: 14rem;
  }
  .home__perfil {
    width: 380px;
    height: 580px;
    border-radius: 12rem;
  }
  .home__perfil img {
    width: 320px;
  }
  .home__shape-wawes {
    width: 120px;
    left: -5rem;
    top: 12rem;
  }
  .home__shape-circle {
    width: 300px;
    bottom: -2rem;
    right: -6rem;
  }
  .home__data {
    row-gap: 3rem;
  }
  .home__social {
    column-gap: 2.5rem;
  }
  .home__social-link {
    font-size: 1.75rem;
  }
  .home__info {
    grid-template-rows: repeat(3, 150px);
    row-gap: 10rem;
    margin-top: 18rem;
  }
  .skills__container {
    column-gap: 12rem;
  }
  .skills__title {
    margin-bottom: 4rem;
  }
  .skills__title i {
    font-size: 1.5rem;
  }
  .skills__name {
    font-size: 1.125rem;
  }
  .skills__info {
    gap: 3.5rem;
  }
  .qualification__container {
    column-gap: 10rem;
  }
  .qualification__title {
    margin-bottom: 4rem;
  }
  .qualification__title i {
    font-size: 1.5rem;
  }
  .qualification__name {
    font-size: 1.25rem;
  }
  .qualification__img {
    width: 350px;
    left: -8rem;
    bottom: 6rem;
  }
  .services__container {
    grid-template-columns: repeat(3, max-content);
  }
  .services__card {
    width: 260px;
    height: 420px;
    border-radius: 8.5rem;
    padding: 4rem 1.75rem;
  }
  .services__card i {
    font-size: 3rem;
  }
  .services__card p {
    margin-top: -1.5rem;
    font-size: 19px;
  }
  .services__border {
    width: 264px;
    height: 400px;
    border-radius: 9rem;
  }
  .projects__container {
    width: 1000px;
  }
  .projects__container .swiper-button-prev,
  .projects__container .swiper-button-next {
    font-size: 3.5rem;
  }
  .projects__container .swiper-button-prev {
    left: -1.5rem;
  }
  .projects__container .swiper-button-next {
    right: -1.5rem;
  }
  .projects__container .swiper-slide {
    margin-bottom: 8rem;
  }
  .projects__img {
    width: 850px;
    margin-bottom: 2.5rem;
  }
  .testimonial__container {
    width: 650px;
  }
  .testimonial__container .swiper-button-prev,
  .testimonial__container .swiper-button-next {
    font-size: 3rem;
  }
  .testimonial__container .swiper-button-prev {
    left: calc(50% - 2.5rem);
  }
  .testimonial__container .swiper-button-next {
    right: calc(50% - 6rem);
  }
  .testimonial__container .swiper-slide {
    margin-bottom: 7rem;
  }
  .testimonial__description {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
  }
  .testimonial__img {
    width: 250px;
    height: 1100px;
    top: 16rem;
    right: 22%;
  }
  .contact__title {
    margin-bottom: 4rem;
  }
  .contact__title i {
    font-size: 1.5rem;
  }
  .contact__form {
    row-gap: 3rem;
  }
  .footer__container {
    padding: 5rem 0 4rem;
  }
  .footer__list {
    column-gap: 3.5rem;
    margin: 4rem 0;
  }
  .footer__social {
    column-gap: 2.5rem;
  }
  .footer__social-link {
    font-size: 1.75rem;
  }
  .footer__copy {
    margin-top: 6rem;
  }
  /* Map for large foldable */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 4rem;
    }
  .contact__container.map .contact__content:last-child {
    max-width: none;
    overflow: visible;
  }
  .contact__container.map .contact__content:last-child iframe {
    width: 100%;
    height: 500px;
    max-width: 100%;
  }
}

/*=============== SMART DISPLAYS & SPECIAL DEVICES ===============*/
/* Nest Hub - 1024x600px */
@media screen and (min-width: 1024px) and (max-width: 1024px) and (orientation: landscape) {
  .section {
    padding-block: 4rem 0;
  }
  .home__title {
    font-size: 2rem;
  }
  .home__blob {
    width: 320px;
    height: 450px;
    border-radius: 9.5rem;
  }
  .home__perfil {
    width: 270px;
    height: 400px;
    border-radius: 8rem;
  }
  .home__perfil img {
    width: 220px;
  }
  .home__shape-wawes {
    width: 70px;
    left: -2.5rem;
    top: 7rem;
  }
  .home__shape-circle {
    width: 180px;
    bottom: 0;
    right: -3.5rem;
  }
  .home__data {
    row-gap: 1.75rem;
  }
  .home__social {
    column-gap: 1.5rem;
  }
  .home__social-link {
    font-size: 1.25rem;
  }
  .home__info {
    grid-template-rows: repeat(3, 100px);
    row-gap: 5rem;
    margin-top: 12rem;
  }
  .skills__container {
    column-gap: 7rem;
  }
  .skills__title {
    margin-bottom: 2rem;
  }
  .skills__title i {
    font-size: 1.1rem;
  }
  .skills__name {
    font-size: 0.9rem;
  }
  .skills__info {
    gap: 2rem;
  }
  .qualification__container {
    column-gap: 5rem;
  }
  .qualification__title {
    margin-bottom: 2rem;
  }
  .qualification__title i {
    font-size: 1.1rem;
  }
  .qualification__name {
    font-size: 1rem;
  }
  .qualification__img {
    width: 220px;
    left: -4rem;
    bottom: 3rem;
  }
  .services__container {
    grid-template-columns: repeat(3, max-content);
  }
  .services__card {
    width: 225px;
    height: 360px;
    border-radius: 7.2rem;
    padding: 3rem 1.25rem;
  }
  .services__card i {
    font-size: 2rem;
  }
  .services__card p {
    margin-top: -0.5rem;
    font-size: 15px;
  }
  .services__border {
    width: 229px;
    height: 340px;
    border-radius: 7.7rem;
  }
  .projects__container {
    width: 750px;
  }
  .projects__container .swiper-button-prev,
  .projects__container .swiper-button-next {
    font-size: 2.5rem;
  }
  .projects__container .swiper-button-prev {
    left: -0.5rem;
  }
  .projects__container .swiper-button-next {
    right: -0.5rem;
  }
  .projects__container .swiper-slide {
    margin-bottom: 5rem;
  }
  .projects__img {
    width: 620px;
    margin-bottom: 1.25rem;
  }
  .testimonial__container {
    width: 480px;
  }
  .testimonial__container .swiper-button-prev,
  .testimonial__container .swiper-button-next {
    font-size: 2rem;
  }
  .testimonial__container .swiper-button-prev {
    left: calc(50% - 1.5rem);
  }
  .testimonial__container .swiper-button-next {
    right: calc(50% - 4rem);
  }
  .testimonial__container .swiper-slide {
    margin-bottom: 4.5rem;
  }
  .testimonial__description {
    font-size: var(--normal-font-size);
    margin-bottom: 1.5rem;
  }
  .testimonial__img {
    width: 160px;
    height: 900px;
    top: 10rem;
    right: 18%;
  }
  .contact__title {
    margin-bottom: 2rem;
  }
  .contact__title i {
    font-size: 1.1rem;
  }
  .contact__form {
    row-gap: 2rem;
  }
  .footer__container {
    padding: 3rem 0 2rem;
  }
  .footer__list {
    column-gap: 2.5rem;
    margin: 2.5rem 0;
  }
  .footer__social {
    column-gap: 1.5rem;
  }
  .footer__social-link {
    font-size: 1.25rem;
  }
  .footer__copy {
    margin-top: 4rem;
  }
  /* Map for Nest Hub */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    }
  .contact__container.map .contact__content:last-child {
    max-width: none;
    overflow: visible;
  }
  .contact__container.map .contact__content:last-child iframe {
    width: 100%;
    height: 500px;
    max-width: 100%;
  }
}

/* Facebook on Android - Mobile viewport simulation */
@media screen and (min-width: 360px) and (max-width: 480px) and (orientation: portrait) {
  .container {
    margin-inline: 0.875rem;
  }
  .home__title {
    font-size: 1.3rem;
  }
  .skills__info {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  .projects__img {
    width: 260px;
  }
  .services__card {
    width: 205px;
    height: 330px;
    padding: 2.75rem 1rem;
  }
  /* Map for Facebook mobile view */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .contact__container.map .contact__content:last-child {
    max-width: 100%;
    overflow-x: auto;
  }
  .contact__container.map .contact__content:last-child iframe {
    width: 100%;
    height: 400px;
  }
}

/* For small medium devices */
@media screen and (min-width: 346px) and (max-width: 575px) {
  .projects__img {
        width: 302px;
    justify-self: center;
  }
  /* Map responsive styles for small-medium devices */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact__container.map .contact__content:last-child {
    max-width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
  }
  .contact__container.map .contact__content:last-child iframe {
    width: 100%;
    height: 400px;
  }
}
/* For medium devices */
@media screen and (min-width: 576px) {
  .nav,
  .nav__menu {
    width: 380px;
  }
  .nav {
    margin: 0 auto;
  }
  .skills__container {
    justify-content: center;
  }
  .projects__container,
  .testimonial__container {
    width: 400px;
  }
  .projects__container {
    overflow: hidden;
  }
  .projects__container .swiper-button-prev {
    left: 1rem;
  }
  .projects__container .swiper-button-next {
    right: 1rem;
  }
  .projects__img {
        width: 310px;
    justify-self: center;
  }
}
@media screen and (min-width: 767px) {
  .home__container {
    grid-template-columns: 1fr 2fr 1fr;
  }
  .home__data {
    order: 2;
  }
  .home__info:nth-child(3) {
    order: 3;
    text-align: right;
  }
  .home__info {
    margin-top: 10rem;
  }
  .home__info-description {
    padding-right: 0;
  }
  .skills__container,
  .qualification__container,
  .services__container,
  .contact__container 
  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skills__container,
  .services__container {
    column-gap: 5rem;
  }
  
  .qualification__container {
    justify-content: center;
    column-gap: 3rem;
  }
  .projects__container {
    width: 600px;
  }
  .projects__img {
        width: 410px;
    justify-self: center;
  }
  .contact__form {
    width: 360px;
  }
  .contact__container {
    justify-content: center;
    column-gap: 8rem;
  }
  /* Map responsive styles for medium devices */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact__container.map .contact__content:last-child {
    max-width: 100%;
    overflow-x: auto;
  }
}
/* For large devices */
@media screen and (min-width: 1023px) {
  .header {
    top: 0;
    bottom: initial;
    background-color: var(--body-color);
    transition: 0.4s;
  }
  .nav {
    width: initial;
    height: calc(var(--header-height) + 1.5rem);
    box-shadow: none;
    border-radius: 0;
    column-gap: 3rem;
    margin-inline: 1.5rem;
    padding: 0;
  }
  .nav__link i,
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__menu {
    width: initial;
    margin-left: auto;
    background-color: var(--body-color);
    transition: background 0.4s;
  }
  .nav__list {
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
  }
  .dark-theme .nav,
  .dark-theme .nav__menu {
    background-color: var(--body-color);
    box-shadow: none;
  }
  .change-theme {
    color: var(--text-color-light);
  }
  .change-theme:hover {
    color: var(--text-color);
  }
  .section {
    padding-block: 8rem 0;
  }
  .home__title {
    font-size: 2.55rem;
  }
  .projects__img {
        width: 400px;
    justify-self: center;
  }
  .scrollup {
    right: 3rem;
  }
  .show-scroll {
    bottom: 5rem;
  }
  /* change background header */
  .bg-header {
    box-shadow: 0 4px 20px hsla(207, 24%, 35%, 0.1);
  }
  .dark-theme .bg-header {
    box-shadow: 0 6px 24px hsla(207, 24%, 8%, 0.6);
  }
  /* Map responsive styles for large devices */
  .contact__container.map {
    grid-template-columns: 1fr;
    gap: 3rem;
    }
  .contact__container.map .contact__content:last-child {
    max-width: none;
    overflow: visible;
  }
  .contact__container.map .contact__content:last-child iframe {
    width: 100%;
    height: 500px;
    max-width: 100%;
  }
  /* Contact form responsive styles for large devices */
  .contact__form {
    width: 100%;
    max-width: 400px;
  }
  .contact__form-div {
    height: 4.5rem;
  }
  .contact__form-input {
    padding: 1.75rem;
    font-size: var(--normal-font-size);
  }
  .contact__form-area {
    height: 10rem;
  }
  .contact__form .contact__button {
    font-size: var(--h2-font-size);
    padding: 1.125rem 2.5rem;
  }
  .contact__message {
    font-size: var(--small-font-size);
    bottom: 3.2rem;
  }
}
/* full screen  */
@media screen and (min-width: 1048px) {
  .container {
    margin-inline: auto;
  }
  .projects__img {
    width: 450px;
    justify-self: center;
  }
}
@media screen and (min-width: 1200px) {
  .section__border {
    padding-bottom: 6rem;
  }
  .section__subtitle {
    margin-bottom: 5rem;
  }
  .home__title {
    font-size: var(--biggest-font-size);
  }
  .home__blob {
    width: 400px;
    height: 580px;
    border-radius: 12.5rem;
  }
  .home__perfil {
    width: 340px;
    height: 520px;
    border-radius: 10.6rem;
  }
  .home__perfil img {
    width: 300px;
  }
  .home__shape-wawes {
    width: 100px;
    left: -4rem;
    top: 10rem;
  }
  .home__shape-circle {
    width: 250px;
    bottom: -1rem;
    right: -5rem;
  }
  .home__data {
    row-gap: 2.5rem;
  }
  .home__social {
    column-gap: 2rem;
  }
  .home__social-link {
    font-size: 1.5rem;
  }
  .home__info {
    grid-template-rows: repeat(3, 130px);
    row-gap: 8rem;
    margin-top: 16rem;
  }
  .skills__container {
    column-gap: 10rem;
  }
  .skills__title {
    margin-bottom: 3rem;
  }
  .skills__title i {
    font-size: 1.25rem;
  }
  .skills__name {
    font-size: var(--normal-font-size);
  }
  .skills__info {
    gap: 3rem;
  }
  .qualification__container {
    column-gap: 8rem;
  }
  .qualification__title {
    margin-bottom: 3rem;
  }
  .qualification__title i {
    font-size: 1.25rem;
  }
  .qualification__name {
    font-size: var(--h3-font-size);
  }
  .qualification__img {
    width: 300px;
    left: -6rem;
    bottom: 5rem;
  }
  .services__container {
    grid-template-columns: repeat(3, max-content);
  }
  .services__card {
    width: 245px;
    height: 385px;
    border-radius: 7.6rem;
    padding: 3.5rem 1.5rem;
  }
  .services__card i {
    font-size: 2.5rem;
  }
  .services__card p {
    margin-top: -1rem;
    font-size: 16px;
  }
  .services__border {
    width: 249px;
    height: 452px;
    border-radius: 8.25rem;
  }
  .projects__container {
    width: 900px;
  }
  .projects__container .swiper-button-prev,
  .projects__container .swiper-button-next {
    font-size: 3rem;
  }
  .projects__container .swiper-button-prev {
    left: -1rem;
  }
  .projects__container .swiper-button-next {
    right: -1rem;
  }
  .projects__container .swiper-slide {
    margin-bottom: 6.5rem;
  }
  .projects__img {
        width: 762px;
    margin-bottom: 2rem;
  }
  .testimonial__container {
    width: 566px;
  }
  .testimonial__container .swiper-button-prev,
  .testimonial__container .swiper-button-next {
    font-size: 2.5rem;
  }
  .testimonial__container .swiper-button-prev {
    left: calc(50% - 2rem);
  }
  .testimonial__container .swiper-button-next {
    right: calc(50% - 5rem);
  }
  .testimonial__container .swiper-slide {
    margin-bottom: 6rem;
  }
  .testimonial__description {
    font-size: var(--h2-font-size);
    margin-bottom: 2rem;
  }
  .testimonial__img {
    width: 200px;
    height: 1000px;
    top: 13rem;
    right: 20%;
  }
  .contact__title {
    margin-bottom: 3rem;
  }
  .contact__title i {
    font-size: 1.25rem;
  }
  .contact__form {
    row-gap: 2.5rem;
  }
  .footer__container {
    padding: 4rem 0 3rem;
  }
  .footer__list {
    column-gap: 3rem;
    margin: 3rem 0;
  }
  .footer__social {
    column-gap: 2rem;
  }
  .footer__social-link {
    font-size: 1.5rem;
  }
  .footer__copy {
    margin-top: 5rem;
  }
}

/*=============== SERVICES - RESPONSIVE OVERRIDES ===============*/
/* Consolidated rules keep the Services cards fluid on every screen size.
   Appended last so they override all the older device-specific rules above. */

.services__container {
  grid-template-columns: repeat(auto-fit, minmax(260px, 280px));
  justify-content: center;
  justify-items: center;
  column-gap: 5rem;
  row-gap: 5rem;
}

.services__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  width: min(280px, 100%);
  height: auto;
  min-height: 360px;
  padding: 2rem 1.5rem;
  text-align: center;
  background-color: var(--container-color);
  border-radius: 7.25rem;
  overflow: hidden;
  transition: background 0.4s, transform 0.3s ease, box-shadow 0.3s ease;
}

.services__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.dark-theme .services__card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.services__icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.25rem;
}
.services__icon i {
  font-size: 1.75rem;
}

.services__card .services__description {
  font-size: var(--small-font-size);
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.services__list {
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.services__cta {
  margin-top: 1.5rem;
  padding: 0.55rem 1.25rem;
  font-size: var(--small-font-size);
}
.services__cta i {
  font-size: 0.875rem;
}

.services__border {
  position: absolute;
  inset: 8px;
  width: auto;
  height: auto;
  border: 2px solid transparent;
  border-radius: 7rem;
  z-index: 0;
  pointer-events: none;
  transition: border-color 0.3s ease, border-width 0.3s ease;
}
.services__card:hover .services__border {
  border-color: var(--title-color);
  border-width: 3px;
  transform: none;
}

/*=============== ANTIGRAVITY (HERO PARTICLE RING) ===============*/
.antigravity-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.antigravity-bg canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/*=============== MAGIC RINGS (FOOTER GLOW RINGS) ===============*/
.magic-rings-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.magic-rings-bg canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/*=============== LIGHT RAYS BACKGROUNDS ===============*/
/* Visible only in dark mode */
.light-rays-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
  display: none;
  opacity: var(--lightrays-opacity);
  mix-blend-mode: screen;
}
body.dark-theme .light-rays-container {
  display: block;
}
.light-rays-container canvas {
  display: block;
}

@supports (mix-blend-mode: plus-lighter) {
  .light-rays-container {
    mix-blend-mode: plus-lighter;
  }
}

@media (max-width: 768px) {
  .light-rays-container {
    opacity: calc(var(--lightrays-opacity) * 0.65);
  }
  .qualification__container {
    grid-template-columns: 1fr;
    row-gap: 3rem;
  }
  .qualification__textalign-center {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .light-rays-container {
    opacity: calc(var(--lightrays-opacity) * 0.45);
  }
}

/* Toast Notifications */
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* Spinner Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.contact__button:disabled i {
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* Print Stylesheet */
@media print {
  .header,
  .nav__menu,
  .nav__toggle,
  .nav__close,
  .scrollup,
  .light-rays-container,
  .home__images,
  .home__shape-wawes,
  .home__shape-circle,
  .skills__loop,
  .skills__toggle,
  .skills__info .skills__popup,
  .projects__container .swiper-button-next,
  .projects__container .swiper-button-prev,
  .projects__container .swiper-pagination,
  .testimonial__container .swiper-button-next,
  .testimonial__container .swiper-button-prev,
  .testimonial__container .swiper-pagination,
  .map__container,
  .contact__form,
  .footer__content,
  .read-more-btn {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }

  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  .section__title,
  .section__subtitle {
    color: black !important;
  }

  a {
    color: black !important;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  .home__data {
    page-break-after: always;
  }
}

/* Micro-interactions for Buttons */
.button,
.home__button,
.projects__button,
.contact__button,
.scrollup,
.services__card,
.skills__data {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button:active,
.home__button:active,
.projects__button:active,
.contact__button:active {
  transform: scale(0.96);
}

.services__card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skills__data:hover {
  transform: translateY(-4px);
}

.skills__data:active {
  transform: scale(0.98);
}

