
/* Ensure .projectBtn is XP blue (#0053f0) and override all other button backgrounds */
.menu .projectBtn, .window-body .projectBtn, .projectBtn {
  background: none !important;
  background-color: #0053f0 !important;
  color: #fff !important;
}

/* Keep page scrolling on the document root, with its scrollbar visually hidden. */
html {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: auto;
}

html::-webkit-scrollbar {
  width: 0;
}

/* Force .projectBtn button to XP blue (#0053f0) even if other button styles exist */
.window-body .projectBtn {
  background-color: #0053f0 !important;
}
/* Set .projectBtn button to XP blue (#0053f0) */
.projectBtn {
  background-color: #0053f0 !important;
}

/* Increase title bar height by 4px */
.title-bar {
  height: calc(1.5rem + 4px) !important;
  min-height: calc(1.5rem + 4px) !important;
}

/* Override navbar height specifically */
.title-bar[style*="position: fixed"] {
  height: 48px !important;
  min-height: 48px !important;
}

/* Make title bar icons 4px bigger */
.title-bar img {
  width: calc(16px + 4px) !important;
  height: calc(16px + 4px) !important;
}

/* Override navbar logo size specifically */
.title-bar[style*="position: fixed"] img {
  width: auto !important;
  height: 48px !important;
  margin-top: -1px;
  margin-left: -1px;
}

/* Navbar logo hover opacity */
.title-bar[style*="position: fixed"] img:hover {
  filter: brightness(0.85) !important;
}

@media (max-width: 550px) {
  .cta .window {
    width: calc(100vw - 20px) !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
}

.cta .window {
  width: calc(100vw - 20px) !important;
  min-width: 0 !important;
  max-width: 461px !important;
  box-sizing: border-box !important;
}
@media (max-width: 700px) {
  .navitem-hide-mobile {
    display: none !important;
  }
}
/* XP retro typewriter caret */
.xp-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #00f;
  margin-left: 2px;
  animation: blink-xp-caret 0.7s steps(1) infinite;
  vertical-align: -2px;
}
@keyframes blink-xp-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* Retro TV effect overlay for cta logo */
.tv-logo-wrap {
  position: relative;
}
.tv-logo-wrap::after {
  content: '';
  pointer-events: none;
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.08) 0px,
    rgba(255,255,255,0.08) 2px,
    transparent 2px,
    transparent 6px
  );
  mix-blend-mode: lighten;
  z-index: 2;
  opacity: 0.7;
  animation: tv-flicker 0.18s infinite steps(2);
}

@keyframes tv-flicker {
  0% { opacity: 0.7; }
  50% { opacity: 0.5; }
  100% { opacity: 0.7; }
}
/* XP orange underline hover effect for nav items */
.nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background-color: #ff9900;
  border-radius: 2px;
  transition: width 0.2s ease;
}

.nav-item:hover::after {
  width: 100%;
}
/* XP-style button for navbar */
.xp-button {
  font-family: Tahoma, sans-serif;
  font-size: 14px;
  color: #000;
  padding: 8px 24px;
  border: 1px solid #7a7a7a;
  border-radius: 4px;
  background: linear-gradient(to bottom, #f0f0f0 0%, #d4d0c8 100%);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,0.2);
  cursor: pointer;
  outline: none;
  transition: all 0.1s ease-in-out;
}

.xp-button:hover {
  background: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%);
}

.xp-button:active {
  background: linear-gradient(to bottom, #d4d0c8 0%, #f0f0f0 100%);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
  border-color: #4a4a4a;
}
/* Classic XP window body, pixelated logo/text, MS Sans Serif font */
.xp-pixel-title {
  font-family: 'MS Sans Serif', 'Tahoma', Geneva, sans-serif !important;
  font-size: 16px !important;
  font-weight: bold !important;
  color: #000 !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: 0.1px !important;
  image-rendering: pixelated !important;
  -webkit-font-smoothing: none !important;
  -moz-osx-font-smoothing: unset !important;
  text-shadow: 1px 1px 0 #fff, 0 0 1px #000 !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.xp-pixel-subtitle {
  font-family: 'MS Sans Serif', 'Tahoma', Geneva, sans-serif !important;
  font-size: 12px !important;
  color: #444 !important;
  margin: 0 !important;
  image-rendering: pixelated !important;
  -webkit-font-smoothing: none !important;
  -moz-osx-font-smoothing: unset !important;
}

.window-body img[alt="Logo"] {
  image-rendering: pixelated !important;
}

.window {
  box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #808080 !important;
}
.window-body h1 {
  font-family: "Segoe UI", "Tahoma", "Geneva", "Verdana", sans-serif !important;
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: #222;
  opacity: 1;
  transform: none;
  animation: none;
}
/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #ECE9D8;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  width: 100%;
}

/* Global smooth transitions */
*, *::before, *::after {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation optimization */
a, button, img, .carousel-item, .skillCard {
  will-change: transform;
}

#logo {
  width: 40px;
  height: 40px;
  margin-left: 32px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#logo:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0px 20px;
  background-color: #0e1111;
  color: #f2f0ef;
  box-shadow: #0e1111 1px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  max-width: 100vw;
}

.navItems {
  display: flex;
  color: #f2f0ef;
  align-items: center;
}

.navItems a {
  margin-right: 32px;
  color: #f2f0ef;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.navItems a:hover {
  transform: translateY(-2px);
  color: #3185FC;
}

.navItems a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3185FC, #f2f0ef);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navItems a:hover::before {
  width: 100%;
}

.navItems .navItem4 {
  background-color: #f2f0ef;
  color: #0e1111;
  padding: 8px 16px;
  border-radius: 16px;
  font-weight: bold;
  border: #0e1111 3px solid;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.navItems .navItem4:hover {
  transform: translateY(-3px) scale(1.05);
  background-color: #3185FC;
  color: #f2f0ef;
  border-color: #3185FC;
  box-shadow: 0 8px 25px rgba(49, 133, 252, 0.3);
}

.navItem4 {
  transition: all ease .5s;
}

.navItem2,
.navItem3,
.navItem5 {
  position: relative;
  text-decoration: none;
}

.navItem2::before,
.navItem3::before,
.navItem5::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3185FC;
  transition: width 0.3s ease;
}

.navItem2:hover::before,
.navItem3:hover::before,
.navItem5:hover::before {
  width: 100%;
}

.navItem4:hover {
  background-color: #3185FC;
  color: #f2f0ef;
  border: #f2f0ef 2px solid;
  transition: all ease-in-out .5s;
}

.cta {
  height: 600px;
  width: 100%;
  display: flex;
  font-weight: 100;
  transition: all ease 1s;
  z-index: 0;
  overflow: hidden;
  background-image: url('../images/wallpaper.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta1, .cta2 {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta1 {
  flex: 65;
  flex-direction: column;
  transform: translateX(-20px);
  opacity: 0;
  animation: slideInLeft 1s ease-out 0.3s forwards;
  /* Removed background-color and background-image for shared wallpaper */
}

.cta2 {
  flex: 35;
  transform: translateX(20px);
  opacity: 0;
  animation: slideInRight 1s ease-out 0.6s forwards;
  /* Removed background-color for shared wallpaper */
}

.cta h1 {
  color: #0e1111;
  font-size: 2em;
  transform: translateY(20px);
  opacity: 0;
  animation: slideInUp 1s ease-out 0.9s forwards;
}

.logo2 {
  width: 250px;
  margin: 0 120px;
  margin-top: 86.39px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.8);
  opacity: 0;
  animation: scaleIn 1s ease-out 1.2s forwards;
}

