/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 
         Change favorite color:

         Default (Purple): hsl(255, 60%, 64%)
         Blue: hsl(220, 60%, 64%) - Pink: hsl(300, 60%, 64%)
         Green: hsl(110, 60%, 64%) - Cyan: hsl(180, 60%, 64%)
         Orange: hsl(15, 60%, 64%) - Red: hsl(358, 60%, 64%)

         For more colors visit: https://htmlcolorcodes.com/
         -> Choose any color 
         -> Copy the color mode (HSL)
  */
  --hue: 255;
  --first-color: hsl(var(--hue), 60%, 64%);
  --first-color-alt: hsl(var(--hue), 80%, 56%);
  --first-color-alt-2: hsl(var(--hue), 60%, 56%);
  --first-color-light: hsl(var(--hue), 60%, 74%);
  --title-color: hsl(240, 8%, 95%);
  --text-color: hsl(240, 8%, 70%);
  --text-color-light: hsl(240, 8%, 50%);
  --body-color: hsl(240, 100%, 2%);
  --container-color: hsl(240, 8%, 6%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-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;

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

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

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 3rem;
    --bigger-font-size: 2rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

button {
  outline: none;
  border: none;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

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

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

.section {
  padding-block: 2rem 1rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 3rem;
}

.section__title span {
  color: var(--first-color);
}

.main {
  overflow: hidden;
}

/* Blob */
/* Blob animate */
.blob-animate {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    180deg,
    var(--first-color-alt) 20%,
    var(--first-color-light) 100%
  );
  border-radius: 50%;
  position: absolute;
  filter: blur(35px);
  z-index: -1;
  animation: animateBlob 5s linear infinite;
}

@keyframes animateBlob {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Blob */
.blob {
  width: 250px;
  height: 250px;
  background: linear-gradient(
    180deg,
    var(--first-color) 0%,
    var(--first-color-alt) 100%
  );
  border-radius: 50%;
  filter: blur(50px);
  position: absolute;
  z-index: -1;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  left: -100px;
  top: -100px;
  z-index: 9999;
  width: 45px;
  height: 45px;
  background-color: var(--first-color-light);
  border-radius: 50%;
  box-shadow: 0 0 25px var(--first-color);
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    width 0.25s,
    height 0.25s;
}

/* Hide cursor completely on touch/mobile devices */
@media (hover: none), (pointer: coarse), screen and (max-width: 1024px) {
  .cursor {
    display: none !important;
  }
}

/* Hide the custom cursor */
.hide-cursor {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

/* Header Section And Nav */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(
    180deg,
    var(--body-color) 60%,
    hsla(240, 100%, 2%, 0) 100%
  );
  z-index: var(--z-fixed);
}

.header .blob-animate {
  top: -3rem;
  left: -3rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  padding-block: 1rem;
}

.nav__logo {
  font-size: var(--second-font);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  align-self: flex-start;
  transition: color 0.4s;
}

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

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  row-gap: 0.5rem;
}

.nav__link {
  color: var(--title-color);
  font: var(--font-semi-bold) var(--small-font-size) var(--second-font);
  transition:
    color 0.4s,
    text-shadow 0.4s;
}
.nav__link:hover {
  color: var(--first-color);
  text-shadow: 0 8px 16px var(--first-color);
}

/* Active link */
.active-link {
  color: var(--first-color);
  text-shadow: 0 8px 16px var(--first-color);
}

/* Home (Mobile-First Natural Flow) */
.home {
  position: relative;
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 3.5rem;
  overflow: hidden;
}

.home__container {
  position: relative;
  row-gap: 1.5rem;
  text-align: center;
}

.home__data {
  text-align: center;
  margin-bottom: 0.5rem;
}

.home__greeting {
  font-size: var(--h3-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}

.home__name {
  font-size: 2.15rem;
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
  color: var(--title-color);
}

.home__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 1rem auto 2rem;
  width: 100%;
  max-width: 320px;
  height: 360px;
}

.home__profile {
  width: auto;
  max-width: 300px;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
}

.home__image .blob-animate {
  width: 260px;
  height: 260px;
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(45px);
  z-index: -1;
}

.home__shadow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(
    180deg,
    hsla(240, 100%, 2%, 0) 0%,
    hsl(240, 100%, 2%) 95%
  );
  z-index: 2;
  pointer-events: none;
}

.home__info {
  position: relative;
  z-index: 2;
  text-align: left;
  margin-top: 1.25rem;
  padding-inline: 1rem;
  max-width: 560px;
  margin-inline: auto;
}

