/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  --first-hue: 13;
  --sat: 88%;
  --lig: 56%;
  --second-hue: 219;

  --first-color: hsl(var(--first-hue), var(--sat), var(--lig));
  --first-color-alt: hsl(var(--first-hue), var(--sat), 51%);
  --title-color: hsl(var(--second-hue), 15%, 95%);
  --text-color: hsl(var(--second-hue), 8%, 75%);
  --text-color-light: hsl(var(--second-hue), 4%, 55%);
  --body-color: hsl(var(--second-hue), 48%, 8%);
  --container-color: hsl(var(--second-hue), 32%, 12%);
  --card-border: hsla(var(--second-hue), 32%, 20%, 0.6);

  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
  --tiny-font-size: 0.625rem;

  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 9999;
}

@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body,
button,
input,
textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-weight: var(--font-semibold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body.light-theme {
  --title-color: hsl(var(--second-hue), 15%, 15%);
  --text-color: hsl(var(--second-hue), 8%, 35%);
  --text-color-light: hsl(var(--second-hue), 4%, 45%);
  --body-color: hsl(var(--second-hue), 100%, 99%);
  --container-color: #ffffff;
  --card-border: hsla(var(--second-hue), 15%, 90%, 0.8);
  /* Override background hover overlays for cleaner light theme aesthetics */
  --first-color-alt: hsl(var(--first-hue), var(--sat), 45%);
}

.light-theme .active-link {
  color: #ffffff;
  background: var(--first-color);
}


.light-theme .nav__menu {
  background-color: hsla(var(--second-hue), 32%, 92%, 0.85);
  box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.1);
}

.light-theme .home__social-link,
.light-theme .about__box,
.light-theme .skills__content,
.light-theme .services__card,
.light-theme .work__card,
.light-theme .testimonial__card,
.light-theme .contact__card {
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.06);
  border: 1px solid var(--card-border);
}

.light-theme .home__social::after {
  background-color: var(--title-color);
}

.light-theme .button {
  color: #ffffff;
}

.light-theme .button--ghost {
  color: var(--first-color);
}

.container {
  max-width: 968px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.main {
  overflow: hidden;
}

.section {
  padding: 4.5rem 0 1rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: 2rem;
}

.section__subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  width: 45px;
  transition: transform 0.3s ease;
}

.nav__logo:hover {
  transform: scale(1.05);
}

.nav__menu {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  background-color: hsla(var(--second-hue), 32%, 16%, 0.8);
  width: 92%;
  max-width: 420px;
  border-radius: 4rem;
  padding: 0.85rem 1.75rem;
  backdrop-filter: blur(12px);
  z-index: var(--z-fixed);
}

.nav__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__link {
  color: var(--text-color);
  font-size: 1.25rem;
  padding: 0.4rem;
  display: flex;
  border-radius: 50%;
}

.active-link {
  background: linear-gradient(180deg,
      hsla(var(--first-hue), var(--sat), var(--lig), 1),
      hsla(var(--first-hue), var(--sat), var(--lig), 0.2));
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
  color: #ffffff;
}

.change-theme {
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--title-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

.change-theme:hover {
  color: var(--first-color);
  transform: rotate(15deg);
}

.scroll-header {
  box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.3);
}

/* HOME */
.home__container {
  position: relative;
  row-gap: 3rem;
  padding-top: 2rem;
}

.home__data {
  text-align: center;
}