.logo2:hover {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.name {
  transform: translateY(30px);
  opacity: 0;
  animation: slideInUp 1s ease-out 0.6s forwards;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.name:hover {
  transform: translateY(-5px) scale(1.02);
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

/* Keyframe animations */
@keyframes slideInLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

h2 {
  color: #f2f0ef;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 2em;
  margin: 0;
}

.myWork {
  padding: 50px 20px;
  background-color: #0e1111;
  text-align: center;
}

.myworktitle {
  width: 298px;
  height: 126px;
}

.project-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.project-item {
  margin: 20px 0;
  position: relative;
}

.project-link {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f2f0ef;
  text-decoration: none;
  display: block;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #3185FC;
}

.project-image {
  position: absolute;
  top: 50%;
  right: 60%;
  width: 300px;
  height: auto;
  opacity: 0;
  border: 3px solid #f2f0ef;
  border-radius: 16px;
  transform: translateY(-50%) translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.project-item:hover .project-image {
  opacity: 1;
  transform: translateY(-50%) translateX(10px);
}

.aboutMe {
  background-color: #f2f0ef;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f2f0ef;

}

.aboutmetitle {
  width: 268px;
  height: 126px;
  opacity: 0;
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.aboutMeContainer {
    max-width: 700px;
    margin: auto;
    opacity: 0;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.aboutMe h3 {
  font-size: 3.5em;
  margin: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.aboutMe h3:hover {
  transform: scale(1.05);
  color: #3185FC;
}

.aboutMe h4 {
  margin: 0;
  font-weight: 400;
  font-size: 3em;
  min-height: 1.25em;
  color: #0e1111;
  font-weight: bold;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.aboutMe h4:hover {
  transform: translateX(10px);
  color: #3185FC;
}

.aboutMe p {
  margin-top: 32px;
  width: 100%;
  font-size: 1.25em;
  color: #0e1111;
  font-weight: 300;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.aboutMe p:hover {
  transform: translateX(5px);
  color: #3185FC;
}

footer {
  background-color: red;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
}

footer h5 {
  margin: 0;
  color: #f2f0ef;
  font-size: 1em;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Move only the copyright wrapper; keep the calibrated footer geometry intact. */
#footer > div {
  align-self: flex-end;
  transform: translateY(calc(var(--footer-text-overhang, 0px) - 12px));
  transition: none;
}

footer h5:hover {
  transform: scale(1.05);
  color: #3185FC;
}

footer h5 .year {
  font-weight: 400;
}

.contact-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #f2f0ef;
  color: #f2f0ef;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  display: flex;
  align-items: center;
  margin-right: 32px;
  transform: translateY(0) scale(1);
  animation: floatButton 3s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.contact-button:hover {
  background-color: #3185FC;
  color: #f2f0ef;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0px 12px 25px rgba(49, 133, 252, 0.4), 0px 6px 15px rgba(0, 0, 0, 0.2);
  animation-play-state: paused;
}

.contact-button a {
  text-decoration: none;
  color: #0e1111;
  transition: color 0.3s ease;
}

.contact-button:hover a {
  color: #f2f0ef;
}

.contact-button img {
  width: 32px;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.contact-button:hover img {
  transform: rotate(15deg) scale(1.1);
}

@keyframes floatButton {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background-color: #f2f0ef;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, rgba(14, 17, 17, 0) 0%, rgba(14, 17, 17, 0) 100%);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(0px);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  background: linear-gradient(135deg, rgba(14, 17, 17, 0.95) 0%, rgba(26, 66, 121, 0.5) 50%, rgba(14, 17, 17, 0.98) 100%);
  backdrop-filter: blur(20px);
}

/* Hide contact button when mobile menu is active */
.mobile-nav-overlay.active ~ .contact-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav-overlay a {
  color: #f2f0ef;
  text-decoration: none;
  font-size: 1.5em;
  margin: 20px 0;
  padding: 10px 20px;
  border-radius: 0;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: none;
  position: relative;
  background: none;
  border: none;
  font-weight: 400;
}

.mobile-nav-overlay a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3185FC;
  transition: width 0.3s ease;
}

.mobile-nav-overlay a:hover::before {
  width: 100%;
}

.mobile-nav-overlay a:hover {
  background: none;
  color: #f2f0ef;
  border: none;
}

.mobile-nav-overlay.active a {
  opacity: 1;
  transform: translateY(0);
  animation: slideInUp 0.6s ease forwards;
}

.mobile-nav-overlay.active a:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-nav-overlay.active a:nth-child(2) {
  animation-delay: 0.2s;
}

.mobile-nav-overlay.active a:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carousel effects */
.carouselWrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.carousel {
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0;
  width: 60%;
  max-width: 100%;
}

.carousel img {
  scroll-snap-align: start;
  width: 540px;
  height: 288px;
  margin-right: 20px;
  border-radius: 16px;
  border: #f2f0ef 3px solid;
  max-width: 100%;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  filter: brightness(0.9) contrast(1.1);
  overflow: hidden;
  will-change: transform, filter, box-shadow;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.carousel-item:hover .carousel img {
  transform: translateY(-12px) scale(1.06) translateZ(0);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35), 0 10px 25px rgba(49, 133, 252, 0.2);
  border-color: #3185FC;
  filter: brightness(1.15) contrast(1.25) saturate(1.15);
}

.carousel img:last-child {
  margin-right: 0;
}

.carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  transform: scale(0.95);
  opacity: 0.8;
}

.carousel-item:hover {
  transform: scale(1.05) translateY(-10px);
  opacity: 1;
  z-index: 2;
}

.carousel-item.active {
  transform: scale(1);
  opacity: 1;
  z-index: 1;
}

/* Carousel buttons */

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #f2f0ef;
  color: #0e1111;
  padding: 8px 16px;
  border-radius: 16px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
  border: none;
}

.carousel-button:hover {
  background-color: #3185FC;
  color: #f2f0ef;
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-button-left {
  left: 20px;
}

.carousel-button-right {
  right: 20px;
}

/* Carousel dots */

.carousel-dots {
  width: 100%;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  background-color: rgba(241, 240, 239, 0.5);
  border-radius: 50%;
  margin: 0 8px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}

.carousel-dot:hover {
  background-color: rgba(49, 133, 252, 0.7);
  transform: scale(1.2);
}

.carousel-dot.active {
  background-color: #3185FC;
  width: 16px;
  height: 16px;
  box-shadow: 0px 0px 15px 0px rgba(49, 133, 252, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.3);
}


.carousel-prev {
  color: #f2f0ef;
  font-weight: bold;
  background-color: transparent;
  border: 0;
  font-size: 2em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px;
  border-radius: 50%;
  opacity: 0.7;
}

.carousel-prev:hover {
  color: #3185FC;
  background-color: rgba(241, 240, 239, 0.15);
  transform: scale(1.2) translateX(-5px);
  opacity: 1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-next {
  color: #f2f0ef;
  font-weight: bold;
  background-color: transparent;
  border: 0;
  font-size: 2em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px;
  border-radius: 50%;
  opacity: 0.7;
}

.carousel-next:hover {
  color: #3185FC;
  background-color: rgba(241, 240, 239, 0.15);
  transform: scale(1.2) translateX(5px);
  opacity: 1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.aContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.aContainer:hover {
  text-decoration: none;
}

.itemTitle {
  color: #f2f0ef;
  font-size: 2em;
  margin-top: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.carousel-item:hover .itemTitle {
  color: #f2f0ef;
  transform: translateY(-2px);
}

.itemTitle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #3185FC;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.carousel-item:hover .itemTitle::after {
  width: 100%;
}

/* Carousel Transitions */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes brightness {
  from {
    filter: brightness(0);
  }
  to {
    filter: brightness(1);
  }
}

.name {
  margin-top: 86.39px;
  width: 616px;
  height: 126px;
}

.occupation {
  color: #f2f0ef !important;
  background-color: #0e1111;
  border-radius: 200px;
  padding: 6px 12px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  font-size: 14px !important;
  margin: 0;
  margin-top: 10px;
  width: 178px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
}


/* Responsive Styles */

/* Large Desktop Screens */
@media (max-width: 1440px) {
  .carousel img {
    width: 480px;
    height: 256px;
  }
  
  .logo2 {
    width: 220px;
    margin: 0 100px;
  }
}

/* Desktop/Laptop */
@media (max-width: 1200px) {
  .cta {
    flex-direction: column;
    height: auto;
    min-height: 500px;
  }

  .cta1, .cta2 {
    flex: 1;
    min-height: 300px;
    padding: 40px 20px;
  }

  .cta1 {
    border-bottom: 3px solid #0e1111;
  }

  .cta2 {
    border-top: 3px solid #0e1111;
  }

  .name {
    width: 50%;
    max-width: 500px;
  }

  .occupation {
    width: 140px;
    height: 30px;
    font-size: 12px !important;
    padding: 5px 10px;
    margin-top: 8px;
  }

  .logo2 {
    width: 180px;
    margin: 0 80px;
  }

  .carousel {
    width: 70%;
  }

  .carousel img {
    width: 420px;
    height: 224px;
  }

  .itemTitle {
    font-size: 1.8em;
  }

  .myworktitle {
    width: 250px;
    height: 105px;
  }

  .aboutmetitle {
    width: 220px;
    height: 105px;
  }

  .aboutMe {
    height: auto;
    min-height: 800px;
    padding: 60px 20px;
  }

  .aboutMeContainer {
    padding: 0 40px;
  }

  .servicesContainer {
    padding: 0 30px;
  }
  
  .servicesTitle {
    font-size: 2.5em;
  }
  
  .servicesGrid {
    gap: 25px;
    max-width: 900px;
  }
  
  .serviceCard {
    padding: 35px 25px;
  }
}

/* Tablet Portrait */
@media (max-width: 992px) {
  .cta {
    flex-direction: column;
    height: auto;
  }

  .cta1, .cta2 {
    flex: 1;
    min-height: 300px;
    padding: 40px 20px;
  }

  .cta1 {
    border-bottom: 3px solid #0e1111;
  }

  .cta2 {
    border-top: 3px solid #0e1111;
  }

  .name {
    width: 60%;
    max-width: 400px;
    margin-top: 40px;
  }

  .occupation {
    width: 120px;
    height: 26px;
    font-size: 11px !important;
    padding: 4px 8px;
    margin-top: 6px;
  }

  .logo2 {
    width: 150px;
    margin: 0;
  }

  .carousel {
    width: 80%;
  }

  .carousel img {
    width: 350px;
    height: 187px;
  }

  .carousel-prev, .carousel-next {
    font-size: 1.5em;
    padding: 0 10px;
  }

  .itemTitle {
    font-size: 1.6em;
  }

  .aboutMe h4 {
    font-size: 2.5em;
  }

  .aboutMe p {
    font-size: 1.1em;
  }

  .servicesContainer {
    padding: 0 25px;
  }
  
  .servicesTitle {
    font-size: 2.2em;
  }
  
  .servicesSubtitle {
    font-size: 1em;
  }
  
  .servicesGrid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
  }
  
  .serviceCard {
    padding: 30px 20px;
  }
  
  .serviceIcon {
    font-size: 2.5em;
  }
  
  .serviceName {
    font-size: 1.2em;
  }
  
  .servicesCallToAction {
    margin-top: 40px;
    padding: 30px 20px;
  }
  
  .servicesCallToAction h3 {
    font-size: 1.6em;
  }
}

/* Tablet Landscape / Small Desktop */
@media (max-width: 768px) {
  nav {
    padding: 0 15px;
    height: 56px;
  }

  #logo {
    width: 35px;
    height: 35px;
    margin-left: 20px;
  }

  .navItems {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .name {
    width: 70%;
    max-width: 350px;
  }

  .occupation {
    width: 100px;
    height: 22px;
    font-size: 10px !important;
    padding: 3px 6px;
    margin-top: 5px;
  }

  .cta1, .cta2 {
    min-height: 250px;
    padding: 30px 15px;
  }

  .logo2 {
    width: 120px;
  }

  .carousel {
    width: 90%;
  }

  .carousel img {
    width: 300px;
    height: 160px;
  }

  .itemTitle {
    font-size: 1.4em;
    margin-top: 12px;
  }

  .myworktitle {
    width: 200px;
    height: 85px;
  }

  .aboutmetitle {
    width: 180px;
    height: 85px;
  }

  .aboutMe {
    min-height: 600px;
    padding: 40px 15px;
  }

  .aboutMe h4 {
    font-size: 2em;
  }

  .aboutMe p {
    font-size: 1em;
    margin-top: 24px;
  }

  .servicesContainer {
    padding: 0 20px;
  }
  
  .servicesTitle {
    font-size: 2em;
  }
  
  .servicesSubtitle {
    font-size: 0.9em;
  }
  
  .servicesGrid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 15px;
    max-width: 400px;
  }
  
  .serviceCard {
    padding: 25px 15px;
  }
  
  .serviceIcon {
    font-size: 2em;
  }
  
  .serviceName {
    font-size: 1.1em;
  }
  
  .serviceDescription {
    font-size: 0.9em;
  }
  
  .serviceFeatures {
    gap: 6px;
  }
  
  .serviceFeatures span {
    font-size: 0.7em;
    padding: 3px 8px;
  }
  
  .servicesCallToAction {
    margin-top: 30px;
    padding: 25px 15px;
  }
  
  .servicesCallToAction h3 {
    font-size: 1.4em;
  }
  
  .servicesCallToAction p {
    font-size: 0.9em;
  }
  
  .servicesContactBtn {
    font-size: 1em;
    padding: 12px 25px;
  }
}

/* Mobile Landscape */
@media (max-width: 640px) {
  .carousel {
    width: 95%;
  }

  .carousel img {
    width: 280px;
    height: 149px;
  }

  .carousel-prev, .carousel-next {
    font-size: 1.2em;
  }

  .itemTitle {
    font-size: 1.2em;
  }

  .aboutMe h4 {
    font-size: 1.8em;
  }

  .myWork {
    padding: 30px 15px;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  nav {
    padding: 0 10px;
    height: 50px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  #logo {
    width: 30px;
    height: 30px;
    margin-left: 15px;
  }

  .navItems {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    margin-right: 15px;
  }

  .name {
    width: 80%;
    max-width: 280px;
    margin-top: 20px;
  }

  .occupation {
    display: none;
  }

  .cta1, .cta2 {
    min-height: 200px;
    padding: 20px 10px;
  }

  .logo2 {
    width: 100px;
    margin-top: 30px;
  }

  .carousel {
    width: 100%;
    padding: 15px 0;
  }

  .carousel img {
    width: 250px;
    height: 133px;
  }

  .carousel-prev, .carousel-next {
    font-size: 1em;
    padding: 0 5px;
  }

  .itemTitle {
    font-size: 1.1em;
    margin-top: 8px;
  }

  .myworktitle {
    width: 150px;
    height: 65px;
  }

  .aboutmetitle {
    width: 130px;
    height: 65px;
  }

  .aboutMe {
    min-height: 500px;
    padding: 30px 10px;
  }

  .aboutMe h4 {
    font-size: 1.5em;
  }

  .aboutMe p {
    font-size: 0.9em;
    margin-top: 20px;
  }

  .aboutMeContainer {
    padding: 0 15px;
  }

  .contact-button {
    padding: 8px 16px;
    margin-right: 15px;
    bottom: 15px;
    right: 15px;
  }

  .contact-button img {
    width: 24px;
  }

  .myWork {
    padding: 25px 10px;
  }

  .carousel-dots {
    margin-top: 15px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
    margin: 0 6px;
  }

  .carousel-dot.active {
    width: 14px;
    height: 14px;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .name {
    width: 85%;
    max-width: 240px;
  }

  .carousel img {
    width: 220px;
    height: 117px;
  }

  .itemTitle {
    font-size: 1em;
  }

  .aboutMe h4 {
    font-size: 1.3em;
  }

  .aboutMe p {
    font-size: 0.85em;
  }

  .myworktitle {
    width: 130px;
    height: 55px;
  }

  .aboutmetitle {
    width: 110px;
    height: 55px;
  }

  .contact-button {
    padding: 6px 12px;
  }

  .contact-button img {
    width: 20px;
  }
}

/* Very Large Screens */
@media (min-width: 1920px) {
  .carousel img {
    width: 600px;
    height: 320px;
  }
  
  .logo2 {
    width: 300px;
    margin: 0 150px;
  }
  
  .name {
    width: 700px;
    height: 140px;
  }
  
  .occupation {
    width: 200px;
    height: 42px;
    font-size: 16px !important;
    padding: 8px 16px;
    margin-top: 12px;
  }
  
  .aboutMe {
    min-height: 1200px;
  }
  
  .myworktitle {
    width: 350px;
    height: 150px;
  }
  
  .aboutmetitle {
    width: 300px;
    height: 150px;
  }
}

/* Skills Section */
.skillsSection {
  background-color: #0e1111;
  color: #f2f0ef;
  padding: 80px 0;
  width: 100%;
  min-height: 600px;
}

.skillsContainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.skillsTitle {
  font-family: "Poppins", sans-serif;
  font-size: 3em;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #f2f0ef;
  opacity: 0;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.skillsSubtitle {
  font-family: "Poppins", sans-serif;
  font-size: 1.2em;
  font-weight: 300;
  margin: 0 0 60px 0;
  color: #f2f0ef;
  opacity: 0;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.skillsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.skillCard {
  background-color: #1a1e1e;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  animation: skillCardAppear 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.skillCard:nth-child(1) { animation-delay: 0.6s; }
.skillCard:nth-child(2) { animation-delay: 0.7s; }
.skillCard:nth-child(3) { animation-delay: 0.8s; }
.skillCard:nth-child(4) { animation-delay: 0.9s; }
.skillCard:nth-child(5) { animation-delay: 1.0s; }
.skillCard:nth-child(6) { animation-delay: 1.1s; }

@keyframes skillCardAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skillCard:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: #3185FC;
  box-shadow: 0 20px 40px rgba(49, 133, 252, 0.3);
}

.skillIcon {
  font-size: 3em;
  margin-bottom: 20px;
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skillCard:hover .skillIcon {
  transform: scale(1.2) rotateY(15deg);
  color: #3185FC;
}

.skillName {
  font-family: "Poppins", sans-serif;
  font-size: 1.4em;
  font-weight: bold;
  margin: 0 0 15px 0;
  color: #f2f0ef;
}

.skillDescription {
  font-family: "Poppins", sans-serif;
  font-size: 1em;
  font-weight: 300;
  margin: 0 0 20px 0;
  color: #f2f0ef;
  opacity: 0.7;
  line-height: 1.5;
}

.skillFeatures {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
}

.skillFeatures span {
  background-color: #3185FC;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 0.8em;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 15px;
  white-space: nowrap;
}

.skillsCallToAction {
  margin-top: 60px;
  padding: 40px;
  background-color: #f2f0ef;
  border-radius: 20px;
  text-align: center;
  opacity: 0;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
}

.skillsCallToAction h3 {
  font-family: "Poppins", sans-serif;
  font-size: 2em;
  font-weight: bold;
  margin: 0 0 15px 0;
  color: #0e1111;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skillsCallToAction h3:hover {
  transform: scale(1.05);
  color: #3185FC;
}

.skillsCallToAction p {
  font-family: "Poppins", sans-serif;
  font-size: 1.1em;
  font-weight: 300;
  margin: 0 0 30px 0;
  color: #0e1111;
  opacity: 0.8;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skillsCallToAction p:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.skillsContactBtn {
  display: inline-block;
  background-color: #3185FC;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
  box-shadow: 0 4px 15px rgba(49, 133, 252, 0.2);
}

.skillsContactBtn:hover {
  background-color: #2574e3;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(49, 133, 252, 0.4);
}

/* Skills Section Responsive */

/* Desktop/Laptop */
@media (max-width: 1200px) {
  .skillsContainer {
    padding: 0 30px;
  }
  
  .skillsTitle {
    font-size: 2.5em;
  }
  
  .skillsGrid {
    gap: 25px;
    max-width: 900px;
  }
  
  .skillCard {
    padding: 35px 25px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .skillsSection {
    padding: 60px 0;
  }
  
  .skillsContainer {
    padding: 0 20px;
  }
  
  .skillsTitle {
    font-size: 2em;
  }
  
  .skillsSubtitle {
    font-size: 1em;
    margin-bottom: 40px;
  }
  
  .skillsGrid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
  }
  
  .skillCard {
    padding: 30px 20px;
  }
  
  .skillIcon {
    font-size: 2.5em;
  }
  
  .skillName {
    font-size: 1.2em;
  }
  
  .skillFeatures {
    gap: 6px;
  }
  
  .skillFeatures span {
    font-size: 0.7em;
    padding: 3px 8px;
  }
  
  .skillsCallToAction {
    margin-top: 40px;
    padding: 30px 20px;
  }
  
  .skillsCallToAction h3 {
    font-size: 1.6em;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .skillsSection {
    padding: 40px 0;
  }
  
  .skillsContainer {
    padding: 0 15px;
  }
  
  .skillsTitle {
    font-size: 1.8em;
  }
  
  .skillsSubtitle {
    font-size: 0.9em;
  }
  
  .skillsGrid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 15px;
    max-width: 400px;
  }
  
  .skillCard {
    padding: 25px 15px;
  }
  
  .skillIcon {
    font-size: 2em;
  }
  
  .skillName {
    font-size: 1.1em;
  }
  
  .skillDescription {
    font-size: 0.9em;
  }
  
  .skillFeatures {
    gap: 5px;
  }
  
  .skillFeatures span {
    font-size: 0.6em;
    padding: 2px 6px;
  }
  
  .skillsCallToAction {
    margin-top: 30px;
    padding: 25px 15px;
  }
  
  .skillsCallToAction h3 {
    font-size: 1.4em;
  }
  
  .skillsCallToAction p {
    font-size: 0.9em;
  }
  
  .skillsContactBtn {
    font-size: 1em;
    padding: 12px 25px;
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .skillsContainer {
    max-width: 1400px;
    padding: 0 50px;
  }
  
  .skillsTitle {
    font-size: 3.5em;
  }
  
  .skillsGrid {
    gap: 40px;
    max-width: 1200px;
  }
  
  .skillCard {
    padding: 50px 40px;
  }
}

/* Carousel arrows hitbox */
.carousel-arrow-hitbox {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  background: transparent;
  cursor: pointer;
}

.carousel-arrow-hitbox-prev {
  left: 0;
}

.carousel-arrow-hitbox-next {
  right: 0;
}

.carouselWrap {
  position: relative;
}

/* Balloon floating / swaying animation (for #balloon1) */
@keyframes balloonFloatSway {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) translateX(8px) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-6px) translateX(0) rotate(1.5deg);
  }
  75% {
    transform: translateY(-3px) translateX(-8px) rotate(-0.8deg);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
}

#balloon1 {
  /* gentler: longer duration and smoother easing */
  animation: balloonFloatSway 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: 50% 90%;
  will-change: transform;
  pointer-events: none; /* ensure it never intercepts interactions */
  image-rendering: pixelated;
}

/* Hide the balloon on small screens to avoid overlap */
@media (max-width: 600px) {
  #balloon1 {
    display: none;
  }
}

/* Second balloon animation and styles */
@keyframes balloonFloat2 {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  25% { transform: translateY(-4px) translateX(12px) rotate(2deg); }
  50% { transform: translateY(-8px) translateX(0) rotate(-2deg); }
  75% { transform: translateY(-4px) translateX(-12px) rotate(1deg); }
  100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

#balloon2 {
  animation: balloonFloat2 12s ease-in-out infinite;
  transform-origin: 50% 90%;
  will-change: transform;
  pointer-events: none;
  image-rendering: pixelated;
}

@media (max-width: 600px) {
  #balloon2 { display: none; }
}

/* Global cursor class assist: when html has .cursor-link, force link cursor broadly,
   but keep I-beam on text editables */
html.cursor-link, html.cursor-link body {
  cursor: url('../images/cursors/link.png') 8 0, pointer !important;
}
html.cursor-link input[type="text"],
html.cursor-link input[type="email"],
html.cursor-link input[type="search"],
html.cursor-link input[type="password"],
html.cursor-link input[type="url"],
html.cursor-link input[type="tel"],
html.cursor-link textarea,
html.cursor-link [contenteditable],
html.cursor-link [contenteditable="true"] {
  cursor: text !important;
}

/* Desktop icons wrapper should keep default cursor; only icons show link cursor */
#desktopIconsWrapper,
#desktopIconsWrapper:hover {
  cursor: url('../images/cursors/default.png') 1 1, auto !important;
}

/* Services section (myServices) layout tweaks */
#myServices .window,
#blogs .blog-card {
  background: linear-gradient(to bottom, #fcfcfe 0%, #f4f3ee 100%);
}
#myServices .window-body,
#blogs .blog-card .window-body {
  text-align: center;
}

#myServices .serviceIcon {
  width: 64px;
  height: 64px;
  display: block;
  margin: 8px auto 20px auto; /* reserve a bit more space to prevent overlap when scaled */
  image-rendering: pixelated;
  transition: transform 0.15s ease;
  transform: scale(1);
  transform-origin: center;
  will-change: transform;
}

#myServices .window:hover .serviceIcon {
  transform: scale(1.125); /* 64px -> ~72px visually without affecting layout */
}

#myServices .tags,
#blogs .blog-card-panel .tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Tag styling */
#myServices .tag, .tag {
  padding: 4px 12px;
  background-color: #359d35;
  color: #fff;
  display: inline-block;
}

/* Ensure tag text size and inner shadow in services section, overriding general 20px text */
#myServices article[role="tabpanel"] .tag,
#blogs .blog-card-panel .tag {
  font-size: 16px !important;
  box-shadow: inset 0 0px 3px #000;
}

#myServices .field-row {
  justify-content: center !important;
}

/* Make music panels slightly taller */
#myServices article[id^="music-"],
#blogs .blog-card-panel {
  padding-bottom: 16px;
}

/* Services: normalize tabpanel spacing and font */
#myServices article[role="tabpanel"],
#blogs .blog-card-panel {
  margin: 0 !important;            /* remove default bottom margin (e.g., 9px) */
  font-family: 'Windows XP Tahoma', 'MS Sans Serif', Tahoma, Geneva, sans-serif !important;
  font-size: 20px !important;
}
#myServices article[role="tabpanel"] *,
#blogs .blog-card-panel * {
  font-family: 'Windows XP Tahoma', 'MS Sans Serif', Tahoma, Geneva, sans-serif !important;
  font-size: 20px !important;
}

/* Services window inner title styling */
#myServices article[role="tabpanel"] .serviceTitle,
#blogs .blog-card-panel .blogTitle {
  font-family: 'Windows XP Tahoma', 'MS Sans Serif', Tahoma, Geneva, sans-serif !important;
  font-size: 32px !important;
  font-weight: normal !important;
  margin: 4px 0 8px 0 !important;
}