.home__profession-1 {
  font-size: 1.15rem;
  color: var(--first-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  line-height: 1.3;
  text-align: left;
}

.home__profession-2 {
  font-size: 1.75rem;
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  line-height: 1.15;
  margin-top: 0.2rem;
  text-align: left;
}

.home__description {
  font-size: var(--small-font-size);
  line-height: 1.6;
  color: var(--text-color);
  margin-top: 0.85rem;
  max-width: 520px;
  margin-inline: 0;
  text-align: left;
}

.home__description b {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.home__br {
  display: none;
}

.home__social {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  column-gap: 1.35rem;
  margin-top: 1.25rem;
}

.home__social-link {
  color: var(--title-color);
  font-size: 1.35rem;
  transition:
    transform 0.3s,
    color 0.3s;
}

.home__social-link:hover {
  color: var(--first-color);
  transform: translateY(-2px);
}

.home__cv {
  position: relative;
  z-index: 2;
  margin: 1rem auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  background-color: hsla(var(--hue), 60%, 64%, 0.15);
  border: 1px solid var(--first-color);
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  transition: background-color 0.3s, box-shadow 0.3s;
}

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

.home__cv:hover {
  background-color: var(--first-color);
  color: #fff;
  box-shadow: 0 4px 20px hsla(var(--hue), 60%, 64%, 0.4);
}

/* Buttons */
.button {
  background-color: var(--body-color);
  border: 3px solid var(--first-color);
  color: var(--title-color);
  padding: 1rem 2rem;
  box-shadow:
    0 8px 32px hsla(var(--hue), 60%, 64%, 0.5),
    inset 8px -8px 30px var(--first-color-alt-2);
  border-radius: 4rem;
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: box-shadow 0.4s;
}

.button i {
  font-weight: initial;
  font-size: 1rem;
}

.button:hover {
  box-shadow:
    0 8px 48px hsla(var(--hue), 60%, 64%, 0.7),
    inset 8px -8px 30px var(--first-color-alt-2);
}

/* About Section */
.about {
  position: relative;
}

.about__container {
  row-gap: 3rem;
  overflow-y: clip;
}

.about__data .section__title {
  margin-bottom: 1.5rem;
  text-align: initial;
}

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

.about__description b {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

.about__image {
  position: relative;
  justify-self: center;
}

.about__image .blob-animate:nth-child(1) {
  top: 1.5rem;
  left: 1rem;
}

.about__image .blob-animate:nth-child(2) {
  right: -0.5rem;
  bottom: 0.5rem;
}

.about__profile {
  width: 220px;
}

.about__shadow {
  width: 100%;
  height: 258px;
  position: absolute;
  bottom: 1rem;
  z-index: 1;
  background: linear-gradient(
    180deg,
    hsla(240, 100%, 2%, 0) 60%,
    var(--body-color) 95%
  );
}

/* Projects Section */
.projects .section__title {
  text-align: initial;
  margin-left: 1.5rem;
}

.projects__card {
  position: relative;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 3rem;
  overflow: hidden;
}

.projects__card .blob {
  z-index: 0;
  right: -7.75rem;
  bottom: 0;
}

.projects__number,
.projects__data,
.projects__image {
  position: relative;
  z-index: 1;
}

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

.projects__number h1 {
  font-size: var(--biggest-font-size);
}

.projects__number h3 {
  font-weight: var(--font-regular);
  font-size: var(--h3-font-size);
}

.projects__data {
  margin-block: 2rem;
}

.projects__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
}

.projects__subtitle {
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  margin-bottom: 0.5rem;
}

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

.projects__img {
  border-radius: 1.5rem;
}

.projects__button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background-color: var(--body-color);
  border: 3px solid var(--first-color);
  border-radius: 50%;
  color: var(--title-color);
  font-size: 2rem;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition:
    box-shadow 0.4s,
    opacity 0.4s;
}

.projects__button:hover {
  box-shadow: 0 0 24px var(--first-color);
}

.projects__image:hover .projects__button {
  opacity: 1;
  pointer-events: initial;
}

/* Swiper class */
.projects__swiper {
  margin-inline: initial;
  padding: 2rem;
}

.projects .swiper-pagination-bullets {
  bottom: 0;
}

.projects .swiper-pagination-bullet {
  background-color: var(--first-color);
  transition: opacity 0.4s;
}

/* Work */
.work__tabs {
  background-color: var(--container-color);
  padding: 1.25rem 2rem;
  border-radius: 4rem;
  display: flex;
  justify-content: space-between;
}

.work__button {
  background: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  font-size: var(--small-font-size);
  font-family: var(--second-font);
  cursor: pointer;
  transition: color 0.4s;
}

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

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

.work__area {
  position: relative;
  padding-left: 1rem;
}

.work__content {
  display: grid;
  row-gap: 4rem;
}

.work__card {
  display: grid;
  row-gap: 1rem;
}

.work__data {
  display: flex;
  justify-content: space-between;
}

.work__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

.work__subtitle {
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}

.work__year {
  font-size: var(--h1-font-size);
}

.work__line {
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    hsla(var(--hue), 60%, 64%, 0),
    var(--first-color-alt-2)
  );
  position: absolute;
  left: -0.25rem;
}

.work__line::after {
  content: "";
  width: 16px;
  height: 16px;
  background-color: var(--first-color-alt-2);
  border-radius: 50%;
  position: absolute;
  bottom: -1px;
  left: -6px;
}

/* Show & hide sections */
.work__area [data-content] {
  display: none;
}

.work-active[data-content] {
  display: grid;
}

/* Active tab */
.work__button.work-active {
  color: var(--first-color);
}

/* Services */
.services__container {
  row-gap: 2rem;
}

.services__card {
  position: relative;
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 3rem;
  display: grid;
  row-gap: 1.5rem;
  overflow: hidden;
}

.services__card .blob {
  z-index: 0;
  top: -7.75rem;
  left: -7.75rem;
}

.services__card .blob-2 {
  left: initial;
  right: -7.75rem;
}

.services__data,
.services__info {
  position: relative;
  z-index: 1;
}

.services__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

.services__subtitle {
  font-size: var(--small-font-size);
  font-weight: var(--font-regular);
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.services__skills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.25rem;
}