.home__greeting,
.home__education {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.home__greeting {
  display: block;
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.home__education {
  color: var(--text-color-light);
  margin-bottom: 2.5rem;
}

.home__name {
  font-size: var(--biggest-font-size);
  margin-bottom: 0.25rem;
}

.home__handle {
  justify-self: center;
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1 / 1.4;
  background: linear-gradient(180deg,
      hsla(var(--first-hue), var(--sat), var(--lig), 1),
      hsla(var(--first-hue), var(--sat), var(--lig), 0.2));
  border-radius: 10rem 10rem 1rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.home__img {
  width: 85%;
  height: auto;
  object-fit: cover;
}

.home__buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.home__social {
  position: absolute;
  bottom: 2rem;
  left: 0;
  display: grid;
  row-gap: 0.5rem;
}

.home__social-link {
  width: max-content;
  background-color: var(--container-color);
  color: var(--first-color);
  padding: 0.4rem;
  border-radius: 0.35rem;
  display: flex;
  font-size: 1.1rem;
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.home__social-link:hover {
  background-color: var(--first-color);
  color: #ffffff;
  transform: translateY(-3px);
}

.home__social::after {
  content: '';
  width: 32px;
  height: 2px;
  background-color: var(--first-color);
  transform: rotate(90deg) translate(16px, 3px);
}

.home__scroll {
  position: absolute;
  color: var(--first-color);
  right: -1.5rem;
  bottom: 2rem;
  display: grid;
  row-gap: 2.25rem;
  justify-items: center;
  transition: transform 0.3s ease;
}

.home__scroll:hover {
  transform: translateY(4px);
}

.home__scroll-icon {
  font-size: 1.25rem;
}

.home__scroll-name {
  font-size: var(--smaller-font-size);
  transform: rotate(-90deg);
}

/* BUTTONS */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--first-color);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsla(var(--first-hue), var(--sat), var(--lig), 0.3);
}

.button--ghost {
  background-color: transparent;
  border: 2px solid var(--first-color);
  color: var(--first-color);
}

.button--ghost:hover {
  background-color: var(--first-color);
  color: #ffffff;
}

/* ABOUT */
.about__container {
  row-gap: 2.5rem;
}

.about__img {
  width: 220px;
  height: 380px;
  object-fit: cover;
  border-radius: 1.5rem;
  justify-self: center;
}

.about__data {
  text-align: center;
}

.about__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.about__box {
  background-color: var(--container-color);
  border-radius: 0.75rem;
  padding: 1rem 0.5rem;
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease;
}

.about__box:hover {
  transform: translateY(-4px);
}

.about__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.about__title {
  font-size: var(--small-font-size);
}

.about__subtitle {
  font-size: var(--tiny-font-size);
  color: var(--text-color-light);
}

.about__description {
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* SKILLS */
.skills__container {
  row-gap: 2rem;
  padding-top: 1rem;
}

.skills__content {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease;
}

.skills__content:hover {
  transform: translateY(-4px);
}

.skills__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semibold);
  color: var(--first-color);
  text-align: center;
  margin-bottom: 1.5rem;
}

.skills__box {
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}

.skills__group {
  display: grid;
  align-content: flex-start;
  row-gap: 1rem;
}

.skills__data {
  display: flex;
  column-gap: 0.5rem;
  align-items: flex-start;
}

.skills .bxs-badge-check {
  font-size: 1rem;
  color: var(--first-color);
  margin-top: 0.15rem;
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  line-height: 1.2;
}

.skills__level {
  font-size: var(--tiny-font-size);
  color: var(--text-color-light);
}

/* SERVICES & MODAL */
/*=============== SERVICES & MODAL ===============*/
.services__section,
.services__container {
  overflow: visible;
}

.services__container {
  display: grid;
  grid-template-columns: 100%;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 1rem;
}

.services__card {
  position: relative;
  background-color: var(--container-color);
  padding: 2.5rem 1.5rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.services__card:hover {
  transform: translateY(-6px);
}

.services__card:has(.active-modal) {
  transform: none !important;
  will-change: auto;
}

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: 2.5rem;
  line-height: 1.3;
}

.services__button {
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  cursor: pointer;
  font-weight: var(--font-medium);
  background: none;
  border: none;
  padding: 0;
}

.services__icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.services__button:hover .services__icon {
  transform: translateX(0.25rem);
}

.services__modal {
  position: fixed;
  inset: 0;
  background-color: hsla(var(--second-hue), 28%, 8%, 0.8);
  backdrop-filter: blur(8px);
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.services__modal-content {
  position: relative;
  background-color: var(--container-color);
  padding: 3.5rem 1.5rem 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  max-width: 500px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 10000;
  scrollbar-width: thin;
  scrollbar-color: var(--first-color) transparent;
}

.services__modal-title {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  margin-bottom: 1rem;
  text-align: center;
}

.services__modal-description {
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
  line-height: 1.5;
  text-align: center;
}

.services__modal-list {
  display: grid;
  row-gap: 0.85rem;
}

.services__modal-item {
  display: flex;
  align-items: flex-start;
  column-gap: 0.5rem;
}

.services__modal-icon {
  font-size: 1.25rem;
  color: var(--first-color);
  flex-shrink: 0;
}

.services__modal-info {
  font-size: var(--small-font-size);
  line-height: 1.4;
}

.services__modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.services__modal-close:hover {
  transform: scale(1.1);
}

.active-modal {
  opacity: 1;
  visibility: visible;
}

/* Custom Scrollbar specifically for the modal content container */
.services__modal-content::-webkit-scrollbar {
  width: 0.5rem;
}

.services__modal-content::-webkit-scrollbar-track {
  border-radius: 0.5rem;
  background-color: hsla(var(--second-hue), 8%, 38%, 0.2);
}

.services__modal-content::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 0.5rem;
}

.services__modal-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--first-color-alt);
}