/* Ensure service description spacing */
#myServices article[role="tabpanel"] p,
#blogs .blog-card-panel .blog-desc {
  margin-top: 8px !important;
}

/* Individual desktop icons and recycle bin use link cursor on hover */
#recycleBin {
  position: relative;
}

#emptyRecycleBinButton {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  touch-action: manipulation;
}
#recycleBin.is-drop-target { outline: 2px dashed #fff; outline-offset: 4px; background: #ffffff33; }
#desktopIconsWrapper [data-icon] { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#desktopIconsWrapper [data-icon] img { -webkit-user-drag: none; }
#desktopIconsWrapper .desktop-icon-dragging { opacity: .45 !important; }
#desktopIconsWrapper .desktop-icon-recycled { visibility: hidden !important; pointer-events: none !important; }
/* Descendants also inherit visibility: the global transition otherwise keeps
   their image and label visible for another 300 ms after the icon is hidden. */
#desktopIconsWrapper .desktop-icon-interacted,
#desktopIconsWrapper [data-icon] * { transition: none !important; }
.desktop-drag-preview {
  position: fixed !important;
  z-index: 2147483644;
  display: flex !important;
  pointer-events: none !important;
  opacity: .85 !important;
  transition: none !important;
  user-select: none;
}
.desktop-drag-preview * { pointer-events: none !important; transition: none !important; }
#desktopIconsWrapper [data-icon]:focus-visible,
#emptyRecycleBinButton:focus-visible { outline: 2px dotted #fff; outline-offset: 4px; }

