body {
  font-family: 'Fira Mono';
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eeeeee;
  overflow: hidden;
  font-size: large;
}

.main-box {
  width: 1220px;
  height: 92vh;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff8ee;
  border: 2px solid #000000;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 0.9em;
  line-height: 1.4;
  
  opacity: 0;
  transform: translateY(-30px);
  animation: bodySlideFade 1s ease forwards;
  animation-delay: 0.3s;
}

.tab-wrapper {
  display: flex;
  padding: 10px;
  padding-bottom: 0;
  background: #fc8879;
  border-radius: 6px 6px 0 0;
  position: relative;
  padding-bottom: 0px;
}

.tab {
  padding: 8px 20px;
  background: transparent;
  min-width: 140px;
  text-align: center;
  margin-right: 8px;
  border: 1px solid transparent;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: background 0.5s ease, transform 0.5s ease;
  position: relative;
  z-index: 1;
  color: #000000;
  margin-bottom: 0px;
  font-weight: bold;
}

.tab:not(.active):hover {
  background: #ffb5ab;
  border-radius: 10px 10px 0 0;
  transform: translateY(-2px);
}

.tab.active {
  background: #fff8ee;
  border: 2px solid black;
  border-bottom: 1px solid transparent;
  z-index: 3;
  margin-bottom: 0;
}

.connector {
  height: 30px;
  background: #fff8ee;
  border: 2px solid black;
  border-left: none;
  border-right: none;
  border-bottom: none;
  position: relative;
  z-index: 2;
}

.connector::before {
  content: '';
  position: absolute;
  height: 2px;
  background: #fff8ee;
  top: -2px;
  z-index: 3;
  left: 0;
  width: 0;
  transition: left 0.3s ease, width 0.3s ease;
}


.tab-content {
  padding: 14px 16px;
  border: 2px solid #000000;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: #fff8ee;
  min-height: 550px;
  position: relative;
  z-index: 1;
}

.content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.3s ease;
  display: none;
  height: 100%;
  overflow-y: auto;
}

.content.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  display: block;
}

.tab-content {
  height: 550px;
  overflow: hidden;
  scroll-snap-type: y mandatory;
  position: relative;
}


#about {
  padding: 0 10px;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.image-wrapper {
  width: 90%;
  /* Increase this to widen image: try 95%, 100%, etc */
  height: 100%;
  overflow: hidden;
  border-radius: 0 0 6px 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img {
  width: 98%;
  height: 92%;
  object-fit: cover;
  display: block;
  position: relative;
  top: 0;
}


#graphics {
  padding: 20px;
  position: relative;
  overflow: visible;

}

.graphics-images {
  display: flex;
  gap: 80px;
  position: absolute;
  top: 80px;
  left: 40px;
}


.graphics-images img {
  width: 1000px;
  /* Adjust as needed */
  height: auto;
  border-radius: 6px;
}

.folder-grid {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 90px;
  position: absolute;
  left: 4%;
}

.folder-item {
  display: flex;
  flex-direction: column;
  /* align-items: center; or center depending on your alignment  */
}

.folder-item img {
  width: 200px;
  height: auto;
  flex-shrink: 0;
  text-align: center;
}

.folder-item span {
  margin-top: 3px;
  margin-left: 10px;

  display: inline-block;
  font-weight: bold;
  font-family: monospace;

}

.image-viewer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 4px solid #fc8c73;
  z-index: 999;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.image-viewer img {
  width: 100%;
  /* fit container */
  height: auto;
  display: block;
  object-fit: contain;
}


.image-viewer.hidden {
  display: none;
}

.scroll-img-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  width: 100%;
  overflow-y: auto;
  /* ✅ scrollable only if needed */
  padding: 12px 16px;
  box-sizing: border-box;
  border-radius: 8px;
}



.scroll-img-container img {
  width: 100%;
  height: auto;
  display: block;
}

#close-viewer {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #F47A5D;
  color: white;
  border: none;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  width: 32px;
  height: 32px;
  line-height: 30px;
  text-align: center;
}


.label {
  margin-top: 10px;
  /* spacing from image */
  margin-left: -5px;
  /* your existing left shift */
  font-family: monospace;
  font-weight: bold;
  font-size: 25px;
  left: 100%;

}