/* WORK */
.work__container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;
  /* Aligns filtered items neatly to the left edge */
}

.work__filters {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work__item {
  cursor: pointer;
  color: var(--title-color);
  padding: 0.35rem 0.85rem;
  font-weight: var(--font-medium);
  border-radius: 0.5rem;
  font-size: var(--small-font-size);
}

.work__card {
  background-color: var(--container-color);
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  width: 100%;
  flex: 1 1 calc(33.333% - 1rem);
  display: inline-flex;
  flex-direction: column;
}

.work__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px hsla(var(--second-hue), 48%, 8%, 0.2);
}

.work__img {
  border-radius: 0.75rem;
  margin-bottom: 0.85rem;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.work__tag {
  font-size: var(--tiny-font-size);
  padding: 0.15rem 0.5rem;
  background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.15);
  color: var(--first-color);
  border-radius: 0.25rem;
  font-weight: var(--font-medium);
}

.work__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semibold);
  margin-bottom: 0.25rem;
}

.work__title-sub {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.work__buttons {
  margin-top: auto;
  /* Elastic spring pushing demo buttons perfectly flush to the bottom */
  padding-top: 1rem;
}

.work__button {
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  font-weight: var(--font-medium);
}

.work__button:hover .work__icon {
  transform: translateX(0.25rem);
}

.work__icon {
  font-size: 1rem;
}

.active-work {
  background-color: var(--first-color);
  color: #ffffff;
}

.hidden-project {
  display: none !important;
}

.work__more-container {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

#load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: var(--small-font-size);
}

.project__swiper {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.project__swiper .swiper-wrapper {
  height: 180px !important;
}

.project__swiper .swiper-slide {
  width: 100%;
  height: auto;
}

.project__swiper .work__img,
.project__swiper .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 0;
}

/*=============== REFINED PROFILE SLIDER REPAIRS ===============*/
.project__swiper {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

/* Force absolute boundaries to lock onto the image slider container window */
.project__swiper-next,
.project__swiper-prev {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;

  /* Reset background styles completely */
  background: transparent !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;

  /* Hit area dimensions */
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;

  /* Clean slate dark arrow matching your dashboard grid layout */
  color: #1a1a1a !important;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Align buttons cleanly flush to the inner edges of the card preview window */
.project__swiper-prev {
  left: 0.5rem !important;
}

.project__swiper-next {
  right: 0.5rem !important;
}

/* Kill Swiper's default text character font string */
.project__swiper-next::after,
.project__swiper-prev::after {
  display: none !important;
  content: "" !important;
}

/* Formats the vector geometry line properties */
.project__swiper-next svg,
.project__swiper-prev svg {
  width: 28px;
  height: 28px;
  stroke-width: 3;

  /* ADD THIS LINE BELOW: Creates an invisible safety shadow for bright content */
  filter: drop-shadow(0px 1px 3px rgba(255, 255, 255, 0.6)) drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.15));
}


/* Hover scales outward cleanly without shifting background frames */
.project__swiper-prev:hover {
  transform: translateY(-50%) scale(1.15) !important;
  color: #000000 !important;
}

.project__swiper-next:hover {
  transform: translateY(-50%) scale(1.15) !important;
  color: #000000 !important;
}

.project__swiper-prev:active,
.project__swiper-next:active {
  transform: translateY(-50%) scale(0.95) !important;
}

/* TESTIMONIAL & CONTACT */
.testimonial__card {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--card-border);
  margin-bottom: 3rem;
}

.testimonial__img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

.testimonial__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semibold);
  margin-bottom: 0.25rem;
}

.testimonial__description {
  font-size: var(--small-font-size);
  line-height: 1.5;
  color: var(--text-color);
}