#enderLig {
  --ender-overlay-color: #fff;
  position: absolute;
  left: calc(100% + 158px);
  bottom: clamp(78px, calc(186px - 7.04vw), 158px);
  z-index: 1;
  width: clamp(72px, calc(9.87vw + 40.4px), 192px);
  aspect-ratio: 240 / 158;
  container-type: inline-size;
  max-width: none;
  overflow: visible;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
}

#enderLig .enderLig-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  pointer-events: auto;
  transition: opacity 0.12s ease;
}

#enderLig .enderLig-image-default {
  opacity: 1;
}

#enderLig .enderLig-image-hover {
  opacity: 0;
}

#enderLig:hover .enderLig-image-default,
#enderLig:focus-visible .enderLig-image-default {
  opacity: 0;
}

#enderLig:hover .enderLig-image-hover,
#enderLig:focus-visible .enderLig-image-hover {
  opacity: 1;
}

#enderLig .sleeping-zs {
  position: absolute;
  z-index: 1;
  left: 12%;
  bottom: 89%;
  width: 72%;
  height: 85%;
  overflow: visible;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

#enderLig .sleeping-zs.is-paused .sleeping-z {
  animation-play-state: paused;
}

#enderLig .sleeping-zs.is-paused {
  opacity: 0;
}