.first-label {
  margin-top: 11px;
  margin-left: 0px;
}

.folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* ✅ this centers the label under the image */
  text-align: center;
  width: 200px;
  /* same as your image width to maintain alignment */
}

.folder-item:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.label {
  margin-top: 10px;
  font-family: monospace;
  font-weight: bold;
  font-size: 25px;
}

#big-image {
  width: 100%;
  min-height: 1034px;
  /* ✅ Ensures first image fills view */
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

#design-preview {
  height: calc(100% - 65px);
  /* ya direct: height: 96%; */
}

/* #design-preview {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  max-width: 100vw;
  padding: 0;
  margin: 0;
  overflow: hidden;
} */


#uiux .folder-grid {
  position: relative;
  /* ✅ absolute hata diya */
  top: 0;
  left: 4%;
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 90px;
}


.content#uiux {
  position: relative;
  min-height: 550px;
  z-index: 1;
  overflow: hidden;
  margin-top: 40px;
}


.modal-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
  background: whitesmoke;
  border-radius: 8px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}


#uiux-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  font-size: 24px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}

#uiux-close:hover {
  color: #000;
}

#uiux-link {
  display: inline-block;
  font-weight: 600;
  color: #ff4f4f;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  text-align: center;
}

#uiux-link:hover {
  color: #e00000;
  border-bottom: 1px solid #e00000;
}



.img-circle-container {
  position: relative;
  display: inline-block;
}

.circle-button-wrapper {
  position: absolute;
  bottom: 10%;
  /* Adjust as needed */
  left: 72%;
  transform: translateX(-50%);
  z-index: 999;
}

.circle-button {
  text-decoration: none;
}

.outer-circle {
  width: 111px;
  height: 111px;
  border: 3px solid black;
  border-radius: 50%;
  position: relative;
  background-color: #d6d7d7;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.click-text {
  color: black;
  font-weight: bold;
  font-size: 24px;
  z-index: 2;
  position: relative;
}

.orbit-container {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotateOrbit 4s linear infinite;
  top: 0;
  left: 0;
}

.orbiting-circle {
  width: 12px;
  height: 12px;
  background-color: black;
  border-radius: 50%;
  position: absolute;
  top: -6px;
  left: 50%;
  /* transform-origin: 45px center;
  animation: rotateOrbit 2s linear infinite; */
  transform: translateX(-50%);
}

@keyframes rotateOrbit {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#cnt {
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-top: 10.8px;
}

.image-wrapper {
  width: 88%;
  /* Increase this to widen image: try 95%, 100%, etc */
  height: 100%;
  overflow: hidden;
  border-radius: 0 0 6px 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cnt-img {
  width: 98%;
  height: 92%;
  object-fit: cover;
  display: block;

  position: relative;
  top: 0%;
}

#frt {
  margin-top: 22px;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 24px;
  background: transparent;
  border: none;
  color: #333;
  cursor: pointer;
  z-index: 999;
}

.scroll-img-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  /* ✅ image + footer vertically flow karein */
  justify-content: flex-start;
  align-items: center;
}

.scroll-img-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 0px;
  /* space before footer */
}

.github-footer {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
  text-align: center;
  background-color: #f7f7f7;
  padding: 12px 16px;
  border-top: 1px solid #ddd;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  word-break: break-word;
}

.github-footer a {
  color: #007acc;
  text-decoration: none;
  font-weight: 500;
}

.github-footer a:hover {
  text-decoration: underline;
}

/* .image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.cnt-img {
  width: 100%;
  height: auto;
  display: block;
}  */

.contact-links {
  position: absolute;
  /* To move the text block UP or DOWN on DESKTOP, change this percentage (currently 64.5%) */
  top: 64.5%; 
  /* To move the text block LEFT or RIGHT on DESKTOP, change this percentage (currently 18%) */
  left: 18%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  /* To change the gap between lines, change this clamp value */
  gap: clamp(8px, 2.8vw, 34px);
}

.mobile-break { display: none; }

.link-item {
  font-size: 26px;
  font-family: 'Arial', sans-serif;
  color: #333;
  white-space: nowrap;
}

.link-item a {
  text-decoration: none;
  color: #0077b5;
  font-weight: 500;
}

