/*-----------------------------------*\
  #style.css
\*-----------------------------------*/


/**
 * copyright 2022 @codewithsadee
 */





/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  /* gradient */

  --bg-gradient-onyx: linear-gradient(
    to bottom right, 
    hsl(240, 1%, 25%) 3%, 
    hsl(0, 0%, 19%) 97%
  );
  --bg-gradient-jet: linear-gradient(
    to bottom right, 
    hsla(240, 1%, 18%, 0.251) 0%, 
    hsla(240, 2%, 11%, 0) 100%
  ), hsl(240, 2%, 13%);
  --bg-gradient-yellow-1: linear-gradient(
    to bottom right, 
    hsl(45, 100%, 71%) 0%, 
    hsla(36, 100%, 69%, 0) 50%
  );
  --bg-gradient-yellow-2: linear-gradient(
    135deg, 
    hsla(45, 100%, 71%, 0.251) 0%, 
    hsla(35, 100%, 68%, 0) 59.86%
  ), hsl(240, 2%, 13%);
  --border-gradient-onyx: linear-gradient(
    to bottom right, 
    hsl(0, 0%, 25%) 0%, 
    hsla(0, 0%, 25%, 0) 50%
  );
  --text-gradient-yellow: linear-gradient(
    to right, 
    hsl(45, 100%, 72%), 
    hsl(35, 100%, 68%)
  );

  /* solid */

  --jet: hsl(0, 0%, 22%);
  --onyx: hsl(240, 1%, 17%);
  --eerie-black-1: hsl(240, 2%, 13%);
  --eerie-black-2: hsl(240, 2%, 12%);
  --smoky-black: hsl(0, 0%, 7%);
  --white-1: hsl(0, 0%, 100%);
  --white-2: hsl(0, 0%, 98%);
  --orange-yellow-crayola: hsl(45, 100%, 72%);
  --vegas-gold: hsl(45, 54%, 58%);
  --light-gray: hsl(0, 0%, 84%);
  --light-gray-70: hsla(0, 0%, 84%, 0.7);
  --bittersweet-shimmer: hsl(0, 43%, 51%);

  /**
   * typography
   */

  /* font-family */
  --ff-poppins: 'Poppins', sans-serif;

  /* font-size */
  --fs-1: 24px;
  --fs-2: 18px;
  --fs-3: 17px;
  --fs-4: 16px;
  --fs-5: 15px;
  --fs-6: 14px;
  --fs-7: 13px;
  --fs-8: 11px;

  /* font-weight */
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;

  /**
   * shadow
   */
  
  --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.25);
  --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.25);
  --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.25);
  --shadow-4: 0 25px 50px hsla(0, 0%, 0%, 0.15);
  --shadow-5: 0 24px 80px hsla(0, 0%, 0%, 0.25);

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease-in-out;

}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a { text-decoration: none; }

li { list-style: none; }

img, ion-icon, a, button, time, span { display: block; }

button {
  font: inherit;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

input, textarea {
  display: block;
  width: 100%;
  background: none;
  font: inherit;
}

::selection {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
}

:focus { outline-color: var(--orange-yellow-crayola); }

html { font-family: var(--ff-poppins); }

body {
  background: var(--smoky-black);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: var(--glow-y, 50%);
  left: var(--glow-x, 50%);
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    hsla(45, 100%, 72%, 0.22) 0%,
    hsla(45, 100%, 72%, 0.13) 28%,
    hsla(45, 100%, 72%, 0.06) 48%,
    transparent 72%
  );
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  transition: none;
}

main {
  position: relative;
  z-index: 1;
}




/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.sidebar,
article {
  background: hsla(240, 2%, 12%, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow-1);
  z-index: 1;
}

.separator {
  width: 100%;
  height: 1px;
  background: var(--jet);
  margin: 16px 0;
}

.icon-box {
  position: relative;
  background: var(--border-gradient-onyx);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: var(--orange-yellow-crayola);
  box-shadow: var(--shadow-1);
  z-index: 1;
}

.icon-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--eerie-black-1);
  border-radius: inherit;
  z-index: -1;
}

.icon-box ion-icon { --ionicon-stroke-width: 35px; }

article { display: none; }

article.active {
  display: block;
  animation: fade 0.5s ease backwards;
}

@keyframes fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.h2,
.h3,
.h4,
.h5 {
  color: var(--white-2);
  text-transform: capitalize;
}

.h2 { font-size: var(--fs-1); }

.h3 { font-size: var(--fs-2); }

.h4 { font-size: var(--fs-4); }

.h5 {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}

.article-title {
  position: relative;
  padding-bottom: 7px;
}

.article-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--text-gradient-yellow);
  border-radius: 3px;
}

.has-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.has-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.content-card {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 15px;
  padding-top: 45px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  z-index: 1;
  margin-bottom: 20px;
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}





/*-----------------------------------*\
  #MAIN
\*-----------------------------------*/

main {
  margin: 15px 12px;
  margin-bottom: 75px;
  min-width: 259px;
}





/*-----------------------------------*\
  #SIDEBAR
\*-----------------------------------*/

.sidebar {
  margin-bottom: 15px;
  max-height: 112px;
  overflow: hidden;
  transition: var(--transition-2);
}

.sidebar.active { max-height: 405px; }

.sidebar-info {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}

.avatar-box {
  background: var(--bg-gradient-onyx);
  border-radius: 20px;
}

.info-content .name {
  color: var(--white-2);
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
  letter-spacing: -0.25px;
  margin-bottom: 5px;
}

.info-content .title {
  color: var(--white-1);
  background: var(--onyx);
  font-size: var(--fs-8);
  font-weight: var(--fw-300);
  width: max-content;
  padding: 3px 12px;
  border-radius: 8px;
}

.info_more-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  border-radius: 0 15px;
  font-size: 13px;
  color: var(--orange-yellow-crayola);
  background: var(--border-gradient-onyx);
  padding: 10px;
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
  z-index: 1;
}

.info_more-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--bg-gradient-jet);
  transition: var(--transition-1);
  z-index: -1;
}

.info_more-btn:hover,
.info_more-btn:focus { background: var(--bg-gradient-yellow-1); }

.info_more-btn:hover::before,
.info_more-btn:focus::before { background: var(--bg-gradient-yellow-2); }

.info_more-btn span { display: none; }

.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-2);
}

.sidebar.active .sidebar-info_more {
  opacity: 1;
  visibility: visible;
}

.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info {
  max-width: calc(100% - 46px);
  width: calc(100% - 46px);
}

.contact-title {
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-info :is(.contact-link, time, address) {
  color: var(--white-2);
  font-size: var(--fs-7);
}

.contact-info address { font-style: normal; }

.social-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding-bottom: 4px;
  padding-left: 7px;
}

.social-item .social-link {
  color: var(--light-gray-70);
  font-size: 18px;
}


.social-item .social-link:hover { color: var(--light-gray); }





/*-----------------------------------*\
  #NAVBAR
\*-----------------------------------*/

.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: hsla(240, 1%, 17%, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-2);
  z-index: 5;
}

.navbar-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 0 6px;
}

.navbar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
}

.navbar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-gray);
  font-size: 15px;
  line-height: 1;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.18s ease;
}


.navbar-link:active {
  transform: scale(0.94) translateY(2px);
}

.navbar-link.nav-click-bounce {
  animation: navButtonBounce 0.72s cubic-bezier(0.22, 1.45, 0.36, 1);
}

@keyframes navButtonBounce {
  0% {
    transform: scale(0.94) translateY(2px);
  }

  42% {
    transform: scale(1.08) translateY(-3px);
  }

  68% {
    transform: scale(0.985) translateY(1px);
  }

  100% {
    transform: scale(1) translateY(0);
  }
}

.navbar-link:hover {
  color: var(--white-2);
  gap: 6px;
}

.navbar-link:hover .nav-icon {
  width: 17px;
  min-width: 17px;
  opacity: 0.65;
  transform: translateX(0) scale(0.85);
  color: var(--light-gray-70);
}

.navbar-link.active {
  background: var(--text-gradient-yellow);
  color: var(--smoky-black);
  gap: 7px;
  padding: 10px 20px;
  box-shadow: 0 10px 24px hsla(45, 100%, 72%, 0.18);
}

.navbar-link.active .nav-icon {
  width: 18px;
  min-width: 18px;
  opacity: 1;
  color: var(--smoky-black);
  transform: translateX(0) scale(1);
  animation: navIconBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes navIconBounce {
  0% {
    transform: translateX(-8px) scale(0.65);
  }

  60% {
    transform: translateX(0) scale(1.18);
  }

  100% {
    transform: translateX(0) scale(1);
  }
}

.navbar-link {
  color: var(--light-gray);
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 14px;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.navbar-link:hover,
.navbar-link:focus {
  color: var(--white-2);
}

.navbar-link.active {
  background: var(--text-gradient-yellow);
  color: var(--smoky-black);
  box-shadow: 0 10px 24px hsla(45, 100%, 72%, 0.18);
  animation: activeNavGlow 3.2s ease-in-out infinite;
}

@keyframes activeNavGlow {
  0% {
    box-shadow: 0 8px 20px hsla(45, 100%, 72%, 0.14);
  }

  50% {
    box-shadow: 0 12px 28px hsla(45, 100%, 72%, 0.28);
  }

  100% {
    box-shadow: 0 8px 20px hsla(45, 100%, 72%, 0.14);
  }
}

/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about .article-title { margin-bottom: 15px; }

.about-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  margin-bottom: 30px;
}

.about-text p { margin-bottom: 15px; }



/**
 * #service 
 */

.service { margin-bottom: 35px; }

.service-title { margin-bottom: 8px; }

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  position: relative;
  background: var(--border-gradient-onyx);
  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 34px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 1;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

/*-----------------------------------*\
  #CORE STRENGTHS MOBILE CAROUSEL
\*-----------------------------------*/

.service-carousel-dots {
  display: none;
}

@media (max-width: 580px) {
 .navbar-item {
  width: 25%;
}
  .service {
    margin-bottom: 40px;
  }

	
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 100%);
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: 18px 0;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 4px 0 22px;
  margin: -4px 0 -4px;
}

  .service-list::-webkit-scrollbar {
    display: none;
  }

.service-item {
  width: calc(100% - 20px);
  margin-left: 0;
  margin-right: 20px;
  scroll-snap-align: start;
}

  .service-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
  }

  .service-carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: hsla(45, 100%, 72%, 0.28);
    transition:
      width 0.35s ease,
      background 0.35s ease,
      opacity 0.35s ease;
  }

  .service-carousel-dot.active {
    width: 22px;
    background: var(--orange-yellow-crayola);
  }
}

  .service-list::-webkit-scrollbar {
    display: none;
  }

  .service-item {
    scroll-snap-align: start;
    min-width: 0;
  }

  .service-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
  }

  .service-carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: hsla(45, 100%, 72%, 0.28);
    transition:
      width 0.35s ease,
      background 0.35s ease,
      opacity 0.35s ease;
  }

  .service-carousel-dot.active {
    width: 22px;
    background: var(--orange-yellow-crayola);
  }
}

.service-content-box::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 35px;
  height: 35px;
  background: linear-gradient(
    145deg,
    hsl(240, 2%, 18%),
    hsl(240, 2%, 10%)
  );
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  border-radius: 11px;
  box-shadow:
    inset 0 1px 1px hsla(0, 0%, 100%, 0.08),
    0 10px 24px hsla(0, 0%, 0%, 0.35);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.service-item::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 26.5px;
  width: 18px;
  height: 18px;
  background: linear-gradient(
    135deg,
    hsl(45, 100%, 82%),
    hsl(38, 100%, 58%)
  );
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  opacity: 0;
  transform: scale(0.7) rotate(0deg);
  transform-origin: center;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 3;
}

.service-item:hover .service-content-box::before {
  opacity: 1;
  transform: scale(1);
}

.service-item:hover::after {
  opacity: 1;
  animation: serviceStarRotate 4s linear infinite;
}

@keyframes serviceStarRotate {
  from {
    transform: scale(1) rotate(0deg);
  }

  to {
    transform: scale(1) rotate(360deg);
  }
}


.service-icon-box {
  flex: 0 0 95px;
  width: 95px;
  display: flex;
  align-items: flex-start;
  justify-content: left;
  margin-top: 10px;
}

.service-icon-box img {
  margin: auto;
  transition: transform 0.45s ease;
  transform-origin: center;
  width: 110px;
}

.service-item:hover .service-icon-box img {
  animation: serviceIconHover 1.75s ease-in-out infinite;
}

@keyframes serviceIconHover {
  0% {
    transform: scale(1) translateY(0);
  }

  50% {
    transform: scale(1.10) translateY(-8px);
  }

  100% {
    transform: scale(1) translateY(0);
  }
}

.service-content-box { text-align: left; }

.service-item-title { margin-top: 20px; margin-bottom: 10px; width: 100%;}

.service-item-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-3);
  line-height: 1.6;
}

.skills-icon-box { margin-bottom: 5px; margin-right: 10px;}

.skills-icon-box img { margin: auto; }



/**
 * #testimonials 
 */

.testimonials { margin-bottom: 30px; }

.testimonials-title { margin-bottom: 8px; }

.testimonials-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  margin: 0 -15px;
  padding: 25px 15px;
  padding-bottom: 35px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
}

.testimonials-item {
  min-width: 100%;
  scroll-snap-align: center;
}

.testimonials-avatar-box {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(15px, -25px);
  background: var(--bg-gradient-onyx);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
}

.testimonials-item-title { margin-bottom: 7px; }

.testimonials-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/**
 * #testimonials-modal
 */

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 20;
  pointer-events: none;
  visibility: hidden;
}

.modal-container::-webkit-scrollbar { display: none; }

.modal-container.active {
  pointer-events: all;
  visibility: visible;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: hsl(0, 0%, 5%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: var(--transition-1);
}

.overlay.active {
  opacity: 0.8;
  visibility: visible;
  pointer-events: all;
}

.testimonials-modal {
  background: var(--eerie-black-2);
  position: relative;
  padding: 15px;
  margin: 15px 12px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  box-shadow: var(--shadow-5);
  transform: scale(1.2);
  opacity: 0;
  transition: var(--transition-1);
  z-index: 2;
}

.modal-container.active .testimonials-modal {
  transform: scale(1);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--onyx);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-2);
  font-size: 18px;
  opacity: 0.7;
}

.modal-close-btn:hover,
.modal-close-btn:focus { opacity: 1; }

.modal-close-btn ion-icon { --ionicon-stroke-width: 50px; }

.modal-avatar-box {
  background: var(--bg-gradient-onyx);
  width: max-content;
  border-radius: 14px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-2);
}

.modal-img-wrapper > img { display: none; }

.modal-title { margin-bottom: 4px; }

.modal-content time {
  font-size: var(--fs-6);
  color: var(--light-gray-70);
  font-weight: var(--fw-300);
  margin-bottom: 10px;
}

.modal-content p {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}


/**
 * #clients 
 */

.clients { margin-bottom: 15px; }

.clients-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  margin: 0 -15px;
  padding: 25px;
  padding-bottom: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 25px;
}

.clients-item {
  min-width: 50%;
  scroll-snap-align: start;
}

.clients-item img {
  width: 100%;
  filter: grayscale(1);
  transition: var(--transition-1);
}

.clients-item img:hover { filter: grayscale(0); }





/*-----------------------------------*\
  #RESUME
\*-----------------------------------*/

.article-title { margin-bottom: 30px; }


/**
 * education and experience 
 */

.timeline { margin-bottom: 30px; }

.timeline .title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.timeline-list {
  font-size: var(--fs-6);
  margin-left: 45px;
}

.timeline-item { position: relative; }

.timeline-item:not(:last-child) { margin-bottom: 20px; }

.timeline-item-title {
  font-size: var(--fs-6);
  line-height: 1.3;
  margin-bottom: 7px;
}

.timeline-list span {
  color: var(--vegas-gold);
  font-weight: var(--fw-400);
  line-height: 1.6;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: -25px;
  left: -30px;
  width: 1px;
  height: calc(100% + 50px);
  background: var(--jet);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 5px;
  left: -33px;
  height: 6px;
  width: 6px;
  background: var(--text-gradient-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--jet);
}

.timeline-text {
  color: var(--light-gray);
  font-weight: var(--fw-300);
  line-height: 1.5;
  padding-bottom: 10px;
}


/**
 * skills 
 */

.skills-title { margin-bottom: 20px; }

.skills-list { padding: 20px; }


.skills-item:not(:last-child) { margin-bottom: 15px; }

.skill .title-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.skill .title-wrapper data {
  color: var(--light-gray);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
}

.skill-progress-bg {
  background: var(--jet);
  width: 100%;
  height: 8px;
  border-radius: 10px;
}

.skill-progress-fill {
  background: var(--text-gradient-yellow);
  height: 100%;
  border-radius: inherit;
}

.myskill-progress-bg {
  background: var(--jet);
  width: 100%;
  height: 8px;
  border-radius: 10px;
}