#enderLig .ender-click-message {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(100% + 8px);
  display: block;
  width: max-content;
  max-width: min(250px, calc(100vw - 16px));
  padding: 2px 5px;
  color: var(--ender-overlay-color);
  font-family: 'Windows XP Tahoma', Tahoma, sans-serif;
  font-size: clamp(16px, 1.4vw, 20px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 1px 1px 2px #000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(-50% - 20px));
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}

#enderLig .ender-click-message.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

#enderLig.is-jittering {
  animation: ender-click-jitter 0.18s steps(5, end);
}

@keyframes ender-click-jitter {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-3px, 1px, 0); }
  40% { transform: translate3d(3px, -1px, 0); }
  60% { transform: translate3d(-2px, -1px, 0); }
  80% { transform: translate3d(2px, 1px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  #enderLig.is-jittering {
    animation: none;
  }
}

#enderLig .sleeping-z {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  color: var(--ender-overlay-color);
  font-family: 'Windows XP Tahoma', Tahoma, sans-serif;
  font-size: clamp(8px, 1.6vw, 26px);
  font-size: clamp(8px, 13cqw, 26px);
  font-weight: 700;
  line-height: 1;
  text-shadow: 1px 1px 0 #19334d, -1px -1px 0 #19334d, 0 0 3px rgba(25, 51, 77, 0.7);
  transform-origin: left bottom;
  will-change: transform, opacity;
  animation-name: ender-sleep-z-float;
  animation-timing-function: steps(10, end);
  animation-iteration-count: infinite;
}

#enderLig .sleeping-z-one {
  --sleep-z-x: 36cqw;
  --sleep-z-y: -36cqw;
  animation-duration: 4.8s;
}

#enderLig .sleeping-z-two {
  --sleep-z-x: 36cqw;
  --sleep-z-y: -36cqw;
  animation-duration: 4.8s;
  animation-delay: -1.6s;
}

#enderLig .sleeping-z-three {
  --sleep-z-x: 36cqw;
  --sleep-z-y: -36cqw;
  animation-duration: 4.8s;
  animation-delay: -3.2s;
}

@keyframes ender-sleep-z-float {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.35);
  }
  14% {
    opacity: 0.9;
  }
  68% {
    opacity: 0.62;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--sleep-z-x), var(--sleep-z-y), 0) scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  #enderLig .sleeping-zs {
    display: none;
  }
}

/* Fluidly interpolate the image position between the supplied width anchors. */
@media (max-width: 1536px) {
  #enderLig {
    left: calc(100% + clamp(112px, calc(13.1429vw - 43.874px), 158px));
    bottom: clamp(78px, calc(393.977px - 20.5714vw), 150px);
  }
}

@media (max-width: 1186px) {
  #enderLig {
    left: calc(100% + clamp(-4px, calc(33.9181vw - 290.267px), 112px));
    bottom: clamp(78px, calc(186px - 3.04vw), 158px);
  }
}

@media (max-width: 844px) {
  #enderLig {
    left: calc(100% + clamp(-151px, calc(102.0833vw - 865.583px), -4px));
    bottom: clamp(114px, calc(30.5556vw - 99.889px), 158px);
  }
}

#desktopIconsWrapper [data-icon]:hover,
#desktopIconsWrapper [data-icon] img:hover,
#desktopIconsWrapper [data-icon] span:hover,
#recycleBin:hover,
#recycleBin *:hover {
  cursor: url('../images/cursors/link.png') 8 0, pointer !important;
}

/* Project rows: default cursor by default; momentary link cursor is applied via JS class */
.field-row.project-row {
  cursor: url('../images/cursors/default.png') 1 1, auto !important;
}
.field-row.project-row.link-cursor {
  cursor: url('../images/cursors/link.png') 8 0, pointer !important;
}

/* Only the heading text is interactive; the column and arrow are not buttons. */
#documentsWindow .project-sort-button {
  display: inline-block;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  appearance: none;
  font: inherit;
  color: inherit;
  line-height: inherit;
  white-space: nowrap;
  cursor: pointer;
}

#documentsWindow .project-sort-button:focus-visible {
  outline: 1px dotted currentColor;
  outline-offset: 2px;
}

.project-sort-indicator {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-bottom: 5px solid currentColor;
  visibility: hidden;
  pointer-events: none;
}

.project-sort-button[data-sort-direction] + .project-sort-indicator {
  visibility: visible;
}

.project-sort-button[data-sort-direction="descending"] + .project-sort-indicator {
  border-top: 5px solid currentColor;
  border-bottom: 0;
}

.project-sort-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* AboutMe transitions */
.aboutMe-transition {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}
.aboutMe-transition-top { top: 0; }
.aboutMe-transition-bottom { bottom: 0; transform: scaleY(-1); }

.ender-portrait[hidden] {
  display: none !important;
}

/* Anchor the decoration to the window, outside its clipped text area. */
.about-window {
  position: relative;
  overflow: visible;
}

.about-window .ender-skydive {
  position: absolute;
  z-index: 3;
  right: var(--skydive-right, max(-80px, calc((100% - 100vw) / 2 + 8px)));
  bottom: var(--skydive-bottom, 60px);
  width: var(--skydive-width, clamp(100px, 13.020833vw, 200px));
  max-width: none;
  height: auto;
  /* Retain the decoration's responsive overlap offset. */
  transform: translateY(var(--skydive-shift, max(40%, calc(100% - 64px))));
  animation: ender-skydive-float 9.6s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
  transition: none;
}

/* Animate independently of the calibrated responsive position. */
@keyframes ender-skydive-float {
  0%, 100% { translate: -8px 0; }
  11% { translate: 9px -.8px; }
  19% { translate: 3px .4px; }
  34% { translate: -12px 1px; }
  46% { translate: 11px -1px; }
  57% { translate: -4px .5px; }
  69% { translate: 14px -1.2px; }
  78% { translate: 5px .8px; }
  91% { translate: -11px -.5px; }
}

/* Measured position keypoints; blend back to the original layout at 1536px. */
@media (max-width: 1536px) {
  .about-window .ender-skydive {
    --skydive-width: clamp(166.9px, calc(13.031496063vw - .163779528px), 200px);
    --skydive-bottom: clamp(37.3px, calc(8.937007874vw - 77.272440945px), 60px);
    --skydive-right: clamp(-80px, calc(-2.992125984vw - 34.040944882px), -72.4px);
    --skydive-shift: clamp(61.1px, calc(9.803149606vw - 64.576377953px), 86px);
  }
}

@media (max-width: 1282px) {
  .about-window .ender-skydive {
    --skydive-width: clamp(166.9px, calc(-9.140625vw + 284.0828125px), 178.6px);
    --skydive-bottom: clamp(21.6px, calc(12.265625vw - 119.9453125px), 37.3px);
    --skydive-right: clamp(-72.4px, calc(-15.3125vw + 123.90625px), -52.8px);
    --skydive-shift: clamp(61.1px, calc(-6.953125vw + 150.2390625px), 70px);
  }
}

@media (max-width: 1154px) {
  .about-window .ender-skydive {
    --skydive-width: clamp(170px, calc(6.142857143vw + 107.711428571px), 178.6px);
    --skydive-bottom: clamp(-4.5px, calc(18.642857143vw - 193.538571429px), 21.6px);
    --skydive-right: clamp(-52.8px, calc(-64.357142857vw + 689.881428571px), 37.3px);
    --skydive-shift: clamp(63.5px, calc(4.642857143vw + 16.421428571px), 70px);
  }
}

@media (max-width: 1014px) {
  .about-window .ender-skydive {
    --skydive-width: clamp(170px, calc(-1.928571429vw + 189.555714286px), 175.4px);
    --skydive-bottom: clamp(-4.5px, calc(-6.535714286vw + 61.772142857px), 13.8px);
    --skydive-right: clamp(-17.5px, calc(19.571428571vw - 161.154285714px), 37.3px);
    --skydive-shift: clamp(63.5px, calc(-1.464285714vw + 78.347857143px), 67.6px);
  }
}