.services__skill {
  background-color: var(--container-color);
  color: var(--title-color);
  border: 1px solid var(--title-color);
  padding: 4px 10px;
  border-radius: 4rem;
  font-size: var(--smaller-font-size);
  font-family: var(--second-font);
}

.services__button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background-color: var(--body-color);
  border: 2px solid var(--first-color);
  color: var(--title-color);
  border-radius: 0.5rem;
  font-size: 1.5rem;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  cursor: pointer;
}

.services__button i {
  transition: rotate 0.4s;
}

/* Hide services info */
.services__close .services__info {
  height: 0;
  opacity: 0;
  overflow: hidden;
}

/* Rotate icon */
.services__open .services__button i {
  rotate: -180deg;
}

.services__info {
  transition:
    height 0.4s ease,
    opacity 0.4s ease;
}

/* Testimonials */
.testimonials .section__title {
  text-align: initial;
  margin-left: 1.5rem;
}

.testimonials__container {
  position: relative;
  margin-inline: 0;
  overflow: hidden;
}

.testimonials__card {
  position: relative;
  width: 320px;
  background-color: var(--container-color);
  padding: 1.5rem 1rem 2.5rem;
  margin-inline: 1rem;
  border-radius: 3rem;
  text-align: center;
  overflow: hidden;
}

.testimonials__card .blob {
  z-index: 0;
  left: 0;
  right: 0;
  margin-inline: auto;
  bottom: -12.5rem;
}

.testimonials__data {
  position: relative;
  z-index: 1;
}

.testimonials__img {
  width: 60px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
}

.testimonials__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  margin-bottom: 1.5rem;
}

.testimonial__rating {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.testimonial__stars {
  display: flex;
  column-gap: 0.25rem;
}

.testimonial__stars i {
  font-size: 1rem;
  color: var(--title-color);
}

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

.testimonial__content {
  display: flex;
  width: max-content;
  animation: scroll 18s linear infinite;
}

.testimonials__reverse {
  flex-direction: row-reverse;
  animation-direction: reverse;
  animation-delay: -1s;
}

.testimonial__content:hover {
  animation-play-state: paused;
}

/* Infinite scroll animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Contact */
.contact__container {
  row-gap: 4rem;
  padding-bottom: 2rem;
}

.contact .section__title {
  margin-bottom: 1rem;
}
.contact__data {
  text-align: center;
}

.contact__description {
  font-family: var(--second-font);
  margin-bottom: 1.5rem;
}

.contact__email {
  display: none;
}

.contact__button {
  cursor: pointer;
}

.contact__content {
  row-gap: 3rem;
}

.contact__info {
  row-gap: 1rem;
}

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

.contact__address {
  color: var(--title-color);
  font-style: normal;
  font-weight: var(--font-regular);
  text-align: center;
}

.contact__links {
  display: grid;
  grid-template-columns: max-content;
  justify-content: center;
  row-gap: 0.25rem;
}

.contact__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 0.5rem;
  transition:
    transform 0.4s,
    color 0.4s;
}

.contact__link i {
  font-size: 1.5rem;
}

.contact__link:hover {
  transform: translateX(0.35rem);
  color: var(--text-color);
}

/* Footer */
.footer {
  position: relative;
  padding-block: 4rem 2rem;
  text-align: center;
  row-gap: 1rem;
  overflow: hidden;
}

.footer .blob-animate {
  right: -3rem;
  bottom: -3rem;
}

.footer__copy {
  color: var(--title-color);
}

.footer__copy span {
  color: var(--first-color);
}

.footer__year {
  font-family: var(--second-font);
}