.myskill-progress-fill {
  background: var(--text-gradient-yellow);
  height: 100%;
  border-radius: inherit;
}




/*-----------------------------------*\
  #PORTFOLIO
\*-----------------------------------*/

.filter-list { display: none; }

.filter-select-box {
  position: relative;
  margin-bottom: 25px;
}

.filter-select {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.filter-select.active .select-icon { transform: rotate(0.5turn); }

.select-list {
  background: var(--eerie-black-2);
  position: absolute;
  top: calc(100% + 6px);
  width: 100%;
  padding: 6px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.15s ease-in-out;
}

.filter-select.active + .select-list {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.select-item button {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  text-transform: capitalize;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
}

.select-item button:hover { --eerie-black-2: hsl(240, 2%, 20%); }

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 10px;
}

.project-item { display: none; }

.project-item.active {
  display: block;
  animation: scaleUp 0.25s ease forwards;
}

@keyframes scaleUp {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}

.project-item > a { width: 100%; }

.project-img {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px;
}











.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-1);
}

.project-item > a:hover img { transform: scale(1.035); }
.project-title,
.project-category { margin-left: 10px; }

.project-title {
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  text-transform: capitalize;
  line-height: 1.3;
}

.project-category {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}





/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.blog-posts { margin-bottom: 10px; }

.blog-posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.blog-post-item > a {
  position: relative;
  background: var(--border-gradient-onyx);
  height: 100%;
  box-shadow: var(--shadow-4);
  border-radius: 16px;
  z-index: 1;
}

.blog-post-item > a::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--eerie-black-1);
  z-index: -1;
}

.blog-banner-box {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.blog-banner-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-1);
}

.blog-post-item > a:hover .blog-banner-box img { transform: scale(1.1); }

.blog-content { padding: 15px; }

.blog-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.blog-meta :is(.blog-category, time) {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.blog-meta .dot {
  background: var(--light-gray-70);
  width: 4px;
  height: 4px;
  border-radius: 4px;
}

.blog-item-title {
  margin-bottom: 10px;
  line-height: 1.3;
  transition: var(--transition-1);
}

.blog-post-item > a:hover .blog-item-title { color: var(--orange-yellow-crayola); }

.blog-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}





/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/


.contact-form { margin-bottom: 10px; }

.form-title { margin-bottom: 20px; }

.input-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.form-input {
  color: var(--white-2);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  padding: 13px 20px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  outline: none;
}

.form-input::placeholder { font-weight: var(--fw-500); }

.form-input:focus { border-color: var(--orange-yellow-crayola); }

textarea.form-input {
  min-height: 170px;
  height: 190px;
  max-height: 300px;
  resize: vertical;
  margin-bottom: 25px;
}

textarea.form-input::-webkit-resizer { display: none; }

.form-input:focus:invalid { border-color: var(--bittersweet-shimmer); }

.form-btn {
  position: relative;
  width: 100%;
  background: var(--border-gradient-onyx);
  color: var(--orange-yellow-crayola);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: var(--fs-6);
  text-transform: capitalize;
  box-shadow: var(--shadow-3);
  z-index: 1;
  transition: var(--transition-1);
}

.form-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.form-btn ion-icon { font-size: 16px; }

.form-btn:hover { background: var(--bg-gradient-yellow-1); }

.form-btn:hover::before { background: var(--bg-gradient-yellow-2); }

.form-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-btn:disabled:hover { background: var(--border-gradient-onyx); }

.form-btn:disabled:hover::before { background: var(--bg-gradient-jet); }





/*-----------------------------------*\
  #RESPONSIVE
\*-----------------------------------*/

/**
 * responsive larger than 450px screen
 */

@media (min-width: 450px) {

  /**
   * client
   */

  .clients-item { min-width: calc(33.33% - 10px); }



  /**
   * #PORTFOLIO, BLOG 
   */

  .project-img,
  .blog-banner-box { height: auto; }

}





/**
 * responsive larger than 580px screen
 */

@media (min-width: 580px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 32px;
    --fs-2: 24px;
    --fs-3: 26px;
    --fs-4: 18px;
    --fs-6: 15px;
    --fs-7: 15px;
    --fs-8: 12px;

  }



  /**
   * #REUSED STYLE
   */

  .sidebar, article {
    width: 520px;
    margin-inline: auto;
    padding: 30px;
  }

  .article-title {
    font-weight: var(--fw-600);
    padding-bottom: 15px;
  }

  .article-title::after {
    width: 40px;
    height: 5px;
  }

  .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 18px;
  }



  /**
   * #MAIN
   */

  main {
    margin-top: 60px;
    margin-bottom: 100px;
  }



  /**
   * #SIDEBAR
   */

  .sidebar {
    max-height: 180px;
    margin-bottom: 30px;
  }

  .sidebar.active { max-height: 584px; }

  .sidebar-info { gap: 25px; }

  .avatar-box { border-radius: 30px; }

  .avatar-box img { width: 120px; }

  .info-content .name { margin-bottom: 15px; }

  .info-content .title { padding: 5px 18px; }

  .info_more-btn {
    top: -30px;
    right: -30px;
    padding: 10px 15px;
  }

  .info_more-btn span {
    display: block;
    font-size: var(--fs-8);
  }

  .info_more-btn ion-icon { display: none; }

  .separator { margin: 32px 0; }

  .contacts-list { gap: 20px; }

  .contact-info {
    max-width: calc(100% - 64px);
    width: calc(100% - 64px);
  }



  /**
   * #NAVBAR
   */

  .navbar { border-radius: 20px 20px 0 0; }

  .navbar-list { gap: 20px; }

  .navbar-link { --fs-8: 14px; }



  /**
   * #ABOUT
   */

  .about .article-title { margin-bottom: 20px; }

  .about-text { margin-bottom: 40px; }

  /* service */

  .service-item {
  display: block;
  padding: 30px;
}

.service-icon-box {
  width: 100%;
  margin-bottom: 16px;
  margin-top: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.service-icon-box img {
  margin: 0;
}

.service-content-box {
  text-align: left;
}.service-item {
  display: block;
  padding: 30px;
}

.service-icon-box {
  width: 100%;
  margin-bottom: 16px;
  margin-top: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.service-icon-box img {
  margin: 0;
}

.service-content-box {
  text-align: left;
}

  /* testimonials */

  .testimonials-title { margin-bottom: 25px; }

  .testimonials-list {
    gap: 30px;
    margin: 0 -30px;
    padding: 30px;
    padding-bottom: 35px;
  }

  .content-card {
    padding: 30px;
    padding-top: 25px;
  }

  .testimonials-avatar-box {
    transform: translate(30px, -30px);
    border-radius: 20px;
  }

  .testimonials-avatar-box img { width: 80px; }

  .testimonials-item-title {
    margin-bottom: 10px;
    margin-left: 95px;
  }

  .testimonials-text {
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  /* testimonials modal */

  .modal-container { padding: 20px; }

  .testimonials-modal {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 25px;
    padding: 30px;
    border-radius: 20px;
  }

  .modal-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .modal-avatar-box {
    border-radius: 18px;
    margin-bottom: 0;
  }

  .modal-avatar-box img { width: 65px; }

  .modal-img-wrapper > img {
    display: block;
    flex-grow: 1;
    width: 35px;
  }

  /* clients */

  .clients-list {
    gap: 50px;
    margin: 0 -30px;
    padding: 45px;
    scroll-padding-inline: 45px;
  }

  .clients-item { min-width: calc(33.33% - 35px); }



  /**
   * #RESUME
   */

  .timeline-list { margin-left: 65px; }

  .timeline-item:not(:last-child)::before { left: -40px; }

  .timeline-item::after {
    height: 8px;
    width: 8px;
    left: -43px;
  }

  .skills-item:not(:last-child) { margin-bottom: 25px; }



  /**
   * #PORTFOLIO, BLOG
   */

  .project-img, .blog-banner-box { border-radius: 16px; }

  .blog-posts-list { gap: 30px; }

  .blog-content { padding: 25px; }



  /**
   * #CONTACT
   */


  .input-wrapper {
    gap: 30px;
    margin-bottom: 30px;
  }

  .form-input { padding: 15px 20px; }

  textarea.form-input { margin-bottom: 30px; }

  .form-btn {
    --fs-6: 16px;
    padding: 16px 20px;
  }

  .form-btn ion-icon { font-size: 18px; }

}





/**
 * responsive larger than 768px screen
 */

@media (min-width: 768px) {

  /**
   * REUSED STYLE
   */

  .sidebar, article { width: 700px; }




  /**
   * SIDEBAR
   */

  .contacts-list {
    grid-template-columns: 1fr 1fr;
    gap: 30px 15px;
  }



  /**
   * NAVBAR
   */

  .navbar-link { --fs-8: 15px; }



  /**
   * ABOUT
   */

  /* testimonials modal */

  .testimonials-modal {
    gap: 35px;
    max-width: 680px;
  }

  .modal-avatar-box img { width: 80px; }



  /**
   * PORTFOLIO
   */

  .article-title { padding-bottom: 20px; }

  .filter-select-box { display: none; }

  .filter-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    padding-left: 5px;
    margin-bottom: 30px;
  }

  .filter-item button {
    color: var(--light-gray);
    font-size: var(--fs-5);
    transition: var(--transition-1);
  }

  .filter-item button:hover { color: var(--light-gray-70); }

  .filter-item button.active { color: var(--orange-yellow-crayola); }

  /* portfolio and blog grid */

  .project-list, .blog-posts-list { grid-template-columns: 1fr 1fr; }



  /**
   * CONTACT
   */

  .input-wrapper { grid-template-columns: 1fr 1fr; }

  .form-btn {
    width: max-content;
    margin-left: auto;
  }
  
}





/**
 * responsive larger than 1024px screen
 */

@media (min-width: 1024px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
    * shadow
    */

    --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.125);
    --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.125);
    --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.125);

  }



  /**
   * REUSED STYLE
   */

  .sidebar, article {
    width: 950px;
    box-shadow: var(--shadow-5);
  }



  /**
   * MAIN 
   */

  main { margin-bottom: 60px; }

  .main-content {
    position: relative;
    width: max-content;
    margin: auto;
  }



  /**
   * NAVBAR
   */

.navbar {
  position: absolute;
  bottom: auto;
  top: 0;
  left: auto;
  right: 0;
  width: max-content;
  border-radius: 0 20px;
  padding: 0 8px;
  box-shadow: none;
}

.navbar-list {
  gap: 24px;
  padding: 0 12px;
}

  .navbar-link { font-weight: var(--fw-500); }



  /**
   * ABOUT
   */

  /* service */

  .service-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
  }

  /* testimonials */

  .testimonials-item { min-width: calc(50% - 15px); }

  /* clients */

  .clients-item { min-width: calc(25% - 38px); }



  /**
   * PORTFOLIO
   */

  .project-list { grid-template-columns: repeat(3, 1fr); }



  /**
   * BLOG
   */

  .blog-banner-box { height: 230px; }

}





/**
 * responsive larger than 1250px screen
 */

@media (min-width: 1250px) {

  /**
   * RESET
   */

  body::-webkit-scrollbar { width: 20px; }

  body::-webkit-scrollbar-track { background: var(--smoky-black); }

  body::-webkit-scrollbar-thumb {
    border: 5px solid var(--smoky-black);
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 20px;
    box-shadow: inset 1px 1px 0 hsla(0, 0%, 100%, 0.11),
                inset -1px -1px 0 hsla(0, 0%, 100%, 0.11);
  }

  body::-webkit-scrollbar-thumb:hover { background: hsla(0, 0%, 100%, 0.15); }

  body::-webkit-scrollbar-button { height: 60px; }



  /**
   * REUSED STYLE
   */

  .sidebar, article { width: auto; }

  article { min-height: 100%; }



  /**
   * MAIN
   */

  main {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
  }

  .main-content {
    min-width: 75%;
    width: 75%;
    margin: 0;
  }



  /**
   * SIDEBAR
   */

  .sidebar {
    position: sticky;
    top: 60px;
    max-height: max-content;
    height: 100%;
    margin-bottom: 0;
    padding-top: 60px;
    z-index: 1;
  }

  .sidebar-info { flex-direction: column; }

  .avatar-box img { width: 150px; }

  .info-content .name {
    white-space: nowrap;
    text-align: center;
  }

  .info-content .title { margin: auto; }

  .info_more-btn { display: none; }

  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
  }

  .contacts-list { grid-template-columns: 1fr; }

  .contact-info :is(.contact-link) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-info :is(.contact-link, time, address) {
    --fs-7: 14px;
    font-weight: var(--fw-300);
  }

  .separator:last-of-type {
    margin: 15px 0;
    opacity: 0;
  }

  .social-list { justify-content: center; }



  /**
	 * RESUME
	 */

  .timeline-text { max-width: 700px; }

}



/*-----------------------------------*\
  #PORTFOLIO IMAGE POPUP
\*-----------------------------------*/

.portfolio-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
}

.portfolio-popup.active {
  visibility: visible;
  pointer-events: all;
}

.portfolio-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 1.5s ease;
}

.portfolio-popup.active .portfolio-popup-overlay {
  opacity: 1;
}

.portfolio-popup-content {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow-y: auto;
  padding: 70px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.portfolio-popup-img {
  width: min(1100px, 92vw);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.portfolio-popup.active .portfolio-popup-img {
  opacity: 1;
  transform: scale(1);
}

.portfolio-popup-close {
  position: fixed;
  top: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--onyx);
  color: var(--white-2);
  border-radius: 12px;
  font-size: 28px;
  box-shadow: var(--shadow-3);
}

.portfolio-popup-close:hover {
  color: var(--orange-yellow-crayola);
}

body.popup-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .portfolio-popup-content {
    padding: 60px 10px;
  }

  .portfolio-popup-img {
    width: 100%;
    border-radius: 12px;
  }

  .portfolio-popup-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 26px;
  }
}


/*-----------------------------------*\
  #SKILLS GRID FIX
\*-----------------------------------*/



/*-----------------------------------*\
  #GLOBAL CONTENT WIDTH INCREASE
\*-----------------------------------*/

/* Medium screens */
@media (min-width: 1024px) {
  .sidebar,
  article {
    width: 1050px;
  }
}

/* Large desktop screens */
@media (min-width: 1250px) {
  main {
    max-width: 1300px;
    gap: 30px;
  }

  .sidebar {
    width: 300px;
    flex: 0 0 300px;
  }

  .main-content {
    width: calc(100% - 330px);
    min-width: 0;
  }

  article {
    width: 100%;
  }
}

/*-----------------------------------*\
  #HIDE CORE STRENGTHS SCROLL DOTS
\*-----------------------------------*/

.service-list::-webkit-scrollbar {
  display: none;
}

.service-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

@media (min-width: 768px) {
  .service-carousel-dots {
    display: none !important;
  }
}

/*-----------------------------------*\
  #CATEGORISED SKILLS SECTION
\*-----------------------------------*/

.categorized-skills {
  display: block !important;
  width: 100%;
  margin-top: 10px;
}

.categorized-skills .skills-title {
  margin-bottom: 22px;
}

.skills-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

.skill-category {
  width: 100%;
  min-height: 100%;
  padding: 26px !important;
  padding-top: 26px !important;
  margin-bottom: 0;
  cursor: default;
}

.skill-category-title {
  margin-bottom: 22px;
  color: var(--white-2);
  line-height: 1.35;
}

.skill-mini-list {
  display: grid;
  gap: 18px;
}

.skill-mini-item {
  display: block;
  margin-bottom: 10px;
}

.skill-mini-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.skill-mini-header img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 36px;
}

.skill-mini-header .h5 {
  color: var(--white-2);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  flex: 1;
  line-height: 1.25;
}

.skill-mini-header data {
  color: var(--light-gray-70);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
}

@media (min-width: 768px) {
  .skills-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1250px) {
  .skills-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/*-----------------------------------*\
  #MOBILE SIDEBAR VISIBILITY CONTROL
\*-----------------------------------*/

@media (max-width: 580px) {

  /* About page: profile image overlaps card */
  body.page-about .sidebar {
    display: block;
    max-height: none;
    height: auto;
    min-height: 0;
    overflow: visible;

    margin-top: 82px;
    margin-bottom: 28px;

    padding: 170px 24px 34px;
  }

  body.page-about .sidebar:not(.active),
  body.page-about .sidebar.active {
    max-height: none;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.page-about .sidebar-info {
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    text-align: center;
  }

  body.page-about .avatar-box {
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);

    width: 210px;
    height: 210px;

    margin: 0;
    border-radius: 18px;
    overflow: hidden;
  }

  body.page-about .avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }

  body.page-about .info-content {
    width: 100%;
    text-align: center;
  }

  body.page-about .info-content .name {
    font-size: 28px;
    line-height: 1.15;
    font-weight: var(--fw-600);
    text-align: center;
    margin-bottom: 14px;
  }

  body.page-about .info-content .title {
    width: max-content;
    max-width: 100%;

    margin: 0 auto;
    padding: 8px 18px;

    font-size: 13px;
    line-height: 1.2;
    text-align: center;

    border-radius: 10px;
  }

  body.page-about .info_more-btn {
    display: none;
  }

  body.page-about .sidebar-info_more {
    display: none;
  }

  /* Resume and Portfolio: hide profile bar */
  body.page-resume .sidebar,
  body.page-portfolio .sidebar {
    display: none;
  }

  /* Contact page: show full expanded contact details */
  body.page-contact .sidebar {
    display: block;
    max-height: none;
    overflow: visible;
  }

  body.page-contact .info_more-btn {
    display: none;
  }

  body.page-contact .sidebar-info_more {
    opacity: 1;
    visibility: visible;
  }
}
/*-----------------------------------*\
  #CUSTOM CONTACT MULTI SELECT
\*-----------------------------------*/