@media (max-width: 734px) {
  /* Retain the 402px values below the smallest measured width. */
  .about-window .ender-skydive {
    --skydive-width: clamp(158.2px, calc(5.180722892vw + 137.373493976px), 175.4px);
    --skydive-bottom: 13.8px;
    --skydive-right: clamp(-17.5px, calc(-17.289156627vw + 109.402409639px), 39.9px);
    --skydive-shift: clamp(54.7px, calc(3.885542169vw + 39.080120482px), 67.6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-window .ender-skydive { animation: none; }
}

/* Global responsive helpers */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.responsive-section {
  width: 100%;
}

.responsive-outer {
  width: 100%;
}

.responsive-shell {
  width: min(1280px, 92vw);
  margin: 0 auto;
}

/* Shared XP styling for theme, back and mobile menu controls. */
.site-navbar-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  min-height: 23px;
  padding: 8px;
  box-sizing: border-box;
  flex: 0 0 36px;
  border: 1px solid #fff;
  border-radius: 3px;
  background: #1a5fb4;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.6), 1px 1px #0b3d82;
  color: #000;
  font-family: 'Pixelated MS Sans Serif', Arial;
  font-size: 11px;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.site-navbar-icon-btn:not(:disabled):active {
  background: linear-gradient(180deg, #cdcac3, #e3e3db 8%, #e5e5de 94%, #f2f2f1);
  box-shadow: none;
}

.site-navbar-icon-btn:not(:disabled):hover {
  box-shadow: inset -1px 1px #fff0cf, inset 1px 2px #fdd889,
    inset -2px 2px #fbc761, inset 2px -2px #e5a01a;
}

.site-navbar-icon-btn:focus {
  outline: 1px dotted #000;
  outline-offset: -4px;
  box-shadow: inset -1px 1px #cee7ff, inset 1px 2px #98b8ea,
    inset -2px 2px #bcd4f6, inset 1px -1px #89ade4,
    inset 2px -2px #89ade4;
}

#navbar > div:last-child > .site-navbar-icon-btn {
  width: 36px !important;
  min-width: 0 !important;
  max-width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  padding: 8px !important;
  aspect-ratio: 1;
}

#navbar .site-theme-toggle img,
#navbar .project-back-button img {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
}

#navbar .project-back-button { text-decoration: none; }

@media (max-width: 360px) {
  body:is(.project-page, .contact-page) #navbar { padding-right: 6px !important; }
  body:is(.project-page, .contact-page) #navbar > div:last-child { gap: 4px !important; }
  body:is(.project-page, .contact-page) #navbar > div:last-child .xp-button { padding-inline: 6px; }
}

#navbar .site-theme-toggle .theme-icon-sun,
html.dark-mode #navbar .site-theme-toggle .theme-icon-moon {
  display: block;
}

#navbar .site-theme-toggle .theme-icon-moon,
html.dark-mode #navbar .site-theme-toggle .theme-icon-sun {
  display: none;
}

.site-mobile-menu-btn {
  display: none;
}

@media (min-width: 701px) and (max-width: 760px) {
  #navbar > div:last-child {
    gap: 12px !important;
  }
}

.mobile-portfolio-menu[hidden] {
  display: none;
}

.documents-layout {
  gap: 32px;
}

.services-shell,
.blogs-shell,
.about-shell {
  width: min(1280px, 92vw);
  margin: 0 auto;
}

.services-shell,
.blogs-shell {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 32px;
  justify-content: center;
  width: 100%;
  max-width: 1032px;
}
.service-card {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  justify-content: center;
  width: 100%;
  max-width: 1032px;
}
.blog-card {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

/* Blog CTA Window */
.blog-cta-window {
  width: 50%;
  max-width: 1032px;
  margin: 32px auto 0 auto;
  margin-top: 80px;
}

.blog-cta-window h2 {
  font-family: 'Windows XP Tahoma', 'MS Sans Serif', Tahoma, Geneva, sans-serif;
  font-size: 32px;
  font-weight: normal;
  margin: 16px 0 8px 0;
  color: #000;
}

.blog-cta-window p {
  font-family: 'Windows XP Tahoma', 'MS Sans Serif', Tahoma, Geneva, sans-serif;
  font-size: 20px;
  margin: 0 0 16px 0;
  text-align: center;
}

#galleryWindow {
  width: 300px;
  max-width: 100%;
}

.blogTitle {
  font-family: 'Windows XP Tahoma', 'MS Sans Serif', Tahoma, Geneva, sans-serif !important;
  font-size: 32px;
  font-weight: normal;
  margin: 0 0 0 0;
  color: inherit;
}
#blogs .blog-desc {
  font-family: 'Windows XP Tahoma', 'MS Sans Serif', Tahoma, Geneva, sans-serif !important;
  font-size: 20px;
  margin: 8px 0 1em;
  color: inherit;
}

#blogs .blog-cta-window h2 {
  text-shadow: none !important;
  font-weight: 700 !important;
}

/* Breakpoints */
@media (max-width: 1200px) {
  .services-grid,
  .blogs-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 32px;
  }

  .service-card,
  .blog-card {
    width: 100%;
  }

  .blog-cta-window {
    max-width: 100%;
  }

  .documents-layout {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #documentsWindow {
    width: 100% !important;
  }

  #galleryWindow {
    width: 100% !important;
  }
}

@media (max-width: 992px) {
  .myDocuments {
    padding: 64px 0;
    max-width: none;
  }

  .documents-layout {
    gap: 32px;
  }

  #myServices h2,
  #blogs h2 {
    text-align: center;
    padding: 0 16px;
  }

  #myServices p,
  #blogs p {
    padding: 0 16px;
  }

  #aboutMe {
    height: auto !important;
    padding: 64px 0;
    background-attachment: scroll;
  }

  #aboutMe .window {
    width: 100% !important;
  }
}

/* Tablet and phone: keep icons interactive, and use the compact project preview. */
@media (max-width: 1200px) {
  body.loading-complete #desktopIconsWrapper {
    z-index: 1001 !important;
  }

  #aboutMe {
    background-attachment: scroll !important;
    background-size: cover !important;
  }

  #blogs {
    background: url('../images/aboutmebackground.png') center center / cover no-repeat scroll !important;
    background-color: #ECE9D8 !important;
  }

  #blogs .blog-cta-window .window-body > .field-row > button:last-child {
    color: #000 !important;
  }

  #documentsWindow {
    position: relative;
    overflow: visible !important;
  }

  #galleryWindow {
    display: none !important;
  }

  #mobileProjectPreview[hidden] {
    display: none !important;
  }

  #mobileProjectPreview:not([hidden]) {
    position: absolute;
    z-index: 30;
    top: 0;
    right: 8px;
    display: block;
    width: min(24%, 180px);
    aspect-ratio: 4 / 3;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  #mobileProjectPreview.is-visible {
    opacity: 1;
    animation: mobileProjectPreviewFloat 4s ease-in-out 180ms infinite;
  }

  #mobileProjectPreview img {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    object-fit: contain;
    filter: drop-shadow(2px 3px 6px rgba(0, 0, 0, 0.45));
  }

  @keyframes mobileProjectPreviewFloat {
    0%,
    100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }
}

@media (max-width: 700px) {
  #mobileProjectPreview:not([hidden]) {
    width: min(36%, 128px);
  }
}

@media (max-width: 768px) {
  .services-grid,
  .blogs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 2.5vw, 14px);
  }

  .service-card,
  .blog-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }

  .responsive-shell,
  .services-shell,
  .blogs-shell,
  .about-shell {
    width: min(640px, 92vw);
  }

  .blog-cta-window {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .myDocuments,
  #myServices,
  #blogs {
    padding: 56px 0;
  }

  .documents-layout {
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .services-grid,
  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .myDocuments,
  #myServices,
  #blogs {
    padding: 48px 0;
  }

  #myServices h2,
  #blogs h2 {
    font-size: 32px !important;
  }

  #myServices > div > div > p,
  #blogs > div > div > p {
    font-size: clamp(16px, 4.5vw, 20px) !important;
  }

  #blogs .blog-meta,
  #blogs .blog-desc {
    font-size: clamp(13px, 3.5vw, 16px);
  }

  .blog-cta-window h2 {
    font-size: clamp(20px, 5vw, 26px) !important;
  }

  .blog-cta-window p {
    font-size: clamp(14px, 3.8vw, 17px) !important;
  }

  #myServices article[role="tabpanel"] *,
  #blogs .blog-card-panel * {
    font-size: clamp(12px, 3.4vw, 14px) !important;
  }

  .service-card .title-bar,
  .blog-card .title-bar {
    height: auto;
    min-height: 26px;
  }

  .service-card .title-bar-text,
  .blog-card .title-bar-text {
    min-width: 0;
    white-space: normal;
    font-size: clamp(10px, 2.8vw, 12px);
    line-height: 1.1;
  }

  #myServices article[role="tabpanel"] .tag,
  #blogs .blog-card-panel .tag {
    padding: 4px 6px;
    font-size: clamp(10px, 3vw, 12px) !important;
  }

  #aboutMe {
    padding: 48px 0;
  }
}