/* Scroll Bar */
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(240, 6%, 12%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: hsl(240, 6%, 20%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(240, 6%, 24%);
}

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

  .blob,
  .home__image .blob-animate {
    width: 220px;
    height: 220px;
  }

  .projects__card {
    padding-inline: 1rem;
  }

  .work__tabs {
    padding-inline: 1rem;
  }

  .testimonials__card {
    width: 250px;
    padding-bottom: 2rem;
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .home__container {
    width: 460px;
    margin-inline: auto;
  }

  .about__container,
  .work__container,
  .services__container {
    grid-template-columns: 460px;
    justify-content: center;
  }

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

  :is(.projects, .testimonials) .section__title {
    text-align: center;
    margin-left: 0;
  }

  .projects__card {
    width: 350px;
  }

  .work__tabs {
    width: 330px;
    justify-self: center;
  }
}

@media screen and (min-width: 768px) {
  .work__container {
    grid-template-columns: 600px;
  }

  .work__area {
    padding-left: 0;
  }

  .work__card {
    grid-template-columns: repeat(2, 270px);
    justify-content: center;
    column-gap: 3rem;
  }

  .work__line {
    left: 0;
    right: 0;
    margin-inline: auto;
  }

  .services__container {
    grid-template-columns: repeat(2, 350px);
    align-items: flex-start;
  }
}

/* For laptops and desktop devices */
@media screen and (min-width: 960px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .section-top {
    padding-block: 0rem 0rem;
  }

  .section-two {
    margin-top: -3rem;
  }
  .section__title {
    margin-bottom: 4rem;
  }

  .blob {
    width: 300px;
    height: 300px;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    align-items: center;
  }

  .nav__logo {
    align-self: initial;
    font-size: 1.25rem;
    font-weight: 700;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 3.5rem;
    align-items: center;
    white-space: nowrap;
  }

  .nav__item-secondary {
    display: none;
  }

  .nav__link {
    font-size: var(--small-font-size);
    font-family: var(--second-font);
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
    letter-spacing: 0.5px;
    transition: color 0.4s, text-shadow 0.4s;
  }

  /* HOME SECTION - 3 COLUMN BALANCED HERO (HABIB REPLICA) */
  .home {
    height: 100vh;
    min-height: 580px;
    max-height: 960px;
    padding-top: var(--header-height);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
  }

  .home__container {
    max-width: 1240px;
    width: 100%;
    height: 100%;
    margin-inline: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-inline: 1.5rem;
  }

  .home__image {
    position: relative;
    width: min(520px, 40vw);
    max-width: none !important;
    height: 100%;
    max-height: none !important;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1;
    overflow: visible;
  }

  .home__profile {
    width: auto;
    max-width: 520px !important;
    height: 100%;
    max-height: 100% !important;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.75));
    display: block;
    margin: 0 auto;
  }

  .home__image .blob-animate {
    width: min(480px, 38vw);
    height: min(480px, 38vw);
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(65px);
    z-index: -1;
  }

  .home__shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(
      180deg,
      hsla(240, 100%, 2%, 0) 0%,
      hsl(240, 100%, 2%) 95%
    );
    z-index: 2;
    pointer-events: none;
  }

  .home__data {
    position: absolute;
    top: 40%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 330px;
    text-align: left;
  }

  .home__greeting {
    font-size: var(--h3-font-size);
    font-weight: var(--font-regular);
    color: var(--first-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
  }

  .home__name {
    font-size: clamp(2.4rem, 2.8vw, 3rem);
    font-family: var(--second-font);
    font-weight: var(--font-semi-bold);
    line-height: 1.15;
    color: var(--title-color);
  }

  .home__info {
    position: absolute;
    top: 38%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 380px;
    text-align: left;
  }

  .home__profession-1 {
    font-size: 1.55rem;
    font-family: var(--second-font);
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
    line-height: 1.25;
    position: relative;
    letter-spacing: 0.5px;
  }

  .home__profession-1::after {
    display: none !important;
  }

  .home__profession-2 {
    font-size: 2.35rem;
    font-family: var(--second-font);
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
    line-height: 1.15;
    transform: none;
    margin-top: 0.25rem;
  }

  .home__description {
    font-size: 0.925rem;
    line-height: 1.65;
    color: var(--text-color);
    margin-top: 1.15rem;
    max-width: 380px;
    margin-inline: 0;
    text-align: left;
  }

  .home__description b {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
  }

  .home__br {
    display: inline;
  }

  .home__social {
    position: absolute;
    left: 1rem;
    bottom: 2.5rem;
    z-index: 3;
    row-gap: 1.25rem;
    display: flex;
    flex-direction: column;
  }

  .home__social-link {
    font-size: 1.35rem;
  }

  .home__cv {
    position: absolute;
    right: 1rem;
    bottom: 2.5rem;
    z-index: 3;
    font-size: var(--normal-font-size);
    rotate: 0deg;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--text-color-light);
  }

  .about__container {
    grid-template-columns: repeat(2, 500px);
    align-items: center;
    column-gap: 5.5rem;
    padding-top: 2rem;
  }

  .about__data,
  .about__data .section__title {
    text-align: initial;
    z-index: 2;
  }

  .about__description {
    margin-bottom: 3rem;
  }

  .about__profile {
    width: 500px;
  }

  .about__image {
    order: -1;
  }

  .about__image .blob-animate {
    width: 200px;
    height: 200px;
    filter: blur(50px);
  }

  .about__image .blob-animate:nth-child(1) {
    left: 4rem;
    top: 4rem;
  }

  .about__image .blob-animate:nth-child(2) {
    right: -1rem;
    bottom: 3rem;
  }

  .about__shadow {
    height: 600px;
    bottom: 0;
  }

  .projects {
    padding-block: 9rem 4rem;
  }

  .projects__swiper {
    padding-bottom: 4rem;
  }

  .projects__container {
    max-width: 1380px;
  }

  .projects__card {
    width: 440px;
    padding: 2.5rem;
    border-radius: 4rem;
  }

  .projects__subtitle,
  .projects__description {
    font-size: var(--normal-font-size);
  }

  .projects__img {
    border-radius: 2rem;
  }

  .projects__button {
    top: 1.5rem;
    right: 1.5rem;
  }

  .work__container {
    grid-template-columns: 1050px;
    row-gap: 3rem;
  }

  .work__content {
    row-gap: 5rem;
  }

  .work__card {
    grid-template-columns: repeat(2, 450px);
    column-gap: 9rem;
  }

  .work__title {
    font-size: var(--bigger-font-size);
  }

  .work__subtitle,
  .work__desciption {
    font-size: var(--h3-font-size);
  }

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

  .services__card {
    padding: 3rem 3rem 4rem 3rem;
    border-radius: 4rem;
    row-gap: 2rem;
  }

  .services__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1rem;
  }

  .services__button {
    right: 2rem;
    bottom: 2rem;
  }

  .testimonials__container {
    row-gap: 3rem;
  }

  .testimonials__container::after,
  .testimonials__container::before {
    content: "";
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
  }

  .testimonials__container::after {
    left: 0;
    background: linear-gradient(
      90deg,
      hsl(0, 0%, 0%) 0%,
      hsla(0, 0%, 0%, 0) 100%
    );
  }

  .testimonials__container::before {
    right: 0;
    z-index: 1;
    background: linear-gradient(
      90deg,
      hsla(0, 0%, 0%, 0) 0%,
      hsl(0, 0%, 0%) 100%
    );
  }

  .testimonials__card {
    width: 370px;
    padding: 3rem 2rem;
    border-radius: 4rem;
  }

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

  .contact {
    padding-block: 9rem 4rem;
  }

  .contact__container {
    row-gap: 8rem;
  }

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

  .contact__content {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__info {
    row-gap: 1.5rem;
    justify-self: flex-start;
  }

  .contact__write {
    justify-self: flex-end;
  }

  .contact__title {
    margin-bottom: 0.75rem;
  }

  .contact__links {
    row-gap: 0.5rem;
  }

  .contact__link {
    font-size: 1.25rem;
  }
}