.multi-select-field {
  grid-column: 1 / -1;
}

.custom-select {
  position: relative;
  width: 100%;
}

.interest-hidden-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.custom-select-trigger {
  width: 100%;
  min-height: 56px;
  padding: 10px 48px 10px 14px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  background: hsla(240, 2%, 16%, 0.82);
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.custom-select-trigger:hover,
.custom-select.active .custom-select-trigger {
  border-color: var(--orange-yellow-crayola);
  background: hsla(240, 2%, 18%, 0.95);
  box-shadow: 0 12px 30px hsla(0, 0%, 0%, 0.22);
}

.custom-select-trigger > ion-icon {
  color: var(--orange-yellow-crayola);
  font-size: 18px;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

.custom-select.active .custom-select-trigger > ion-icon {
  transform: translateY(-50%) rotate(180deg);
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.select-placeholder {
  color: var(--light-gray-70);
}

.selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--text-gradient-yellow);
  color: var(--smoky-black);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: var(--fw-500);
  line-height: 1;
  box-shadow: 0 8px 18px hsla(45, 100%, 72%, 0.16);
}

.selected-tag button {
  color: var(--smoky-black);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.selected-tag button ion-icon {
  position: static;
  transform: none;
  color: var(--smoky-black);
  font-size: 16px;
}

.selected-tag button:hover {
  opacity: 1;
  transform: scale(1.12);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  padding: 7px;
  background: hsla(240, 2%, 14%, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  border-radius: 14px;
  box-shadow: 0 20px 45px hsla(0, 0%, 0%, 0.45);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
}

.custom-select.active .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.custom-select-menu li:not(:last-child) {
  margin-bottom: 3px;
}

.custom-select-menu button {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--light-gray);
  font-size: var(--fs-6);
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.custom-select-menu button:hover {
  background: hsla(0, 0%, 0%, 0.45);
  color: var(--orange-yellow-crayola);
  transform: translateX(2px);
}

.custom-select-menu button.selected {
  background: var(--text-gradient-yellow);
  color: var(--smoky-black);
}

@media (max-width: 580px) {
  .custom-select-trigger {
    min-height: 54px;
    padding: 10px 44px 10px 12px;
  }

  .selected-tag {
    font-size: 12px;
    padding: 7px 9px;
  }
}


/*-----------------------------------*\
  #HIDE CONTACT TITLE ON MOBILE
\*-----------------------------------*/

@media (max-width: 580px) {
  body.page-contact .contact .article-title {
    display: none;
  }
}


/*-----------------------------------*\
  #MOBILE CONTACT CTA BUTTONS
\*-----------------------------------*/

@media (max-width: 580px) {

  body.page-contact .contacts-list {
    gap: 10px;
  }

  body.page-contact .contact-item {
    gap: 10px;
    align-items: center;
  }

  body.page-contact .contact-title {
    display: none;
  }

  body.page-contact .contact-info {
    width: 100%;
    max-width: none;
  }

  body.page-contact .contact-info .contact-link {
    min-height: 30px;
    height: 30px;
    width: 100%;
    padding: 0 12px;
    border-radius: 8px;
	background: var(--text-gradient-yellow);
	border: 1px solid transparent;
	color: var(--smoky-black);
	box-shadow: 0 8px 18px hsla(45, 100%, 72%, 0.16);
	display: flex;
    align-items: center;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition:
      background 0.25s ease,
      color 0.25s ease,
      border-color 0.25s ease,
      transform 0.25s ease;
  }

  body.page-contact .contact-info .contact-link:hover,
body.page-contact .contact-info .contact-link:focus {
  box-shadow: 0 10px 24px hsla(45, 100%, 72%, 0.25);
  transform: translateY(-1px);
}

  body.page-contact .contact-info .contact-link:active {
    transform: scale(0.96);
  }
}

/*-----------------------------------*\
  #PORTFOLIO CATEGORY MENU
\*-----------------------------------*/

.filter-select-box {
  display: none !important;
}

/* Desktop / default layout */
.portfolio-category-menu {
  display: flex !important;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  padding: 0;
  width: 100%;
}

.portfolio-category-menu .filter-item button {
  min-height: 54px;
  padding: 8px 14px 8px 9px;
  border-radius: 18px;
  background: hsla(240, 2%, 16%, 0.72);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  color: var(--light-gray);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.portfolio-category-menu .filter-item button:hover {
  background: hsla(240, 2%, 20%, 0.92);
  border-color: hsla(45, 100%, 72%, 0.22);
  transform: translateY(-2px);
}

.portfolio-category-menu .filter-item button.active {
  background: hsla(240, 2%, 16%, 0.96);
  color: var(--orange-yellow-crayola);
  border-color: hsla(45, 100%, 72%, 0.42);

  box-shadow:
    0 12px 28px hsla(0, 0%, 0%, 0.26),
    0 0 0 1px hsla(45, 100%, 72%, 0.12);
}

.portfolio-category-icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  overflow: visible;
}

.portfolio-category-menu .filter-item button.active .portfolio-category-icon {
  background: transparent;
}

.portfolio-category-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.portfolio-category-text {
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  line-height: 1.15;
  white-space: nowrap;
}

.mobile-break {
  display: none;
}

/* Desktop: compact portfolio category menu */
@media (min-width: 581px) {
  .portfolio-category-menu {
    gap: 10px;
    row-gap: 10px;
    margin-bottom: 24px;
  }

  .portfolio-category-menu .filter-item button {
    min-height: 42px;
    padding: 8px 16px;

    gap: 0;
    font-size: 13px;
    line-height: 1;
  }

  .portfolio-category-icon {
    display: none;
  }

  .portfolio-category-text {
    font-size: 13px;
  }
}
/* Mobile: visual category carousel */
@media (max-width: 580px) {
  .portfolio-category-menu {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;

    width: 100%;
    margin-bottom: 24px;

    padding: 0px 22px 2px 4px;
    margin-left: 0;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-padding-left: 4px;
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .portfolio-category-menu::-webkit-scrollbar {
    display: none;
  }

  .portfolio-category-menu .filter-item {
    flex: 0 0 76px;
    width: 76px;
    scroll-snap-align: start;
  }

  .portfolio-category-menu .filter-item button {
    width: 76px;
    min-width: 0;
    height: auto;
    min-height: 0;

    padding: 0;
    border: none;
    border-radius: 0;

    background: transparent !important;
    box-shadow: none !important;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    gap: 10px;
    text-align: center;

    color: var(--white-2);

    transform: none !important;

    transition:
      color 0.28s ease,
      transform 0.35s cubic-bezier(0.22, 1.25, 0.36, 1);
  }

  .portfolio-category-menu .filter-item button:active {
    transform: scale(0.96) !important;
  }

  .portfolio-category-icon {
    width: 70px;
    height: 80px;
    flex: 0 0 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: hsla(240, 2%, 13%, 0.82);
    border: 1px solid hsla(0, 0%, 100%, 0.08);

    box-shadow:
      inset 0 1px 0 hsla(0, 0%, 100%, 0.04),
      0 12px 28px hsla(0, 0%, 0%, 0.20);

    overflow: hidden;

    transition:
      background 0.35s ease,
      border-color 0.35s ease,
      box-shadow 0.35s ease,
      transform 0.35s cubic-bezier(0.22, 1.25, 0.36, 1);
  }

  .portfolio-category-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;

    transition:
      transform 0.45s cubic-bezier(0.22, 1.25, 0.36, 1),
      filter 0.35s ease;
  }

  .portfolio-category-text {
    width: 100%;

    color: var(--white-2);
    font-size: var(--fs-7);
    font-weight: var(--fw-500);
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }

  .portfolio-category-menu .filter-item button.active .portfolio-category-icon {
    background: hsla(240, 2%, 16%, 0.96);
    border-color: hsla(45, 100%, 72%, 0.42);
    box-shadow:
      0 12px 28px hsla(0, 0%, 0%, 0.26),
      0 0 0 1px hsla(45, 100%, 72%, 0.12);
  }

  .portfolio-category-menu .filter-item button.active .portfolio-category-text {
    color: var(--orange-yellow-crayola);
  }

  .portfolio-category-menu .filter-item button.active .portfolio-category-icon img {
    transform: scale(1.08) translateY(-1px);
    animation: none !important;
  }
}

/*-----------------------------------*\
  #PORTFOLIO INDUSTRY TEXT
\*-----------------------------------*/

.project-industry {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  margin-left: 10px;
}


/*-----------------------------------*\
  #PORTFOLIO CASE STUDY DETAIL PAGE
\*-----------------------------------*/

.portfolio-detail-page {
  background: var(--smoky-black);
  color: var(--white-2);
}

.case-main {
  max-width: 980px;
  margin: 32px auto 80px;
  padding: 0 16px;
}


.case-back-btn {
  position: fixed;
  top: 36px;
  left: max(24px, calc((100vw - 980px) / 2));
  z-index: 60;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--text-gradient-yellow);
  color: var(--smoky-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-2);
}

.case-hero {
  padding-top: 74px;
  text-align: center;
}

.case-breadcrumb {
  color: var(--orange-yellow-crayola);
  font-size: 12px;
  font-weight: var(--fw-500);
  margin-bottom: 8px;
}

.case-title {
  color: var(--white-2);
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.case-industry {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  margin-bottom: 28px;
}

.case-hero-carousel {
  margin-bottom: 22px;
}

.case-carousel-viewport {
  position: relative;
  width: 100%;
  max-width: 920px;
  height: 360px;
  margin: 0 auto;
  overflow: hidden;
}

.case-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.case-carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 66%;
  height: 100%;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.72);
  transition:
    transform 0.85s cubic-bezier(0.22, 1.35, 0.36, 1),
    opacity 0.55s ease,
    filter 0.55s ease;
  filter: brightness(0.82);
}

.case-carousel-slide.is-active {
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  filter: brightness(1);
}

.case-carousel-slide.is-prev {
  opacity: 1;
  z-index: 2;
  transform: translate(-112%, -50%) scale(0.78);
}

.case-carousel-slide.is-next {
  opacity: 1;
  z-index: 2;
  transform: translate(12%, -50%) scale(0.78);
}

.case-carousel-slide > * {
  width: 100%;
  height: 100%;
  border-radius: 18px;
}

.case-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: linear-gradient(135deg, hsl(0, 0%, 78%), hsl(0, 0%, 66%));
  color: hsl(0, 0%, 28%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  border-radius: inherit;
}

.case-carousel-dots,
.case-mobile-gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.case-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: hsla(45, 100%, 72%, 0.28);
  transition: width 0.3s ease, background 0.3s ease;
}

.case-dot.active {
  width: 20px;
  background: var(--orange-yellow-crayola);
}

.case-tabs {
  position: sticky;
  top: 34px;
  z-index: 45;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 34px;
  padding: 8px;
  border-radius: 16px;
  background: hsla(240, 1%, 17%, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
}

.case-tabs a {
  color: var(--light-gray);
  font-size: 12px;
  font-weight: var(--fw-500);
  padding: 9px 13px;
  border-radius: 11px;
  border: 1px solid hsla(0, 0%, 100%, 0.08);
}

.case-tabs a.active {
  background: var(--text-gradient-yellow);
  color: var(--smoky-black);
  border-color: transparent;
}

.case-section {
  margin-bottom: 54px;
  scroll-margin-top: 110px;
}

.case-section > h2,
.case-info-card h2 {
  color: var(--white-2);
  font-size: var(--fs-2);
  text-align: center;
  margin-bottom: 18px;
}

.case-intro-text {
  max-width: 820px;
  margin: 0 auto 22px;
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.7;
  text-align: center;
}

.client-image-strip {
  display: flex;
  gap: 12px;
  overflow: hidden;
}

.client-strip-item {
  flex: 1;
  min-width: 0;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
}

.case-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 54px;
}

.case-info-card {
  background: hsla(240, 2%, 16%, 0.72);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-2);
}

.case-info-card ol {
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.7;
  padding-left: 18px;
}

.case-info-card li {
  list-style: decimal;
  margin-bottom: 8px;
}

.case-subsection {
  margin-bottom: 38px;
}

.case-subsection h3 {
  color: var(--white-2);
  text-align: center;
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  margin-bottom: 16px;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.case-gallery-item {
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
}

.case-next-projects {
  padding-top: 10px;
}

.case-next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

..case-next-card {
  display: block;
  min-width: 0;

  padding: 14px 14px 20px;
  border-radius: 22px;

  background: hsla(240, 2%, 12%, 0.82);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  box-shadow: var(--shadow-2);

  color: var(--white-2);

  transform: translateY(0) scale(1);
  transition:
    transform 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
}

.case-next-thumb {
  width: 100%;
  height: 190px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--onyx);
}

.case-next-thumb img,
.case-next-thumb .case-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.case-next-card h3 {
  color: var(--white-2);
  font-size: 17px;
  font-weight: var(--fw-600);
  line-height: 1.25;
  margin-bottom: 6px;
}

.case-next-card p {
  color: var(--light-gray-70);
  font-size: 15px;
  font-weight: var(--fw-300);
  line-height: 1.35;
}