.contact__container {
  display: grid;
  grid-template-columns: 100%;
  row-gap: 3rem;
  padding-bottom: 3rem;
}

.contact__title {
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.contact__info {
  display: grid;
  gap: 1rem;
}

.contact__card {
  background-color: var(--container-color);
  padding: 1.25rem;
  border-radius: 0.85rem;
  text-align: center;
  border: 1px solid var(--card-border);
}

.contact__card:hover {
  transform: translateY(-4px);
}

.contact__card-icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-bottom: 0.25rem;
}

.contact__card-title,
.contact__card-data {
  font-size: var(--small-font-size);
}

.contact__card-data {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-color-light);
}

.contact__button {
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.25rem;
  font-weight: var(--font-medium);
}

.contact__button:hover .contact__button-icon {
  transform: translateX(0.25rem);
}

.contact__button-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.contact__form {
  width: 100%;
}

.contact__inputs {
  display: grid;
  gap: 1.5rem;
}

.contact__form-div {
  position: relative;
  margin-bottom: 1.5rem;
}

.contact__form-input {
  display: block;
  width: 100%;
  background: none;
  color: var(--text-color);
  outline: none;
  padding: 1.25rem;
  border: 2px solid var(--card-border);
  border-radius: 0.75rem;
  transition: border-color 0.3s ease;
}

.contact__form-input:focus {
  border-color: var(--first-color);
}

.contact__form-tag {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: 0.15rem 0.5rem;
  background-color: var(--body-color);
  color: var(--text-color-light);
  z-index: 10;
  border-radius: 0.25rem;
}

.contact__form-area {
  height: 11rem;
}

.contact__form-area textarea {
  height: 100%;
  resize: none;
}

.contact__message {
  display: block;
  font-size: var(--small-font-size);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  font-weight: var(--font-medium);
}

.color-red {
  color: hsl(0, 88%, 56%);
}

.color-green {
  color: hsl(142, 70%, 45%);
}

.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--text-color-light);
  border-radius: 50%;
  border-top-color: var(--first-color);
  animation: spin 0.8s linear infinite;
  margin-left: 0.35rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.scrollup {
  position: fixed;
  right: 1.5rem;
  bottom: -30%;
  background-color: var(--container-color);
  opacity: 0.8;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--card-border);
  z-index: var(--z-tooltip);
  transition: bottom 0.4s ease, opacity 0.3s ease, background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrollup:hover {
  background-color: var(--first-color);
  opacity: 1;
}

.scrollup:hover .scrollup__icon {
  color: #ffffff;
}

.scrollup__icon {
  font-size: 1.25rem;
  color: var(--first-color);
  transition: color 0.3s ease;
}

.show-scroll {
  bottom: 5rem;
}

.footer {
  background-color: var(--first-color);
}

.footer__container {
  padding: 3rem 0 7rem;
}

.footer__title,
.footer__link {
  color: #ffffff;
}

.footer__title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: var(--h1-font-size);
}

.footer__list {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer__link {
  transition: opacity 0.3s ease;
}

.footer__link:hover {
  opacity: 0.8;
}

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}

.footer__social-link {
  background-color: #ffffff;
  color: var(--first-color);
  padding: 0.4rem;
  border-radius: 0.35rem;
  font-size: 1.1rem;
  display: inline-flex;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.footer__social-link:hover {
  background-color: var(--body-color);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer__copy {
  display: block;
  margin-top: 4.5rem;
  color: hsla(0, 0%, 100%, 0.7);
  text-align: center;
  font-size: var(--smaller-font-size);
}

::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--second-hue), 8%, 38%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(var(--second-hue), 8%, 26%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--second-hue), 8%, 20%);
}

/*=============== REFINED PROFILE SLIDER REPAIRS ===============*/
/* Allows the Gantt chart card container to resize height naturally with its active text slides */
.gantt-swiper {
  position: relative;
  width: 100%;
  overflow: hidden !important;
}

.gantt-swiper .swiper-wrapper {
  height: auto !important;
}

.gantt-swiper .swiper-slide {
  height: auto !important;
  display: flex;
  flex-direction: column;
}

.gantt-swiper .swiper-slide-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 0.5rem;
}


.swiper-slide-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Restricts your text layout fields inside the slider structure to standard margins */
.swiper-slide-content .work__tags {
  margin-top: 0.85rem;
  margin-bottom: 0.6rem;
}