/* For 2K resolutions (2048 x 1152, 2048 x 1536) */
@media screen and (min-width: 2048px) {
  body {
    zoom: 1.4;
  }
}

/* Custom cursor is hidden for mobile devices */
@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ==========================================================================
   ENHANCED COMPONENTS: MOBILE NAV, MEDIA, CERTIFICATES, WALL OF FAME & MODAL
   ========================================================================== */

/* Mobile Nav Toggle & Close */
.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color 0.3s;
}

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

.nav__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

@media screen and (max-width: 1149px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 360px;
    height: 100vh;
    padding: 5rem 2rem 3rem;
    background-color: hsla(240, 10%, 4%, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid hsla(var(--hue), 60%, 64%, 0.2);
    box-shadow: -10px 0 40px hsla(0, 0%, 0%, 0.7);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 1.75rem;
  }

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

  .nav__mobile-actions {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid hsla(240, 8%, 20%, 0.6);
  }
}

@media screen and (min-width: 960px) {
  .nav__toggle,
  .nav__close,
  .nav__mobile-actions {
    display: none;
  }
}

/* Project Video Player */
.projects__video {
  width: 100%;
  border-radius: 1.5rem;
  aspect-ratio: 16/9;
  object-fit: cover;
  background-color: #030306;
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.25);
  display: block;
}

.projects__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.projects__tag {
  font-family: var(--second-font);
  font-size: 0.7rem;
  color: var(--first-color-light);
  background-color: hsla(var(--hue), 60%, 64%, 0.12);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.3);
  padding: 3px 9px;
  border-radius: 2rem;
}

.projects__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.projects__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--second-font);
  font-size: var(--smaller-font-size);
  color: var(--title-color);
  background-color: hsla(240, 8%, 10%, 0.9);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.35);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.projects__action-btn:hover {
  background-color: var(--first-color);
  color: #fff;
  box-shadow: 0 4px 20px hsla(var(--hue), 60%, 64%, 0.4);
}

/* Wall of Fame Ticker Enhancement */
.testimonials__card--fame {
  text-align: left;
  padding: 1.25rem;
  width: 320px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonials__card--fame:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px hsla(var(--hue), 60%, 64%, 0.25);
}

.fame__img-wrapper {
  position: relative;
  width: 100%;
  height: 190px;
  border-radius: 1.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.fame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.testimonials__card--fame:hover .fame__img {
  transform: scale(1.06);
}

.fame__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: hsla(240, 100%, 2%, 0.85);
  backdrop-filter: blur(8px);
  color: var(--first-color-light);
  border: 1px solid var(--first-color);
  font-family: var(--second-font);
  font-size: 0.7rem;
  font-weight: var(--font-semi-bold);
  padding: 3px 9px;
  border-radius: 2rem;
}