/* Mobile */
@media (max-width: 580px) {
  .case-main {
    margin: 18px auto 80px;
    padding: 0 12px;
  }

  .case-back-btn {
    position: sticky;
    top: 12px;
    left: 0;
    margin-bottom: 12px;
  }

  .case-hero {
    padding-top: 8px;
  }

  .case-title {
    font-size: 26px;
  }

  .case-carousel-slide > * {
    height: 300px;
    border-radius: 16px;
  }

  .case-tabs {
    top: 58px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 30px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .case-tabs::-webkit-scrollbar {
    display: none;
  }

  .case-tabs a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  

  .case-two-column {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 26px;
}

  .case-section {
    margin-bottom: 26px;
    scroll-margin-top: 120px;
  }

  .case-gallery {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .case-gallery::-webkit-scrollbar {
    display: none;
  }

  .case-gallery-item {
    flex: 0 0 82%;
    height: 300px;
    scroll-snap-align: start;
  }

  .case-mobile-gallery-dots {
    display: flex;
  }

.case-next-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.case-next-card {
  padding: 14px 14px 22px;
  border-radius: 22px;
}

.case-next-thumb {
  height: 220px;
  border-radius: 18px;
  margin-bottom: 18px;
}

.case-next-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.case-next-card p {
  font-size: 17px;
}
}

@media (hover: hover) {
  .case-next-card:hover {
    transform: translateY(-8px) scale(1.018);
    border-color: hsla(45, 100%, 72%, 0.18);
    box-shadow:
      0 24px 45px hsla(0, 0%, 0%, 0.34),
      0 8px 18px hsla(45, 100%, 72%, 0.08);
  }

  .case-next-card:hover .case-next-thumb img {
    transform: scale(1.045);
  }
}

.case-next-thumb img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

/*-----------------------------------*\
  #PORTFOLIO DETAIL PAGE LAYOUT FIX
\*-----------------------------------*/

/* Stop the old vCard main layout from affecting portfolio-detail.html */
body.portfolio-detail-page main.case-main {
  display: block !important;
  width: min(100% - 32px, 980px) !important;
  max-width: 980px !important;
  min-width: 0 !important;
  margin: 32px auto 80px !important;
  padding: 0 16px !important;
}

/* Make every main section stack vertically */
body.portfolio-detail-page .case-main > * {
  width: 100%;
}

/* Keep the case sections normal, not flex children behaving strangely */
body.portfolio-detail-page .case-hero,
body.portfolio-detail-page .case-section,
body.portfolio-detail-page .case-two-column,
body.portfolio-detail-page .case-next-projects {
  display: block;
}

/* Restore the two-column card section properly */
body.portfolio-detail-page .case-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Hide mobile gallery dots on desktop */
body.portfolio-detail-page .case-mobile-gallery-dots {
  display: none;
}

/* Mobile corrections */
@media (max-width: 580px) {
  body.portfolio-detail-page main.case-main {
    width: 100% !important;
    margin: 18px auto 80px !important;
    padding: 0 12px !important;
  }

  body.portfolio-detail-page .case-two-column {
    grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 26px;
}

  body.portfolio-detail-page .case-mobile-gallery-dots {
    display: flex;
  }
}

/*-----------------------------------*\
  #CASE STUDY DESKTOP POLISH FIX
\*-----------------------------------*/

@media (min-width: 581px) {

  body.portfolio-detail-page main.case-main {
    display: block !important;
    width: min(100% - 48px, 1050px) !important;
    max-width: 1050px !important;
    min-width: 0 !important;
    margin: 32px auto 90px !important;
    padding: 0 !important;

    background: hsla(240, 2%, 12%, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow-5);
    overflow: visible;
  }

  body.portfolio-detail-page .case-hero {
    padding: 84px 24px 22px;
  }

  body.portfolio-detail-page .case-section,
  body.portfolio-detail-page .case-two-column,
  body.portfolio-detail-page .case-next-projects {
    padding-left: 28px;
    padding-right: 28px;
  }

  body.portfolio-detail-page .case-tabs {
    width: max-content !important;
    max-width: calc(100% - 56px);
    margin: 0 auto 42px;
    padding: 8px;
    flex-wrap: nowrap;
  }

  body.portfolio-detail-page .case-tabs a {
    white-space: nowrap;
  }

  body.portfolio-detail-page .case-mobile-gallery-dots {
    display: none !important;
  }
}

/*-----------------------------------*\
  #CASE DETAIL HERO SPACING FIX
\*-----------------------------------*/

@media (min-width: 581px) {

  body.portfolio-detail-page .case-hero {
    padding-top: 46px !important;
  }

  body.portfolio-detail-page .case-back-btn {
    top: 52px;
    left: max(28px, calc((100vw - 1050px) / 2 + 28px));
  }

}

/*-----------------------------------*\
  #CASE DETAIL POLISH PATCH
\*-----------------------------------*/

body.portfolio-detail-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* shared sticky position */
body.portfolio-detail-page {
  --case-sticky-top: 26px;
}

/* align back button with sticky tab menu */
@media (min-width: 581px) {
  body.portfolio-detail-page .case-back-btn {
    top: calc(var(--case-sticky-top) + 9px);
    left: max(28px, calc((100vw - 1050px) / 2 + 28px));
  }

  body.portfolio-detail-page .case-tabs {
    top: var(--case-sticky-top);
  }
}

/* yellow button glow */
body.portfolio-detail-page .case-back-btn,
body.portfolio-detail-page .case-tabs a.active,
body.portfolio-detail-page .case-dot.active {
  box-shadow: 0 10px 24px hsla(45, 100%, 72%, 0.20);
}

body.portfolio-detail-page .case-tabs a.active,
body.portfolio-detail-page .case-back-btn {
  animation: caseActiveGlow 3.2s ease-in-out infinite;
}

@keyframes caseActiveGlow {
  0% {
    box-shadow: 0 8px 20px hsla(45, 100%, 72%, 0.14);
  }

  50% {
    box-shadow: 0 12px 30px hsla(45, 100%, 72%, 0.28);
  }

  100% {
    box-shadow: 0 8px 20px hsla(45, 100%, 72%, 0.14);
  }
}

/* Figma-style thin yellow ellipse under section headings */
body.portfolio-detail-page .case-section > h2,
body.portfolio-detail-page .case-info-card h2 {
  position: relative;
  padding-bottom: 18px;
}

body.portfolio-detail-page .case-section > h2::after,
body.portfolio-detail-page .case-info-card h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(90%, 760px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsla(45, 100%, 72%, 0.18) 8%,
    hsla(45, 100%, 72%, 0.8) 50%,
    hsla(45, 100%, 72%, 0.18) 92%,
    transparent 100%
  );
  border-radius: 999px;
}

/* carousel round corners */
body.portfolio-detail-page .case-carousel-slide,
body.portfolio-detail-page .case-carousel-slide > *,
body.portfolio-detail-page .case-carousel-slide img,
body.portfolio-detail-page .case-img-placeholder {
  border-radius: 18px;
  overflow: hidden;
}

/* gallery images should feel clickable and rounded */
body.portfolio-detail-page .case-gallery-item {
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
}

body.portfolio-detail-page .case-gallery-item > * {
  border-radius: inherit;
  overflow: hidden;
}

body.portfolio-detail-page .case-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*-----------------------------------*\
  #CASE IMAGE PREVIEW MODAL
\*-----------------------------------*/

.case-image-preview {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.case-image-preview.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.case-preview-overlay {
  position: fixed;
  inset: 0;
  background: hsla(0, 0%, 0%, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.case-preview-panel {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 1050px);
  height: calc(100vh - 70px);
  margin: 35px auto;
  padding: 26px 72px 28px;
  border-radius: 24px;
  background: hsla(240, 2%, 12%, 0.92);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  box-shadow: var(--shadow-5);
  display: flex;
  flex-direction: column;
}

.case-preview-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-preview-frame {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 210px);
  border-radius: 20px;
  overflow: hidden;
  animation: casePreviewSlideIn 0.55s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.case-preview-frame > * {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.case-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--smoky-black);
}

@keyframes casePreviewSlideIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.case-preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--text-gradient-yellow);
  color: var(--smoky-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 24px hsla(45, 100%, 72%, 0.20);
}

.case-preview-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--text-gradient-yellow);
  color: var(--smoky-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transform: translateY(-50%);
  box-shadow: 0 10px 24px hsla(45, 100%, 72%, 0.20);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.case-preview-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.case-preview-arrow-left {
  left: 18px;
}

.case-preview-arrow-right {
  right: 18px;
}

.case-preview-arrow.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.case-preview-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.case-preview-thumbs::-webkit-scrollbar {
  display: none;
}

.case-preview-thumb {
  width: 74px;
  height: 56px;
  flex: 0 0 74px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.55;
  transition:
    opacity 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.case-preview-thumb.active {
  opacity: 1;
  border-color: var(--orange-yellow-crayola);
  transform: translateY(-2px);
}

.case-preview-thumb > * {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.case-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.case-preview-open {
  overflow: hidden;
}

@media (max-width: 580px) {
  .case-preview-panel {
    width: calc(100% - 20px);
    height: calc(100vh - 40px);
    margin: 20px auto;
    padding: 64px 14px 20px;
    border-radius: 18px;
  }

  .case-preview-frame {
    max-height: calc(100vh - 210px);
    border-radius: 16px;
  }

  .case-preview-arrow {
    width: 40px;
    height: 40px;
  }

  .case-preview-arrow-left {
    left: 12px;
  }

  .case-preview-arrow-right {
    right: 12px;
  }

  .case-preview-thumb {
    width: 62px;
    height: 48px;
    flex-basis: 62px;
  }
}

/*-----------------------------------*\
  #CASE BACK BUTTON POSITION REFINEMENT
\*-----------------------------------*/

@media (min-width: 581px) {
  body.portfolio-detail-page .case-back-btn {
    left: max(15px, calc((100vw - 1050px) / 2 + 10px)) !important;
	top: 50px;
  }
}

/*-----------------------------------*\
  #CASE BACK BUTTON TWO-STATE POSITION
\*-----------------------------------*/

@media (min-width: 581px) {

  /* Normal position near top-left of the case box */
  body.portfolio-detail-page .case-back-btn {
    top: 50px !important;
    left: max(15px, calc((100vw - 1050px) / 2 + 10px)) !important;
    transition:
      left 0.45s cubic-bezier(0.22, 1.25, 0.36, 1),
      top 0.45s cubic-bezier(0.22, 1.25, 0.36, 1),
      transform 0.35s ease;
  }

  /* When tab bar becomes sticky, move the button into tab-bar alignment */
  body.portfolio-detail-page.case-tabs-stuck .case-back-btn {
    top: calc(var(--case-sticky-top) + 9px) !important;
    left: max(28px, calc((100vw - 1050px) / 2 + 28px)) !important;
  }

}

/*-----------------------------------*\
  #CASE BREADCRUMB LINKS
\*-----------------------------------*/

body.portfolio-detail-page .case-breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: var(--orange-yellow-crayola);
  font-size: 12px;
  font-weight: var(--fw-500);
  margin-bottom: 8px;
}

body.portfolio-detail-page .case-breadcrumb a {
  color: var(--orange-yellow-crayola);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

body.portfolio-detail-page .case-breadcrumb a:hover {
  opacity: 0.72;
  transform: translateY(-1px);
}

body.portfolio-detail-page .case-breadcrumb span {
  color: hsla(45, 100%, 72%, 0.55);
}

/*-----------------------------------*\
  #CASE GALLERY IMAGE HOVER EFFECT
\*-----------------------------------*/

body.portfolio-detail-page .case-gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--onyx);
  transform: translateY(0) scale(1);
  transition:
    transform 0.72s cubic-bezier(0.22, 1.15, 0.36, 1),
    box-shadow 0.72s ease,
    opacity 0.45s ease;
}

body.portfolio-detail-page .case-gallery-item > * {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  transform-origin: center;
  transition:
    transform 0.85s cubic-bezier(0.22, 1.15, 0.36, 1),
    filter 0.65s ease;
  will-change: transform;
}

body.portfolio-detail-page .case-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.portfolio-detail-page .case-gallery-item:hover {
  transform: translateY(-4px) scale(1.018);
  box-shadow: 0 18px 42px hsla(0, 0%, 0%, 0.34);
  z-index: 2;
}

body.portfolio-detail-page .case-gallery-item:hover > * {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* Piano-like handover: hovered image rises, surrounding images gently settle */
body.portfolio-detail-page .case-gallery:hover .case-gallery-item:not(:hover) {
  transform: scale(0.992);
  opacity: 0.88;
}

body.portfolio-detail-page .case-gallery:hover .case-gallery-item:not(:hover) > * {
  transform: scale(1.01);
  filter: brightness(0.92);
}

body.portfolio-detail-page .case-gallery-item:active {
  transform: translateY(-1px) scale(0.99);
}

/*-----------------------------------*\
  #HERO CAROUSEL IMAGE HOVER EFFECT
\*-----------------------------------*/

body.portfolio-detail-page .case-carousel-slide {
  pointer-events: auto;
  cursor: zoom-in;
}

body.portfolio-detail-page .case-carousel-slide > * {
  transform-origin: center;
  transition:
    transform 0.85s cubic-bezier(0.22, 1.15, 0.36, 1),
    filter 0.65s ease,
    box-shadow 0.65s ease;
  will-change: transform;
}

/* Active/hovered carousel image slowly grows from centre */
body.portfolio-detail-page .case-carousel-slide:hover > * {
  transform: scale(1.055);
  filter: brightness(1.06);
  box-shadow: 0 20px 46px hsla(0, 0%, 0%, 0.34);
}

/* Piano-like handover: other carousel images gently settle */
body.portfolio-detail-page .case-carousel-track:hover .case-carousel-slide:not(:hover) > * {
  transform: scale(0.985);
  filter: brightness(0.90);
}

/* Keep the hidden slide from interfering */
body.portfolio-detail-page .case-carousel-slide:not(.is-active):not(.is-prev):not(.is-next) {
  pointer-events: none;
}

/*-----------------------------------*\
  #CASE TAB BAR DROP SHADOW
\*-----------------------------------*/

body.portfolio-detail-page .case-tabs {
  box-shadow:
    0 18px 42px hsla(0, 0%, 0%, 0.26),
    0 1px 0 hsla(0, 0%, 100%, 0.04) inset;
}

/*-----------------------------------*\
  #CASE BREADCRUMB CURRENT LINK
\*-----------------------------------*/

body.portfolio-detail-page .case-breadcrumb [data-case-current-link] {
  color: var(--white-2);
}

body.portfolio-detail-page .case-breadcrumb [data-case-current-link]:hover {
  color: var(--orange-yellow-crayola);
}

/*-----------------------------------*\
  #CASE BREADCRUMB FINAL STYLE
\*-----------------------------------*/

body.portfolio-detail-page .case-breadcrumb {
  gap: 7px;
}

/* All breadcrumb links by default */
body.portfolio-detail-page .case-breadcrumb a {
  color: var(--white-2) !important;
  font-weight: var(--fw-400);
  opacity: 1;
  transform: translateY(0);
  transition:
    font-weight 0.25s ease,
    transform 0.35s cubic-bezier(0.22, 1.25, 0.36, 1),
    opacity 0.25s ease;
}

/* Current page */
body.portfolio-detail-page .case-breadcrumb [data-case-current-link] {
  color: var(--orange-yellow-crayola) !important;
  font-weight: var(--fw-600);
}

/* Separator */
body.portfolio-detail-page .case-breadcrumb span {
  color: hsla(45, 100%, 72%, 0.55);
  font-weight: var(--fw-400);
}

/* Hover only on previous breadcrumb links, not current page */
body.portfolio-detail-page .case-breadcrumb a:not([data-case-current-link]):hover {
  color: var(--white-2) !important;
  font-weight: var(--fw-600);
  animation: breadcrumbFloatOnce 0.55s cubic-bezier(0.22, 1.25, 0.36, 1) 1;
}

@keyframes breadcrumbFloatOnce {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-4px);
  }
}

/* Current page should stay stable */
body.portfolio-detail-page .case-breadcrumb [data-case-current-link]:hover {
  color: var(--orange-yellow-crayola) !important;
  font-weight: var(--fw-600);
  transform: none;
}

/*-----------------------------------*\
  #CASE BREADCRUMB SMOOTH HOVER FLOAT
\*-----------------------------------*/

body.portfolio-detail-page .case-breadcrumb a {
  color: var(--white-2) !important;
  font-weight: var(--fw-400);
  opacity: 1;
  transform: translateY(0);
  transition:
    transform 0.42s cubic-bezier(0.22, 1.25, 0.36, 1),
    font-weight 0.25s ease,
    opacity 0.25s ease;
}

/* Current page */
body.portfolio-detail-page .case-breadcrumb [data-case-current-link] {
  color: var(--orange-yellow-crayola) !important;
  font-weight: var(--fw-600);
}

/* Previous breadcrumb links hover */
body.portfolio-detail-page .case-breadcrumb a:not([data-case-current-link]):hover {
  color: var(--white-2) !important;
  font-weight: var(--fw-600);
  transform: translateY(-4px);
}

/* Current page hover */
body.portfolio-detail-page .case-breadcrumb [data-case-current-link]:hover {
  color: var(--orange-yellow-crayola) !important;
  font-weight: var(--fw-600);
  transform: translateY(-4px);
}

/* Separator */
body.portfolio-detail-page .case-breadcrumb span {
  color: hsla(45, 100%, 72%, 0.55);
  font-weight: var(--fw-400);
}

/*-----------------------------------*\
  #MOBILE CASE DETAIL CARD + HERO CAROUSEL FIX
\*-----------------------------------*/