@media (max-width: 992px) {
  /* Keep the blog card treatment confined to the responsive layout. */
  #blogs h2,
  #blogs > div > div > p {
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6);
  }

  #blogs .window-body {
    text-align: left;
  }

  #blogs .blog-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    margin-bottom: 8px;
  }
}

/* Keep the XP desktop hero intact at 1536px while fitting smaller screens. */
@media (max-width: 768px) {
  #navbar {
    box-sizing: border-box;
    width: 100vw !important;
  }

  .cta {
    height: calc(clamp(560px, 88svh, 760px) + 48px) !important;
    min-height: 608px !important;
  }

  #logo3d {
    width: min(78vw, 380px) !important;
    height: min(78vw, 380px) !important;
    top: calc(50% - 32px) !important;
  }

  #logo3d canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  #windowsXPLogo {
    top: calc(50% - 30px) !important;
    width: min(68vw, 310px) !important;
    height: auto !important;
  }

  #loadingProgressContainer {
    top: calc(50% + clamp(115px, 28vw, 160px)) !important;
    left: 50% !important;
    width: min(260px, 70vw) !important;
  }

  #desktopIconsWrapper {
    left: 0 !important;
    bottom: 12px !important;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 0 clamp(12px, 3vw, 24px) !important;
  }

  #desktopIconsWrapper > div:nth-child(2) {
    gap: clamp(8px, 2vw, 18px) !important;
  }

  #desktopIconsWrapper img {
    width: 40px !important;
    height: 40px !important;
  }

  #desktopIconsWrapper span {
    font-size: clamp(11px, 1.7vw, 13px) !important;
  }
}

@media (max-width: 400px) {
  #desktopIconsWrapper {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "recycle music"
      "apps apps";
    row-gap: 10px;
  }

  #recycleBin {
    grid-area: recycle;
    justify-self: start;
  }

  #desktopIconsWrapper > div:nth-child(2) {
    grid-area: apps;
    justify-self: center;
  }

  #desktopIconsWrapper > div:nth-child(3) {
    grid-area: music;
    justify-self: end;
  }
}

@media (min-width: 701px) and (max-width: 1200px) {
  .blog-footer-grass {
    left: -20% !important;
    max-width: none;
  }

}

@media (max-width: 700px) {
  .blog-footer-grass {
    left: -10% !important;
    max-width: none;
  }

  #desktopIconsWrapper #enderLig {
    left: auto !important;
    right: clamp(12px, 4vw, 20px) !important;
    width: clamp(72px, calc(9.87vw + 40.4px), 192px) !important;
    bottom: 94px !important;
  }

  #desktopIconsWrapper > #recycleBin {
    position: static !important;
  }

  #desktopIconsWrapper #enderLig .enderLig-image {
    width: 100% !important;
    height: 100% !important;
  }

  #navbar {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 10px 0 0 !important;
    box-sizing: border-box;
  }

  #navbar > div:first-child img {
    width: auto !important;
    height: 48px !important;
    max-width: none !important;
    margin-top: -1px !important;
    margin-left: -1px !important;
  }

  #navbar > div:last-child {
    gap: 8px !important;
  }

  #navbar .navitem-hide-mobile {
    display: none !important;
  }

  #navbar > div:last-child .xp-button {
    min-height: 36px;
    padding: 4px 10px;
    font-size: 20px !important;
    white-space: nowrap;
  }

  .site-mobile-menu-btn {
    display: flex;
  }

  .site-mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
  }

  .mobile-portfolio-menu {
    position: fixed;
    z-index: 999;
    top: 48px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    height: auto;
    max-height: calc(100svh - 48px);
    overflow-y: auto;
    padding: 12px;
    box-sizing: border-box;
    background: #ece9d8;
    border: 1px solid #7f9db9;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  }

  .mobile-portfolio-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    color: #111;
    font: 16px/1.2 'Windows XP Tahoma', Tahoma, sans-serif;
    text-decoration: none;
  }

  .mobile-portfolio-menu a:focus-visible,
  .mobile-portfolio-menu a:hover {
    color: #fff;
    background: #1a5fb4;
    outline: 1px solid #0b3d82;
  }
}

@media (max-width: 400px) {
  #navbar {
    padding: 0 8px 0 0 !important;
  }

  #navbar > div:last-child .xp-button {
    padding: 4px 8px;
    font-size: 20px !important;
  }
}

@media (max-width: 700px) {
  .window-body {
    overflow-x: hidden !important;
    overflow-x: clip !important;
  }

  .ender-portrait {
    right: 4px !important;
    width: 95px !important;
  }

  #blogs .blog-card .window-body,
  #blogs .blog-card article,
  #blogs .blog-cta-window .window-body {
    text-align: center !important;
  }

  #blogs .blog-card .blog-thumb {
    margin-left: auto;
    margin-right: auto;
  }

  #blogs .blog-card .title-bar {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  #blogs .blog-card .title-bar-text {
    flex: 1;
    margin: 0 0 0 4px !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  #blogs .blog-card-panel .blogTitle {
    margin: 4px 0 8px !important;
    font-family: 'Windows XP Tahoma', 'MS Sans Serif', Tahoma, Geneva, sans-serif !important;
    font-size: 28px !important;
    font-weight: normal !important;
    line-height: 1.2;
    color: #000;
  }

  #blogs .blog-cta-window h2,
  #blogs .blog-cta-window p {
    text-align: center;
  }

  #myServices .services-shell > h2,
  #blogs .blogs-shell > h2 {
    font-size: 40px !important;
  }

  #myServices article[role="tabpanel"] .serviceTitle,
  #blogs .blog-card-panel .blogTitle {
    margin: 4px 0 8px !important;
    font-family: 'Windows XP Tahoma', 'MS Sans Serif', Tahoma, Geneva, sans-serif !important;
    font-size: 28px !important;
    font-weight: normal !important;
    line-height: 1.2;
    color: #000;
  }
}

@media (max-width: 576px) {
  #logo3d {
    width: min(84vw, 420px) !important;
    height: min(84vw, 420px) !important;
  }

  #windowsXPLogo {
    width: min(72vw, 330px) !important;
  }
}

.mobile-project-preview {
  display: none;
}

@media (max-width: 700px) {
  .cta {
    height: calc(clamp(460px, calc(88svh - 100px), 660px) + 48px) !important;
    min-height: 508px !important;
  }

  html,
  body {
    height: auto !important;
    min-height: 0 !important;
  }

  body {
    display: block;
  }

  .blog-footer-grass {
    left: -25% !important;
    max-width: none;
  }

  #footer {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 8px 0 !important;
    box-sizing: border-box;
  }

  #myServices p,
  #myServices article[role="tabpanel"] p,
  #blogs p,
  #blogs .blog-card p.blog-meta,
  #blogs .blog-card p.blog-desc,
  #blogs .blog-cta-window p {
    font-size: 20px !important;
  }

  #footer p {
    font-size: 16px !important;
  }

  #documentsWindow article[role="tabpanel"] > section.field-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  #visitProjectBtn {
    flex: 0 0 auto;
    height: 32px !important;
    min-height: 32px !important;
    font-size: 14px !important;
    box-sizing: border-box;
  }

  #visitProjectBtn + label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    line-height: 1.2;
  }

}

/* Keep Ender legible through the 700–770px tablet transition. */
@media (min-width: 701px) and (max-width: 770px) {
  #desktopIconsWrapper #enderLig {
    width: clamp(72px, calc(9.87vw + 40.4px), 192px) !important;
  }

  #desktopIconsWrapper #enderLig .enderLig-image {
    width: 100% !important;
    height: 100% !important;
  }

  #enderLig .sleeping-z {
    font-size: 16cqw;
  }

  #enderLig .ender-click-message {
    font-size: clamp(18px, 2.6vw, 20px);
  }
}

/* Compact phones: keep the desktop icons on one row and Ender near center. */
@media (max-width: 400px) {
  .cta {
    height: calc(clamp(360px, calc(88svh - 200px), 560px) + 48px) !important;
    min-height: 408px !important;
  }

  .blog-footer-grass {
    left: -32.5% !important;
    max-width: none;
  }

  #desktopIconsWrapper {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) 64px !important;
    grid-template-areas: none !important;
    align-items: end !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    padding: 0 8px !important;
  }

  #desktopIconsWrapper #recycleBin {
    position: static !important;
    grid-area: auto !important;
    justify-self: center !important;
    align-self: end !important;
    width: 64px;
    min-width: 0;
    margin-top: -3px;
  }

  #desktopIconsWrapper > div:nth-child(2) {
    grid-area: auto !important;
    justify-self: stretch !important;
    align-self: end !important;
    width: 100%;
    min-width: 0;
    gap: 0 !important;
    justify-content: space-around !important;
  }

  #desktopIconsWrapper > div:nth-child(2) > [data-icon] {
    flex: 1 1 0;
    min-width: 0;
  }

  #desktopIconsWrapper > div:nth-child(3) {
    grid-area: auto !important;
    justify-self: center !important;
    align-self: end !important;
    width: 64px;
    min-width: 0;
    transform: translateY(-3px);
  }

  #desktopIconsWrapper img {
    width: clamp(34px, 10vw, 40px) !important;
    height: clamp(34px, 10vw, 40px) !important;
  }

  #desktopIconsWrapper span {
    max-width: 100%;
    font-size: clamp(9px, 2.8vw, 11px) !important;
    line-height: 1.1;
  }

  #desktopIconsWrapper #enderLig {
    left: auto !important;
    right: clamp(12px, 4vw, 20px) !important;
    bottom: 94px !important;
    width: clamp(72px, calc(9.87vw + 40.4px), 90px) !important;
  }

  #enderLig .sleeping-z {
    font-size: 16cqw;
  }

  #enderLig .ender-click-message {
    font-size: clamp(16px, 4.5vw, 18px);
  }
}