.fame__title {
  font-family: var(--second-font);
  font-size: var(--normal-font-size);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.fame__desc {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

/* Certificates Section */
.certs {
  position: relative;
}

.certs__controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.certs__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.certs__filter-btn {
  background: var(--container-color);
  color: var(--text-color);
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  padding: 0.65rem 1.25rem;
  border-radius: 3rem;
  border: 1px solid hsla(240, 8%, 20%, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.certs__filter-btn:hover {
  color: var(--first-color);
  border-color: var(--first-color);
}

.certs__filter-btn.active-filter {
  background-color: var(--first-color);
  color: #fff;
  border-color: var(--first-color);
  box-shadow: 0 4px 20px hsla(var(--hue), 60%, 64%, 0.4);
}

.certs__search-box {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.certs__search-box i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color-light);
  font-size: 1.1rem;
}

.certs__input {
  width: 100%;
  background-color: var(--container-color);
  border: 1px solid hsla(240, 8%, 20%, 0.8);
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  border-radius: 3rem;
  color: var(--title-color);
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.certs__input:focus {
  border-color: var(--first-color);
  box-shadow: 0 0 20px hsla(var(--hue), 60%, 64%, 0.25);
}

.certs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media screen and (min-width: 600px) {
  .certs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.cert__card {
  position: relative;
  background-color: var(--container-color);
  border-radius: 2rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid hsla(240, 8%, 18%, 0.6);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cert__card:hover {
  transform: translateY(-6px);
  border-color: hsla(var(--hue), 60%, 64%, 0.5);
  box-shadow: 0 12px 36px hsla(var(--hue), 60%, 64%, 0.18);
}

.cert__card .blob {
  z-index: 0;
  width: 180px;
  height: 180px;
  right: -5rem;
  bottom: -5rem;
  opacity: 0.5;
}

.cert__preview {
  position: relative;
  width: 100%;
  height: 170px;
  border-radius: 1.25rem;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 1rem;
  z-index: 1;
}

.cert__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cert__preview:hover .cert__img {
  transform: scale(1.05);
}

.cert__enlarge-hint {
  position: absolute;
  inset: 0;
  background: hsla(240, 100%, 2%, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #fff;
  font-family: var(--second-font);
  font-size: var(--smaller-font-size);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert__preview:hover .cert__enlarge-hint {
  opacity: 1;
}

.cert__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  z-index: 1;
}

.cert__badge {
  font-family: var(--second-font);
  font-size: 0.7rem;
  font-weight: var(--font-semi-bold);
  padding: 3px 8px;
  border-radius: 1rem;
  background: hsla(var(--hue), 60%, 64%, 0.15);
  color: var(--first-color-light);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.3);
}

.cert__year {
  font-family: var(--second-font);
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.cert__title {
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  color: var(--title-color);
  line-height: 1.4;
  margin-bottom: 0.35rem;
  z-index: 1;
}

.cert__issuer {
  font-size: var(--smaller-font-size);
  color: var(--first-color);
  margin-bottom: 0.75rem;
  z-index: 1;
}

.cert__desc {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
  line-height: 1.5;
  margin-top: auto;
  margin-bottom: 1rem;
  z-index: 1;
}

.cert__actions {
  display: flex;
  gap: 0.5rem;
  z-index: 1;
}

.cert__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--second-font);
  font-size: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 2rem;
  background: hsla(240, 8%, 12%, 0.9);
  color: var(--title-color);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cert__btn:hover {
  background: var(--first-color);
  color: #fff;
  box-shadow: 0 4px 16px hsla(var(--hue), 60%, 64%, 0.35);
}

.cert__btn--drive {
  background: hsla(var(--hue), 60%, 64%, 0.12);
  color: var(--first-color-light);
}

/* Lightbox Modal */
.modal {
  position: fixed;
  inset: 0;
  background: hsla(240, 100%, 2%, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal__content {
  position: relative;
  max-width: 820px;
  width: 100%;
  background: var(--container-color);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.4);
  border-radius: 2rem;
  padding: 1.5rem;
  box-shadow: 0 20px 60px hsla(0, 0%, 0%, 0.8);
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.75rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color 0.3s;
  z-index: 2;
}

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

.modal__img-box {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020204;
}

.modal__img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.modal__details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.modal__title {
  font-family: var(--second-font);
  font-size: var(--normal-font-size);
  color: var(--title-color);
}

.modal__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  color: var(--first-color-light);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--first-color);
  transition: all 0.3s;
}

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

/* ==========================================================================
   ENGINEERING PORTFOLIO ENHANCEMENTS — MANJIT CHAKRABORTY
   ========================================================================== */

/* 1. HERO CTA & ROLE BADGE */
.home__role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--second-font);
  font-size: 0.72rem;
  font-weight: var(--font-medium);
  color: var(--first-color-light);
  background: hsla(var(--hue), 60%, 64%, 0.12);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.4px;
}

.home__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

@media screen and (max-width: 1149px) {
  .home__cta {
    justify-content: flex-start;
  }
}

.button--ghost {
  background-color: transparent !important;
  border: 1.5px solid hsla(var(--hue), 60%, 64%, 0.45) !important;
  color: var(--title-color) !important;
  box-shadow: none !important;
}

.button--ghost:hover {
  background-color: hsla(var(--hue), 60%, 64%, 0.15) !important;
  border-color: var(--first-color) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px hsla(var(--hue), 60%, 64%, 0.3) !important;
}

.hero__btn-primary {
  padding: 0.75rem 1.6rem !important;
  font-size: 0.85rem !important;
  background-color: var(--first-color) !important;
  color: #fff !important;
  border: 2px solid var(--first-color) !important;
  box-shadow: 0 4px 25px hsla(var(--hue), 60%, 64%, 0.45) !important;
  border-radius: 2.5rem !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero__btn-primary:hover {
  background-color: var(--first-color-alt) !important;
  box-shadow: 0 6px 30px hsla(var(--hue), 60%, 64%, 0.65) !important;
  transform: translateY(-2px);
}

.hero__btn-secondary {
  padding: 0.75rem 1.4rem !important;
  font-size: 0.85rem !important;
  border-radius: 2.5rem !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero__btn-secondary:hover {
  transform: translateY(-2px);
}

/* Nav Resume Button in Header */
.nav__resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.15rem;
  font-family: var(--second-font);
  font-size: 0.78rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  background: hsla(var(--hue), 60%, 64%, 0.14);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.4);
  border-radius: 2rem;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.nav__resume-btn:hover {
  background: var(--first-color);
  color: #fff;
  box-shadow: 0 4px 18px hsla(var(--hue), 60%, 64%, 0.45);
}

/* 2. CASE STUDIES SHOWCASE */
.projects__controls {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.projects__filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  background: hsla(240, 8%, 6%, 0.8);
  padding: 0.5rem;
  border-radius: 3rem;
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.2);
}

.projects__filter-btn {
  background: transparent;
  color: var(--text-color);
  font-family: var(--second-font);
  font-size: 0.78rem;
  padding: 0.45rem 1.15rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.projects__filter-btn:hover {
  color: var(--title-color);
  background: hsla(var(--hue), 60%, 64%, 0.14);
}

.projects__filter-btn.active-project-filter {
  background: var(--first-color);
  color: #fff;
  box-shadow: 0 4px 16px hsla(var(--hue), 60%, 64%, 0.4);
}

/* Projects Case Studies Grid */
.projects__case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  max-width: 1180px;
  margin: 0 auto;
}

@media screen and (min-width: 900px) {
  .projects__case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Single Featured Project Card */
.single-project-card {
  position: relative;
  background-color: var(--container-color);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.3);
  border-radius: 2rem;
  padding: 2.25rem;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 20px 50px hsla(0, 0%, 0%, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.single-project-title {
  font-family: var(--second-font);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--title-color);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.single-project-video-wrapper {
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.25);
  background: #020204;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.single-project-video-wrapper video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.single-project-tools-label {
  font-family: var(--second-font);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--first-color-light);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.single-project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.single-project-tools .projects__tag {
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
}

.case-card {
  position: relative;
  background: hsl(240, 8%, 6%);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.22);
  border-radius: 2rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: hsla(var(--hue), 60%, 64%, 0.55);
  box-shadow: 0 16px 40px -15px hsla(var(--hue), 60%, 64%, 0.25);
}

.case-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.case-card__index {
  font-family: var(--second-font);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--first-color);
}

.case-card__badge {
  font-family: var(--second-font);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--first-color-light);
  background: hsla(var(--hue), 60%, 64%, 0.12);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 1rem;
}

.case-card__status {
  font-family: var(--second-font);
  font-size: 0.7rem;
  color: var(--text-color-light);
}

.case-card__title {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--title-color);
}