@media (max-width: 580px) {

  /* Make the inner page feel like an article/card, like desktop */
  body.portfolio-detail-page main.case-main {
    width: calc(100% - 10px) !important;
    margin: 10px auto 80px !important;
    padding: 0 0 28px !important;

    background: hsla(240, 2%, 12%, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid hsla(0, 0%, 100%, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow-5);

    overflow: hidden;
  }

  /* Hero spacing inside the card */
  body.portfolio-detail-page .case-hero {
    padding: 52px 0 18px !important;
  }

  body.portfolio-detail-page .case-breadcrumb {
    padding: 0 18px;
    font-size: 10px;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  body.portfolio-detail-page .case-title {
    font-size: 23px;
    line-height: 1.12;
    padding: 0 14px;
    margin-bottom: 8px;
  }

  body.portfolio-detail-page .case-industry {
    font-size: 12px;
    padding: 0 18px;
    margin-bottom: 26px;
  }

  /* Figma-like mobile hero carousel */
  body.portfolio-detail-page .case-hero-carousel {
    margin-bottom: 16px;
  }

  body.portfolio-detail-page .case-carousel-viewport {
    width: 100%;
    max-width: none;
    height: 330px;
    margin: 0 auto;
    overflow: hidden;
  }

  body.portfolio-detail-page .case-carousel-track {
    height: 100%;
  }

  body.portfolio-detail-page .case-carousel-slide {
    width: 64%;
    height: 100%;
    top: 50%;
    left: 50%;
  }

  body.portfolio-detail-page .case-carousel-slide.is-active {
    transform: translate(-50%, -50%) scale(1);
  }

  body.portfolio-detail-page .case-carousel-slide.is-prev {
    transform: translate(-128%, -50%) scale(0.76);
  }

  body.portfolio-detail-page .case-carousel-slide.is-next {
    transform: translate(28%, -50%) scale(0.76);
  }

  body.portfolio-detail-page .case-carousel-slide > * {
    width: 100%;
    height: 100% !important;
    border-radius: 14px;
  }

  body.portfolio-detail-page .case-carousel-dots {
    margin-top: 13px;
  }

  /* Back button should sit inside the card neatly */
  body.portfolio-detail-page .case-back-btn {
    position: fixed;
    top: 18px;
    left: 16px;
    width: 34px;
    height: 34px;
    font-size: 18px;
    z-index: 100;
  }
}

/*-----------------------------------*\
  #MOBILE CASE BACK BUTTON SIZE
\*-----------------------------------*/

@media (max-width: 580px) {
  body.portfolio-detail-page .case-back-btn {
    width: 40px;
    height: 40px;
    font-size: 21px;
    top: 18px;
    left: 16px;
  }
}

/*-----------------------------------*\
  #MOBILE INNER PAGE NAVBAR
\*-----------------------------------*/

.case-mobile-navbar {
  display: none;
}

@media (max-width: 580px) {
  body.portfolio-detail-page {
    padding-bottom: 76px;
  }

  body.portfolio-detail-page main.case-main {
    margin-bottom: 96px !important;
  }

  .case-mobile-navbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    display: block;
    width: 100%;
    height: 66px;

    background: hsla(240, 1%, 17%, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid hsla(0, 0%, 100%, 0.08);
    border-radius: 18px 18px 0 0;

    box-shadow: 0 -12px 35px hsla(0, 0%, 0%, 0.34);
    z-index: 500;
  }

  .case-mobile-navbar-list {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6px;
    gap: 4px;
  }

  .case-mobile-navbar-list li {
    width: 25%;
  }

  .case-mobile-navbar-link {
    min-height: 44px;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--light-gray);
    font-size: 14px;
    font-weight: var(--fw-400);
    line-height: 1;

    border-radius: 14px;

    transition:
      background 0.32s ease,
      color 0.32s ease,
      transform 0.22s ease,
      box-shadow 0.32s ease;
  }

  .case-mobile-navbar-link.active {
    background: var(--text-gradient-yellow);
    color: var(--smoky-black);
    font-weight: var(--fw-500);
    box-shadow: 0 10px 24px hsla(45, 100%, 72%, 0.18);
    animation: activeNavGlow 3.2s ease-in-out infinite;
  }

  .case-mobile-navbar-link:active {
    transform: scale(0.94) translateY(2px);
  }
}



/*-----------------------------------*\
  #MOBILE CLIENT INFO IMAGE CAROUSEL
\*-----------------------------------*/

@media (max-width: 580px) {

  /* Sticky tab needs this parent to stay visible */
  body.portfolio-detail-page main.case-main {
    overflow: visible !important;
  }

  /* Only the client carousel area should control its own overflow */
  body.portfolio-detail-page #client-info {
    overflow: hidden;
  }

  body.portfolio-detail-page .client-image-strip {
    width: 100%;
    max-width: 100%;

    display: flex;
    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    animation: none !important;
    transform: none !important;

    scrollbar-width: none;
    -ms-overflow-style: none;

    padding-bottom: 4px;
  }

  body.portfolio-detail-page .client-image-strip::-webkit-scrollbar {
    display: none;
  }

  body.portfolio-detail-page .client-strip-item {
    flex: 0 0 82%;
    width: auto;
    height: 120px;

    scroll-snap-align: start;

    border-radius: 14px;
    overflow: hidden;
  }

  body.portfolio-detail-page .client-strip-item > * {
    width: 100%;
    height: 100%;
    border-radius: inherit;
  }

  body.portfolio-detail-page .client-mobile-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
  }
}

/*-----------------------------------*\
  #MOBILE PORTFOLIO DETAIL PAGE SIDE PADDING
\*-----------------------------------*/

@media (max-width: 580px) {

  /* Keep the outer article/card clean */
  body.portfolio-detail-page main.case-main {
    width: calc(100% - 18px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Give all content sections proper mobile spacing */
  body.portfolio-detail-page .case-section,
body.portfolio-detail-page .case-two-column,
body.portfolio-detail-page .case-next-projects {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

  /* Hero text should also align with the same grid */
  bbody.portfolio-detail-page .case-breadcrumb,
body.portfolio-detail-page .case-title,
body.portfolio-detail-page .case-industry {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

  /* Keep carousel full-width, like your Figma layout */
  body.portfolio-detail-page .case-hero-carousel {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Keep sticky tab menu aligned with the same visual margin */
  body.portfolio-detail-page .case-tabs {
  width: calc(100% - 20px) !important;
}
}

/*-----------------------------------*\
  #MOBILE REMOVE EXTRA SPACE AFTER RELATED PROJECTS
\*-----------------------------------*/

@media (max-width: 580px) {

  body.portfolio-detail-page main.case-main {
    margin-bottom: 15px !important;
    padding-bottom: 8px !important;
  }

  body.portfolio-detail-page .case-next-projects {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.portfolio-detail-page .case-next-grid {
    margin-bottom: 0 !important;
  }

  body.portfolio-detail-page .case-next-card:last-child {
    margin-bottom: 0 !important;
  }
}

/*-----------------------------------*\
  #HIDE CASE CAROUSEL DOTS ON DESKTOP
\*-----------------------------------*/

@media (min-width: 581px) {
  body.portfolio-detail-page .case-carousel-dots,
  body.portfolio-detail-page .case-mobile-gallery-dots,
  body.portfolio-detail-page .client-mobile-carousel-dots {
    display: none !important;
  }
}

/*-----------------------------------*\
  #MOBILE INNER PAGE WITHOUT TAB BAR
\*-----------------------------------*/

@media (max-width: 580px) {

  /* Remove tab bar only on mobile */
  body.portfolio-detail-page .case-tabs,
  body.portfolio-detail-page .case-tabs-mobile-spacer {
    display: none !important;
  }

  /* Keep the page clean and sticky-friendly */
  body.portfolio-detail-page main.case-main {
    overflow: visible !important;
  }

  /* Back button fixed position */
  body.portfolio-detail-page .case-back-btn {
    position: fixed !important;
    top: 18px !important;
    left: 16px !important;

    width: 40px;
    height: 40px;

    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;

    z-index: 460;

    transition:
      opacity 0.38s ease,
      transform 0.48s cubic-bezier(0.22, 1.25, 0.36, 1);
  }

  /* Scroll down: back button exits naturally */
  body.portfolio-detail-page.case-mobile-back-hidden .case-back-btn {
    opacity: 0;
    transform: translateY(-64px) scale(0.92);
    pointer-events: none;
  }

  /* Scroll up/top: back button comes back naturally */
  body.portfolio-detail-page:not(.case-mobile-back-hidden) .case-back-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  /* Since tab bar is gone, sections need less scroll offset */
  body.portfolio-detail-page .case-section,
  body.portfolio-detail-page .case-info-card {
    scroll-margin-top: 80px;
  }
}

/*-----------------------------------*\
  #TESTIMONIAL CAROUSEL + MODAL REDESIGN
\*-----------------------------------*/

.testimonials {
  margin-bottom: 36px;
}

.testimonial-carousel {
  width: 100%;
}

.testimonials-list {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  padding: 0px 0 24px;
  margin: 0;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials-list::-webkit-scrollbar {
  display: none;
}

.testimonials-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.testimonial-card {
  position: relative;
  min-height: 240px;
  padding: 26px;
  border-radius: 18px;
  background: hsla(240, 2%, 16%, 0.72);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  box-shadow: var(--shadow-2);
}

.testimonials-avatar-box {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-gradient-onyx);
  box-shadow: var(--shadow-1);
}

.testimonials-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials-item-title {
  margin: 0 0 5px;
  color: var(--white-2);
}

.testimonial-person-meta,
.modal-person-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;

  color: var(--light-gray-70);
  font-size: var(--fs-7);
  line-height: 1.4;
}

.testimonial-person-meta a,
.modal-person-meta a {
  color: var(--light-gray-70);
  transition:
    color 0.28s ease,
    font-weight 0.28s ease,
    transform 0.28s ease;
}

.testimonial-person-meta a:hover,
.modal-person-meta a:hover {
  color: var(--orange-yellow-crayola);
  font-weight: var(--fw-600);
  transform: translateY(-1px);
}

.testimonials-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.65;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;

  margin-bottom: 10px;
}

.testimonial-read-more {
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-6);
  font-weight: var(--fw-600);
  line-height: 1;
  transition:
    color 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1.25, 0.36, 1);
}

.testimonial-read-more:hover {
  transform: translateY(-2px);
}

.testimonial-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}

.testimonial-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: hsla(45, 100%, 72%, 0.28);
  transition:
    width 0.32s ease,
    background 0.32s ease;
}

.testimonial-carousel-dot.active {
  width: 22px;
  background: var(--orange-yellow-crayola);
}


/* Modal overlay */
.testimonials-modal-container {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  visibility: hidden;
  pointer-events: none;
}

.testimonials-modal-container.active {
  visibility: visible;
  pointer-events: all;
}

.testimonials-modal-container .testimonials-overlay {
  opacity: 0;
  background: hsl(0, 0%, 0%);
  transition: opacity 0.55s ease;
}

.testimonials-modal-container.active .testimonials-overlay {
  opacity: 0.5;
  visibility: visible;
  pointer-events: all;
}

.testimonials-modal {
  position: relative;
  z-index: 2;

  width: 750px;
  height: 450px;
  max-width: calc(100% - 32px);

  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: start;

  padding: 38px;
  border-radius: 24px;

  background: hsla(240, 2%, 12%, 0.96);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  box-shadow: var(--shadow-5);

  opacity: 0;
  transform: scale(0.82) translateY(34px);
  transition:
    opacity 0.65s ease,
    transform 0.75s cubic-bezier(0.22, 1.25, 0.36, 1);
}

.testimonials-modal-container.active .testimonials-modal {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.testimonials-modal .modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;
  background: var(--text-gradient-yellow);
  color: var(--smoky-black);

  font-size: 24px;
  box-shadow: 0 10px 24px hsla(45, 100%, 72%, 0.20);
  opacity: 1;
}

.testimonials-modal .modal-img-wrapper {
  display: block;
}

.testimonials-modal .modal-avatar-box {
  width: 150px;
  height: 150px;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-gradient-onyx);
  box-shadow: var(--shadow-2);
}

.testimonials-modal .modal-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials-modal .modal-title {
  margin-bottom: 6px;
  color: var(--white-2);
}

.testimonials-modal .modal-text-scroll {
  max-height: 275px;
  overflow-y: auto;
  padding-right: 8px;

  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.75;
}

.testimonials-modal .modal-text-scroll::-webkit-scrollbar {
  width: 5px;
}

.testimonials-modal .modal-text-scroll::-webkit-scrollbar-thumb {
  background: hsla(45, 100%, 72%, 0.45);
  border-radius: 999px;
}

body.testimonial-modal-open {
  overflow: hidden;
}