/* Calibrated blog/footer overlap points from the temporary viewport tuner. */
@media (max-width: 394px) {
  #blogs { padding-bottom: 62px !important; }
}

@media (min-width: 394px) and (max-width: 410px) {
  #blogs { padding-bottom: clamp(62px, calc(143.75vw - 504.375px), 85px) !important; }
}

@media (min-width: 410px) and (max-width: 448px) {
  #blogs { padding-bottom: clamp(46px, calc(-102.63158vw + 505.78947px), 85px) !important; }
}

@media (min-width: 448px) and (max-width: 495px) {
  #blogs { padding-bottom: clamp(46px, calc(27.65957vw - 77.91489px), 59px) !important; }
}

@media (min-width: 495px) and (max-width: 587px) {
  #blogs { padding-bottom: clamp(59px, calc(34.78261vw - 113.17391px), 91px) !important; }
}

@media (min-width: 587px) and (max-width: 747px) {
  #blogs { padding-bottom: clamp(91px, calc(29.375vw - 81.43125px), 138px) !important; }
}

@media (min-width: 747px) and (max-width: 878px) {
  #blogs { padding-bottom: clamp(138px, calc(22.90076vw - 33.06870px), 168px) !important; }
}

@media (min-width: 878px) and (max-width: 982px) {
  #blogs { padding-bottom: clamp(168px, calc(35.57692vw - 144.36538px), 205px) !important; }
}

@media (min-width: 982px) and (max-width: 1038px) {
  #blogs { padding-bottom: clamp(113px, calc(-164.28571vw + 1818.28571px), 205px) !important; }
}

/* 1100px keeps its existing responsive value; the samples between it and 394px are interpolated above. */
@media (min-width: 1038px) and (max-width: 1100px) {
  #blogs { padding-bottom: clamp(48px, calc(-104.83871vw + 1201.22581px), 113px) !important; }
}

@media (min-width: 1100px) and (max-width: 1533px) {
  #blogs { padding-bottom: clamp(48px, calc(12.47113vw - 89.18245px), 102px) !important; }
}

/* Footer art sizes and offsets calibrated at the same viewport widths. */
@media (max-width: 410px) {
  .blog-footer-grass { width: 165% !important; }
}

@media (min-width: 410px) and (max-width: 448px) {
  .blog-footer-grass { width: clamp(148%, calc(-44.73684vw + 348.42105px), 165%) !important; }
}

@media (min-width: 448px) and (max-width: 1038px) {
  .blog-footer-grass { width: 148% !important; }
}

@media (min-width: 1038px) and (max-width: 1100px) {
  .blog-footer-grass { width: clamp(140%, calc(-12.90323vw + 281.93548px), 148%) !important; }
}

@media (min-width: 1100px) and (max-width: 1200px) {
  .blog-footer-grass { width: 140% !important; }
}

@media (max-width: 982px) {
  .blog-footer-grass { bottom: -70px !important; }
}

@media (min-width: 982px) and (max-width: 1038px) {
  .blog-footer-grass { bottom: clamp(-180px, calc(-196.42857vw + 1858.92857px), -70px) !important; }
}

@media (min-width: 1038px) and (max-width: 1200px) {
  .blog-footer-grass { bottom: -180px !important; }
}

@media (max-width: 410px) {
  #footer { min-height: 44px !important; }
}

@media (min-width: 410px) and (max-width: 448px) {
  #footer { min-height: clamp(0px, calc(-115.78947vw + 518.73684px), 44px) !important; }
}

/* Mobile Ender sits on the right edge of the hero, independent of Recycle Bin width. */
@media (max-width: 700px) {
  #desktopIconsWrapper > #recycleBin {
    position: static !important;
  }

  #desktopIconsWrapper #enderLig {
    position: absolute !important;
    left: auto !important;
    right: clamp(12px, 4vw, 20px) !important;
    bottom: 136px !important;
    width: clamp(76px, calc(10.3vw + 40px), 198px) !important;
  }
}

@media (max-width: 400px) {
  #desktopIconsWrapper #enderLig {
    width: clamp(76px, calc(10.3vw + 40px), 96px) !important;
  }
}

/* The document root is visible during bottom overscroll beyond the footer. */
html,
html.contact-document {
  background-color: #000000 !important;
}

#myServices article[role="tabpanel"] .serviceTitle,
#blogs .blog-card-panel .blogTitle {
  font-weight: 700 !important;
}

/* Contact footer layers above the form and its decorative overlap. */
body.contact-page > .contentWrapper {
  z-index: 1;
}

body.contact-page > #footer {
  z-index: 30 !important;
}

body.contact-page .blog-footer-grass {
  z-index: 23 !important;
}

#contactForm .submitButton {
  display: block;
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Crossfade both images, including transparent edges in the section transitions. */
.theme-light-image {
  opacity: 1;
  transition: opacity 0.5s ease !important;
}

.dark-theme-image-overlay {
  opacity: 0;
  transition: opacity 0.5s ease !important;
}

html.dark-mode .dark-theme-image-overlay.is-loaded {
  opacity: 1 !important;
}

html.dark-mode .theme-light-image.has-dark-variant {
  opacity: 0 !important;
}

/* Transition declarations remain active when the dark-mode class is removed. */
html.theme-prepared body,
html.theme-prepared #myWork,
html.theme-prepared #myServices,
html.theme-prepared #blogs,
html.theme-prepared .mobile-portfolio-menu {
  transition: background-color 0.5s ease !important;
}

html.theme-prepared .mobile-portfolio-menu a,
html.theme-prepared #myServices .services-shell > h2,
html.theme-prepared #myServices .services-shell > p {
  transition: color 0.5s ease !important;
}

html:is(.dark-mode, .theme-transitioning) #blogs {
  isolation: isolate;
}

#blogs::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: transparent;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

html.theme-prepared #blogs::before {
  background-image: url('../images/blogbackground_dark.png');
}

html.dark-mode #blogs.dark-background-ready::before {
  opacity: 1;
}

@media (max-width: 1200px) {
  #blogs::before {
    background-attachment: scroll;
    background-position: center center;
  }
}

html:is(.dark-mode, .theme-transitioning) body.contact-page {
  position: relative;
  isolation: isolate;
}

body.contact-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: transparent;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

html.theme-prepared body.contact-page::before {
  background-image: url('../images/contactbackground_dark.png');
}

html.dark-mode body.contact-page.dark-background-ready::before {
  opacity: 1;
}

@media (max-width: 700px) {
  body.contact-page::before {
    background-attachment: scroll;
    background-position: center top;
  }
}

/* Replace the XP parchment surface while retaining the window panels. */
html.dark-mode body {
  background-color: #1F1A31 !important;
}

/* Match the black document edge below the grass in either theme. */
body.contact-page,
body.project-page,
html.dark-mode body.contact-page,
html.dark-mode body.project-page {
  background-color: #000 !important;
}

html.dark-mode #myWork,
html.dark-mode #myServices,
html.dark-mode #blogs {
  background-color: #1F1A31 !important;
}

html.dark-mode .mobile-portfolio-menu {
  background-color: #1F1A31 !important;
}

html.dark-mode .mobile-portfolio-menu a {
  color: #fff;
}

/* The boot animation owns .cta::before; use a separate layer for its dark wallpaper. */
.cta::after,
#aboutMe::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

html.theme-prepared .cta::after {
  background-image: url('../images/wallpaper_dark.png');
}

html.dark-mode .cta.dark-background-ready::after {
  opacity: 1;
}

html:is(.dark-mode, .theme-transitioning) #aboutMe {
  isolation: isolate;
}

#aboutMe::before {
  background-attachment: fixed;
}

html.theme-prepared #aboutMe::before {
  background-image: url('../images/aboutmebackground_dark.png');
}

html.dark-mode #aboutMe.dark-background-ready::before {
  opacity: 1;
}

html:is(.dark-mode, .theme-transitioning) #aboutMe > .responsive-outer {
  position: relative;
  z-index: 1;
}

html:is(.dark-mode, .theme-transitioning) #aboutMe > .aboutMe-transition {
  z-index: 2;
}

html.dark-mode #myServices .services-shell > h2,
html.dark-mode #myServices .services-shell > p {
  color: #fff !important;
}

@media (max-width: 1200px) {
  #aboutMe::before {
    background-attachment: scroll;
  }
}