.case-card__problem {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 1.25rem;
  background: hsla(240, 10%, 4%, 0.65);
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--first-color);
  border-radius: 0 0.5rem 0.5rem 0;
}

.case-card__problem-label {
  font-family: var(--second-font);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--first-color-light);
  margin-bottom: 0.25rem;
  display: block;
}

/* Micro-spec grid within case card */
.case-card__specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: hsla(240, 8%, 4%, 0.85);
  border: 1px solid hsla(240, 8%, 15%, 0.7);
  border-radius: 1rem;
  padding: 1rem;
}

@media screen and (min-width: 500px) {
  .case-card__specs {
    grid-template-columns: 1fr 1fr;
  }
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-item__label {
  font-family: var(--second-font);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--first-color-light);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.spec-item__val {
  font-size: 0.78rem;
  color: var(--title-color);
  line-height: 1.4;
}

/* 3. INTERACTIVE OSCILLOSCOPE SIMULATOR WIDGET */
.oscilloscope-box {
  background: #05080f;
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.35);
  border-radius: 1.25rem;
  padding: 1rem;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.osc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.osc-title {
  font-family: var(--second-font);
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.osc-wave-buttons {
  display: flex;
  gap: 0.35rem;
}

.btn-osc-wave {
  background: hsla(210, 40%, 15%, 0.7);
  color: #94a3b8;
  border: 1px solid #1e293b;
  padding: 0.2rem 0.65rem;
  border-radius: 0.5rem;
  font-family: var(--second-font);
  font-size: 0.68rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-osc-wave:hover {
  color: #f1f5f9;
  border-color: #38bdf8;
}

.btn-osc-wave.active {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

#oscilloscopeCanvas {
  display: block;
  width: 100%;
  height: 120px;
  border-radius: 0.75rem;
  background: #03060a;
}

/* 4. FLIGHT TELEMETRY HUD WIDGET */
.telemetry-hud-box {
  background: #040711;
  border: 1px solid hsla(190, 90%, 50%, 0.35);
  border-radius: 1.25rem;
  padding: 1rem;
  position: relative;
  font-family: monospace;
  color: #38bdf8;
  font-size: 0.74rem;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 30px rgba(56, 189, 248, 0.08);
}

.hud-top-data, .hud-bottom-status {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hud-center-crosshair {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.hud-crosshair-svg {
  animation: hudRotate 16s linear infinite;
}

@keyframes hudRotate {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}

/* 5. VERILOG HDL CODE PREVIEW */
.verilog-preview-box {
  background: #05070d;
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.3);
  border-radius: 1.25rem;
  padding: 1.15rem;
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.vlsi-kw { color: #f43f5e; font-weight: bold; }
.vlsi-mod { color: #38bdf8; font-weight: bold; }
.vlsi-port { color: #34d399; }
.vlsi-com { color: #64748b; font-style: italic; }
.vlsi-slack { color: #22c55e; margin-top: 0.5rem; font-weight: 600; }

/* 6. TECHNICAL SKILLS SECTION MATRIX */
.skills {
  position: relative;
}

.skills__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1150px) {
  .skills__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.skill-domain-card {
  background: hsl(240, 8%, 6%);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.2);
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.skill-domain-card:hover {
  transform: translateY(-3px);
  border-color: hsla(var(--hue), 60%, 64%, 0.5);
  box-shadow: 0 10px 30px -10px hsla(var(--hue), 60%, 64%, 0.2);
}

.skill-domain__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.skill-domain__icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background: hsla(var(--hue), 60%, 64%, 0.15);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--first-color-light);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.skill-domain__title {
  font-size: 0.95rem;
  color: var(--title-color);
  line-height: 1.25;
}

.skill-domain__desc {
  font-size: 0.78rem;
  color: var(--text-color-light);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.skill-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--second-font);
  font-size: 0.68rem;
  color: var(--title-color);
  background: hsla(240, 10%, 10%, 0.9);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 1rem;
  transition: all 0.2s;
}

.skill-pill:hover {
  border-color: var(--first-color);
  color: #fff;
  background: hsla(var(--hue), 60%, 64%, 0.2);
}

.skill-pill__link {
  color: var(--first-color-light);
  font-size: 0.62rem;
  opacity: 0.85;
}

/* 7. EXPERIENCE EVIDENCE-BASED TIMELINE */
.exp-evidence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 900px;
  margin: 0 auto;
}

.exp-evidence-card {
  background: hsl(240, 8%, 6%);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.2);
  border-radius: 1.5rem;
  padding: 1.75rem;
  position: relative;
  transition: all 0.25s ease;
}

.exp-evidence-card:hover {
  border-color: hsla(var(--hue), 60%, 64%, 0.45);
  box-shadow: 0 10px 30px -10px hsla(0, 0%, 0%, 0.5);
}

.exp-evidence__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.exp-evidence__role {
  font-size: 1.15rem;
  color: var(--title-color);
}

.exp-evidence__org {
  font-family: var(--second-font);
  font-size: 0.82rem;
  color: var(--first-color-light);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.exp-evidence__badge {
  font-family: var(--second-font);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  background: hsla(var(--hue), 60%, 64%, 0.15);
  color: var(--first-color-light);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.3);
}

.exp-evidence__bullets {
  list-style: none;
  margin: 0.75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.exp-evidence__bullets li {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-color);
  position: relative;
  padding-left: 1.25rem;
}

.exp-evidence__bullets li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--first-color);
  font-weight: bold;
}

/* 8. CASE STUDY MODAL */
.case-modal {
  position: fixed;
  inset: 0;
  background-color: hsla(240, 10%, 2%, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.case-modal.active-modal {
  display: flex;
}

.case-modal__box {
  background: hsl(240, 8%, 6%);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.35);
  border-radius: 1.75rem;
  width: 100%;
  max-width: 800px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 50px -12px hsla(0, 0%, 0%, 0.8);
}

.case-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 1.75rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color 0.25s;
}

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

/* 9. CONTACT FORM & ACTIONS */
.contact__form-card {
  background: hsl(240, 8%, 6%);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.25);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--second-font);
  font-size: 0.76rem;
  color: var(--title-color);
  font-weight: 600;
}

.form-input {
  background: hsla(240, 10%, 3%, 0.8);
  border: 1px solid hsla(var(--hue), 60%, 64%, 0.25);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--title-color);
  font-family: var(--body-font);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: var(--first-color);
  box-shadow: 0 0 12px hsla(var(--hue), 60%, 64%, 0.3);
}

textarea.form-input {
  resize: vertical;
  min-height: 110px;
}

/* 10. TOAST NOTIFICATION */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: hsl(240, 8%, 8%);
  border: 1px solid var(--first-color);
  color: var(--title-color);
  padding: 0.85rem 1.4rem;
  border-radius: 2rem;
  box-shadow: 0 10px 30px hsla(0, 0%, 0%, 0.6);
  font-family: var(--second-font);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 3000;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.toast-msg.show-toast {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: Focus visible */
:focus-visible {
  outline: 2px solid var(--first-color-light);
  outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   LINKEDIN-EXACT 2-COLUMN EXPERIENCE & EDUCATION SECTION
   ========================================================================== */
.profile-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

@media screen and (min-width: 968px) {
  .profile-card-grid {
    grid-template-columns: 1fr 1.3fr;
  }
}

.li-card {
  background: #0e0f14;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.li-card__heading {
  font-family: var(--second-font, 'Unbounded', sans-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

/* Single Entry (Logo on left, details on right) */
.li-entry-single {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* Grouped Multi-Role Entry (like Tenre AI) */
.li-entry-group {
  display: flex;
  flex-direction: column;
}

.li-group-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.li-group-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.li-company-name {
  font-family: var(--body-font, sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.35;
}

.li-group-duration {
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Logos: 48x48 exact LinkedIn dimension */
.li-logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1d26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.li-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.li-logo-fallback {
  width: 100%;
  height: 100%;
  background: #1e222d;
  color: #a78bfa;
  font-family: var(--second-font, sans-serif);
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.5px;
  padding: 2px;
}

/* Connected Vertical Timeline */
.li-timeline-wrapper {
  position: relative;
  margin-left: 23px; /* centers line with 48px logo (48 / 2 = 24) */
  padding-left: 26px;
  padding-top: 14px;
}

.li-timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 12px;
  width: 2px;
  background: #333a4d;
}

.li-timeline-node {
  position: relative;
  margin-bottom: 22px;
}

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

.li-node-bullet {
  position: absolute;
  left: -31px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #94a3b8;
  border: 2px solid #0e0f14;
  z-index: 2;
}

.li-node-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.li-single-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

/* Role and School Titles */
.li-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.li-role-title, .li-school-name {
  font-family: var(--body-font, sans-serif);
  font-size: 0.96rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.35;
}

.li-badge-present {
  background: hsla(190, 80%, 50%, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.li-company-line, .li-degree-name {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.li-employment-type {
  font-size: 0.84rem;
  color: #cbd5e1;
}

.li-date-range {
  font-size: 0.79rem;
  color: #94a3b8;
}

.li-location {
  font-size: 0.79rem;
  color: #94a3b8;
}

/* Diamond Skills Tagline */
.li-skills-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #e2e8f0;
  margin-top: 6px;
}

.li-skills-line i {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.li-desc-bullet {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #94a3b8;
  margin-top: 6px;
}

/* Subtle separator line between entries */
.li-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 18px 0;
}