.link-item a:hover {
  text-decoration: underline;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .link-item {
    font-size: 14px;
  }
}

#big-image {
  width: 100%;
  height: auto;
  min-height: unset;
  /* 👈 Remove min-height: 1034px */
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

body.slide-wrapper {
  background-image: url("opt/portfolio-dark.webp");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  overflow-x: hidden;
}


@keyframes bodySlideFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Mobile Fallback Banner ========== */
.mobile-fallback {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: #fff8ee;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 28px;
  box-sizing: border-box;
}

.mobile-fallback .mf-badge {
  display: inline-block;
  background: #fc8879;
  color: #fff;
  font-family: 'DM Serif Display', serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.mobile-fallback h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: #3a3a3a;
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.mobile-fallback p {
  font-family: 'Fira Mono', monospace;
  font-size: 14px;
  color: #777;
  margin: 0;
  line-height: 1.6;
  max-width: 340px;
}

.mobile-fallback .mf-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.mobile-fallback .mf-divider {
  width: 60px;
  height: 3px;
  background: #fc8879;
  border: none;
  border-radius: 2px;
  margin: 20px auto 0;
}

.responsive-img-container {
  width: 100%;
  height: 100%;
  display: block;
}

@media screen and (max-width: 1024px) {
  .responsive-img-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .contact-links {
    /* To move the text block UP or DOWN on MOBILE ONLY, change this percentage */
    top: 70% !important;
  }
  
  .about-img, .cnt-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  
  body {
    background: #000000 !important;
  }
  
  .about-img, .cnt-img {
    object-fit: contain !important;
  }

  body.slide-wrapper {
    background-color: black !important;
    background-image: url("opt/portfolio-dark.webp") !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  .main-box {
    width: 96vw !important;
    height: 92vh !important;
    max-height: 94vh !important;
    margin: auto !important;
  }

  .tab-content {
    height: calc(100% - 70px) !important;
    min-height: auto !important;
  }

  /* Make tab bar scrollable horizontally */
  .tab-wrapper {
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important; /* Hide scrollbar Firefox */
    -ms-overflow-style: none !important;  /* Hide scrollbar IE/Edge */
    display: flex !important;
    padding-bottom: 2px !important;
  }
  
  .tab-wrapper::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar Safari/Chrome */
  }

  .tab {
    min-width: auto !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
  }

  /* Scale folder grids */
  .folder-grid {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    margin-top: 20px !important;
    gap: 30px 40px !important; /* Row gap and Column gap */
    justify-content: center !important;
    width: 100% !important;
    padding: 10px !important;
    display: grid !important;
    grid-template-columns: repeat(2, auto) !important;
  }

  .folder-item {
    width: 110px !important;
  }

  .folder-item img {
    width: 100px !important;
    height: auto !important;
  }

  .label {
    font-size: 13px !important;
    margin-top: 8px !important;
    margin-left: 0 !important;
  }

  .first-label {
    margin-left: 0 !important;
  }

  /* Image Viewer overlay styles */
  .image-viewer {
    width: 90vw !important;
    height: 90vh !important;
    border-width: 4px !important;
  }

  .scroll-img-container {
    padding: 40px 16px 60px 16px !important;
  }

  .scroll-img-container img {
    border-radius: 8px !important;
  }

  #uiux-preview {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    border-width: 0px !important;
    border-radius: 0 0 10px 10px !important;
  }

  #uiux-preview .modal-content-wrapper {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 0 10px 10px !important;
  }

  .close-button, #uiux-close, #frontend-close {
    position: absolute !important;
    top: 12px !important;
    right: 18px !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: #333 !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 30px !important;
    font-weight: normal !important;
    cursor: pointer !important;
    z-index: 999999 !important;
    display: inline-block !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Outer circle TAP buttons inside UI/UX previews */
  .outer-circle {
    width: 44px !important;
    height: 44px !important;
    border-width: 2px !important;
  }

  .click-text {
    font-size: 10px !important;
  }

  .orbiting-circle {
    width: 4px !important;
    height: 4px !important;
    top: -2px !important;
  }

  .circle-button-wrapper {
    bottom: 5% !important;
    left: 85% !important;
  }
  
  #paytm-link {
    bottom: 22% !important;
    left: 88% !important;
  }

  /* Contact page links responsive adjustments removed to allow percentage scaling */

  .link-item {
    font-size: 11px !important;
  }

  .mobile-fallback {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .mobile-break { display: inline !important; }
  .desktop-space { display: none !important; }
  
  #about .responsive-img-container, #cnt .responsive-img-container {
    top: -28%; /* <-- Edit this to move the images (and text) UP or DOWN ONLY on mobile */
  }
  .about-img, .cnt-img {
    top: 0;
  }

  .tab-wrapper {
    padding: 6px 2px 0 2px !important;
    gap: 2px !important;
    display: flex !important;
  }

  .tab {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 4px 1px !important;
    margin-right: 0 !important;
    font-size: 10px !important;
    letter-spacing: -0.5px !important;
    text-align: center !important;
    white-space: nowrap !important; /* Reverted to single line */
    line-height: 1.1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-text-size-adjust: none !important;
  }

  .image-wrapper {
    width: 100% !important;
    height: 100% !important;
  }
}
/* ========== Mobile fixes ========== */
@media screen and (max-width: 1024px) {
  /* Use the *visible* viewport height on phones (iOS/Android toolbars) */
  body { height: 100vh; height: 100dvh; }
  .main-box {
    height: 92vh !important;
    height: 92dvh !important;
    max-height: 94dvh !important;
  }

  /* About / Contact: fit the whole picture inside the box at any
     orientation, keeping the contact links glued to the picture */
  #about, #cnt { margin-top: 0; padding: 0; }
  #about .image-wrapper, #cnt .image-wrapper {
    container-type: size;
    width: 100% !important;
    height: 100% !important;
  }
  #about .responsive-img-container, #cnt .responsive-img-container {
    top: 0 !important;
    width: min(100cqw, 100cqh * 1889 / 913) !important;
    height: auto !important;
    aspect-ratio: 1889 / 913;
    margin: auto;
  }
  .about-img, .cnt-img {
    width: 100% !important;
    height: 100% !important;
  }
  /* size the links relative to the picture itself so they stay next to the icons */
  #cnt .responsive-img-container { container-type: inline-size; }
  .contact-links { top: 66% !important; gap: 3.1cqw; }
  .content#uiux { min-height: 0; margin-top: 0; }
  .link-item { font-size: 2.35cqw !important; line-height: 1; }
  .link-item a { padding: 4px 0; display: inline-block; }

  /* Bigger touch targets for closing previews */
  .close-button, #uiux-close, #frontend-close {
    min-width: 44px !important;
    min-height: 44px !important;
  }
  .image-viewer { height: 90dvh !important; }
  .scroll-img-container { -webkit-overflow-scrolling: touch; }
  .content { -webkit-overflow-scrolling: touch; }
}