.swiper-slide-content .work__title {
  margin-bottom: 0.25rem;
}

/* Budget layouts keep fixed heights with thumbnail bars layered perfectly over the image container */
.budget-swiper {
  position: relative;
  width: 100%;
  height: 180px !important;
  overflow: hidden !important;
  margin-bottom: 0.85rem;
}

.budget-swiper .swiper-wrapper {
  height: 180px !important;
}

.budget-swiper .budget-thumbnails.swiper-pagination-bullets {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 1rem);
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  z-index: 10;
}

.budget-swiper .budget-thumbnails .swiper-pagination-bullet {
  width: 32px;
  height: 20px;
  border-radius: 0.15rem;
  background-color: var(--body-color);
  border: 1px solid var(--card-border);
  opacity: 0.6;
  transition: all 0.3s ease;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  margin: 0 !important;
}

.budget-swiper .budget-thumbnails .swiper-pagination-bullet-active {
  opacity: 1;
  border-color: var(--first-color);
}

/*=============== GLOBAL LIGHTBOX OVERLAY SYSTEM ===============*/
.lightbox__modal {
  display: none;
  position: fixed;
  z-index: 100000;
  /* Sits completely above navigation bars and modal sheets */
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Enlarged display target formatting */
.lightbox__content {
  margin: auto;
  display: block;
  max-width: 85%;
  max-height: 80vh;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

/* Close action icon interface */
.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lightbox__close:hover {
  color: var(--first-color);
  transform: scale(1.1);
}

/* Visibility display triggers managed via click event binders */
.lightbox-active {
  display: grid !important;
  opacity: 1;
}

.lightbox-active .lightbox__content {
  transform: scale(1);
}

/* Style update to show the user that images inside the swipers can be clicked */
.project__swiper .work__img {
  cursor: zoom-in;
}

/*=============== CASE STUDY EXTENSIONS ===============*/
.case-study__container {
  row-gap: 2rem;
}

.case-study__card {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.case-study__card:hover {
  transform: translateY(-3px);
}

.case-study__card--alert {
  border-left: 4px solid hsl(var(--first-hue), var(--sat), var(--lig));
}

.case-study__card--success {
  border-left: 4px solid hsl(142, 70%, 45%);
}

.case-study__card-title {
  font-size: var(--normal-font-size);
  color: var(--title-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.case-study__icon {
  color: var(--first-color);
  font-size: 1.25rem;
}

.case-study__text {
  font-size: var(--small-font-size);
  line-height: 1.6;
  color: var(--text-color);
}

.case-study__list {
  display: grid;
  row-gap: 0.75rem;
}

.case-study__item {
  font-size: var(--small-font-size);
  line-height: 1.5;
  color: var(--text-color);
  position: relative;
  padding-left: 1.25rem;
}

.case-study__item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--first-color);
  font-weight: bold;
}

.case-study__tags {
  margin-top: 1rem;
  justify-content: center;
}

/*=============== MODERN BENTO GRID SYSTEM ===============*/
.bento__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 100%;
  /* Single column stacks safely on mobile viewports */
}

.bento__item {
  background-color: var(--container-color);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.bento__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px hsla(var(--second-hue), 48%, 8%, 0.12);
}

/* Accent Variant Borders */
.bento__item--alert {
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.3);
  background: linear-gradient(180deg, var(--container-color) 0%, hsla(var(--first-hue), var(--sat), var(--lig), 0.02) 100%);
}

.bento__item--success {
  border: 1px solid rgba(142, 70, 45, 0.25);
  background: linear-gradient(180deg, var(--container-color) 0%, rgba(142, 70, 45, 0.02) 100%);
}

/* Micro Elements Inside Bento */
.bento__badge {
  align-self: flex-start;
  font-size: var(--tiny-font-size);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  background-color: hsla(var(--second-hue), 32%, 20%, 0.4);
  color: var(--text-color-light);
  font-weight: var(--font-medium);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bento__badge--alert {
  color: var(--first-color);
  background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.1);
}

.bento__badge--success {
  color: hsl(142, 70%, 45%);
  background-color: rgba(142, 70, 45, 0.1);
}

.bento__title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: 0.85rem;
}

.bento__text {
  font-size: var(--small-font-size);
  line-height: 1.6;
  color: var(--text-color);
}