@media (max-width: 580px) {

  .testimonials-list {
    gap: 16px;
    padding: 4px 0 22px;
  }

  .testimonial-card {
    padding: 22px;
    min-height: 250px;
  }

  .testimonials-avatar-box {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .testimonials-modal {
    width: calc(100% - 24px);
    height: auto;
    max-height: 450px;

    display: flex;
    flex-direction: column;
    gap: 18px;

    padding: 28px 22px 24px;
    border-radius: 20px;

    overflow: hidden;
  }

  .testimonials-modal .modal-avatar-box {
    width: 100px;
    height: 100px;
    border-radius: 18px;
  }

  .testimonials-modal .modal-title {
    font-size: 22px;
  }

  .testimonials-modal .modal-person-meta {
    margin-bottom: 12px;
  }

  .testimonials-modal .modal-text-scroll {
    max-height: 190px;
    overflow-y: auto;
    padding-right: 8px;
  }

  .testimonials-modal .modal-close-btn {
    width: 38px;
    height: 38px;
    top: 14px;
    right: 14px;
    font-size: 22px;
  }
}


/*-----------------------------------*\
  #TESTIMONIAL CARD DISPLAY FIX
\*-----------------------------------*/

.testimonial-card {
  display: block;
}

/*-----------------------------------*\
  #TESTIMONIAL FINAL CAROUSEL + MODAL FIX
\*-----------------------------------*/

/* Desktop: two-column carousel */
@media (min-width: 581px) {
  /* Same heading-to-container distance for Core Strengths and Testimonials */
  .service-title,
  .testimonials-title {
    margin-bottom: 15px !important;
  }

  .testimonials-list {
    gap: 22px;
    padding-top: 0 !important;
    scroll-snap-type: x mandatory;
  }

  .service-list {
    margin-top: 0 !important;
  }

  .testimonials-item {
    flex: 0 0 calc(50% - 11px) !important;
    min-width: 0 !important;
    scroll-snap-align: start;
  }
}

/* Mobile: one-card carousel */
@media (max-width: 580px) {
  .testimonials-item {
    flex: 0 0 100% !important;
    min-width: 0 !important;
    scroll-snap-align: center;
  }
}


/* Modal should always centre on viewport */
.testimonials-modal-container {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 20px;
  overflow: hidden !important;

  visibility: hidden;
  pointer-events: none;
}

.testimonials-modal-container.active {
  visibility: visible !important;
  pointer-events: all !important;
}

/* 50% black overlay */
.testimonials-modal-container .testimonials-overlay,
.testimonials-modal-container .overlay {
  position: fixed !important;
  inset: 0 !important;

  background: hsl(0, 0%, 0%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;

  z-index: 1 !important;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.testimonials-modal-container.active .testimonials-overlay,
.testimonials-modal-container .testimonials-overlay.active,
.testimonials-modal-container.active .overlay,
.testimonials-modal-container .overlay.active {
  opacity: 0.5 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

/* Popup panel */
.testimonials-modal {
  position: relative !important;
  z-index: 2 !important;

  width: 750px !important;
  height: 450px !important;
  max-width: calc(100vw - 40px) !important;

  margin: 0 !important;

  display: grid !important;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: start;

  padding: 38px !important;
  border-radius: 24px !important;

  background: hsla(240, 2%, 12%, 0.96) !important;
  border: 1px solid hsla(0, 0%, 100%, 0.08) !important;
  box-shadow: var(--shadow-5) !important;

  opacity: 0;
  transform: scale(0.82) translateY(34px);
  transition:
    opacity 0.65s ease,
    transform 0.75s cubic-bezier(0.22, 1.25, 0.36, 1);
}

.testimonials-modal-container.active .testimonials-modal {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.testimonials-modal .modal-content {
  color: var(--light-gray);
}

.testimonials-modal .modal-title {
  color: var(--white-2);
}

.testimonials-modal .modal-text-scroll {
  color: var(--light-gray);
}


/* Mobile modal */
@media (max-width: 580px) {
  .testimonials-modal-container {
    padding: 16px;
    align-items: center !important;
  }

  .testimonials-modal {
    width: calc(100vw - 28px) !important;
    height: auto !important;
    max-height: 450px !important;

    display: flex !important;
    flex-direction: column;
    gap: 16px;

    padding: 26px 20px 22px !important;
    border-radius: 20px !important;

    overflow: hidden !important;
  }

  .testimonials-modal .modal-avatar-box {
    width: 100px !important;
    height: 100px !important;
  }

  .testimonials-modal .modal-text-scroll {
    max-height: 175px !important;
    overflow-y: auto !important;
    padding-right: 8px;
  }

  /* Mobile: keep website/company text yellow */
  .testimonial-person-meta a,
  .modal-person-meta a {
    color: var(--orange-yellow-crayola) !important;
    font-weight: var(--fw-600);
  }
}

/*-----------------------------------*\
  #TESTIMONIAL DESKTOP ARROWS + SMOOTH MODAL EXIT
\*-----------------------------------*/

/* Prevent website shifting right when modal opens */
html {
  scrollbar-gutter: stable;
}

body.testimonial-modal-open {
  overflow: hidden;
  padding-right: 0 !important;
}

/* Smooth closing state */
.testimonials-modal-container.is-closing {
  visibility: visible !important;
  pointer-events: none !important;
}

.testimonials-modal-container.is-closing .testimonials-overlay,
.testimonials-modal-container.is-closing .overlay {
  opacity: 0 !important;
  visibility: visible !important;
}

.testimonials-modal-container.is-closing .testimonials-modal {
  opacity: 0 !important;
  transform: scale(0.82) translateY(34px) !important;
}

/* Make overlay exactly 50% black */
.testimonials-modal-container.active .testimonials-overlay,
.testimonials-modal-container.active .overlay {
  opacity: 0.5 !important;
}

/* Keep modal properly centred */
.testimonials-modal-container {
  align-items: center !important;
  justify-content: center !important;
}

/* Desktop two-column testimonial carousel */
@media (min-width: 581px) {
  .testimonial-carousel {
    position: relative;
  }

  .testimonials-item {
    flex: 0 0 calc(50% - 11px) !important;
    min-width: 0 !important;
    scroll-snap-align: start;
  }

  .testimonials-list {
    gap: 22px;
    scroll-snap-type: x mandatory;
  }

  .testimonial-carousel-arrow {
    position: absolute;
    top: calc(50% - 14px);
    z-index: 4;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background: var(--text-gradient-yellow);
    color: var(--smoky-black);
    font-size: 28px;

    opacity: 0;
    pointer-events: none;

    box-shadow:
      0 14px 34px hsla(0, 0%, 0%, 0.38),
      0 10px 24px hsla(45, 100%, 72%, 0.20);

    transform: translateY(-50%) scale(0.92);

    transition:
      opacity 0.35s ease,
      transform 0.45s cubic-bezier(0.22, 1.25, 0.36, 1);
  }

  .testimonial-carousel-arrow-prev {
    left: -18px;
  }

  .testimonial-carousel-arrow-next {
    right: -18px;
  }

  .testimonial-carousel:hover .testimonial-carousel-arrow:not(.is-hidden) {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
  }

  .testimonial-carousel-arrow:hover {
    transform: translateY(-50%) scale(1.08) !important;
  }

  .testimonial-carousel-arrow.is-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Hide arrows on mobile */
@media (max-width: 580px) {
  .testimonial-carousel-arrow {
    display: none !important;
  }
}

/*-----------------------------------*\
  #TESTIMONIAL ARROW ICON SIZE
\*-----------------------------------*/

.testimonial-carousel-arrow ion-icon {
  font-size: 20px;
}

/*-----------------------------------*\
  #TESTIMONIAL COMPANY LINK THEME COLOUR
\*-----------------------------------*/

.testimonial-person-meta a,
.modal-person-meta a {
  color: var(--orange-yellow-crayola) !important;
  font-weight: var(--fw-600);
}

.testimonial-person-meta a:hover,
.modal-person-meta a:hover {
  color: var(--orange-yellow-crayola) !important;
  font-weight: var(--fw-600);
  transform: translateY(-1px);
}

/*-----------------------------------*\
  #TESTIMONIAL READ MORE MINI BUTTON
\*-----------------------------------*/

.testimonial-read-more {
  width: max-content;
  min-height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 14px;
  margin-top: 8px;

  border-radius: 999px;
  background: var(--text-gradient-yellow);
  color: var(--smoky-black) !important;

  font-size: 12px;
  font-weight: var(--fw-600);
  line-height: 1;

  box-shadow: 0 8px 18px hsla(45, 100%, 72%, 0.16);

  transition:
    transform 0.32s cubic-bezier(0.22, 1.25, 0.36, 1),
    box-shadow 0.32s ease,
    opacity 0.32s ease;
}

.testimonial-read-more:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 26px hsla(45, 100%, 72%, 0.24);
}

.testimonial-read-more:active {
  transform: translateY(1px) scale(0.96);
}

/*-----------------------------------*\
  #TESTIMONIAL CARD IMAGE SIZE
\*-----------------------------------*/

.testimonials-avatar-box {
  width: 92px !important;
  height: 92px !important;
  border-radius: 18px !important;
  overflow: hidden;
}

.testimonials-avatar-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/*-----------------------------------*\
  #PORTFOLIO CARD SMOOTH LIFT EFFECT
\*-----------------------------------*/

.project-item {
  position: relative;
}

.project-item > a {
  display: block;
  width: 100%;

  transform: translateY(0) scale(1);
  transform-origin: center;
  will-change: transform;

  transition:
    transform 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.42s ease;
}

@media (hover: hover) {
  .project-item:hover {
    z-index: 5;
  }

  .project-item > a:hover {
    transform: translateY(-10px) scale(1.025);
    box-shadow:
      0 24px 45px hsla(0, 0%, 0%, 0.34),
      0 8px 18px hsla(45, 100%, 72%, 0.08);
  }

  .project-item > a:hover .project-img img {
    transform: scale(1.035);
  }
}
/* Remove portfolio detail back button only on mobile */
@media (max-width: 580px) {
  body.portfolio-detail-page .case-back-btn {
    display: none !important;
    pointer-events: none !important;
  }
}

/* Mobile portfolio detail: stronger top hero text */
@media (max-width: 580px) {
  body.portfolio-detail-page .case-main {
    padding-top: 12px !important;
  }

  body.portfolio-detail-page .case-hero {
    padding-top: 30px !important;
  }

  body.portfolio-detail-page .case-breadcrumb {
    font-size: 12px !important;
    font-weight: var(--fw-500);
    margin-bottom: 8px !important;
	
  }

  body.portfolio-detail-page .case-title {
    font-size: 25px !important;
    line-height: 1.18 !important;
    margin-bottom: 8px !important;
	margin-top: 15px !important;
  }

  body.portfolio-detail-page .case-industry {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 25px !important;
  }
}

/*-----------------------------------*\
  #PORTFOLIO DETAIL STATIC COVER PLACEHOLDER
\*-----------------------------------*/

.case-cover-placeholder {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 34px 0 46px;
}

.case-cover-placeholder-box {
  width: 900px;
  height: 500px;
  max-width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 22px;
  background: linear-gradient(135deg, hsl(0, 0%, 78%), hsl(0, 0%, 64%));
  color: hsl(0, 0%, 30%);

  font-size: 16px;
  font-weight: var(--fw-500);
  letter-spacing: 0.2px;

  overflow: hidden;
}

@media (max-width: 580px) {
  .case-cover-placeholder {
    margin: 24px 0 36px;
  }

  .case-cover-placeholder-box {
    width: 320px;
    height: 450px;
    max-width: 100%;

    border-radius: 18px;

    font-size: 13px;
  }
}

/* Portfolio detail top nav hide on scroll */
body.portfolio-detail-page .case-top-nav {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;

  transition:
    opacity 0.38s ease,
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

body.portfolio-detail-page .case-top-nav.hidden {
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
}

/*-----------------------------------*\
  #PORTFOLIO DETAIL INNER PAGE NAVBAR
\*-----------------------------------*/

body.portfolio-detail-page main.case-main {
  position: relative;
}

body.portfolio-detail-page .case-top-nav {
  position: absolute;
  top: 0;
  right: 0;

  z-index: 70;

  height: 60px;
  width: max-content;

  padding: 0 8px;

  background: hsla(240, 1%, 17%, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border: 1px solid hsla(0, 0%, 100%, 0.08);
  border-radius: 0 20px;

  box-shadow: none;

  opacity: 1;
  transform: none;
  pointer-events: auto;
}

body.portfolio-detail-page .case-top-nav.is-hidden {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

body.portfolio-detail-page .case-top-nav-list {
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 24px;
  padding: 0 12px;
}

body.portfolio-detail-page .case-top-nav-link {
  min-height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;
  border-radius: 14px;

  color: var(--light-gray);
  font-size: 15px;
  font-weight: var(--fw-500);
  line-height: 1;

  transition:
    color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.18s ease;
}

body.portfolio-detail-page .case-top-nav-link:hover,
body.portfolio-detail-page .case-top-nav-link:focus {
  color: var(--white-2);
}

body.portfolio-detail-page .case-top-nav-link.active {
  background: var(--text-gradient-yellow);
  color: var(--smoky-black);
  box-shadow: 0 10px 24px hsla(45, 100%, 72%, 0.18);
  animation: activeNavGlow 3.2s ease-in-out infinite;
}

body.portfolio-detail-page .case-top-nav-link:active {
  transform: scale(0.94) translateY(2px);
}

@media (max-width: 580px) {
  body.portfolio-detail-page .case-top-nav {
    display: none !important;
  }
}

  body.portfolio-detail-page .case-mobile-navbar {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;

    transition:
      opacity 0.42s ease,
      transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body.portfolio-detail-page .case-mobile-navbar.is-hidden {
    opacity: 0;
    transform: translateY(105%);
    pointer-events: none;
  }
}

/* Mobile: hide desktop top nav, keep bottom mobile nav */
@media (max-width: 580px) {
  body.portfolio-detail-page .case-top-nav {
    display: none !important;
  }

  body.portfolio-detail-page .case-mobile-navbar {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;

    transition:
      opacity 0.42s ease,
      transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body.portfolio-detail-page .case-mobile-navbar.is-hidden {
    opacity: 0;
    transform: translateY(105%);
    pointer-events: none;
  }
}

/*-----------------------------------*\
  #MOBILE MAIN NAVBAR HIDE ON SCROLL
\*-----------------------------------*/

@media (max-width: 580px) {
  .navbar {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;

    transition:
      opacity 0.42s ease,
      transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .navbar.is-hidden {
    opacity: 0;
    transform: translateY(105%);
    pointer-events: none;
  }
}

/* Add breathing space between inner page nav and breadcrumb */
@media (min-width: 581px) {
  body.portfolio-detail-page .case-breadcrumb {
    margin-top: 54px !important;
  }
}

/*-----------------------------------*\
  #DESKTOP CASE CLIENT INFO BANNER
\*-----------------------------------*/

.case-client-info-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 56px;

  width: 100%;
}

@media (min-width: 581px) {
  body.portfolio-detail-page .case-hero {
    padding: 92px 52px 42px !important;
    text-align: left;
  }

  body.portfolio-detail-page .case-client-info-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 56px;

    width: 100%;
    margin-top: 28px;
  }

  body.portfolio-detail-page .case-banner-copy {
    max-width: 690px;
  }

  body.portfolio-detail-page .case-banner-title {
    color: var(--white-2);
    font-size: 30px;
    line-height: 1.2;
    font-weight: var(--fw-600);
    letter-spacing: -0.4px;
    margin-bottom: 18px;
  }

  body.portfolio-detail-page .case-banner-title span:first-child {
    display: inline;
    color: var(--orange-yellow-crayola);
  }

  body.portfolio-detail-page .case-banner-title span:last-child {
    display: inline;
    color: var(--white-2);
  }

  body.portfolio-detail-page .case-banner-intro-row {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: start;
    gap: 16px;

    margin-bottom: 22px;
  }

  body.portfolio-detail-page .case-banner-icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--text-gradient-yellow);
    color: var(--smoky-black);

    font-size: 20px;
    font-weight: var(--fw-600);

    box-shadow: 0 12px 28px hsla(45, 100%, 72%, 0.22);
  }

  body.portfolio-detail-page .case-banner-copy p {
    color: var(--light-gray);
    font-size: var(--fs-6);
    font-weight: var(--fw-300);
    line-height: 1.75;
    margin-bottom: 20px;
  }

  body.portfolio-detail-page .case-banner-intro-row p {
    margin-bottom: 0;
  }

  body.portfolio-detail-page .case-project-summary-card {
    position: relative;

    padding: 26px 28px;
    border-radius: 20px;

    background:
      radial-gradient(circle at 18% 18%, hsla(45, 100%, 78%, 0.24), transparent 28%),
      radial-gradient(circle at 82% 76%, hsla(35, 100%, 68%, 0.18), transparent 30%),
      var(--text-gradient-yellow);

    color: var(--smoky-black);

    overflow: hidden;
    box-shadow:
      0 24px 58px hsla(0, 0%, 0%, 0.30),
      0 10px 28px hsla(45, 100%, 72%, 0.18);
  }

  body.portfolio-detail-page .case-project-summary-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
      repeating-linear-gradient(
        135deg,
        hsla(0, 0%, 100%, 0.12) 0px,
        hsla(0, 0%, 100%, 0.12) 2px,
        transparent 2px,
        transparent 14px
      );

    opacity: 0.22;
    pointer-events: none;
  }

  body.portfolio-detail-page .case-project-summary-card div {
    position: relative;
    z-index: 1;
  }

  body.portfolio-detail-page .case-project-summary-card div:not(:last-child) {
    margin-bottom: 24px;
  }

  body.portfolio-detail-page .case-project-summary-card p {
    color: hsla(0, 0%, 7%, 0.72);
    font-size: 13px;
    font-weight: var(--fw-400);
    line-height: 1.3;
    margin-bottom: 5px;
  }

  body.portfolio-detail-page .case-project-summary-card h3 {
    color: var(--smoky-black);
    font-size: 18px;
    font-weight: var(--fw-600);
    line-height: 1.25;
  }
}

/* Center hero title and industry text on portfolio detail page */
@media (min-width: 581px) {
  body.portfolio-detail-page .case-title,
  body.portfolio-detail-page .case-industry {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Reduce gap between cover image and tab bar */
@media (min-width: 581px) {
  body.portfolio-detail-page .case-cover-placeholder {
    margin-bottom: 35px !important;
  }

  body.portfolio-detail-page .case-hero {
    padding-bottom: 8px !important;
  }
}

/* Reduce gap above portfolio detail breadcrumb */
@media (min-width: 581px) {
  body.portfolio-detail-page .case-hero {
    padding-top: 90px !important;
  }

  body.portfolio-detail-page .case-breadcrumb {
    margin-top: 8px !important;
  }
}

/*-----------------------------------*\
  #MOBILE CLIENT INFO ORDER FIX
\*-----------------------------------*/

@media (max-width: 580px) {

  /* Hide inner section tab bar on mobile so the order stays clean */
  body.portfolio-detail-page .case-tabs {
    display: none !important;
  }

  /* Pull client info closer after the main image */
  body.portfolio-detail-page #client-info {
    margin-top: 0 !important;
    padding-top: 0 !important;
    text-align: center;
  }

  body.portfolio-detail-page .case-client-info-banner {
    display: flex !important;
    flex-direction: column;
    gap: 26px;
    width: 100%;
  }

  /* 1st inside client info: yellow block */
  body.portfolio-detail-page .case-project-summary-card {
    order: 1;

    width: 100%;
    padding: 24px 22px;
    border-radius: 18px;

    background:
      radial-gradient(circle at 18% 18%, hsla(45, 100%, 78%, 0.24), transparent 28%),
      radial-gradient(circle at 82% 76%, hsla(35, 100%, 68%, 0.18), transparent 30%),
      var(--text-gradient-yellow);

    color: var(--smoky-black);
    text-align: center;

    box-shadow:
      0 22px 50px hsla(0, 0%, 0%, 0.28),
      0 10px 28px hsla(45, 100%, 72%, 0.16);

    overflow: hidden;
  }

  body.portfolio-detail-page .case-project-summary-card div:not(:last-child) {
    margin-bottom: 20px;
  }

  body.portfolio-detail-page .case-project-summary-card p {
    color: hsla(0, 0%, 7%, 0.72);
    font-size: 12px;
    font-weight: var(--fw-400);
    line-height: 1.3;
    margin-bottom: 5px;
  }

  body.portfolio-detail-page .case-project-summary-card h3 {
    color: var(--smoky-black);
    font-size: 17px;
    font-weight: var(--fw-600);
    line-height: 1.25;
  }

  /* 2nd inside client info: text section */
  body.portfolio-detail-page .case-banner-copy {
    order: 2;
    max-width: 100%;
    text-align: center;
  }

  body.portfolio-detail-page .case-banner-title {
    text-align: center;
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 18px;
  }

  body.portfolio-detail-page .case-banner-title span:first-child {
    display: block;
    color: var(--orange-yellow-crayola);
  }

  body.portfolio-detail-page .case-banner-title span:last-child {
    display: block;
    color: var(--white-2);
  }

  body.portfolio-detail-page .case-banner-intro-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
  }

  body.portfolio-detail-page .case-banner-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background: var(--text-gradient-yellow);
    color: var(--smoky-black);

    font-size: 18px;
    font-weight: var(--fw-600);
  }

  body.portfolio-detail-page .case-banner-copy p {
    text-align: center;
    color: var(--light-gray);
    font-size: var(--fs-6);
    font-weight: var(--fw-300);
    line-height: 1.7;
    margin-bottom: 18px;
  }
}

/* Remove yellow D icon from mobile client info section */
@media (max-width: 580px) {
  body.portfolio-detail-page .case-banner-icon {
    display: none !important;
  }

  body.portfolio-detail-page .case-banner-intro-row {
    gap: 0 !important;
  }
}

/* Match mobile main banner width with yellow summary section */
@media (max-width: 580px) {
  body.portfolio-detail-page .case-cover-placeholder {
    width: 100%;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body.portfolio-detail-page .case-cover-placeholder-box {
    width: 100% !important;
    max-width: none !important;
    height: 450px !important;
  }
}

/* Reduce mobile gap between cover image and yellow project summary */
@media (max-width: 580px) {
  body.portfolio-detail-page .case-cover-placeholder {
    margin-bottom: 25px !important;
  }

  body.portfolio-detail-page .case-hero {
    padding-bottom: 4px !important;
  }

  body.portfolio-detail-page #client-info {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* Increase mobile gap between yellow block and client info heading */
@media (max-width: 580px) {
  body.portfolio-detail-page .case-client-info-banner {
    gap: 30px !important;
  }
}

/*-----------------------------------*\
  #CASE PROJECT TOOLS LOGOS
\*-----------------------------------*/

.case-tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}


@media (max-width: 580px) {
  .case-tools-list {
    justify-content: center;
  }

}

/*-----------------------------------*\
  #YELLOW SUMMARY CARD CONTROL PANEL
\*-----------------------------------*/

body.portfolio-detail-page {
  /* Card size control */
  --summary-card-padding-y: 25px;
  --summary-card-padding-x: 25px;
  --summary-card-radius: 20px;

  /* Gap between My Role / Deliverables / Tools Used */
  --summary-section-gap: 20px;

  /* Section heading: My Role, Deliverables, Tools Used */
  --summary-label-size: 13px;
  --summary-label-weight: var(--fw-400);
  --summary-label-line-height: 1.25;
  --summary-label-gap: 5px;

  /* Body text: Graphic Designer, deliverables copy */
  --summary-body-size: 16px;
  --summary-body-weight: var(--fw-600);
  --summary-body-line-height: 1.28;

  /* Tool pills */
  --tool-list-column-gap: 10px;
  --tool-list-row-gap: 10px;
  --tool-pill-height: 38px;
  --tool-pill-padding-x: 12px;
  --tool-pill-radius: 999px;
  --tool-pill-font-size: 12px;
  --tool-pill-font-weight: var(--fw-500);
  --tool-pill-icon-size: 20px;
  --tool-pill-gap: 8px;
}

/* Actual yellow card */
body.portfolio-detail-page .case-project-summary-card {
  padding: var(--summary-card-padding-y) var(--summary-card-padding-x) !important;
  border-radius: var(--summary-card-radius) !important;
}

/* Important: only target the main sections, not every inner div */
body.portfolio-detail-page .case-project-summary-card > div:not(:last-child) {
  margin-bottom: var(--summary-section-gap) !important;
}

body.portfolio-detail-page .case-project-summary-card p {
  font-size: var(--summary-label-size) !important;
  font-weight: var(--summary-label-weight) !important;
  line-height: var(--summary-label-line-height) !important;
  margin-bottom: var(--summary-label-gap) !important;
}

body.portfolio-detail-page .case-project-summary-card h3 {
  font-size: var(--summary-body-size) !important;
  font-weight: var(--summary-body-weight) !important;
  line-height: var(--summary-body-line-height) !important;
}

/*-----------------------------------*\
  #TOOLS USED ICON GRID
\*-----------------------------------*/

body.portfolio-detail-page .case-tools-list {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 10px !important;
  margin-top: 14px !important;
  align-items: left !important;
  justify-items: left !important;
}

body.portfolio-detail-page .case-tool-item {
  width: 100% !important;
  display: flex !important;
  align-items: left !important;
  justify-content: left !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.portfolio-detail-page .case-tool-item img {
  width: 35px !important;
  height: 35px !important;
  object-fit: contain !important;
  display: block !important;
}

body.portfolio-detail-page .case-tool-item span {
  display: none !important;
}

/* Mobile-specific control */
@media (max-width: 580px) {
  body.portfolio-detail-page {
    --summary-card-padding-y: 20px;
    --summary-card-padding-x: 20px;
    --summary-card-radius: 18px;

    --summary-section-gap: 20px;

    --summary-label-size: 12px;
    --summary-label-gap: 2px;

    --summary-body-size: 18px;
    --summary-body-line-height: 1.25;

    --tool-list-column-gap: 8px;
    --tool-list-row-gap: 8px;
    --tool-pill-height: 34px;
    --tool-pill-padding-x: 10px;
    --tool-pill-font-size: 11px;
    --tool-pill-icon-size: 18px;
    --tool-pill-gap: 7px;
  }

  body.portfolio-detail-page .case-tools-list {
    justify-content: center !important;
  }
}

@media (max-width: 580px) {
  body.portfolio-detail-page .case-tools-list {
    grid-template-columns: repeat(4, max-content) !important;
    justify-content: center !important;
    justify-items: center !important;

    column-gap: 16px !important;
    row-gap: 14px !important;
  }

  body.portfolio-detail-page .case-tool-item img {
    width: 36px !important;
    height: 36px !important;
  }
}

/* Remove case banner icon spacing completely */
body.portfolio-detail-page .case-banner-intro-row {
  display: block !important;
  grid-template-columns: none !important;
}

body.portfolio-detail-page .case-banner-icon {
  display: none !important;
}

/*-----------------------------------*\
  #CASE CLIENT INFO TEXT CONTROL PANEL
\*-----------------------------------*/

body.portfolio-detail-page {
  /* Whole text section */
  --case-info-copy-max-width: 720px;
  --case-info-copy-gap: 22px;

  /* Main title */
  --case-info-title-size: 32px;
  --case-info-title-weight: var(--fw-600);
  --case-info-title-line-height: 1.18;
  --case-info-title-margin-bottom: 14px;

  /* Yellow project title part */
  --case-info-title-highlight-color: var(--orange-yellow-crayola);

  /* White subtitle */
  --case-info-subtitle-size: 20px;
  --case-info-subtitle-weight: var(--fw-500);
  --case-info-subtitle-line-height: 1.45;
  --case-info-subtitle-margin-bottom: 28px;
  --case-info-subtitle-color: var(--white-2);

  /* Body paragraphs */
  --case-info-body-size: 15px;
  --case-info-body-weight: var(--fw-300);
  --case-info-body-line-height: 1.75;
  --case-info-body-margin-bottom: 22px;
  --case-info-body-color: var(--light-gray);
}

/* Desktop: left aligned */
body.portfolio-detail-page .case-banner-copy {
  max-width: var(--case-info-copy-max-width);
  text-align: left;
}

body.portfolio-detail-page .case-banner-title {
  color: var(--white-2);
  font-size: var(--case-info-title-size) !important;
  font-weight: var(--case-info-title-weight);
  line-height: var(--case-info-title-line-height);
  margin-bottom: var(--case-info-title-margin-bottom);
}

body.portfolio-detail-page .case-banner-title span:first-child {
  display: inline;
  color: var(--case-info-title-highlight-color);
}

body.portfolio-detail-page .case-banner-title span:last-child {
  display: inline;
  color: var(--white-2);
}

body.portfolio-detail-page .case-banner-subtitle {
  color: var(--case-info-subtitle-color);
  font-size: var(--case-info-subtitle-size);
  font-weight: var(--case-info-subtitle-weight);
  line-height: var(--case-info-subtitle-line-height);
  margin-bottom: var(--case-info-subtitle-margin-bottom);
}

body.portfolio-detail-page .case-banner-copy p:not(.case-banner-subtitle) {
  color: var(--case-info-body-color);
  font-size: var(--case-info-body-size);
  font-weight: var(--case-info-body-weight);
  line-height: var(--case-info-body-line-height);
  margin-bottom: var(--case-info-body-margin-bottom);
}

/* Mobile: center aligned */
@media (max-width: 580px) {
  body.portfolio-detail-page {
    --case-info-copy-max-width: 100%;

    --case-info-title-size: 26px;
    --case-info-title-line-height: 1.18;
    --case-info-title-margin-bottom: 12px;

    --case-info-subtitle-size: 17px;
    --case-info-subtitle-line-height: 1.45;
    --case-info-subtitle-margin-bottom: 24px;

    --case-info-body-size: 14px;
    --case-info-body-line-height: 1.7;
    --case-info-body-margin-bottom: 18px;
  }

  body.portfolio-detail-page .case-banner-copy {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }

  body.portfolio-detail-page .case-banner-title,
  body.portfolio-detail-page .case-banner-subtitle,
  body.portfolio-detail-page .case-banner-copy p {
    text-align: center !important;
  }

  body.portfolio-detail-page .case-banner-title span:first-child,
  body.portfolio-detail-page .case-banner-title span:last-child {
    display: block;
  }
}

/*-----------------------------------*\
  #CASE OVERVIEW QUESTION BLOCKS
\*-----------------------------------*/

body.portfolio-detail-page {
  /* Whole overview block spacing */
  --overview-blocks-gap: 10px;
  --overview-block-margin-top: 15px;

  /* H2 question controls */
  --overview-question-size: 18px;
  --overview-question-weight: var(--fw-600);
  --overview-question-line-height: 1.35;
  --overview-question-color: var(--white-2);
  --overview-question-margin-bottom: 8px;

  /* Body paragraph controls */
  --overview-body-size: 15px;
  --overview-body-weight: var(--fw-300);
  --overview-body-line-height: 1.7;
  --overview-body-color: var(--light-gray);
}

body.portfolio-detail-page .case-overview-blocks {
  display: grid;
  gap: var(--overview-blocks-gap);
  margin-top: var(--overview-block-margin-top);
}

body.portfolio-detail-page .case-overview-block h2 {
  color: var(--overview-question-color);
  font-size: var(--overview-question-size);
  font-weight: var(--overview-question-weight);
  line-height: var(--overview-question-line-height);
  margin-bottom: var(--overview-question-margin-bottom);
}

body.portfolio-detail-page .case-overview-block p {
  color: var(--overview-body-color);
  font-size: var(--overview-body-size);
  font-weight: var(--overview-body-weight);
  line-height: var(--overview-body-line-height);
  margin-bottom: 0;
}

/* Mobile: centre aligned */
@media (max-width: 580px) {
  body.portfolio-detail-page {
    --overview-blocks-gap: 26px;
    --overview-block-margin-top: 26px;

    --overview-question-size: 17px;
    --overview-question-margin-bottom: 8px;

    --overview-body-size: 14px;
    --overview-body-line-height: 1.7;
  }

  body.portfolio-detail-page .case-overview-blocks,
  body.portfolio-detail-page .case-overview-block,
  body.portfolio-detail-page .case-overview-block h2,
  body.portfolio-detail-page .case-overview-block p {
    text-align: center !important;
  }
}

/*-----------------------------------*\
  #OVERVIEW BLOCKS FULL WIDTH AFTER CARD
\*-----------------------------------*/

@media (min-width: 581px) {
  body.portfolio-detail-page .case-client-info-banner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px !important;
    column-gap: 56px !important;
    row-gap: 34px !important;
    align-items: start !important;
  }

  body.portfolio-detail-page .case-banner-copy {
    display: contents !important;
  }

  body.portfolio-detail-page .case-overview-blocks {
    display: contents !important;
  }

  body.portfolio-detail-page .case-banner-title {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0 !important;
  }

  body.portfolio-detail-page .case-project-summary-card {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  body.portfolio-detail-page .case-overview-block:nth-child(1) {
    grid-column: 1;
    grid-row: 2;
  }

  body.portfolio-detail-page .case-overview-block:nth-child(2) {
    grid-column: 1;
    grid-row: 3;
  }

  body.portfolio-detail-page .case-overview-block:nth-child(n + 3) {
    grid-column: 1 / -1;
  }

  body.portfolio-detail-page .case-overview-block:nth-child(n + 3) p {
    max-width: 100%;
  }
}

/* Reduce gap between overview body copy and next H2 */
@media (min-width: 581px) {
  body.portfolio-detail-page .case-client-info-banner {
    row-gap: 20px !important;
  }

  body.portfolio-detail-page .case-overview-block p {
    margin-bottom: 0 !important;
  }
}

/* Reduce mobile gap between overview body copy and next H2 */
@media (max-width: 580px) {
  body.portfolio-detail-page {
    --overview-blocks-gap: 10px;
  }

  body.portfolio-detail-page .case-overview-blocks {
    gap: 12px !important;
  }

  body.portfolio-detail-page .case-overview-block p {
    margin-bottom: 0 !important;
  }
}

/*-----------------------------------*\
  #CASE BEST WORK GRID
\*-----------------------------------*/

body.portfolio-detail-page .case-best-work-section {
  margin-bottom: 54px;
}

body.portfolio-detail-page .case-best-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

body.portfolio-detail-page .case-best-work-item {
  width: 100%;
  aspect-ratio: 1 / 1;

  position: relative;
  display: block;

  border-radius: 16px;
  overflow: hidden;
  background: var(--onyx);

  cursor: zoom-in;

  transform: translateY(0) scale(1);

  transition:
    transform 0.72s cubic-bezier(0.22, 1.15, 0.36, 1),
    box-shadow 0.72s ease,
    opacity 0.45s ease;
}

body.portfolio-detail-page .case-best-work-item > * {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;

  transform-origin: center;

  transition:
    transform 0.85s cubic-bezier(0.22, 1.15, 0.36, 1),
    filter 0.65s ease;
}

body.portfolio-detail-page .case-best-work-item img,
body.portfolio-detail-page .case-best-work-item .case-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Same smooth piano-key hover effect */
body.portfolio-detail-page .case-best-work-item:hover {
  transform: translateY(-4px) scale(1.018);
  box-shadow: 0 18px 42px hsla(0, 0%, 0%, 0.34);
  z-index: 2;
}

body.portfolio-detail-page .case-best-work-item:hover > * {
  transform: scale(1.08);
  filter: brightness(1.05);
}

body.portfolio-detail-page .case-best-work-grid:hover .case-best-work-item:not(:hover) {
  transform: scale(0.992);
  opacity: 0.88;
}

body.portfolio-detail-page .case-best-work-grid:hover .case-best-work-item:not(:hover) > * {
  transform: scale(1.01);
  filter: brightness(0.92);
}

body.portfolio-detail-page .case-best-work-item:active {
  transform: translateY(-1px) scale(0.99);
}

/* Mobile: one image per row, full width inside article padding */
@media (max-width: 580px) {
  body.portfolio-detail-page .case-best-work-section {
    margin-bottom: 42px;
  }

  body.portfolio-detail-page .case-best-work-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.portfolio-detail-page .case-best-work-item {
    border-radius: 14px;
  }
}

/*-----------------------------------*\
  #CASE PREVIEW MOBILE ARROW LAYER FIX
\*-----------------------------------*/

body.portfolio-detail-page .case-preview-stage {
  position: relative;
  z-index: 1;
}

body.portfolio-detail-page .case-preview-frame {
  position: relative;
  z-index: 1;
}

body.portfolio-detail-page .case-preview-arrow {
  z-index: 8 !important;
}

body.portfolio-detail-page .case-preview-close {
  z-index: 10 !important;
}

body.portfolio-detail-page .case-preview-thumbs {
  position: relative;
  z-index: 6;
}

/*-----------------------------------*\
  #PORTFOLIO DETAIL FIX PATCH
\*-----------------------------------*/

body.portfolio-detail-page .case-cover-placeholder {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 36px;
}

body.portfolio-detail-page .case-cover-placeholder-box {
  width: 100%;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--onyx);
}

body.portfolio-detail-page .case-cover-placeholder-box > * {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

body.portfolio-detail-page .case-cover-placeholder-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.portfolio-detail-page .case-client-info-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: start;
}

body.portfolio-detail-page .case-banner-title {
  color: var(--white-2);
  font-size: var(--fs-2);
  line-height: 1.25;
  margin-bottom: 20px;
  text-align: left;
}

body.portfolio-detail-page .case-overview-block {
  margin-bottom: 0px;
}

body.portfolio-detail-page .case-overview-block h2 {
  color: var(--white-2);
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 8px;
}

body.portfolio-detail-page .case-overview-block p {
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.75;
}

body.portfolio-detail-page .case-project-summary-card {
  padding: 26px;
  border-radius: 20px;
  background: var(--text-gradient-yellow);
  color: var(--smoky-black);
  box-shadow:
    0 24px 58px hsla(0, 0%, 0%, 0.30),
    0 10px 28px hsla(45, 100%, 72%, 0.18);
}

body.portfolio-detail-page .case-project-summary-card div:not(:last-child) {
  margin-bottom: 22px;
}

body.portfolio-detail-page .case-project-summary-card p {
  color: hsla(0, 0%, 7%, 0.72);
  font-size: 13px;
  font-weight: var(--fw-400);
  margin-bottom: 6px;
}

body.portfolio-detail-page .case-project-summary-card h3 {
  color: var(--smoky-black);
  font-size: 18px;
  font-weight: var(--fw-600);
  line-height: 1.25;
}

body.portfolio-detail-page .case-tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.portfolio-detail-page .case-tool-item {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: hsla(0, 0%, 100%, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
}

body.portfolio-detail-page .case-tool-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.portfolio-detail-page .case-best-work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

body.portfolio-detail-page .case-best-work-item {
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--onyx);
  cursor: zoom-in;
}

body.portfolio-detail-page .case-best-work-item > * {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

body.portfolio-detail-page .case-best-work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 580px) {
  body.portfolio-detail-page .case-cover-placeholder {
    margin-bottom: 26px;
  }

  body.portfolio-detail-page .case-cover-placeholder-box {
    height: 300px;
    border-radius: 16px;
  }

  body.portfolio-detail-page .case-client-info-banner {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  body.portfolio-detail-page .case-banner-title {
    text-align: center;
    font-size: 20px;
  }

  body.portfolio-detail-page .case-overview-block {
    text-align: center;
  }

  body.portfolio-detail-page .case-project-summary-card {
    width: 100%;
    text-align: center;
  }

  body.portfolio-detail-page .case-tools-list {
    justify-content: center;
  }

  body.portfolio-detail-page .case-best-work-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body.portfolio-detail-page .case-best-work-grid::-webkit-scrollbar {
    display: none;
  }

  body.portfolio-detail-page .case-best-work-item {
    flex: 0 0 82%;
    height: 300px;
    scroll-snap-align: start;
  }
}

/*-----------------------------------*\
  #DAGDUSHETH BEST WORK DESKTOP FIX
\*-----------------------------------*/

@media (min-width: 581px) {

  /* Remove Best Work title and ellipse if any h2 exists */
  body.portfolio-detail-page .case-best-work-section > h2 {
    display: none !important;
  }

  body.portfolio-detail-page .case-best-work-section > h2::after {
    display: none !important;
  }

  /* Keep Best Work as one horizontal 4-column row */
  body.portfolio-detail-page .case-best-work-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
  }

  body.portfolio-detail-page .case-best-work-item {
    width: 100% !important;
    aspect-ratio: 1 / 0.72 !important;
    height: auto !important;
  }
}

/*-----------------------------------*\
  #DAGDUSHETH BRANDING DESKTOP GRID FIX
\*-----------------------------------*/

@media (min-width: 581px) {

  /* Festival Logos layout:
     Row 1 = 6 small cards
     Row 2 = 3 wide cards
  */
  body.portfolio-detail-page .case-gallery-festivalLogos,
  body.portfolio-detail-page .case-gallery-brandingLogos,
  body.portfolio-detail-page [data-gallery="brandingLogos"] {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 18px 22px !important;
    align-items: stretch !important;
  }

  body.portfolio-detail-page .case-gallery-festivalLogos .case-gallery-item,
  body.portfolio-detail-page .case-gallery-brandingLogos .case-gallery-item,
  body.portfolio-detail-page [data-gallery="brandingLogos"] .case-gallery-item {
    height: auto !important;
    aspect-ratio: 1.62 / 1 !important;
    border-radius: 10px !important;
  }

  /* Last 3 festival logos become wider, like your reference */
  body.portfolio-detail-page .case-gallery-festivalLogos .case-gallery-item:nth-child(n + 7),
  body.portfolio-detail-page .case-gallery-brandingLogos .case-gallery-item:nth-child(n + 7),
  body.portfolio-detail-page [data-gallery="brandingLogos"] .case-gallery-item:nth-child(n + 7) {
    grid-column: span 2 !important;
    aspect-ratio: 3.1 / 1 !important;
  }

  /* Wallpapers: 4 equal horizontal cards */
  body.portfolio-detail-page .case-gallery-wallpapers,
  body.portfolio-detail-page [data-gallery="wallpapers"] {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.portfolio-detail-page .case-gallery-wallpapers .case-gallery-item,
  body.portfolio-detail-page [data-gallery="wallpapers"] .case-gallery-item {
    height: auto !important;
    aspect-ratio: 1.78 / 1 !important;
    border-radius: 10px !important;
  }

  body.portfolio-detail-page .case-gallery-festivalLogos img,
  body.portfolio-detail-page .case-gallery-brandingLogos img,
  body.portfolio-detail-page .case-gallery-wallpapers img,
  body.portfolio-detail-page [data-gallery="brandingLogos"] img,
  body.portfolio-detail-page [data-gallery="wallpapers"] img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/*-----------------------------------*\
  #DAGDUSHETH MOBILE SECTION LAYOUTS
\*-----------------------------------*/

@media (max-width: 580px) {

  /* ----------------------------------
     BEST WORK
     Remove title/ellipse/carousel feel.
     Show all 4 images one below another.
  ---------------------------------- */

  body.portfolio-detail-page .case-best-work-section > h2,
  body.portfolio-detail-page .case-best-work-section > h2::after {
    display: none !important;
  }

  body.portfolio-detail-page .case-best-work-section {
    margin-bottom: 20px !important;
  }

  body.portfolio-detail-page .case-best-work-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;

    overflow: visible !important;
    width: 100% !important;
  }

  body.portfolio-detail-page .case-best-work-item {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;

    flex: none !important;
    scroll-snap-align: unset !important;
  }


  /* ----------------------------------
     BRANDING: FESTIVAL LOGOS
     2-column grid for first 6.
     Last 3 full-width horizontal banners.
  ---------------------------------- */

  body.portfolio-detail-page .case-gallery-festivalLogos {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;

    overflow: visible !important;
    width: 100% !important;
  }

  body.portfolio-detail-page .case-gallery-festivalLogos .case-gallery-item {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.48 / 1 !important;

    flex: none !important;
    scroll-snap-align: unset !important;

    border-radius: 9px !important;
  }

  body.portfolio-detail-page .case-gallery-festivalLogos .case-gallery-item:nth-child(n + 7) {
    grid-column: 1 / -1 !important;
    aspect-ratio: 3.05 / 1 !important;
  }


  /* ----------------------------------
     BRANDING: WALLPAPERS
     2-column grid.
  ---------------------------------- */

  body.portfolio-detail-page .case-gallery-wallpapers {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;

    overflow: visible !important;
    width: 100% !important;
  }

  body.portfolio-detail-page .case-gallery-wallpapers .case-gallery-item {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.55 / 1 !important;

    flex: none !important;
    scroll-snap-align: unset !important;

    border-radius: 8px !important;
  }


  /* ----------------------------------
     CAMPAIGN:
     Ganesh Utsav 2025 + Ganesh Janma Sohola 2025
     2-column full grid, no carousel.
  ---------------------------------- */

  body.portfolio-detail-page .case-gallery-ganeshUtsav2024,
body.portfolio-detail-page .case-gallery-ganeshUtsav2025,
body.portfolio-detail-page .case-gallery-ganeshJanmaSohola2025 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;

    overflow: visible !important;
    width: 100% !important;
  }

  body.portfolio-detail-page .case-gallery-ganeshUtsav2024 .case-gallery-item,
body.portfolio-detail-page .case-gallery-ganeshUtsav2025 .case-gallery-item,
body.portfolio-detail-page .case-gallery-ganeshJanmaSohola2025 .case-gallery-item {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 0.72 / 1 !important;

    flex: none !important;
    scroll-snap-align: unset !important;

    border-radius: 8px !important;
  }


  /* ----------------------------------
     CAMPAIGN:
     Atirudra + Shahale
     Horizontal carousel with dots.
  ---------------------------------- */

  body.portfolio-detail-page .case-gallery-atirudraMahayadnya2025,
  body.portfolio-detail-page .case-gallery-shahaleMohotsav2025 {
    display: flex !important;
    gap: 12px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  body.portfolio-detail-page .case-gallery-atirudraMahayadnya2025::-webkit-scrollbar,
  body.portfolio-detail-page .case-gallery-shahaleMohotsav2025::-webkit-scrollbar {
    display: none !important;
  }

  body.portfolio-detail-page .case-gallery-atirudraMahayadnya2025 .case-gallery-item,
  body.portfolio-detail-page .case-gallery-shahaleMohotsav2025 .case-gallery-item {
    flex: 0 0 82% !important;
    width: auto !important;
    height: auto !important;
    aspect-ratio: 0.72 / 1 !important;

    scroll-snap-align: start !important;

    border-radius: 9px !important;
  }


  /* ----------------------------------
     SOCIAL MEDIA POSTS:
     Both daily posting subsections become carousel.
  ---------------------------------- */

  body.portfolio-detail-page .case-gallery-dailyPostingRugnaseva,
  body.portfolio-detail-page .case-gallery-dailyPostingTopical {
    display: flex !important;
    gap: 12px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  body.portfolio-detail-page .case-gallery-dailyPostingRugnaseva::-webkit-scrollbar,
  body.portfolio-detail-page .case-gallery-dailyPostingTopical::-webkit-scrollbar {
    display: none !important;
  }

  body.portfolio-detail-page .case-gallery-dailyPostingRugnaseva .case-gallery-item,
  body.portfolio-detail-page .case-gallery-dailyPostingTopical .case-gallery-item {
    flex: 0 0 82% !important;
    width: auto !important;
    height: auto !important;
    aspect-ratio: 0.72 / 1 !important;

    scroll-snap-align: start !important;

    border-radius: 9px !important;
  }


  /* ----------------------------------
     Shared image behaviour
  ---------------------------------- */

  body.portfolio-detail-page .case-gallery-item img,
  body.portfolio-detail-page .case-best-work-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.portfolio-detail-page .case-gallery-item .case-img-placeholder,
  body.portfolio-detail-page .case-best-work-item .case-img-placeholder {
    width: 100% !important;
    height: 100% !important;
  }


  /* ----------------------------------
     Dots only where JS creates carousel dots.
  ---------------------------------- */

  body.portfolio-detail-page .case-mobile-gallery-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    gap: 6px !important;
    margin-top: 10px !important;
    margin-bottom: 26px !important;
  }

  body.portfolio-detail-page .case-mobile-gallery-dots .case-dot {
    width: 5px !important;
    height: 5px !important;
    border-radius: 999px !important;
    background: hsla(45, 100%, 72%, 0.35) !important;
  }

  body.portfolio-detail-page .case-mobile-gallery-dots .case-dot.active {
    width: 20px !important;
    background: var(--orange-yellow-crayola) !important;
  }
}

/* Best Work: only 2 items */
@media (min-width: 581px) {
  body.portfolio-detail-page .case-best-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 580px) {
  body.portfolio-detail-page .case-best-work-grid {
    grid-template-columns: 1fr !important;
  }
}

/*-----------------------------------*\
  #PREVIEW POPUP HUG IMAGE WIDTH
\*-----------------------------------*/

body.portfolio-detail-page .case-preview-panel {
  width: fit-content !important;
  max-width: calc(100vw - 40px) !important;
}

body.portfolio-detail-page .case-preview-stage {
  width: fit-content !important;
  max-width: 100% !important;
}

body.portfolio-detail-page .case-preview-frame {
  width: fit-content !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: calc(100vh - 210px) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: transparent !important;
}

body.portfolio-detail-page .case-preview-frame img {
  width: auto !important;
  height: auto !important;

  max-width: 100% !important;
  max-height: calc(100vh - 210px) !important;

  object-fit: contain !important;
  background: transparent !important;
}

body.portfolio-detail-page .case-preview-frame > .case-img-placeholder {
  width: min(720px, calc(100vw - 180px)) !important;
  height: min(720px, calc(100vh - 210px)) !important;
}

@media (max-width: 580px) {
  body.portfolio-detail-page .case-preview-panel {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.portfolio-detail-page .case-preview-stage {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.portfolio-detail-page .case-preview-frame {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: calc(100vh - 210px) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.portfolio-detail-page .case-preview-frame img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: calc(100vh - 210px) !important;

    object-fit: contain !important;
    display: block !important;
  }

  body.portfolio-detail-page .case-preview-frame > .case-img-placeholder {
    width: 100% !important;
    height: calc(100vw - 48px) !important;
  }
}

/*-----------------------------------*\
  #PREVIEW POPUP IMAGE VERTICAL CENTER FIX
\*-----------------------------------*/

body.portfolio-detail-page .case-preview-panel {
  display: flex !important;
  flex-direction: column !important;
}

body.portfolio-detail-page .case-preview-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.portfolio-detail-page .case-preview-frame {
  margin-top: auto !important;
  margin-bottom: auto !important;
}

body.portfolio-detail-page .case-preview-thumbs {
  flex: 0 0 auto !important;
}

@media (max-width: 580px) {
  body.portfolio-detail-page .case-preview-panel {
    padding-top: 58px !important;
    padding-bottom: 18px !important;
  }

  body.portfolio-detail-page .case-preview-stage {
    align-items: center !important;
    justify-content: center !important;
  }

  body.portfolio-detail-page .case-preview-frame {
    margin-top: auto !important;
    margin-bottom: auto !important;
  }
}

/*-----------------------------------*\
  #PREVIEW POPUP NARROW IMAGE CENTER FIX
\*-----------------------------------*/

body.portfolio-detail-page .case-preview-panel {
  align-items: center !important;
}

body.portfolio-detail-page .case-preview-stage {
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.portfolio-detail-page .case-preview-frame {
  margin-left: auto !important;
  margin-right: auto !important;
}

body.portfolio-detail-page .case-preview-frame img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.portfolio-detail-page .case-preview-thumbs {
  align-self: center !important;
  max-width: 100% !important;
}

@media (max-width: 580px) {
  body.portfolio-detail-page .case-preview-panel {
    align-items: center !important;
  }

  body.portfolio-detail-page .case-preview-stage,
  body.portfolio-detail-page .case-preview-frame,
  body.portfolio-detail-page .case-preview-frame img {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/*-----------------------------------*\
  #CAMPAIGN DESKTOP IMAGE HEIGHT CONTROL
\*-----------------------------------*/

@media (min-width: 581px) {
  body.portfolio-detail-page {
    --campaign-image-card-height: 300px;
  }

  body.portfolio-detail-page .case-gallery-campaign .case-gallery-item {
    height: var(--campaign-image-card-height) !important;
    aspect-ratio: auto !important;
  }

  body.portfolio-detail-page .case-gallery-campaign .case-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/*-----------------------------------*\
  #PROJECT INFO TEXT WRAP AROUND CARD
\*-----------------------------------*/

@media (min-width: 581px) {
  body.portfolio-detail-page .case-client-info-banner {
    display: block !important;
  }

  body.portfolio-detail-page .case-project-summary-card {
    float: right !important;
    width: 360px !important;
    margin: 0 0 28px 56px !important;
  }

  body.portfolio-detail-page .case-banner-copy,
  body.portfolio-detail-page .case-overview-blocks {
    display: block !important;
    max-width: none !important;
  }

  body.portfolio-detail-page .case-overview-block {
    display: block !important;
    margin-bottom: 28px !important;
  }

  body.portfolio-detail-page .case-overview-block p {
    max-width: none !important;
  }

  body.portfolio-detail-page #client-info::after {
    content: "";
    display: block;
    clear: both;
  }
}

@media (max-width: 580px) {
  body.portfolio-detail-page .case-client-info-banner {
    display: flex !important;
    flex-direction: column !important;
  }

  body.portfolio-detail-page .case-project-summary-card {
    order: 1;
  }

  body.portfolio-detail-page .case-banner-copy {
    order: 2;
  }
}

/*-----------------------------------*\
  #INNER PAGE TOP NAV RESTORE
\*-----------------------------------*/

@media (min-width: 581px) {
  body.portfolio-detail-page .case-top-nav {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;

    display: block !important;
    z-index: 80 !important;

    background: hsla(240, 1%, 17%, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid hsla(0, 0%, 100%, 0.08);
    border-radius: 0 20px;
    box-shadow: var(--shadow-2);
  }

  body.portfolio-detail-page .case-top-nav-list {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px !important;
  }

  body.portfolio-detail-page .case-top-nav-link {
    min-height: 44px;
    padding: 0 18px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    color: var(--light-gray);
    font-size: 14px;
    font-weight: var(--fw-500);
    border-radius: 14px;

    transition:
      background 0.32s ease,
      color 0.32s ease,
      transform 0.22s ease,
      box-shadow 0.32s ease;
  }

  body.portfolio-detail-page .case-top-nav-link.active {
    background: var(--text-gradient-yellow);
    color: var(--smoky-black);
    box-shadow: 0 10px 24px hsla(45, 100%, 72%, 0.18);
  }
}

@media (max-width: 580px) {
  body.portfolio-detail-page .case-top-nav {
    display: none !important;
  }
}

/*-----------------------------------*\
  #MOBILE BEST WORK WIDTH FIX
\*-----------------------------------*/

@media (max-width: 580px) {

  /* Stop the yellow summary card float from affecting mobile sections */
  body.portfolio-detail-page .case-project-summary-card {
    float: none !important;
    width: 100% !important;
    margin: 0 0 28px 0 !important;
  }

  /* Force Best Work to start below everything */
  body.portfolio-detail-page .case-best-work-section {
    clear: both !important;
    width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* Full-width single-column Best Work layout */
  body.portfolio-detail-page .case-best-work-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !important;
    overflow: visible !important;
  }

  body.portfolio-detail-page .case-best-work-item {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    flex: none !important;
  }

  body.portfolio-detail-page .case-best-work-item > *,
  body.portfolio-detail-page .case-best-work-item .case-img-placeholder,
  body.portfolio-detail-page .case-best-work-item img {
    width: 100% !important;
    height: 100% !important;
  }
}

/*-----------------------------------*\
  #DESKTOP MAIN WEB BANNER HEIGHT
\*-----------------------------------*/

@media (min-width: 581px) {
  body.portfolio-detail-page .case-cover-placeholder-box {
    height: 560px !important;
  }

  body.portfolio-detail-page .case-cover-placeholder-box img,
  body.portfolio-detail-page .case-cover-placeholder-box .case-img-placeholder {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/*-----------------------------------*\
  #MOBILE PROJECT INFO TO BEST WORK SPACING FIX
\*-----------------------------------*/

@media (max-width: 580px) {

  /* Reduce gap after Project Info text */
  body.portfolio-detail-page #client-info {
    margin-bottom: 30px !important;
  }

  /* Remove unnecessary top/bottom breathing space around Best Work */
body.portfolio-detail-page .case-best-work-section {
  margin-top: 20px !important;
  margin-bottom: 25px !important;
  padding-top: 0 !important;
  padding-bottom: 0px !important;
}

  /* Keep Best Work tight and clean */
  body.portfolio-detail-page .case-best-work-grid {
    gap: 14px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Reduce gap before Design Thinking section */
  body.portfolio-detail-page .case-two-column {
    margin-top: 0 !important;
  }
}