/* Short screens (phones in landscape): smaller tab bar, more room for content */
@media screen and (max-height: 500px) {
  .tab { padding: 3px 10px !important; font-size: 11px !important; }
  .tab-wrapper { padding-top: 4px !important; }
  .connector { height: 12px; }
  .tab-content { height: calc(100% - 45px) !important; }
  #uiux-big-image { width: auto; max-width: 100%; max-height: calc(100dvh - 90px); }
}

/* No hover on touch devices: avoid "sticky" hover scaling after a tap */
@media (hover: none) {
  .folder-item:hover { transform: none; }
  .tab:not(.active):hover { transform: none; background: transparent; }
}

/* =====================================================================
   MOBILE LAYOUT (phones, and tablets held upright)
   About / Contact are rebuilt as real text + links instead of a
   shrunken desktop picture; everything stacks and scrolls vertically.
   ===================================================================== */
.m-about, .m-contact { display: none; }

@media (max-width: 1024px) and (orientation: portrait) {
  body, body.slide-wrapper {
    background: #fffbf3 url("opt/layer4.webp") center / cover no-repeat !important;
    height: 100vh; height: 100dvh;
    padding: 0;
  }

  .main-box {
    width: calc(100vw - 20px) !important;
    max-width: 640px;
    height: calc(100vh - 20px) !important;
    height: calc(100dvh - 20px) !important;
    max-height: none !important;
    border-radius: 10px;
    box-shadow: 5px 5px 0 #000;
    font-size: 15px;
    /* end on transform:none so full-screen previews size to the screen, not this box */
    position: relative;
    transform: none !important;
    animation-name: m-slide-fade;
  }
  @keyframes m-slide-fade { from { opacity: 0; top: -30px; } to { opacity: 1; top: 0; } }

  /* --- Tabs: one row, swipe sideways if they don't fit --- */
  .tab-wrapper {
    padding: 8px 8px 0 !important;
    gap: 4px !important;
    border-radius: 8px 8px 0 0;
    scroll-snap-type: x proximity;
  }
  /* short tab labels on phones (taken from data-short) */
  .tab { font-size: 0 !important; }
  .tab::after { content: attr(data-short); font-size: clamp(11px, 3.3vw, 14px); }
  .tab {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 9px 6px !important;
    margin: 0 !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
    scroll-snap-align: start;
  }
  .mobile-break { display: none !important; }
  .connector { height: 10px; }

  .tab-content {
    z-index: 5;  /* keep full-screen previews above the tab bar */
    height: auto !important;
    flex: 1;
    min-height: 0 !important;
    padding: 0 !important;
  }
  .content, .content#uiux, #about, #cnt, #graphics, #frt {
    padding: 0 !important;
    margin-top: 0 !important;
    min-height: 0;
  }
  .content.active {
    display: block !important;
    height: 100%;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* --- About --- */
  #about .image-wrapper, #cnt .image-wrapper { display: none !important; }
  .m-about { display: block; padding: 6px 20px 28px; }
  .m-about-card { display: block; width: 72%; max-width: 300px; margin: 4px auto 18px; }
  .m-about p {
    font-family: 'Fira Mono', monospace;
    font-size: 14px; line-height: 1.75; color: #1a1a1a;
    margin-bottom: 14px;
  }

  /* --- Contact --- */
  .m-contact { display: flex; flex-direction: column; gap: 12px; padding: 10px 20px 28px; }
  .m-contact-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
  .m-contact h2 {
    font-family: 'Fira Mono', monospace; font-weight: 700;
    font-size: clamp(26px, 8.5vw, 40px); line-height: 1.15;
    color: #cf6f6f;
  }
  .m-contact-girl { height: min(46vh, 340px); width: auto; flex-shrink: 0; }
  .m-link {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 14px;
    background: #fff5df; color: #111; text-decoration: none;
    border: 2px solid #000; border-radius: 10px;
    box-shadow: 3px 3px 0 #000;
    font-family: 'Fira Mono', monospace; font-size: 15px; font-weight: 700;
    word-break: break-all;
    transition: transform .1s ease, box-shadow .1s ease;
  }
  .m-link:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #000; }
  .m-link img { width: 38px; height: 38px; flex-shrink: 0; }

  /* --- Folder grids --- */
  .folder-grid, #uiux .folder-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px 12px !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 26px 12px !important;
    justify-items: center;
  }
  .folder-item { width: 100% !important; max-width: 160px; }
  .folder-item img { width: 72% !important; }
  .label { font-size: 14px !important; margin-top: 6px !important; }

  /* --- Previews: full-screen sheet --- */
  .image-viewer, #uiux-preview {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    transform: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    z-index: 1000;
    background: #fffbf3;
  }
  .scroll-img-container { padding: 60px 0 30px !important; }
  .scroll-img-container img, #big-image { border-radius: 0 !important; }
  #uiux-preview .modal-content-wrapper { border-radius: 0 !important; background: #fffbf3; padding: 60px 0 20px; }
  #uiux-big-image { width: 100%; max-height: none; }
  .close-button, #uiux-close, #frontend-close {
    position: fixed !important;
    top: 10px !important; right: 12px !important;
    width: 44px !important; height: 44px !important;
    background: #fb8979 !important;
    border: 2px solid #000 !important;
    border-radius: 50% !important;
    box-shadow: 2px 2px 0 #000 !important;
    color: #000 !important;
    font-size: 26px !important; line-height: 1 !important;
    display: flex !important; align-items: center; justify-content: center;
    z-index: 1001 !important;
  }
  .outer-circle { width: 56px !important; height: 56px !important; }
  .click-text { font-size: 12px !important; }
}