/* Internal Row Sub-Grids */
.bento__subgrid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 100%;
  margin-top: 1rem;
}

.bento__subgrid-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 1.25rem;
  border-radius: 0.85rem;
}

.bento__subgrid-card h4 {
  font-size: var(--normal-font-size);
  margin-bottom: 0.35rem;
  color: var(--first-color);
}

.bento__subgrid-card p {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
  line-height: 1.4;
}

/* Stat Highlights */
.bento__metric-group {
  display: flex;
  gap: 2rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.bento__metric {
  display: flex;
  flex-direction: column;
}

.bento__metric-num {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  color: var(--title-color);
  line-height: 1;
}

.bento__metric-lbl {
  font-size: var(--tiny-font-size);
  color: var(--text-color-light);
  margin-top: 0.35rem;
}

.bento__tags {
  margin-top: auto;
  padding-top: 1.5rem;
}

.html.sr .bento__item {
  visibility: hidden;
}

/*=============== PROJECT CARD INTERACTIONS ===============*/
.work__interactions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--card-border);
}


.work__image-preview,
.work__embed-wrapper {
  width: 100%;
  height: 100%;
}

.work__image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work__embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.work__links-row {
  display: flex;
  align-items: center;
  column-gap: 1.25rem;
  margin: 1rem 0;
}

.work__demo-toggle-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: var(--small-font-size);
  font-weight: 500;
  color: var(--first-color);
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  font-family: inherit;
  transition: 0.3s;
}

.work__demo-toggle-btn:hover {
  letter-spacing: 0.3px;
  opacity: 0.8;
}

.work__video-link {
  font-size: var(--small-font-size);
  font-weight: 500;
  color: var(--title-color);
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  transition: 0.3s;
}

.work__video-link:hover {
  color: var(--first-color);
  text-decoration: underline;
}

.portfolio__modal {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(15, 23, 42, 0.75);
  /* Clean sleek shadow overlay mask background */
  backdrop-filter: blur(8px);
  /* Modern blur backdrop rendering filters */
  z-index: 999999 !important;
  /* Forces total hierarchy separation over all cards and navigation panels */
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.portfolio__modal.active-modal {
  display: flex !important;
}

/* Master Canvas Whiteboard Panel Box */
.modal__content-wrapper {
  background-color: var(--body-color, #ffffff);
  width: 100%;
  max-width: 1200px;
  height: 85vh;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Header Sections alignment rules */
.portfolio__modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--container-color, #ffffff);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.portfolio__modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--title-color);
  margin: 0;
}

.portfolio__modal-subtitle {
  font-size: 0.75rem;
  color: #2e7d32;
  display: block;
}

.modal__close-trigger {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-color);
  line-height: 1;
  transition: 0.2s;
}

.modal__close-trigger:hover {
  color: #d32f2f;
}

/* Internal Frame Bodies Layout configurations */
.portfolio__modal-body {
  flex: 1;
  position: relative;
  background-color: #f8f9fa;
  width: 100%;
  height: 100%;
}

.portfolio__modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Loading States styling blocks */
.modal-loader-engine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--body-color, #ffffff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 10;
}

.model__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(46, 125, 50, 0.1);
  border-top-color: #2e7d32;
  border-radius: 50%;
  animation: spinAround 0.8s linear infinite;
}

@keyframes spinAround {
  to {
    transform: rotate(360deg);
  }
}

.modal-loader-engine p {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

@media screen and (max-width: 576px) {
  .excel__modal {
    padding: 0.5rem;
  }

  .excel__modal-content {
    height: 90vh;
  }
}


.interaction__btn {
  display: inline-flex;
  align-items: center;
  column-gap: 0.35rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: color 0.3s ease, transform 0.2s ease;
}

.interaction__btn:hover {
  color: var(--first-color);
}

.interaction__icon {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.interaction__btn:active .interaction__icon {
  transform: scale(1.25);
}

/* Liked State Class managed by JS logic */
.interaction__btn.is-liked {
  color: hsl(0, 88%, 56%);
  /* Red accent highlight matching your color-red rules */
}

.interaction__btn.is-liked .interaction__icon {
  font-weight: bold;
  /* Toggles boxicon outline to solid filled layout */
}

/* =============== INTENT TRACKER FUNNEL OVERLAY =============== */
.intent__content-card {
  max-width: 500px !important;
  height: auto !important;
  padding-bottom: 1.5rem;
}

.intent__body {
  padding: 1.5rem !important;
  background-color: var(--container-color) !important;
}

.intent__options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.intent__opt-btn {
  width: 100%;
  justify-content: flex-start !important;
  gap: 0.75rem;
  font-size: var(--small-font-size);
  padding: 0.85rem 1.25rem;
}

.intent__opt-btn i {
  font-size: 1.25rem;
}

/* =============== MOVING ENGINEERING BLUEPRINT & NETWORK LAYER =============== */
#engineering-network-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.4s ease;
}

body.light-theme #engineering-network-bg {
  opacity: 0.55;
}

/* =============== INTENT FUNNEL VISUAL SHAKE ANIMATION =============== */
.shake-lockdown {
  animation: intentShake 0.4s ease-in-out;
}

@keyframes intentShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-8px);
  }

  40%,
  80% {
    transform: translateX(8px);
  }
}

/* Locks the frame viewport to a standard high-resolution 16:9 dashboard canvas aspect ratio */
.portfolio__modal-body:has(iframe[src*="tableau"]) {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
  /* Sleek dark theme backdrop mask matching your dashboard palette */
  padding: 1rem;
}

.portfolio__modal-body iframe[src*="tableau"] {
  width: 100% !important;
  max-width: 1100px !important;
  /* Prevents extreme wide monitor layout distortion */
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  /* Locks structural background elements perfectly in place */
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
  .portfolio__modal-body iframe[src*="tableau"] {
    aspect-ratio: 4 / 3 !important;
    /* Adapts structure cleanly for medium tablet form factors */
  }
}

/* ==================== FRAME CONTENT OVERFLOW LOCK ==================== */
/* Ensures canvas frames scale gracefully without hiding inner data cards */
.portfolio__modal-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  /* Smooth inertia scrolling for mobile devices */
}

/* Forces Tableau layout frame rendering to yield space naturally */
.portfolio__modal-body iframe {
  max-height: 85vh !important;
}

/* =============== EXECUTIVE HERO ROLE MATRIX =============== */
.home__roles-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
  margin-bottom: 2.25rem;
}

/* Primary High-Contrast Glass Pill */
.home__primary-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  border-radius: 2rem;
  background: hsla(var(--first-hue), var(--sat), var(--lig), 0.12);
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.35);
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semibold);
  letter-spacing: 0.4px;
  backdrop-filter: blur(8px);
}

.role-divider {
  color: var(--first-color);
  font-weight: bold;
}

/* Live Telemetry Pulse Dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--first-color);
  box-shadow: 0 0 8px var(--first-color);
  animation: rolePulse 2s infinite ease-in-out;
}

@keyframes rolePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.45);
    opacity: 0.5;
  }
}

/* Secondary Micro-Badges Grid */
.home__secondary-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: 540px;
}

.role-chip {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
  background-color: var(--container-color);
  border: 1px solid var(--card-border);
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.role-chip small {
  color: var(--first-color);
  font-weight: var(--font-semibold);
}

.role-chip:hover {
  transform: translateY(-2px);
  border-color: var(--first-color);
  color: var(--title-color);
}

/* =============== LIVE TYPING CURSOR & PILL STABILITY =============== */
.home__primary-badge {
  min-width: 210px;
  justify-content: center;
}

.typed-text {
  color: var(--title-color);
  font-weight: var(--font-semibold);
}

.typed-cursor {
  color: var(--first-color);
  font-weight: var(--font-bold);
  animation: cursorBlink 0.8s infinite;
  margin-left: -2px;
}

@keyframes cursorBlink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* =============== PERSISTENT MODAL FALLBACK BAR =============== */
.modal-fallback-bar {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  background-color: var(--container-color);
  border: 1px solid var(--card-border);
  padding: 0.45rem 0.9rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--smaller-font-size);
  color: var(--text-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  animation: revealFallback 0.4s ease forwards 2.5s;
  /* Appears smoothly after 2.5 seconds */
}

@keyframes revealFallback {
  to {
    opacity: 1;
    pointer-events: auto;
  }
}

@media screen and (max-width: 576px) {
  .modal-fallback-bar {
    left: 0.75rem;
    right: 0.75rem;
    justify-content: center;
    text-align: center;
  }
}

/* =============== CERTIFICATION CARD SPACING FIX =============== */
.work__card:has(#verify-text) .work__img {
  aspect-ratio: auto !important;
  height: auto !important;
  max-height: 190px;
  object-fit: contain;
  margin-bottom: 0.65rem;
}

/* =============== MODERN SHARE TOAST NOTIFICATION =============== */
.share-toast {
  position: fixed;
  bottom: 5.5rem; /* Sits cleanly above your floating mobile bottom navbar */
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--container-color);
  color: var(--title-color);
  border: 1px solid var(--first-color);
  padding: 0.65rem 1.25rem;
  border-radius: 2rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-toast.show-toast {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.share-toast i {
  color: var(--first-color);
  font-size: 1.15rem;
}

/* =============== DEEP-LINK PROJECT SPOTLIGHT HIGHLIGHT =============== */
@keyframes cardSpotlightPulse {
  0% {
    box-shadow: 0 0 0 0 hsla(var(--first-hue), var(--sat), var(--lig), 0.7);
    border-color: var(--first-color);
  }
  50% {
    box-shadow: 0 0 24px 6px hsla(var(--first-hue), var(--sat), var(--lig), 0.45);
    border-color: var(--first-color);
  }
  100% {
    box-shadow: none;
    border-color: var(--card-border);
  }
}

.work__card.deep-link-highlight {
  animation: cardSpotlightPulse 2.4s ease-out forwards;
}

/*=============== BREAKPOINTS ===============*/
@media screen and (min-width: 576px) {
  .about__info {
    grid-template-columns: repeat(3, 140px);
    justify-content: center;
  }

  .about__description {
    padding: 0 4rem;
  }

  .services__container {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .work__card {
    max-width: calc(50% - 0.75rem);
  }

  .contact__inputs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 768px) {
  .contact__container {
    grid-template-columns: 300px 1fr;
    justify-content: center;
    column-gap: 3rem;
  }

  .contact__info {
    align-content: start;
  }
}

@media screen and (min-width: 992px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 6.5rem 0 2rem;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 4rem;
  }

  .about__img {
    width: 350px;
  }

  .about__data {
    text-align: left;
  }

  .about__info {
    justify-content: start;
  }

  .about__description {
    padding: 0 2rem 0 0;
  }

  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
  }

  .services__container {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }

  .services__card {
    padding: 4rem 1.5rem 2rem;
  }

  /* FIX: Clean 3 Column split layout on wide desktop displays for MixItUp */
  .work__card {
    max-width: calc(33.333% - 1rem);
  }

  .testimonial__container {
    width: 100%;
    max-width: 750px;
  }

  /* Testimonial Header Alignment */
  .testimonial__header {
    display: flex;
    align-items: center;
    column-gap: 1rem;
    margin-bottom: 0.75rem;
  }

  .testimonial__role {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    display: block;
  }

  /* Project Badge Styling */
  .testimonial__project-badge {
    display: inline-block;
    background-color: var(--container-color);
    /* or a subtle accent color */
    border: 1px solid var(--text-color-light);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: var(--smaller-font-size);
    font-weight: 500;
    margin-bottom: 0.75rem;
  }

  /* Senior Impact Metric Block */
  .testimonial__metric {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--text-color-light);
    font-size: var(--small-font-size);
    display: flex;
    align-items: center;
    column-gap: 0.25rem;
    color: var(--title-color);
  }

  .show-scroll {
    bottom: 3rem;
  }

  .contact__container {
    column-gap: 5rem;
    max-width: 900px;
    margin: 0 auto;
  }

  .contact__form {
    width: 100%;
    max-width: 550px;
    margin: 0;
  }

  .case-study__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: start;
  }

  .bento__grid {
    grid-template-columns: repeat(3, 1fr);
    /* 3 column baseline puzzle layout grid */
  }

  .bento__item--large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .bento__item--span {
    grid-column: span 3;
    /* Spans across the full horizontal viewport breakpoint width */
  }

  .bento__item--success {
    grid-column: span 1;
  }

  .bento__subgrid {
    grid-template-columns: repeat(3, 1fr);
    /* Splits structural elements evenly into 3 columns */
  }
}

@media screen and (max-width: 575px) {
  .work__card {
    max-width: 100%;
  }
}

@media screen and (min-width: 600px) and (max-width: 991px) {
  .bento__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}