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

/* Disable scroll class (used when overlays/sidebar/modal are open) */
html.no-scroll {
  overflow: hidden !important;
}

/* Settings panel / sidebar open: keep scrolling, just hide the scrollbar visually */
html.settings-open::-webkit-scrollbar,
html.sidebar-open::-webkit-scrollbar {
  display: none;
}
html.settings-open,
html.sidebar-open {
  scrollbar-width: none;
  -ms-overflow-style: none;
}


/* Lenis smooth scroll overrides */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

html {
  scroll-behavior: smooth;
  /* Custom cursor: default_cursor.svg */
  cursor: url('../Material_Stuff/Icons/All_Cursors/default_cursor.svg') 6 3, default;
  overflow-x: hidden;
  scrollbar-gutter: stable; /* Always reserve scrollbar space to prevent layout shift */
}

/* Iframes also use the custom default cursor */
iframe, .project-iframe {
  cursor: url('../Material_Stuff/Icons/All_Cursors/default_cursor.svg') 6 3, default !important;
}

/* Interactive elements keep the custom hand-pointer cursor */
a, button, [role="button"],
input[type="button"], input[type="submit"], input[type="checkbox"], input[type="radio"], input[type="file"],
select, label, [tabindex]:not([tabindex="-1"]), .ctx-menu-item,
.toggle-theme, .menu-icon, .profile-pic img,
.brutalist-btn, nav a, .scroll-icon,
.sidebar-close-btn, .lb-close, .social-card, .resume-btn,
.submit-btn, [onclick], .logo, .logo img, .contact-social-link,
.preview-section, .preview-click-handler, .loader-logo-wrapper,
.loader-sound-card, .loader-sound-btn, .share-modal-close,
.share-copy-button, .restore-toast-btn,
.lb-card, .lb-card img, .about-image-spread-container, .spread-card {
  cursor: url('../Material_Stuff/Icons/All_Cursors/hand-pointer.svg') 10 2, pointer !important;
}

/* Fallback override to native cursors when native-cursors class is active */
html.native-cursors, 
html.native-cursors *:not(input):not(textarea):not(select) {
  cursor: default !important;
}
html.native-cursors a, html.native-cursors button, html.native-cursors [role="button"],
html.native-cursors input[type="button"], html.native-cursors input[type="submit"],
html.native-cursors input[type="checkbox"], html.native-cursors input[type="radio"],
html.native-cursors input[type="file"], html.native-cursors select, html.native-cursors label,
html.native-cursors [tabindex]:not([tabindex="-1"]), html.native-cursors .ctx-menu-item,
html.native-cursors .toggle-theme, html.native-cursors .menu-icon, html.native-cursors .profile-pic img,
html.native-cursors .brutalist-btn,
html.native-cursors nav a, html.native-cursors .scroll-icon,
html.native-cursors .sidebar-close-btn, html.native-cursors .lb-close,
html.native-cursors .social-card, html.native-cursors .resume-btn,
html.native-cursors .submit-btn, html.native-cursors [onclick],
html.native-cursors .logo, html.native-cursors .logo img, html.native-cursors .contact-social-link,
html.native-cursors .preview-section, html.native-cursors .preview-click-handler,
html.native-cursors .loader-logo-wrapper, html.native-cursors .loader-sound-card,
html.native-cursors .loader-sound-btn, html.native-cursors .share-modal-close,
html.native-cursors .share-copy-button, html.native-cursors .restore-toast-btn,
html.native-cursors .lb-card, html.native-cursors .lb-card img,
html.native-cursors .about-image-spread-container, html.native-cursors .spread-card {
  cursor: pointer !important;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--body-bg);
  color: var(--sidebar-text);
  scroll-behavior: smooth;
  position: relative;
  overflow-x: hidden;
}

body.theme-transition::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
  background: var(--theme-transition-color, white);
  animation: themeTopDown 0.6s cubic-bezier(0.4,0,0.2,1);
}

@keyframes themeTopDown {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0%);
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.8rem;
  border: 1px solid transparent;
  background-color: var(--body-bg);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    border-bottom-color 0.3s ease,
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-width 0.4s ease;
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 1025px) {
  header.scrolled {
    width: 55% !important;
    max-width: 700px !important;
    top: 0.2rem !important;
    border-radius: 50px !important;
    padding: 0.6rem 1.8rem !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  body.dark-theme header.scrolled {
    background-color: rgba(14, 14, 17, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important; /* Brighter high-visibility border in dark mode */
    border-top: none !important;
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.65), 
      0 0 25px rgba(16, 185, 129, 0.18) !important; /* Premium emerald tone glow shadow */
  }

  body.light-theme header.scrolled {
    background-color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  }
}

/* Scrolled state for smaller screens (keeps it full width, no top margin, no pill morph) */
@media (max-width: 1024px) {
  header.scrolled {
    width: 100% !important;
    max-width: 100% !important;
    top: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  body.dark-theme header.scrolled {
    background-color: rgba(14, 14, 17, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  }

  body.light-theme header.scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  }
}


.logo {
  display: flex;
  align-items: center;
  position: relative;
}

.logo img {
  height: 42px;
}

.logo::after {
  content: "";
  display: block;
  width: 1px;
  height: 22px;
  background-color: #aaa;
  margin-left: 0;
  opacity: 0;
  transform: scaleY(0);
  transition: 
    opacity 0.3s ease,
    transform 0.3s ease,
    margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1025px) {
  header.scrolled .logo::after {
    opacity: 1;
    transform: scaleY(1);
    margin-left: 0.9rem;
  }

  body.light-theme header.scrolled .logo::after {
    background-color: #ccc;
  }
}

nav {
  display: flex;
  gap: 1.35rem;
  margin-left: 2.7rem;
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1025px) {
  header.scrolled nav {
    margin-left: 1.8rem;
    /* Fill the full height of the pill so the snap zone covers the entire header */
    align-self: stretch;
    display: flex;
    align-items: center;
  }
}

nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.27rem;
  font-size: 0.85rem;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

#navbar.scrolled nav a::after {
  display: none !important;
}

nav a:hover {
  color: #aaa;
}

nav a img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  filter: invert(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-right::before {
  content: "";
  display: block;
  width: 1px;
  height: 22px;
  background-color: #aaa;
  margin-right: 0;
  opacity: 0;
  transform: scaleY(0);
  transition: 
    opacity 0.3s ease,
    transform 0.3s ease,
    margin-right 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease;
}

@media (min-width: 1025px) {
  header.scrolled .nav-right::before {
    opacity: 1;
    transform: scaleY(1);
    margin-right: 0.9rem;
  }
}

.toggle-theme {
  cursor: pointer;
  transition: transform 0.6s ease;
  width: 21px;
  height: 21px;
  filter: invert(1);
}

/* .toggle-theme {
    cursor: pointer;
    transition: transform 0.6s ease;
    width: 30px;
    height: 30px;
    outline: 1px solid black;
    filter: invert(1);
    border-radius: 2rem;
    padding: 0.4rem
6.4px
;
} */

.menu-icon {
  display: inline-block;
  cursor: pointer;
  line-height: 0;
  font-size: 0;
  /* When closing (no .active): rotate back first (0ms delay), then lines expand after 220ms */
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1) 0s;
}

.menu-icon.active {
  transform: rotate(90deg);
  /* When opening: lines compress first (takes 0-200ms), rotation starts at 200ms delay */
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

.menu-icon div {
  display: block;
  width: 18px;
  height: 1.5px;
  background: white;
  margin: 4px 1px;
  /* When closing: margin expands after 260ms (after rotation finishes) */
  transition: background-color 0.3s ease, margin 0.22s cubic-bezier(0.25, 1, 0.5, 1) 0.26s;
}

.menu-icon.active div {
  animation: menuOpenLines 0.65s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  transition: background-color 0.3s ease;
}

@keyframes menuOpenLines {
  0% {
    margin: 4px 1px;
  }
  30% {
    margin: 0px 1px;
  }
  65% {
    margin: 0px 1px;
  }
  100% {
    margin: 8px 1px;
  }
}

.menu-icon.closing {
  transform: rotate(0deg);
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1) 0.13s;
}

.menu-icon.closing div {
  animation: menuCloseLines 0.65s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  transition: background-color 0.3s ease;
}

@keyframes menuCloseLines {
  0% {
    margin: 8px 1px;
  }
  35% {
    margin: 0px 1px;
  }
  70% {
    margin: 0px 1px;
  }
  100% {
    margin: 4px 1px;
  }
}

.main-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 5.5rem 2rem 2rem;
  text-align: center;
  margin-top: 0rem;
  margin-left: 0;
  position: relative;
}

/* Hero background initials watermark */
.home-sc-bg {
  position: absolute;
  top: 80px;
  right: 5%;
  width: 320px;
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  animation: scTypographyFloat 8s ease-in-out infinite alternate;
  transition: opacity 0.3s ease;
}

.home-sc-bg .signature-svg {
  width: 100%;
  height: auto;
  display: none;
}

body.light-theme .home-sc-bg .signature-svg.light-only {
  display: block !important;
}

/* Dark theme: boost opacity so white-fill dark-only SVG is visible on dark bg */
body.dark-theme .home-sc-bg {
  opacity: 0.35;
}

body.dark-theme .home-sc-bg .signature-svg.light-only {
  display: none !important;
}

body.dark-theme .home-sc-bg .signature-svg.dark-only {
  display: block !important;
}



@media (max-width: 768px) {
  .home-sc-bg {
    width: 200px;
    right: 2%;
    top: 130px;
  }
}

/* ══════════════════════════════════════════════════
   SECTION DIVIDER — Premium Elegant Decorative Line
   ══════════════════════════════════════════════════ */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 60%;
  height: 1px;
  margin: -4.5rem auto 1.5rem; /* mobile / tablet default (pulled up) */
  background: linear-gradient(90deg, 
    transparent, 
    var(--divider-color) 20%, 
    var(--divider-color) 80%, 
    transparent
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: background 0.3s ease, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.section-divider.active-divider {
  transform: scaleX(1);
}

.section-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg) scale(0);
  width: 8px;
  height: 8px;
  background-color: var(--divider-dot-color);
  border: 2.2px solid var(--body-bg);
  box-shadow: 0 0 10px var(--divider-dot-glow);
  transition: 
    background-color 0.3s ease, 
    border-color 0.3s ease, 
    box-shadow 0.3s ease,
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}

.section-divider.active-divider::after {
  transform: translate(-50%, -50%) rotate(405deg) scale(1);
}

/* For desktops / larger screens, apply the negative margin to pull it up into the viewport */
@media (min-width: 1025px) {
  .section-divider {
    margin: 4.5rem auto; /* desktop margin restored to normal margins */
  }
}

.section-divider.home-divider {
  margin-top: -6rem !important; /* pull the divider up moderately into the home section on desktop */
}

/* Adjust the home divider's negative margin based on viewport height to prevent overlap */
@media (min-width: 1025px) and (max-height: 850px) {
  .section-divider.home-divider {
    margin-top: -4rem !important; /* Less pull-up for medium-short viewports like Nest Hub Max */
  }
}

@media (min-width: 1025px) and (max-height: 720px) {
  .section-divider.home-divider {
    margin-top: 2rem !important; /* Positive margin for very short or horizontal viewports so it never overlaps the resume button */
  }
}

/* Mobile-only page divider layout with large margin-top */
@media (max-width: 1024px) {
  .section-divider,
  .section-divider.projects-divider,
  .section-divider.about-divider,
  .section-divider.contact-divider {
    margin: 15rem auto 4rem !important;
  }

  .section-divider.home-divider {
    margin: 6rem auto 4rem !important; /* reduced margin-top for home section divider */
  }
}

.profile-pic {
  border: 2px solid currentColor;
  border-radius: 50%;
  width: 126px;
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  overflow: visible;
  z-index: 1;
  margin-bottom: 2.3rem;
  margin-top: -10.8rem;
}

/* .profile-pic {
    border: 2px solid currentColor;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    overflow: visible;
    z-index: 1;
    margin-bottom: 2.6rem;
    transform: scaleY(1.08);
    margin-top: -12rem;
} */

.profile-pic img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  position: relative;
}

/* cursor matches nav <a> tags — both are pointer */
.profile-pic img:hover {
  cursor: pointer;
}

/* Y-axis spin triggered by JS on click */
@keyframes spinY {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.profile-pic.is-spinning img {
  animation: spinY 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* For Oval Coin Shaped
.profile-pic img {
    width: 189%;
    height: 131%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    position: relative;
} */

/* For Curved Pie => Remove Outer Ring And Use Outline & Outline Offset Animation 
.profile-pic img {
    width: 150%;
    height: 150%;
    border-radius: 31%;
    object-fit: cover;
    outline: 2px solid grey;
    outline-offset: 11px;
    z-index: 2;
    position: relative;
} */

.profile-pic .outer-ring {
  position: absolute;
  width: 146px;
  height: 146px;
  border: 1px solid grey;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none; /* never intercept clicks meant for the img */
}

/* .profile-pic .outer-ring {
  position: absolute;
  width: 133px;
  height: 144px;
  border: 1px solid grey;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
} */

.profile-pic::before,
.profile-pic::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
}

.profile-pic::before {
  width: 166px;
  height: 166px;
  transition: opacity 0.5s ease 0s;
}

.profile-pic::after {
  width: 190px;
  height: 190px;
  transition: opacity 0.5s ease 0.5s;
}

.profile-pic:hover::before,
.profile-pic:hover::after,
.profile-pic:hover .circle {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
}

.intro-text h1 {
  position: relative;
  display: inline-block;
  font-size: clamp(1.1rem, 4.5vw, 1.65rem);
  margin-left: 0;
  margin-bottom: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ─── Curvy Dotted Trail Arrow ─── */
.intro-arrow-container {
  display: none; /* Hidden on mobile by default to keep the layout clean */
}

.resume-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

@media (min-width: 768px) {
  .intro-arrow-container {
    display: block;
    position: absolute;
    left: -115px; /* Sits to the left of the heading */
    top: -85px;   /* Sits above the heading */
    width: 105px;
    height: 105px;
    pointer-events: none;
    opacity: 0.55;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .intro-arrow {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* Static/non-moving by default */
  .intro-arrow-path {
    animation: none;
  }

  /* --- Interactive Hover Triggers --- */

  /* Heading Arrow lights up and animates when hovering Name or Resume Link */
  .intro-text h1:hover .intro-arrow-container,
  .intro-text:has(.resume-link:hover) h1 .intro-arrow-container {
    opacity: 0.95;
    transform: scale(1.05) translate(2px, 2px);
  }
  .intro-text h1:hover .intro-arrow-path,
  .intro-text:has(.resume-link:hover) h1 .intro-arrow-path {
    animation: arrowFlow 1.2s linear infinite;
  }
}

@keyframes arrowFlow {
  to {
    stroke-dashoffset: -16;
  }
}


.intro-text h1 strong {
  font-size: clamp(1.1rem, 4.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: currentColor;
}

.intro-text h2 {
  font-family: 'Fira Code', monospace;
  font-size: clamp(0.65rem, 2.25vw, 0.9rem);
  font-weight: 400;
  color: #888;
  letter-spacing: 0.04em;
  margin-top: 0;
  margin-left: 0;
  margin-bottom: 1.5rem;
}

.intro-text p {
  max-width: 540px;
  margin: 0 auto 2rem;
  font-family: "Space Mono", monospace;
  color: dimgray;
  font-size: 0.88rem;
}

/* ── Matrix Glitch Keyword ── */
.glitch-keyword {
  position: relative;
  display: inline;              /* inline avoids the extra line-height gap inline-block creates */
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  color: #a78bfa;
  letter-spacing: 0.03em;
  cursor: default;
  white-space: nowrap;          /* prevents internal wrapping during scramble */
  text-shadow:
    0 0 6px rgba(167, 139, 250, 0.5),
    0 0 14px rgba(167, 139, 250, 0.2);
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

/* Pseudo-element glitch layers */
.glitch-keyword::before,
.glitch-keyword::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
}

.glitch-keyword::before {
  color: #f472b6;                       /* rose-pink channel */
  text-shadow: -2px 0 rgba(244, 114, 182, 0.7);
  clip-path: polygon(0 15%, 100% 15%, 100% 40%, 0 40%);
  animation: glitch-layer-top 3.5s infinite;
}

.glitch-keyword::after {
  color: #67e8f9;                       /* ice-cyan channel */
  text-shadow: 2px 0 rgba(103, 232, 249, 0.7);
  clip-path: polygon(0 60%, 100% 60%, 100% 85%, 0 85%);
  animation: glitch-layer-bot 3.5s infinite;
}

/* Active (hover + JS class) glitch state */
.glitch-keyword.is-glitching::before,
.glitch-keyword.is-glitching::after {
  opacity: 1;
}

.glitch-keyword:hover::before,
.glitch-keyword:hover::after {
  opacity: 1;
}

.glitch-keyword.is-glitching,
.glitch-keyword:hover {
  animation: glitch-flicker 3.5s infinite;
}

/* Keyframes */
@keyframes glitch-flicker {
  0%, 90%, 100%    { transform: translate(0, 0) skewX(0deg); }
  91%              { transform: translate(-3px,  1px) skewX(-4deg); color: #a78bfa; }
  92%              { transform: translate( 3px, -1px) skewX( 4deg); color: #f472b6; }
  93%              { transform: translate(-2px,  0px) skewX( 2deg); color: #67e8f9; }
  94%              { transform: translate( 2px,  1px) skewX(-2deg); color: #a78bfa; }
  95%              { transform: translate(0,     0)   skewX(0deg);  color: #c4b5fd; }
  96%              { transform: translate(-1px, -1px) skewX(-1deg); color: #a78bfa; }
}

@keyframes glitch-layer-top {
  0%, 88%, 100%    { opacity: 0; transform: translate(0, 0); }
  89%              { opacity: 1; transform: translate(-4px, 0); }
  90%              { opacity: 1; transform: translate( 4px, 0); }
  91%              { opacity: 1; transform: translate(-2px, 1px); }
  92%              { opacity: 0; transform: translate(0, 0); }
}

@keyframes glitch-layer-bot {
  0%, 88%, 100%    { opacity: 0; transform: translate(0, 0); }
  89%              { opacity: 1; transform: translate( 4px, 0); }
  90%              { opacity: 1; transform: translate(-4px, 0); }
  91%              { opacity: 1; transform: translate( 2px,-1px); }
  92%              { opacity: 0; transform: translate(0, 0); }
}

/* ── Per-keyword colour variants ── */

/* Purple (default — software developer) */
.glitch-keyword.kw-purple {
  color: #a78bfa;
  text-shadow:
    0 0 6px rgba(167, 139, 250, 0.55),
    0 0 16px rgba(167, 139, 250, 0.2);
}
.glitch-keyword.kw-purple.is-glitching,
.glitch-keyword.kw-purple:hover {
  animation: glitch-flicker-purple 3.5s infinite;
}
@keyframes glitch-flicker-purple {
  0%, 90%, 100%  { transform: translate(0, 0) skewX(0deg); color: #a78bfa; }
  91%            { transform: translate(-3px,  1px) skewX(-4deg); color: #a78bfa; }
  92%            { transform: translate( 3px, -1px) skewX( 4deg); color: #f472b6; }
  93%            { transform: translate(-2px,  0px) skewX( 2deg); color: #67e8f9; }
  94%            { transform: translate( 2px,  1px) skewX(-2deg); color: #a78bfa; }
  95%            { transform: translate(0,     0)   skewX(0deg);  color: #c4b5fd; }
}

/* Gold (MERN) */
.glitch-keyword.kw-gold {
  color: #f59e0b;
  text-shadow:
    0 0 6px rgba(245, 158, 11, 0.55),
    0 0 16px rgba(245, 158, 11, 0.2);
}
.glitch-keyword.kw-gold.is-glitching,
.glitch-keyword.kw-gold:hover {
  animation: glitch-flicker-gold 3.5s infinite;
}
@keyframes glitch-flicker-gold {
  0%, 90%, 100%  { transform: translate(0, 0) skewX(0deg); color: #f59e0b; }
  91%            { transform: translate(-3px,  1px) skewX(-4deg); color: #fbbf24; }
  92%            { transform: translate( 3px, -1px) skewX( 4deg); color: #f472b6; }
  93%            { transform: translate(-2px,  0px) skewX( 2deg); color: #fde68a; }
  94%            { transform: translate( 2px,  1px) skewX(-2deg); color: #f59e0b; }
  95%            { transform: translate(0,     0)   skewX(0deg);  color: #fcd34d; }
}

/* Cyan (Sockets) */
.glitch-keyword.kw-cyan {
  color: #22d3ee;
  text-shadow:
    0 0 6px rgba(34, 211, 238, 0.55),
    0 0 16px rgba(34, 211, 238, 0.2);
}
.glitch-keyword.kw-cyan.is-glitching,
.glitch-keyword.kw-cyan:hover {
  animation: glitch-flicker-cyan 3.5s infinite;
}
@keyframes glitch-flicker-cyan {
  0%, 90%, 100%  { transform: translate(0, 0) skewX(0deg); color: #22d3ee; }
  91%            { transform: translate(-3px,  1px) skewX(-4deg); color: #67e8f9; }
  92%            { transform: translate( 3px, -1px) skewX( 4deg); color: #a78bfa; }
  93%            { transform: translate(-2px,  0px) skewX( 2deg); color: #06b6d4; }
  94%            { transform: translate( 2px,  1px) skewX(-2deg); color: #22d3ee; }
  95%            { transform: translate(0,     0)   skewX(0deg);  color: #7dd3fc; }
}

/* Rose-pink (Web-RTCs) */
.glitch-keyword.kw-rose {
  color: #f472b6;
  text-shadow:
    0 0 6px rgba(244, 114, 182, 0.55),
    0 0 16px rgba(244, 114, 182, 0.2);
}
.glitch-keyword.kw-rose.is-glitching,
.glitch-keyword.kw-rose:hover {
  animation: glitch-flicker-rose 3.5s infinite;
}
@keyframes glitch-flicker-rose {
  0%, 90%, 100%  { transform: translate(0, 0) skewX(0deg); color: #f472b6; }
  91%            { transform: translate(-3px,  1px) skewX(-4deg); color: #fb7185; }
  92%            { transform: translate( 3px, -1px) skewX( 4deg); color: #67e8f9; }
  93%            { transform: translate(-2px,  0px) skewX( 2deg); color: #f9a8d4; }
  94%            { transform: translate( 2px,  1px) skewX(-2deg); color: #f472b6; }
  95%            { transform: translate(0,     0)   skewX(0deg);  color: #fbcfe8; }
}

.resume-btn {
  padding: 0.65rem 1.8rem;
  border: 2px solid currentColor;
  border-radius: 7px;
  background: white;
  color: black;
  font-weight: 600;
  cursor: pointer;
  margin: 0.9rem;
  margin-left: 1.8rem;
  transition:
    0.3s,
    color 0.3s;
  /* No transform here, scaling will be applied to inner box */
  font-size: 0.78rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.resume-btn:hover {
  background-color: black;
  color: white;
  /* No transform here, scaling will be applied to inner box */

.resume-btn-box {
  display: inline-block;
  transition: transform 0.3s;
}

.resume-btn:hover .resume-btn-box {
  transform: scale(1.15);
}
}

/* ══════════════════════════════════════════════════
   PROFILE LIGHTBOX  — glassmorphism modal
   ══════════════════════════════════════════════════ */

.profile-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.profile-lightbox.lb-active {
  opacity: 1;
  pointer-events: all;
}

/* Glassmorphism card that holds the enlarged image */
.lb-card {
  position: relative;
  width: min(72vmin, 340px);
  height: min(72vmin, 340px);
  border-radius: 50%;
  border: 1.5px solid rgba(167, 139, 250, 0.45);
  box-shadow:
    0 0  30px rgba(167, 139, 250, 0.35),
    0 0  70px rgba(167, 139, 250, 0.15),
    0 0 140px rgba(167, 139, 250, 0.07),
    inset 0 0 30px rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.04);
  transform-style: preserve-3d;
  transition: transform 0.12s ease, box-shadow 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.4) rotateY(90deg);
}

.profile-lightbox.lb-active .lb-card {
  animation: lbEnter 0.6s cubic-bezier(0.34, 1.42, 0.64, 1) 0.05s forwards;
}

@keyframes lbEnter {
  0%   { opacity: 0; transform: scale(0.4) rotateY(90deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1)   rotateY(0deg);  }
}

.lb-card img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* Decorative pulsing rings on the lightbox card */
.lb-outer-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.22);
  pointer-events: none;
  animation: lbRingPulse 3s ease-in-out infinite;
}

.lb-outer-ring-2 {
  inset: -28px;
  border-color: rgba(167, 139, 250, 0.1);
  animation-delay: 0.6s;
}

@keyframes lbRingPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 0.2; transform: scale(1.04); }
}

/* Close button — mirrors sidebar-close-btn style */
.lb-close {
  position: fixed;
  top: 1.8rem;
  right: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 1.4rem;
  border-radius: 1rem;
  outline: 2px solid;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.25s;
  line-height: 1;
}

.lb-close:hover {
  color: var(--close-btn-hover);
}

/* Settings Modal */
.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  padding: 1.5rem;
}

.settings-modal.sm-active {
  opacity: 1;
  pointer-events: all;
}

.settings-modal-content {
  position: relative;
  width: min(100%, 400px);
  margin: auto;
  padding: 2.25rem 2rem 2rem 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 240, 255, 0.22);
  box-shadow:
    0 0 12px rgba(0, 240, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 20px rgba(255, 255, 255, 0.02);
  background: var(--sidebar-bg);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.42, 0.64, 1), opacity 0.4s ease;
}

.settings-modal.sm-active .settings-modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* Settings Header styling */
.settings-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--divider-color);
  padding-bottom: 1.25rem;
}

.settings-title-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.settings-header-icon {
  color: var(--close-btn-hover);
  animation: gearSpin 8s linear infinite;
  display: block;
}

@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.settings-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sidebar-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.settings-subtitle {
  font-size: 0.85rem;
  color: var(--sidebar-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Light Theme Override for Settings Modal Content */
body.light-theme .settings-modal-content,
html.light-theme .settings-modal-content {
  border: 1.5px solid rgba(0, 143, 160, 0.25);
  box-shadow:
    0 15px 40px rgba(0, 143, 160, 0.08),
    0 0 20px rgba(0, 143, 160, 0.04),
    inset 0 0 30px rgba(0, 0, 0, 0.01);
}

body.light-theme .settings-header-icon {
  color: var(--close-btn-hover);
}


.settings-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 1.35rem;
  border-radius: 1rem;
  outline: 2px solid;
  border: none;
  background-color: var(--sidebar-bg);
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: color 0.25s, transform 0.25s;
}

.settings-close:hover {
  color: var(--close-btn-hover);
}

/* Click-to-spin on the lightbox card */
@keyframes lbSpinY {
  0%   { transform: perspective(800px) rotateY(0deg)   scale(1); }
  100% { transform: perspective(800px) rotateY(360deg) scale(1); }
}

.scroll-icon {
  position: absolute;
  right: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.2s, background-color 0.3s;
  z-index: 10;
}

body.light-theme .scroll-icon {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scroll-icon:hover {
  opacity: 1 !important;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

body.light-theme .scroll-icon:hover {
  background: rgba(0, 0, 0, 0.1);
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
}

.scroll-top.visible {
  opacity: 1 !important;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.scroll-up-img {
  width: 24px;
  height: 24px;
  transform: rotate(180deg);
  display: block;
}

body.light-theme .scroll-up-img {
  filter: invert(1);
}

.footer-scroll-top {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--sidebar-text);
}

.arc-reactor {
  width: 28px;
  height: 28px;
  transition: all 0.5s ease;
}
.arc-ring { opacity: 0.3; transition: all 0.4s ease; }
.arc-segments { opacity: 0.5; transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s; transform-origin: center; }
.arc-core { opacity: 0.7; transition: all 0.4s ease; }

.footer-scroll-top:hover .arc-reactor {
  color: #fff;
}
.footer-scroll-top:hover .arc-ring {
  opacity: 0.8;
}
.footer-scroll-top:hover .arc-segments {
  opacity: 1;
  transform: rotate(90deg);
}
.footer-scroll-top:hover .arc-core {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

body.light-theme .footer-scroll-top {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--sidebar-text);
}

.footer-scroll-top:hover {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(-2px);
  background: rgba(0, 203, 214, 0.15);
  border-color: rgba(0, 203, 214, 0.8);
  box-shadow: 0 0 15px rgba(0, 203, 214, 0.6), 
              0 0 30px rgba(0, 203, 214, 0.4), 
              inset 0 0 15px rgba(0, 203, 214, 0.5), 
              inset 0 0 5px rgba(255, 255, 255, 0.8) !important;
}

body.light-theme .footer-scroll-top:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 
              0 2px 6px rgba(0, 0, 0, 0.04), 
              inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  transform: translateX(-50%) translateY(-3px);
}

@media (max-width: 1280px) {
  .sidebar-menu-section,
  .sidebar-settings-section,
  .sidebar-social-section {
    flex: none !important;
  }

  .scroll-icon {
    right: 1rem;
  }

  /* Tuned vertical position for mobile */
  .profile-pic {
    width: 110px;
    height: 110px;
    margin-top: -4rem;
  }

  /* Scale rings down to match mobile profile-pic size */
  .profile-pic .outer-ring {
    width: 130px;
    height: 130px;
  }

  .profile-pic::before {
    width: 148px;
    height: 148px;
  }

  .profile-pic::after {
    width: 168px;
    height: 168px;
  }

  /* Fix: remove left-margins that push text off-centre and cause folding */
  .intro-text h1,
  .intro-text h2 {
    margin-left: 0;
    white-space: normal;
  }

  .intro-text p {
    font-size: 0.82rem;
    padding: 0 0.5rem;
  }

  .resume-btn {
    margin-left: 0;
  }
}

@media (max-width: 1023px) {
  nav {
    display: none;
  }

  .sidebar-menu-section {
    display: flex !important;
  }
}

/* ── Nest Hub (1024 × 600) — short landscape viewport needs more breathing room ── */
@media (min-width: 1000px) and (max-width: 1050px) and (max-height: 650px) {
  .main-section {
    padding-top: 10rem;
  }

  /* Soften the negative pull so content sits lower in the short viewport */
  .profile-pic {
    margin-top: -3rem;
  }

  .section-divider {
    margin: 0rem auto 6.5rem;
  }
}

/* ── Nest Hub Max (1280 × 800) — larger short landscape viewport ── */
@media (min-width: 1250px) and (max-width: 1310px) and (max-height: 830px) {
  .main-section {
    padding-top: 10rem;
  }

  .profile-pic {
    margin-top: -5rem;
  }

  .section-divider.home-divider {
    margin-top: -4rem !important; /* give the divider more significant margin-top below resume button */
  }
}

/* ── HP Victus Screen Devices (1920x1080 at 100% scale OR 1536x864 at 125% scale) ── */
@media (min-width: 1500px) and (max-width: 1550px),
       (min-width: 1900px) and (max-width: 1930px) {
  .main-section {
    margin-top: 4rem;
  }

  .section-divider.home-divider {
    margin-top: -8rem !important;
  }
}

/* ─── Sidebar Premium Redesign variables ─── */
:root {
  --sidebar-bg: #121216;
  --sidebar-border: rgba(255, 255, 255, 0.22);
  --sidebar-text: #f4f4f7;
  --sidebar-text-muted: #9a9ab0;
  --sidebar-close-bg: rgba(255, 255, 255, 0.08);
  --sidebar-close-color: #f4f4f7;
  --card-border-glow-default: rgba(255, 255, 255, 0.12);
  --card-surface: #18181c;
  --card-content-icon: rgba(255, 255, 255, 0.55);
  --menu-link-hover: #f4f4f7;
  --close-btn-hover: #00f0ff;
  --divider-color: rgba(255, 255, 255, 0.22);
  --divider-dot-color: #00cbd6;
  --divider-dot-glow: rgba(0, 203, 214, 0.5);
  --body-bg: #0e0e11;

  /* Projects variables - Dark Theme */
  --proj-card-bg: #18181c;
  --proj-card-border: #ffffff;
  --proj-card-shadow: #ffffff;
  --proj-tape-bg: rgba(253, 224, 71, 0.95);
  --proj-tag-border: #ffffff;
  --proj-tag-shadow: #ffffff;
  --proj-btn-bg: #000000;
  --proj-btn-text: #ffffff;
  --proj-btn-border: #ffffff;
  --proj-btn-shadow: #ffffff;

  /* About Card Deck Fanning Variables */
  --spread-x-1: -220px;
  --spread-y-1: 20px;
  --spread-r-1: -28deg;

  --spread-x-2: -132px;
  --spread-y-2: 8px;
  --spread-r-2: -14deg;

  --spread-x-3: -44px;
  --spread-y-3: -4px;
  --spread-r-3: -4deg;

  --spread-x-4: 44px;
  --spread-y-4: -4px;
  --spread-r-4: 4deg;

  --spread-x-5: 132px;
  --spread-y-5: 8px;
  --spread-r-5: 14deg;

  --spread-x-6: 220px;
  --spread-y-6: 20px;
  --spread-r-6: 28deg;
}

html.light-theme,
body.light-theme {
  --sidebar-bg: #ffffff;
  --sidebar-border: rgba(0, 0, 0, 0.12);
  --sidebar-text: #000000;
  --sidebar-text-muted: #6e6e73;
  --sidebar-close-bg: rgba(0, 0, 0, 0.05);
  --sidebar-close-color: #000000;
  --card-border-glow-default: rgba(0, 0, 0, 0.08);
  --card-surface: #f5f5f7;
  --card-content-icon: rgba(0, 0, 0, 0.45);
  --menu-link-hover: #000000;
  --close-btn-hover: #008fa0;
  --divider-color: rgba(0, 0, 0, 0.08);
  --divider-dot-color: #008fa0;
  --divider-dot-glow: rgba(0, 143, 160, 0.4);
  --body-bg: #ffffff;

  /* Projects variables - Light Theme */
  --proj-card-bg: #ffffff;
  --proj-card-border: #000000;
  --proj-card-shadow: #000000;
  --proj-tape-bg: rgba(250, 204, 21, 0.8);
  --proj-tag-border: #000000;
  --proj-tag-shadow: #000000;
  --proj-btn-bg: #ffffff;
  --proj-btn-text: #000000;
  --proj-btn-border: #000000;
  --proj-btn-shadow: #000000;
}

#sidebar {
  position: fixed;
  top: 0;
  right: -500px;
  height: 100%;
  width: 500px;
  max-width: 100vw;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 9999;
  padding: 1.5rem 2.5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  border-top-left-radius: 2.5rem;
  border-bottom-left-radius: 2.5rem;
  border-left: 1px solid var(--sidebar-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

#sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

#sidebar.active {
  right: 0 !important;
}

.sidebar-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 1.35rem;
  border-radius: 1rem;
  outline: 2px solid;
  border: none;
  background-color: var(--sidebar-bg);
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: color 0.25s, transform 0.25s;
}

.sidebar-close-btn:hover {
  color: var(--close-btn-hover);
}

.blinking-eyes {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.eye {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--sidebar-text);
  border-radius: 50%;
  animation: blinkEye 2s infinite;
  transform-origin: center center;
}

@keyframes blinkEye {
  0%,
  90%,
  100% {
    transform: scaleY(1.6);
  }

  95% {
    transform: scaleY(0);
  }
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
  width: 100%;
  margin-top: 4.5rem;
  align-items: stretch;
}

.sidebar-social-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Sidebar Settings Trigger */
.sidebar-settings-action {
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--card-border-glow-default);
  border: 1px solid var(--sidebar-border);
  border-radius: 14px;
  color: var(--sidebar-text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-action-btn:hover {
  background: var(--sidebar-close-bg);
  border-color: var(--close-btn-hover);
  color: var(--close-btn-hover);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.sidebar-action-btn:active {
  transform: scale(0.98);
}

.sidebar-action-btn .btn-icon {
  transition: transform 0.5s ease;
}

.sidebar-action-btn:hover .btn-icon {
  transform: rotate(60deg);
}

body.light-theme .sidebar-action-btn {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .sidebar-action-btn:hover {
  background: rgba(0, 143, 160, 0.05);
  border-color: var(--close-btn-hover);
}


.sidebar-menu-section {
  display: none; /* Hidden on desktop, shown responsively on mobile */
  flex: 0.9;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 0.25rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sidebar-text-muted);
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
}

.section-label::before {
  content: "●";
  color: var(--sidebar-text-muted);
  margin-right: 0.3rem;
}

.sidebar-social-section .section-label {
  display: block;
  text-align: center;
  width: 100%;
}

@media (min-width: 1281px) {
  .sidebar-social-section {
    gap: 0.5rem;
  }
  .sidebar-social-section .section-label {
    margin-bottom: 0.2rem;
  }
}

.sidebar-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-menu-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--sidebar-text-muted);
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: left center;
}

.sidebar-menu-links a:hover {
  color: var(--menu-link-hover);
  transform: scale(1.03);
}

/* Sidebar Settings Section */
.sidebar-settings-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 0.25rem;
  flex: 0.9; /* Occupies the same space as menu section on desktop */
}

.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* reduced gap to make the options layout more compact and neat */
  width: 100%;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.setting-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

body.light-theme .setting-item,
html.light-theme .setting-item {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .setting-item:hover,
html.light-theme .setting-item:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Scrollbar Style Setting Button styling */
#setting-scrollbar-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text);
  padding: 3px 9px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  min-width: 58px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: -5px; /* shifts it right to align perfectly under the toggle switches */
}

#setting-scrollbar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.12);
  color: var(--close-btn-hover);
}

#setting-scrollbar-btn:active {
  transform: scale(0.95);
}

/* Light Theme Override for Scrollbar Button */
body.light-theme #setting-scrollbar-btn,
html.light-theme #setting-scrollbar-btn {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--sidebar-text);
}

body.light-theme #setting-scrollbar-btn:hover,
html.light-theme #setting-scrollbar-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 143, 160, 0.4);
  box-shadow: 0 0 10px rgba(0, 143, 160, 0.08);
  color: var(--close-btn-hover);
}

.setting-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.setting-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  color: var(--sidebar-text-muted);
  transition: color 0.3s ease;
}

.setting-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.setting-name {
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sidebar-text);
  transition: color 0.3s ease;
}

/* Premium Switch Toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 18px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: var(--sidebar-text);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: rgba(0, 240, 255, 0.12);
  border-color: var(--close-btn-hover);
}

input:checked + .slider:before {
  transform: translateX(18px);
  background-color: var(--close-btn-hover);
  box-shadow: 0 0 6px var(--close-btn-hover);
}

/* Light Theme Switch Toggle Overrides */
body.light-theme .slider,
html.light-theme .slider {
  background-color: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

body.light-theme .slider:before,
html.light-theme .slider:before {
  background-color: #44403c;
}

body.light-theme input:checked + .slider,
html.light-theme input:checked + .slider {
  background-color: rgba(0, 143, 160, 0.15);
  border-color: var(--close-btn-hover);
}

body.light-theme input:checked + .slider:before,
html.light-theme input:checked + .slider:before {
  background-color: var(--close-btn-hover);
  box-shadow: 0 0 8px rgba(0, 143, 160, 0.4);
}


/* ─── Social Cards Grid & Glow Border Hover ─── */
.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.social-card {
  position: relative;
  border-radius: 16px;
  background: var(--card-border-glow-default);
  height: 115px;
  padding: 1px; /* Acts as the border boundary */
  display: flex;
  text-decoration: none;
  overflow: hidden;
  transition: background 0.3s ease;
  cursor: pointer;
}

.card-linkedin,
.card-instagram {
  grid-column: span 2;
}

.card-github,
.card-twitter {
  grid-column: span 1;
}

/* Mouse-following border effect on container hover */
.social-cards-grid:hover > .social-card {
  background: radial-gradient(
    250px circle at var(--mouse-x) var(--mouse-y),
    hsl(var(--color) / 1),
    var(--card-border-glow-default) 40%
  );
}

.card-content {
  position: absolute;
  inset: 1px;
  background: var(--card-surface);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  transition: background 0.3s ease;
}

.card-content i {
  font-size: 2.4rem;
  color: var(--card-content-icon);
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Mouse-following surface glow */
.social-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(
    250px circle at var(--mouse-x) var(--mouse-y),
    hsl(var(--color) / 0.15),
    transparent 40%
  );
  border-radius: inherit;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.social-cards-grid:hover > .social-card::before {
  opacity: 1;
}

.social-card:hover .card-content i {
  color: hsl(var(--color) / 1);
  transform: scale(1.15);
}

/* Card brand colors (HSL format) */
.card-linkedin {
  --color: 201 100% 45%;
}
.card-github {
  --color: 0 0% 100%;
}
.card-twitter {
  --color: 0 0% 100%;
}
.card-instagram {
  --color: 340 85% 55%;
}

body.light-theme .card-linkedin {
  --color: 201 100% 35%;
}
body.light-theme .card-github {
  --color: 0 0% 15%;
}
body.light-theme .card-twitter {
  --color: 0 0% 15%;
}
body.light-theme .card-instagram {
  --color: 340 80% 45%;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding-top: 1.5rem;
  width: 100%;
}

.sidebar-footer .get-in-touch {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sidebar-text-muted);
  text-decoration: none;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-footer .dots {
  display: inline-block;
  width: 20px;
  text-align: left;
}

.sidebar-footer .email-copy {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  color: var(--sidebar-text);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  align-self: center;
}

.sidebar-footer .email-copy:hover {
  color: #00f0ff;
  transform: scale(1.05);
  text-decoration: underline;
}

/* ── HP Victus Screen Devices Sidebar Adjustments ── */
@media (min-width: 1270px) and (max-width: 1290px),
       (min-width: 1500px) and (max-width: 1550px),
       (min-width: 1900px) and (max-width: 1930px) {
  #sidebar {
    width: 380px;
    right: -380px;
    padding: 1.25rem 1.75rem 1.75rem 1.75rem;
  }

  .sidebar-content {
    margin-top: 2.6rem;
    gap: 0.9rem;
  }

  .sidebar-action-btn {
    padding: 0.75rem 1.2rem !important;
    font-size: 0.9rem !important;
  }

  .sidebar-social-section {
    gap: 0.75rem;
  }

  .sidebar-social-section .section-label {
    margin-bottom: 0.4rem;
  }

  .social-cards-grid {
    gap: 10px !important;
  }

  .social-cards-grid .social-card {
    height: 95px !important;
  }

  .social-cards-grid .social-card .card-content i {
    font-size: 2.1rem !important;
  }

  .sidebar-footer {
    padding-top: 0.4rem;
    gap: 0.2rem;
  }

  .sidebar-footer .email-copy {
    font-size: 0.9rem;
  }
}

/* Responsive Overrides */
@media (max-width: 768px) {
  :root {
    --spread-x-1: -110px;
    --spread-y-1: 12px;
    --spread-r-1: -22deg;

    --spread-x-2: -66px;
    --spread-y-2: 6px;
    --spread-r-2: -12deg;

    --spread-x-3: -22px;
    --spread-y-3: -2px;
    --spread-r-3: -4deg;

    --spread-x-4: 22px;
    --spread-y-4: -2px;
    --spread-r-4: 4deg;

    --spread-x-5: 66px;
    --spread-y-5: 6px;
    --spread-r-5: 12deg;

    --spread-x-6: 110px;
    --spread-y-6: 12px;
    --spread-r-6: 22deg;
  }

  .main-section {
    margin-left: 0;
  }

  .sidebar-sound-section {
    display: flex;
  }

  /* Hide scrollbars globally on mobile device viewports */
  html, body {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none !important;
  }

  #sidebar {
    right: -100%;
    width: 100%;
    padding: 1.5rem 2rem 2rem 2rem;
    border-radius: 0;
    border-left: none;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  #sidebar::-webkit-scrollbar {
    display: none;
  }
  
  .sidebar-content {
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
    align-items: stretch;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .sidebar-content::-webkit-scrollbar {
    display: none;
  }
  
  .sidebar-menu-section {
    margin-top: 20px !important;
  }

  .sidebar-menu-section .section-label {
    display: none !important;
  }

  .sidebar-menu-links {
    align-items: center;
  }

  .sidebar-menu-links a {
    font-size: 1.8rem;
  }

  /* Make brand border and icon active permanently on mobile / touch viewports */
  .social-card {
    background: hsl(var(--color) / 0.8) !important;
  }
  
  .social-card .card-content i {
    color: hsl(var(--color) / 1) !important;
    transform: scale(1.05) !important;
  }
  
  /* Centered brand glow permanently visible on mobile */
  .social-card::before {
    background: radial-gradient(
      250px circle at 50% 50%,
      hsl(var(--color) / 0.15),
      transparent 60%
    ) !important;
    opacity: 1 !important;
  }
}

/* iPhone SE and small screen sidebar adjustments */
@media (max-width: 375px) {
  .sidebar-social-section {
    margin-top: 1.5rem !important;
  }
}

/* ─── Light Theme Overrides ─── */
html.light-theme body,
body.light-theme {
  background-color: white;
  color: black;
}
html.light-theme header,
body.light-theme header {
  background-color: white !important;
}
html.light-theme .nav-right::before,
body.light-theme .nav-right::before {
  background-color: #ccc;
}
html.light-theme .toggle-theme,
body.light-theme .toggle-theme {
  filter: invert(0);
}
html.light-theme nav a,
body.light-theme nav a {
  color: #333;
}
html.light-theme nav a img,
body.light-theme nav a img {
  filter: invert(0);
}
html.light-theme .menu-icon div,
body.light-theme .menu-icon div {
  background-color: black;
}

/* ══════════════════════════════════════════════════
   CUSTOM CURSOR & NAVBAR CLICK ANIMATIONS
   ══════════════════════════════════════════════════ */

/* Custom Cursor Base */
.custom-cursor {
  display: none;
  position: fixed;
  left: -100px;
  top: -100px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--divider-dot-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  opacity: 0;
  /* Smooth lag transition for organic feeling */
  transition: 
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
    top 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
    width 0.55s cubic-bezier(0.16, 1, 0.3, 1), 
    height 0.55s cubic-bezier(0.16, 1, 0.3, 1), 
    border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-cursor-dot {
  width: 4px;
  height: 4px;
  background-color: var(--divider-dot-color);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

/* Hide native cursor during fast scroll to prevent reverting to default Windows cursor */
html.is-scrolling:not(.native-cursors),
html.is-scrolling:not(.native-cursors) * {
  cursor: none !important;
}

/* Hide default cursor and show custom cursor only on fine-pointer mouse devices */
@media (pointer: fine) {
  .custom-cursor.visible {
    display: block;
    opacity: 1;
  }
  /* Hide native cursor across the entire middle nav zone when scrolled */
  #navbar.scrolled nav,
  #navbar.scrolled nav a {
    cursor: none !important;
  }
  /* Hide native cursor in gaps when actively snapping between items */
  #navbar.snapping-active,
  #navbar.snapping-active * {
    cursor: none !important;
  }
}

/* Snapped State (locks and morphs around navbar element on hover) */
.custom-cursor.snapped {
  border-radius: 6px;
  border-color: var(--divider-dot-color);
  background-color: rgba(0, 203, 214, 0.12);
  box-shadow: 0 0 10px var(--divider-dot-glow);
  /* Slower and silkier transitions */
  transition: 
    width 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
    height 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
    border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
    top 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
body.light-theme .custom-cursor.snapped {
  background-color: rgba(0, 143, 160, 0.12);
}
.custom-cursor.snapped .custom-cursor-dot {
  opacity: 0;
}

/* Temporarily disable navbar underline hover effect */
nav a.temp-no-underline::after {
  width: 0 !important;
}

/* Active Nav Item & Revolving dashed outline */
nav a.active-nav {
  position: relative;
}

.active-outline {
  position: absolute;
  top: -4px;
  left: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 8px);
  fill: none;
  pointer-events: none;
  overflow: visible;
  z-index: 10;
  /* Visible for 0.8s before fading out over 0.3s — total lifetime 1.1s */
  animation: activeOutlineFadeOut 0.3s cubic-bezier(0.25, 1, 0.5, 1) 0.8s forwards;
}

.active-outline rect {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--divider-dot-color);
  stroke-width: 1.5px;
  stroke-dasharray: 6 4;
  rx: 4px;
  ry: 4px;
  /* Slower, calmer revolve */
  animation: activeOutlineRevolve 0.35s linear infinite;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 2px var(--divider-dot-glow));
}

@keyframes activeOutlineRevolve {
  to {
    stroke-dashoffset: -10;
  }
}

@keyframes activeOutlineFadeOut {
  to {
    opacity: 0;
  }
}
/* ══════════════════════════════════════════════════
   PROJECTS SECTION & BRUTALIST GRID STYLING
   ══════════════════════════════════════════════════ */
.projects-section {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

/* Projects Background Scroll-Spread Animation (2 On-Scroll-Image-Spread Section) */
.projects-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible; /* Prevent card tops from being cut off */
}

/* Projects Wrapper to bypass WebKit grid positioning bug on iOS/iPadOS */
.projects-wrapper {
  position: relative;
  width: 100%;
}

.bg-card-wireframe {
  position: absolute;
  top: 138px; /* Positioned relative to projects-wrapper (matches original desktop style) */
  left: 50%;
  width: 280px;
  height: 320px;
  border-radius: 8px;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center center;
  pointer-events: none;
  transition: transform 0.1s cubic-bezier(0.1, 0.9, 0.2, 1);
  z-index: 0;
}

/* Light theme card borders - Sage Green */
.light-theme .bg-card-wireframe {
  border: 2px solid rgba(110, 130, 110, 0.25);
  background-color: rgba(110, 130, 110, 0.02);
  box-shadow: inset 0 0 15px rgba(110, 130, 110, 0.05);
}

/* Dark theme card borders - Muted Purple */
.dark-theme .bg-card-wireframe {
  border: 2px solid rgba(167, 139, 250, 0.18);
  background-color: rgba(167, 139, 250, 0.01);
  box-shadow: inset 0 0 15px rgba(167, 139, 250, 0.03);
}

/* Hide background cards in Selected Works (home page) */
#home ~ #projects .bg-card-wireframe {
  display: none !important;
}

/* Make background cards smaller on touch/mobile viewports */
@media (max-width: 1024px), (pointer: coarse) {
  .bg-card-wireframe {
    width: 170px;
    height: 200px;
    top: 70px; /* Positioned relative to wrapper (fits perfectly under filters on all touch screens, tablets, and Nest Hubs) */
  }
  #home ~ #projects .bg-card-wireframe {
    display: none !important;
  }
}

/* Projects Section Header */
.projects-header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3.5rem;
  position: relative;
}

@media (max-width: 768px) {
  .projects-header-container {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 2rem;
  }
}

.projects-title-block {
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.projects-title-block .section-title {
  font-family: "Outfit", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.projects-title-block .section-subtitle {
  font-size: 1.1rem;
  color: var(--sidebar-text-muted);
  font-weight: 500;
}

/* Background Bulb SVG Container */
.bulb-svg-container {
  position: absolute;
  top: -45px;
  left: -70px;
  width: 140px;
  height: 140px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
  color: var(--divider-dot-color);
  animation: bulbGlowSlow 6s ease-in-out infinite alternate;
}

.dark-theme .bulb-svg-container {
  opacity: 0.38;
}

.bulb-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-15deg);
}

@keyframes bulbGlowSlow {
  0% {
    transform: scale(0.95) rotate(-18deg);
    filter: drop-shadow(0 0 2px var(--divider-dot-glow));
  }
  100% {
    transform: scale(1.03) rotate(-12deg);
    filter: drop-shadow(0 0 15px var(--divider-dot-glow));
  }
}

/* Pinned Note Intro Card (Brutalist pin-board style) */
.projects-intro-pinned {
  position: relative;
  background-color: var(--proj-card-bg);
  border: 2px solid var(--proj-card-border);
  box-shadow: 3px 3px 0px var(--proj-card-border);
  padding: 1.5rem;
  max-width: 320px;
  border-radius: 4px;
  transform: rotate(1deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 3;
}

.projects-intro-pinned:hover {
  transform: rotate(-1deg) translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--proj-card-border);
}

.projects-intro-pinned .pinned-text {
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--sidebar-text);
}

/* Tape Bandage Style */
.tape-bandage {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 110px;
  height: 26px;
  background-color: var(--proj-tape-bg);
  backdrop-filter: blur(1px);
  border-left: 2px dashed rgba(0, 0, 0, 0.1);
  border-right: 2px dashed rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 10;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.project-card:hover .tape-bandage {
  transform: translateX(-50%) rotate(0deg);
}

.tape-bandage::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
  width: 4px;
  background: linear-gradient(45deg, transparent 50%, var(--proj-tape-bg) 50%) 0 0/4px 4px,
              linear-gradient(-45deg, transparent 50%, var(--proj-tape-bg) 50%) 0 0/4px 4px;
}

/* Category Filter Layout */
.projects-filter-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  z-index: 5;
}

.filter-label {
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sidebar-text-muted);
}

.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: transparent;
  color: var(--sidebar-text);
  border: 2px solid var(--proj-card-border);
  padding: 0.5rem 1rem;
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.15s cubic-bezier(0.25, 1, 0.5, 1),
              background-color 0.25s ease, 
              color 0.25s ease;
}

.filter-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px var(--proj-card-border);
}

.filter-btn:active,
.filter-btn.active {
  background-color: var(--proj-btn-bg);
  color: var(--proj-btn-text);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px var(--proj-card-shadow);
}

.filter-count {
  font-size: 0.75rem;
  opacity: 0.7;
  background-color: rgba(128, 128, 128, 0.25);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.2rem;
}

.filter-btn.active .filter-count {
  background-color: rgba(128, 128, 128, 0.4);
}

/* Projects Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  margin-top: 1rem;
  min-height: 850px; /* stable min-height prevents scroll jumps on filtering */
  align-items: start; /* prevents card stretching when there are few items */
}

/* Project Card Outer - 3D Brutalist Shadow */
.project-card {
  position: relative;
  background-color: var(--proj-card-bg);
  border: 2px solid var(--proj-card-border);
  box-shadow: 2px 2px 0px var(--proj-card-shadow);
  border-radius: 6px;
  padding: 2.2rem;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: visible;
  visibility: visible;
  opacity: 1;
}

/* Hide card state during filter transitions */
.project-card.filtered-out {
  display: none;
  opacity: 0;
  transform: scale(0.95);
}

.project-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--proj-card-shadow);
}

/* Inside Card 3-Column Grid */
.project-card-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 2.1fr;
  gap: 2.2rem;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .project-card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .preview-section {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .project-card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .preview-section {
    grid-column: span 1;
  }
  .project-card {
    padding: 1.8rem 1.2rem;
  }
}

.card-section {
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-section.info-section,
.card-section.tech-section {
  border-right: 1px dashed var(--sidebar-border);
  padding-right: 1.5rem;
}

@media (max-width: 1100px) {
  .card-section.tech-section {
    border-right: none;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .card-section.info-section {
    border-right: none;
    border-bottom: 1px dashed var(--sidebar-border);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }
}

/* Section 1: Info & Details styling */
.card-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--divider-dot-glow);
  color: var(--divider-dot-color);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

body.light-theme .card-tag {
  background-color: rgba(0, 143, 160, 0.12);
}

.project-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.3rem;
  color: var(--sidebar-text);
}

.project-tagline {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--sidebar-text-muted);
  margin-bottom: 1rem;
}

.project-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--sidebar-text-muted);
  margin-bottom: 1.8rem;
}

.button-group {
  margin-top: auto;
}

/* Brutalist Button Styling */
.brutalist-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--proj-btn-bg);
  color: var(--proj-btn-text);
  border: 2px solid var(--proj-btn-border);
  box-shadow: 1px 1px 0px var(--proj-btn-shadow);
  padding: 0.7rem 1.3rem;
  text-decoration: none;
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.15s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
}

.brutalist-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px var(--proj-btn-shadow);
}

.brutalist-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 0px 0px 0px var(--proj-btn-shadow);
}

/* Section 2: Tech stack & Architecture styling */
.section-heading {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sidebar-text-muted);
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  margin-bottom: 1.5rem;
}

/* Poppy Comic Tags (3D Drop shadow and thick borders) */
.comic-tag {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border: 2px solid var(--proj-tag-border);
  box-shadow: 1px 1px 0px var(--proj-tag-shadow);
  border-radius: 4px;
  color: #000000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.comic-tag:hover {
  transform: translate(-0.5px, -0.5px);
  box-shadow: 1.5px 1.5px 0px var(--proj-tag-shadow);
}

/* poppy category flat colors */
.tag-webrtc { background-color: #fca5a5; }     /* Red */
.tag-socket { background-color: #fdba74; }     /* Orange */
.tag-react { background-color: #7dd3fc; }      /* Cyan */
.tag-node { background-color: #86efac; }       /* Green */
.tag-mongo { background-color: #c084fc; }      /* Purple */
.tag-openai { background-color: #fde047; }     /* Yellow */
.tag-redux { background-color: #f472b6; }      /* Pink */
.tag-firebase { background-color: #fda4af; }   /* Rose */
.tag-api { background-color: #cbd5e1; }        /* Gray */
.tag-css { background-color: #fed7aa; }        /* Peach */
.tag-js { background-color: #a7f3d0; }         /* Emerald */
.tag-canvas { background-color: #a5f3fc; }     /* Teal */
.tag-audio { background-color: #ddd6fe; }      /* Indigo */

.architecture-note {
  margin-top: 1rem;
}

.architecture-note h5 {
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--sidebar-text);
}

.architecture-note p {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--sidebar-text-muted);
}

/* Section 3: Preview section & Iframe showcase */
.preview-section {
  cursor: pointer;
  position: relative;
  align-self: center; /* centers the card vertically in the grid row on desktop */
  width: 100%;
  height: 290px; /* fixed height prevents stretching on desktop */
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--proj-card-border);
  box-shadow: 2px 2px 0px var(--proj-card-border);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.preview-section:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: 3.5px 3.5px 0px var(--proj-card-border);
}

.iframe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #1a1a1a;
}

body.light-theme .iframe-container {
  background-color: #f0f0f2;
}

.preview-click-handler {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

.project-iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-iframe.loaded {
  opacity: 1;
}

/* Shimmer Loader Skeletons */
.shimmer-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.03) 25%, 
    rgba(255,255,255,0.08) 37%, 
    rgba(255,255,255,0.03) 63%
  );
  background-size: 400% 100%;
  animation: shimmerAnim 1.4s ease infinite;
  z-index: 2;
}

body.light-theme .shimmer-loader {
  background: linear-gradient(90deg, 
    rgba(0,0,0,0.03) 25%, 
    rgba(0,0,0,0.08) 37%, 
    rgba(0,0,0,0.03) 63%
  );
  background-size: 400% 100%;
}

@keyframes shimmerAnim {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hover overlay showing link message */
.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(167, 139, 250, 0.85); /* Accent purple */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  z-index: 5;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

body.light-theme .preview-overlay {
  background-color: rgba(0, 143, 160, 0.9); /* Teal */
}

.preview-section:hover .preview-overlay {
  opacity: 1;
}

.click-to-visit {
  color: white;
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.preview-section:hover .click-to-visit {
  transform: translateY(0);
}

/* Mockup Fallback Styles */
.preview-mockup-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  z-index: 1;
  background: linear-gradient(135deg, #1e1b4b, #311042);
}

body.light-theme .preview-mockup-fallback {
  background: linear-gradient(135deg, #e0e7ff, #fae8ff);
}

.preview-mockup-fallback.has-mockup {
  padding: 0;
  display: block;
  background: none;
}

/* Browser Mockup Fallback Styles */
.browser-mockup {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #1e1e24;
  border-radius: 4px;
  overflow: hidden;
}

body.light-theme .browser-mockup {
  background: #f4f4f6;
}

.browser-header {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 0.8rem;
  background: #111115;
  border-bottom: 1px solid #2d2d34;
  gap: 0.8rem;
}

body.light-theme .browser-header {
  background: #e4e4e9;
  border-bottom: 1px solid #d1d1d6;
}

.browser-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.browser-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.browser-address {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e1e24;
  color: #a1a1aa;
  font-size: 0.72rem;
  font-family: var(--body-font), sans-serif;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #2d2d34;
  max-width: 60%;
  margin: 0 auto;
  gap: 0.3rem;
}

body.light-theme .browser-address {
  background: #ffffff;
  color: #6b7280;
  border-color: #d1d1d6;
}

.browser-viewport {
  flex-grow: 1;
  position: relative;
  width: 100%;
  height: calc(100% - 32px); /* ensure it fills remainder perfectly */
  overflow: hidden;
  background-color: #0f0f13;
}

body.light-theme .browser-viewport {
  background-color: #e5e7eb;
}

.slideshow-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.fallback-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.fallback-slide.active {
  opacity: 1;
}

.fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 6s ease-in-out;
}

.fallback-slide.active .fallback-img {
  transform: scale(1.04);
}

.fallback-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  padding: 1.2rem 1rem 0.8rem;
  color: white;
  text-align: left;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.preview-section:hover .fallback-overlay-info {
  opacity: 1;
  transform: translateY(0);
}

.fallback-info-title {
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.fallback-info-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--body-font), sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.fallback-info-desc::after {
  content: ' \2192';
}

.mockup-icon {
  font-size: 2.2rem;
  color: var(--divider-dot-color);
  margin-bottom: 0.6rem;
  animation: floatSlow 3s ease-in-out infinite alternate;
}

.mockup-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.3rem;
}

body.light-theme .mockup-title {
  color: #000000;
}

.mockup-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 80%;
  margin-bottom: 1rem;
}

body.light-theme .mockup-desc {
  color: rgba(0, 0, 0, 0.6);
}

.mockup-badge {
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
}

body.light-theme .mockup-badge {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.8);
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

/* Custom override for bottom projects divider to avoid desktop negative pull-up */
.section-divider.projects-divider {
  margin: 4rem auto 4rem !important;
}

/* ==================================================
   CONTACT SECTION — Brutalist Styled
   ================================================== */
.contact-section {
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--body-bg);
  width: 100%;
}

.contact-container {
  width: 100%;
  max-width: 950px;
  margin: 3rem auto 0;
  display: flex;
  justify-content: center;
}

.contact-card {
  width: 100%;
  margin: 0 auto;
  padding: 0 !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  width: 100%;
  align-items: stretch;
}

.contact-col {
  display: flex;
  flex-direction: column;
  padding: 3.5rem 3rem;
  width: 100%;
}

.contact-col.left-col {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px dashed var(--sidebar-border);
}

.contact-col.right-col {
  align-items: flex-start;
  text-align: left;
}

.contact-text {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 420px;
  color: var(--sidebar-text-muted);
}

.contact-email-wrapper {
  margin: 0.5rem 0;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 2.2rem;
  font-size: 1.1rem;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  text-decoration: none;
  background-color: var(--proj-btn-bg);
  color: var(--proj-btn-text);
  border: 2px solid var(--proj-btn-border);
  box-shadow: 2px 2px 0px var(--proj-btn-shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.contact-email-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--proj-btn-shadow);
}

.contact-email-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--proj-btn-shadow);
}

.contact-socials-row {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.contact-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--proj-card-border);
  border-radius: 50%;
  background-color: var(--proj-card-bg);
  color: var(--sidebar-text);
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 1.5px 1.5px 0px var(--proj-card-shadow);
  transition: 
    transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
    box-shadow 0.2s, 
    background-color 0.3s, 
    color 0.3s;
}

.contact-social-link:hover {
  transform: translate(-0.5px, -0.5px);
  box-shadow: 2px 2px 0px var(--proj-card-shadow);
  color: white !important;
}

.contact-social-link.linkedin:hover {
  background-color: #0a66c2 !important;
}

.contact-social-link.instagram:hover {
  background-color: #e1306c !important;
}

.contact-social-link.github:hover,
.contact-social-link.twitter:hover {
  background-color: var(--sidebar-text) !important;
  color: var(--body-bg) !important;
}

.contact-social-link:active {
  transform: translate(0.5px, 0.5px);
  box-shadow: 0.5px 0.5px 0px var(--proj-card-shadow);
}

/* Contact Form Styling */
.contact-form-content {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  width: 100%;
}

.contact-form-content h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: var(--sidebar-text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.form-group label {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sidebar-text-muted);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  background-color: var(--body-bg);
  color: var(--sidebar-text);
  border: 2px solid var(--proj-card-border);
  border-radius: 4px;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--sidebar-text-muted);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--divider-dot-color);
  box-shadow: 2px 2px 0px var(--divider-dot-color);
}

.contact-form .submit-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-message {
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  padding: 0.8rem;
  border-radius: 4px;
  border: 2px solid transparent;
  display: none;
  margin-top: 0.5rem;
}

.form-message.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #10b981;
}

.form-message.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}

@media (max-width: 850px) {
  .contact-container {
    max-width: 650px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-col {
    padding: 2.5rem 1.8rem;
  }

  .contact-col.left-col {
    border-right: none;
    border-bottom: 1px dashed var(--sidebar-border);
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 4rem 1rem;
  }
  .contact-text {
    font-size: 0.9rem;
  }
  .contact-email-btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }
}



/* ==========================================================================
   View More Projects Button in Projects Section
   ========================================================================== */

.projects-view-more {
  display: flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0.5rem;
}

.projects-view-more .view-more-btn {
  gap: 0.5rem;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .projects-view-more {
    align-self: flex-start;
    margin-top: 0rem;
  }
}

.projects-bottom-view-more {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5.5rem;
  width: 100%;
}

body.dark-theme .btn-projects-icon {
  filter: invert(1) !important;
}

.projects-bot.about-header-container {
  width: 100%;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.about-section-title {
  font-family: "Outfit", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  display: inline-block;
  color: var(--sidebar-text);
  letter-spacing: -1px;
  position: relative;
}

.about-section-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #2563eb; /* Hand-drawn blue underline */
  border-radius: 4px;
  transform: rotate(-1deg);
}

.about-section {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  width: 100%;
}

/* Floating Background Initials SC (Signature SVG Typography Animation) */
.about-sc-bg {
  position: absolute;
  top: 10px;
  right: -240px; /* Pushed outside camera border to the right */
  width: 280px;
  height: auto;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  animation: scTypographyFloat 8s ease-in-out infinite alternate;
  transition: opacity 0.3s ease;
}

.about-sc-bg .signature-svg {
  width: 100%;
  height: auto;
  display: none;
}

body.light-theme .about-sc-bg .signature-svg.light-only {
  display: block !important;
}

/* Dark theme: boost opacity so white-fill dark-only SVG is visible on dark bg */
body.dark-theme .about-sc-bg {
  opacity: 0.35;
}

body.dark-theme .about-sc-bg .signature-svg.light-only {
  display: none !important;
}

body.dark-theme .about-sc-bg .signature-svg.dark-only {
  display: block !important;
}



@keyframes scTypographyFloat {
  0% {
    transform: translate(0, 0) rotate(0deg);
    filter: drop-shadow(0 0 2px var(--divider-dot-glow));
  }
  100% {
    transform: translate(-15px, 15px) rotate(3deg);
    filter: drop-shadow(0 0 10px var(--divider-dot-glow));
  }
}

@media (max-width: 1400px) {
  .about-sc-bg {
    right: -100px;
    opacity: 0.05;
  }
}
@media (max-width: 1200px) {
  .about-sc-bg {
    right: -40px;
    opacity: 0.04;
    width: 220px;
  }
}
@media (max-width: 992px) {
  .about-sc-bg {
    right: 10px;
    top: -50px;
    width: 180px;
  }
}
@media (max-width: 768px) {
  .about-sc-bg {
    display: none;
  }
}

/* Brutalist pin board style cutout keyword highlight */
.cutout-highlight {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  background-color: var(--proj-tape-bg, #fde047);
  color: #000000 !important; /* Always high contrast black text on yellow */
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  border-radius: 2px;
  transform: rotate(-1.5deg);
  margin: 0.1rem 0.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cutout-highlight:nth-of-type(even) {
  transform: rotate(1.2deg);
}

.cutout-highlight:hover {
  transform: scale(1.06) rotate(0deg);
  box-shadow: 3px 3px 0px #000000;
}

.about-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Centered Image Stack Spread at the top */
.about-image-spread-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 4;
}

/* Drag/Swipe Hint inside Card */
.spread-card .mobile-swipe-hint {
  display: inline-flex;
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translate(-50%, 0) rotate(-1.5deg);
  align-items: center;
  white-space: nowrap;
  gap: 0.25rem;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  background-color: var(--proj-tape-bg, #fde047);
  color: #000000 !important;
  border: 1.5px solid #000000;
  box-shadow: 1.5px 1.5px 0px #000000;
  border-radius: 2px;
  z-index: 10;
  pointer-events: none;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.mobile-swipe-hint .hint-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.about-image-spread-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 230px;
  cursor: pointer;
  overflow: visible;
}

.spread-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 180px;
  background-color: #fafaf9; /* Polaroid card background */
  border: 2.5px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  padding: 8px 8px 18px 8px;
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.15), box-shadow 0.3s ease, z-index 0.3s ease;
  z-index: 2;
  border-radius: 4px;
}

/* Dragging state for About cards on touch and desktop */
.spread-card.dragging {
  transition: none !important;
  z-index: 1000 !important;
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.3) !important;
  cursor: grabbing !important;
}

.spread-card img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  border: 1.5px solid #000000;
  border-radius: 1px;
}

.spread-card-graphic {
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  border: 1.5px solid #000000;
  color: #1f2937;
  gap: 0.4rem;
  border-radius: 1px;
}

.spread-card-graphic i {
  font-size: 1.6rem;
  color: var(--divider-dot-color);
  filter: drop-shadow(0 0 2px var(--divider-dot-glow));
}

.spread-card-graphic span {
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: #1c1917;
}

/* Closed Stack Base State (Loose Pile) */
.spread-card.card-1 { transform: translate(-50%, -50%) rotate(-5deg); z-index: 1; }
.spread-card.card-2 { transform: translate(-50%, -50%) rotate(3deg);  z-index: 2; }
.spread-card.card-3 { transform: translate(-50%, -50%) rotate(-2deg); z-index: 3; }
.spread-card.card-4 { transform: translate(-50%, -50%) rotate(1deg);  z-index: 6; } /* Center Front */
.spread-card.card-5 { transform: translate(-50%, -50%) rotate(-3deg); z-index: 4; }
.spread-card.card-6 { transform: translate(-50%, -50%) rotate(4deg);  z-index: 5; }

.about-image-spread-container:hover .spread-card.card-1,
.about-image-spread-container.user-clicked-spread .spread-card.card-1 {
  transform: translate(calc(-50% + var(--spread-x-1) + var(--drag-x, 0px)), calc(-50% + var(--spread-y-1) + var(--drag-y, 0px))) rotate(var(--spread-r-1)) !important;
  z-index: 1;
  box-shadow: 3px 3px 0px #000000;
}

.about-image-spread-container:hover .spread-card.card-2,
.about-image-spread-container.user-clicked-spread .spread-card.card-2 {
  transform: translate(calc(-50% + var(--spread-x-2) + var(--drag-x, 0px)), calc(-50% + var(--spread-y-2) + var(--drag-y, 0px))) rotate(var(--spread-r-2)) !important;
  z-index: 2;
  box-shadow: 3px 3px 0px #000000;
}

.about-image-spread-container:hover .spread-card.card-3,
.about-image-spread-container.user-clicked-spread .spread-card.card-3 {
  transform: translate(calc(-50% + var(--spread-x-3) + var(--drag-x, 0px)), calc(-50% + var(--spread-y-3) + var(--drag-y, 0px))) rotate(var(--spread-r-3)) !important;
  z-index: 3;
  box-shadow: 3px 3px 0px #000000;
}

.about-image-spread-container:hover .spread-card.card-4,
.about-image-spread-container.user-clicked-spread .spread-card.card-4 {
  transform: translate(calc(-50% + var(--spread-x-4) + var(--drag-x, 0px)), calc(-50% + var(--spread-y-4) + var(--drag-y, 0px))) rotate(var(--spread-r-4)) !important;
  z-index: 6;
  box-shadow: 4px 4px 0px #000000;
}

.about-image-spread-container:hover .spread-card.card-5,
.about-image-spread-container.user-clicked-spread .spread-card.card-5 {
  transform: translate(calc(-50% + var(--spread-x-5) + var(--drag-x, 0px)), calc(-50% + var(--spread-y-5) + var(--drag-y, 0px))) rotate(var(--spread-r-5)) !important;
  z-index: 5;
  box-shadow: 3px 3px 0px #000000;
}

.about-image-spread-container:hover .spread-card.card-6,
.about-image-spread-container.user-clicked-spread .spread-card.card-6 {
  transform: translate(calc(-50% + var(--spread-x-6) + var(--drag-x, 0px)), calc(-50% + var(--spread-y-6) + var(--drag-y, 0px))) rotate(var(--spread-r-6)) !important;
  z-index: 4;
  box-shadow: 3px 3px 0px #000000;
}

/* Card Deck Specific Custom Cursors */
/* Closed state: the whole card shows the hand-pointer so users know it can be clicked to open */
.spread-card {
  cursor: url('../Material_Stuff/Icons/All_Cursors/hand-pointer.svg') 10 2, pointer !important;
}

/* Fanned out / Interactive state: the white portion of the card gets the grab cursor */
.about-image-spread-container:hover .spread-card,
.about-image-spread-container.user-clicked-spread .spread-card {
  cursor: url('../Material_Stuff/Icons/All_Cursors/cover_hand_grab.svg') 12 12, grab !important;
}

/* Hovering over the image itself inside the fanned card always stays as the hand-pointer cursor */
.about-image-spread-container:hover .spread-card img,
.about-image-spread-container.user-clicked-spread .spread-card img {
  cursor: url('../Material_Stuff/Icons/All_Cursors/hand-pointer.svg') 10 2, pointer !important;
}

/* Active dragging state shows the grabbing cursor */
.spread-card.dragging {
  cursor: url('../Material_Stuff/Icons/All_Cursors/cover_hand_grab.svg') 12 12, grabbing !important;
}

/* Native fallback cursors */
html.native-cursors .spread-card {
  cursor: pointer !important;
}
html.native-cursors .about-image-spread-container:hover .spread-card,
html.native-cursors .about-image-spread-container.user-clicked-spread .spread-card {
  cursor: grab !important;
}
html.native-cursors .spread-card.dragging {
  cursor: grabbing !important;
}

/* Scroll Shutter Entry Animations */
.about-image-spread-container.scroll-shutter-spread .spread-card.card-1 {
  animation: cardSpread1 1.6s ease-in-out forwards;
}
.about-image-spread-container.scroll-shutter-spread .spread-card.card-2 {
  animation: cardSpread2 1.6s ease-in-out forwards;
}
.about-image-spread-container.scroll-shutter-spread .spread-card.card-3 {
  animation: cardSpread3 1.6s ease-in-out forwards;
}
.about-image-spread-container.scroll-shutter-spread .spread-card.card-4 {
  animation: cardSpread4 1.6s ease-in-out forwards;
}
.about-image-spread-container.scroll-shutter-spread .spread-card.card-5 {
  animation: cardSpread5 1.6s ease-in-out forwards;
}
.about-image-spread-container.scroll-shutter-spread .spread-card.card-6 {
  animation: cardSpread6 1.6s ease-in-out forwards;
}

@keyframes cardSpread1 {
  0% { transform: translate(-50%, -50%) rotate(-5deg); }
  35%, 65% { transform: translate(calc(-50% + var(--spread-x-1)), calc(-50% + var(--spread-y-1))) rotate(var(--spread-r-1)); }
  100% { transform: translate(-50%, -50%) rotate(-5deg); }
}

@keyframes cardSpread2 {
  0% { transform: translate(-50%, -50%) rotate(3deg); }
  35%, 65% { transform: translate(calc(-50% + var(--spread-x-2)), calc(-50% + var(--spread-y-2))) rotate(var(--spread-r-2)); }
  100% { transform: translate(-50%, -50%) rotate(3deg); }
}

@keyframes cardSpread3 {
  0% { transform: translate(-50%, -50%) rotate(-2deg); }
  35%, 65% { transform: translate(calc(-50% + var(--spread-x-3)), calc(-50% + var(--spread-y-3))) rotate(var(--spread-r-3)); }
  100% { transform: translate(-50%, -50%) rotate(-2deg); }
}

@keyframes cardSpread4 {
  0% { transform: translate(-50%, -50%) rotate(1deg); }
  35%, 65% { transform: translate(calc(-50% + var(--spread-x-4)), calc(-50% + var(--spread-y-4))) rotate(var(--spread-r-4)); }
  100% { transform: translate(-50%, -50%) rotate(1deg); }
}

@keyframes cardSpread5 {
  0% { transform: translate(-50%, -50%) rotate(-3deg); }
  35%, 65% { transform: translate(calc(-50% + var(--spread-x-5)), calc(-50% + var(--spread-y-5))) rotate(var(--spread-r-5)); }
  100% { transform: translate(-50%, -50%) rotate(-3deg); }
}

@keyframes cardSpread6 {
  0% { transform: translate(-50%, -50%) rotate(4deg); }
  35%, 65% { transform: translate(calc(-50% + var(--spread-x-6)), calc(-50% + var(--spread-y-6))) rotate(var(--spread-r-6)); }
  100% { transform: translate(-50%, -50%) rotate(4deg); }
}

/* Camera Focus Brackets Zone */
.camera-brackets {
  position: relative;
  padding: 3rem 2rem 2.5rem;
  width: 100%;
  border-radius: 8px;
  border: 2px dashed transparent;
  transition: all 0.3s ease;
}

.camera-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--divider-dot-color);
  border-style: solid;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease, border-color 0.3s ease;
  pointer-events: none;
  opacity: 0.85;
}

.camera-corner.top-left { top: 0; left: 0; border-width: 3px 0 0 3px; }
.camera-corner.top-right { top: 0; right: 0; border-width: 3px 3px 0 0; }
.camera-corner.bottom-left { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.camera-corner.bottom-right { bottom: 0; right: 0; border-width: 0 3px 3px 0; }

.camera-brackets:hover .camera-corner.top-left    { transform: translate(-16px, -16px); opacity: 0; }
.camera-brackets:hover .camera-corner.top-right   { transform: translate(16px, -16px);  opacity: 0; }
.camera-brackets:hover .camera-corner.bottom-left  { transform: translate(-16px, 16px);  opacity: 0; }
.camera-brackets:hover .camera-corner.bottom-right { transform: translate(16px, 16px);   opacity: 0; }

/* Shutter-click: corners flash back in — overrides hover-hide */
.camera-brackets.shutter-clicked .camera-corner,
.camera-brackets:hover.shutter-clicked .camera-corner {
  border-color: #ffffff !important;
  filter: drop-shadow(0 0 8px #ffffff);
  transform: scale(0.94) !important;
  opacity: 1 !important;
}

/* Camera Shutter Flash Overlay */
.camera-flash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 100000;
}

.camera-flash-overlay.active-flash {
  animation: shutterFlash 0.35s ease-out forwards;
}

@keyframes shutterFlash {
  0% { opacity: 0.85; }
  30% { opacity: 0.85; }
  100% { opacity: 0; }
}

/* ==========================================================================
   Biography "What I Do" Brutalist Services Cards
   ========================================================================== */
/* Glass variables for Bio Cards */
:root {
  --glass-card-bg: rgba(24, 24, 28, 0.45);
}

html.light-theme,
body.light-theme {
  --glass-card-bg: rgba(255, 255, 255, 0.45);
}

.bio-cards-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  margin-top: 1.5rem;
}

/* Glowing glass blobs underneath */
.glass-blob {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.blob-pink {
  background: #f43f5e;
  top: -10%;
  left: 5%;
}

.blob-blue {
  background: #3b82f6;
  bottom: -10%;
  right: 5%;
}

body.light-theme .blob-pink {
  background: #fecdd3; /* softer pink */
  opacity: 0.6;
}

body.light-theme .blob-blue {
  background: #dbeafe; /* softer blue */
  opacity: 0.6;
}

/* Reusable Brutal-Glass Card Utility Class */
.brutal-glass-card {
  position: relative;
  z-index: 2;
  background-color: var(--glass-card-bg) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Contact specific glowing glass blobs */
.contact-container {
  position: relative;
  z-index: 2;
}

.blob-teal {
  background: #14b8a6;
  top: -10%;
  left: 5%;
}

.blob-purple {
  background: #a855f7;
  bottom: -10%;
  right: 5%;
}

body.light-theme .blob-teal,
body.light-theme .blob-purple {
  display: none;
}

@media (max-width: 900px) {
  .bio-cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.what-i-do-card {
  position: relative;
  z-index: 2;
  background-color: var(--glass-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2.5px solid var(--proj-card-border);
  box-shadow: 3px 3px 0px var(--proj-card-border);
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
}

.what-i-do-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--proj-card-border);
}

.what-i-do-card .card-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  box-shadow: 2px 2px 0px #000000;
  color: #000000;
}

.what-i-do-card .card-icon-circle i {
  font-size: 1.4rem;
}

.what-i-do-card .card-icon-circle.highlight-pink { background-color: #f43f5e; } /* bright pink */
.what-i-do-card .card-icon-circle.highlight-blue { background-color: #3b82f6; } /* bright blue */
.what-i-do-card .card-icon-circle.highlight-teal { background-color: #14b8a6; } /* bright teal */

.what-i-do-card h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sidebar-text);
  margin: 0 0 0.8rem 0;
}

.what-i-do-card p {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--sidebar-text-muted);
  margin: 0;
}

/* Centered Get In Touch Tag Style */
.about-action-tag-container {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.brutalist-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background-color: var(--proj-btn-bg);
  color: var(--proj-btn-text);
  border: 2px solid var(--proj-btn-border);
  box-shadow: 2px 2px 0px var(--proj-btn-border);
  padding: 0.6rem 1.3rem;
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.brutalist-tag:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px var(--proj-btn-border);
}

.brutalist-tag .action-arrow {
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  display: inline-block;
}

.brutalist-tag:hover .action-arrow {
  transform: translate(3px, 0) rotate(0deg);
}

/* ==========================================================================
   Toolbox Orbiting Background
   ========================================================================== */
.toolbox-orbits-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-theme .toolbox-orbits-bg {
  opacity: 0.25;
}

.orbit-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed var(--sidebar-text-muted);
}

.orbit-circle.outer {
  width: 600px;
  height: 600px;
  animation: outer-spin 30s linear infinite;
}

.orbit-circle.inner {
  width: 400px;
  height: 400px;
  animation: inner-spin 20s linear infinite;
}

.orbit-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -20px;
  margin-left: -20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background-color: #18181b;
  border-radius: 50%;
  color: var(--sidebar-text);
}

body.light-theme .orbit-icon {
  background-color: #f4f4f5;
}

@keyframes outer-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes inner-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes outer-counter-spin {
  from { transform: rotate(var(--angle)) translateY(-300px) rotate(calc(-1 * var(--angle) - 0deg)); }
  to { transform: rotate(var(--angle)) translateY(-300px) rotate(calc(-1 * var(--angle) - 360deg)); }
}

@keyframes inner-counter-spin {
  from { transform: rotate(var(--angle)) translateY(-200px) rotate(calc(-1 * var(--angle) + 0deg)); }
  to { transform: rotate(var(--angle)) translateY(-200px) rotate(calc(-1 * var(--angle) + 360deg)); }
}

.outer .orbit-icon {
  animation: outer-counter-spin 30s linear infinite;
}

.inner .orbit-icon {
  animation: inner-counter-spin 20s linear infinite;
}

@media (max-width: 768px) {
  .orbit-circle.outer {
    width: 400px;
    height: 400px;
  }
  .outer .orbit-icon {
    animation-name: outer-counter-spin-mobile;
  }
  @keyframes outer-counter-spin-mobile {
    from { transform: rotate(var(--angle)) translateY(-200px) rotate(calc(-1 * var(--angle) - 0deg)); }
    to { transform: rotate(var(--angle)) translateY(-200px) rotate(calc(-1 * var(--angle) - 360deg)); }
  }

  .orbit-circle.inner {
    width: 250px;
    height: 250px;
  }
  .inner .orbit-icon {
    animation-name: inner-counter-spin-mobile;
  }
  @keyframes inner-counter-spin-mobile {
    from { transform: rotate(var(--angle)) translateY(-125px) rotate(calc(-1 * var(--angle) + 0deg)); }
    to { transform: rotate(var(--angle)) translateY(-125px) rotate(calc(-1 * var(--angle) + 360deg)); }
  }
}

/* ==========================================================================
   SkillJar & ToolBox Refined Styles
   ========================================================================== */
.skill-jar-section,
.toolbox-section {
  margin-top: 7rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.toolbox-section {
  margin-top: 5rem;
}

.skill-jar-header-container,
.toolbox-header-container {
  margin-bottom: 3rem;
  text-align: center;
}

.skill-jar-title-block,
.toolbox-title-block {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  position: relative;
}

.skill-jar-title,
.toolbox-title {
  font-family: "Outfit", sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0;
  color: var(--sidebar-text);
  position: relative;
  display: inline-block;
}

/* Underlines */
.skill-jar-title::after,
.toolbox-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #10b981; /* green underline */
  border-radius: 4px;
  transform: rotate(-1.2deg);
}

.toolbox-title::after {
  transform: rotate(1deg);
}

.toolbox-subtitle {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  color: var(--sidebar-text-muted);
  margin: 0.8rem 0 0;
}

/* Custom Jar Icon Styling */
.skill-jar-icon-container {
  width: 42px;
  height: 42px;
  color: #10b981; /* Green to match My ToolBox */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.skill-jar-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
  overflow: visible;
}

/* Floating Animation for the Lid & String group */
.jar-cap-group {
  animation: jarCapFloat 2.6s ease-in-out infinite alternate;
  transform-origin: 32px 14px;
}

@keyframes jarCapFloat {
  0% {
    transform: translateY(0) rotate(-4deg);
  }
  100% {
    transform: translateY(-4px) rotate(4deg);
  }
}

/* Individual Skill Particle Animations inside the Jar */
.jar-skill-particle {
  transform-origin: center;
  opacity: 0.85;
}

.particle-1 {
  color: #a78bfa; /* violet-400 */
  animation: particleFloat1 3.2s ease-in-out infinite alternate;
}

.particle-2 {
  color: #fbbf24; /* amber-400 (sparkle) */
  animation: particleFloat2 2.6s ease-in-out infinite alternate;
}

.particle-3 {
  color: #60a5fa; /* blue-400 */
  animation: particleFloat3 3.6s ease-in-out infinite alternate;
}

.particle-4 {
  color: #f472b6; /* pink-400 */
  animation: particleFloat4 2.8s ease-in-out infinite alternate;
}

@keyframes particleFloat1 {
  0% { transform: translate(0, 0) scale(0.95); opacity: 0.65; }
  100% { transform: translate(1px, -3px) scale(1.05); opacity: 0.95; }
}

@keyframes particleFloat2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  100% { transform: translate(-2px, -2px) scale(0.9); opacity: 0.6; }
}

@keyframes particleFloat3 {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0.6; }
  100% { transform: translate(2px, -2px) scale(1.1); opacity: 1; }
}

@keyframes particleFloat4 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(-1px, -4px) scale(1); opacity: 0.95; }
}

/* Light Theme overrides for the jar */
.light-theme .skill-jar-icon-container {
  color: #10b981; /* Green for light theme */
}

.light-theme .skill-jar-svg {
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.35));
}

.light-theme .particle-1 {
  color: #8b5cf6; /* Slightly darker violet for visibility */
}
.light-theme .particle-2 {
  color: #d97706; /* Darker amber */
}
.light-theme .particle-3 {
  color: #2563eb; /* Darker blue */
}
.light-theme .particle-4 {
  color: #db2777; /* Darker pink */
}

/* Toolbox Icon Styling */
.toolbox-svg-container {
  width: 36px;
  height: 36px;
  color: #10b981; /* Green color to match toolbox underline */
  display: flex;
  align-items: center;
  justify-content: center;
}

.toolbox-svg {
  width: 100%;
  height: 100%;
  animation: lightningFloat 2s ease-in-out infinite alternate, toolboxPulse 1.4s infinite alternate;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
}

@keyframes lightningFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.05); }
}

@keyframes lightningPulse {
  0% { opacity: 0.8; filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.35)); }
  100% { opacity: 1; filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.8)); }
}

@keyframes toolboxPulse {
  0% { opacity: 0.8; filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.35)); }
  100% { opacity: 1; filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.8)); }
}

/* Giant Outline "SKILLS" Text Background for My SkillJar */
.skills-bg-banner {
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Outfit", sans-serif;
  font-size: 11rem;
  font-weight: 900;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(167, 139, 250, 0.05);
  pointer-events: none;
  z-index: 1;
  user-select: none;
  letter-spacing: 6px;
}

.light-theme .skills-bg-banner {
  -webkit-text-stroke: 1.5px rgba(37, 99, 235, 0.04);
}

@media (max-width: 768px) {
  .skills-bg-banner {
    font-size: 6rem;
    top: 110px;
  }
}

/* Tech Stack Grid with Dark Cards (Skills Reference Style) */
.skills-dark-grid {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
  position: relative;
  z-index: 2;
}

.skill-dark-card {
  background-color: #121214; /* solid dark background */
  border: 1.5px solid #27272a;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15), border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 140px;
}

.light-theme .skill-dark-card {
  background-color: #fcfcfd;
  border-color: #e4e4e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.skill-dark-card i {
  font-size: 2.2rem;
  transition: transform 0.3s ease;
}

.skill-dark-card span {
  font-family: "Space Mono", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f4f4f5;
  transition: color 0.3s ease;
}

.light-theme .skill-dark-card span {
  color: #18181b;
}

/* Tech colors on hover */
.skill-dark-card:hover {
  transform: translateY(-5px);
  border-color: var(--hover-color);
  box-shadow: 0 10px 20px var(--glow-color);
}

.card-react { --hover-color: #00d8ff; --glow-color: rgba(0, 216, 255, 0.12); }
.card-node { --hover-color: #22c55e; --glow-color: rgba(34, 197, 94, 0.12); }
.card-mongodb { --hover-color: #10b981; --glow-color: rgba(16, 185, 129, 0.12); }
.card-express { --hover-color: #a855f7; --glow-color: rgba(168, 85, 247, 0.12); }
.card-javascript { --hover-color: #eab308; --glow-color: rgba(234, 179, 8, 0.12); }
.card-html { --hover-color: #f97316; --glow-color: rgba(249, 115, 22, 0.12); }
.card-css { --hover-color: #3b82f6; --glow-color: rgba(59, 130, 246, 0.12); }
.card-tailwind { --hover-color: #06b6d4; --glow-color: rgba(6, 182, 212, 0.12); }

.skill-dark-card.card-react i { color: #00d8ff; }
.skill-dark-card.card-node i { color: #22c55e; }
.skill-dark-card.card-mongodb i { color: #10b981; }
.skill-dark-card.card-express i { color: #e2e8f0; }
.light-theme .skill-dark-card.card-express i { color: #09090b; }
.skill-dark-card.card-javascript i { color: #eab308; }
.skill-dark-card.card-html i { color: #f97316; }
.skill-dark-card.card-css i { color: #3b82f6; }
.skill-dark-card.card-tailwind i { color: #06b6d4; }

.skill-dark-card:hover i {
  transform: scale(1.1);
}

/* ToolBox Squircle Row (Toolbox Reference Style) */
.toolbox-squircle-row {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.8rem;
  padding: 1.5rem 0;
  z-index: 2;
  position: relative;
}

.tool-squircle {
  width: 80px;
  height: 80px;
  background-color: #18181b;
  border: 1.5px solid #27272a;
  border-radius: 20px; /* Squircle style */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #a1a1aa;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15), border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.light-theme .tool-squircle {
  background-color: #f4f4f5;
  border-color: #e4e4e7;
  color: #52525b;
}

.tool-squircle:hover {
  transform: scale(1.12) rotate(4deg);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.15), 0 4px 6px -2px rgba(16, 185, 129, 0.05);
}

.light-theme .tool-squircle:hover {
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.15), 0 4px 6px -2px rgba(16, 185, 129, 0.05);
}

@media (max-width: 480px) {
  .skills-dark-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem 0.5rem;
    gap: 1.2rem;
  }
  .skill-dark-card {
    padding: 1.5rem 1rem;
    min-height: 120px;
  }
  .tool-squircle {
    width: 68px;
    height: 68px;
    font-size: 1.7rem;
    border-radius: 16px;
  }
}

/* Custom override for dividers */
.section-divider.projects-divider {
  margin: 4rem auto 4rem !important;
}

.section-divider.about-divider {
  margin: 4rem auto 4rem !important;
}

/* ==========================================================================
   Portfolio Footer
   ========================================================================== */
.portfolio-footer {
  width: 100%;
  padding: 3rem 2rem 2.5rem;
  background-color: var(--body-bg);
  border-top: 1px solid var(--divider-color);
  color: var(--sidebar-text);
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.portfolio-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.portfolio-footer .copyright {
  margin: 0;
  color: var(--sidebar-text-muted);
}

.portfolio-footer .design-by {
  margin: 0;
  font-weight: 500;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .portfolio-footer {
    padding: 2rem 1.5rem;
  }
  .portfolio-footer .footer-content {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
  .footer-scroll-top {
    position: static;
    transform: none;
    margin: 0.5rem auto;
  }
  .footer-scroll-top:hover {
    transform: translateY(-2px);
  }
}

/* ─── Loader Overlay ─── */
.loader-overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--body-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  opacity: 1;
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
  pointer-events: all;
  overflow: hidden;
}

.light-theme .loader-overlay-container {
  background-color: #f6f5f3;
  color: #161311;
}

.dark-theme .loader-overlay-container {
  background-color: var(--body-bg);
  color: #f4f4f7;
}

.loader-overlay-container.loader-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.8rem;
}

.loader-logo-wrapper {
  width: 180px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 0 15px var(--divider-dot-glow));
  cursor: default !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  will-change: transform, filter;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.light-theme .loader-logo-wrapper {
  filter: none;
}

/* Loader Sound Card (Minimal Glassmorphism Pill Style with 3D Depth) */
.loader-sound-card {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: rgba(30, 30, 35, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.42rem 0.85rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1000000;
  box-shadow: 0 3px 0px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.loader-sound-card:hover {
  background-color: rgba(35, 35, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}

/* 3D Press Effect */
.loader-sound-card:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sound Button inside the Card - Really Small */
.loader-sound-btn {
  background: transparent;
  border: none;
  color: var(--sidebar-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.loader-sound-btn svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.loader-sound-btn:active svg {
  transform: scale(0.85);
}

/* Stable label to prevent text shifting */
.loader-sound-label {
  display: inline-block;
  min-width: 80px;
  text-align: left;
}

/* Light Theme override */
.light-theme .loader-sound-card {
  background-color: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 3px 0px rgba(22, 19, 17, 0.7), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.light-theme .loader-sound-card:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.18);
}

.light-theme .loader-sound-card:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0px rgba(22, 19, 17, 0.7), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.light-theme .loader-sound-btn {
  color: #161311;
}

.loader-skip-hint {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--sidebar-text-muted);
  opacity: 0.3;
  margin-top: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.loader-logo-wrapper:hover ~ .loader-text-wrapper .loader-skip-hint {
  opacity: 0.8;
  color: var(--sidebar-text);
}

.loader-signature-svg {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.loader-sig-path {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.16, 0.78, 0.2, 1);
  transform-origin: center;
  transform-box: fill-box;
  will-change: transform, opacity;
}

.loader-sig-s {
  animation-name: loaderSigFill;
  animation-delay: 0.1s;
  animation-duration: 0.8s;
}

.loader-sig-border {
  animation-name: loaderSigFill;
  animation-delay: 0.7s;
  animation-duration: 1.0s;
}

.loader-sig-c {
  animation-name: loaderSigFill;
  animation-delay: 1.5s;
  animation-duration: 0.8s;
}

@keyframes loaderSigFill {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.loader-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.loader-loading-text {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  opacity: 0.9;
  text-transform: uppercase;
  animation: loaderPulseText 2s ease-in-out infinite alternate;
  display: inline-block;
  width: 290px;
  text-align: center;
}

@keyframes loaderPulseText {
  0% {
    opacity: 0.6;
    letter-spacing: 0.3em;
  }
  100% {
    opacity: 1;
    letter-spacing: 0.4em;
  }
}

/* Optimize loader animations on mobile/touch screens to prevent rendering vibration (vibrating/jittering) */
@media (max-width: 768px), (pointer: coarse) {
  .loader-sig-path {
    animation-name: loaderSigFillMobile;
  }
  .loader-loading-text {
    animation: loaderPulseTextMobile 2s ease-in-out infinite alternate;
  }
}

@keyframes loaderSigFillMobile {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes loaderPulseTextMobile {
  0% {
    opacity: 0.45;
  }
  100% {
    opacity: 0.95;
  }
}

.loader-interactive-area {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 290px;
  height: 50px;
}

.loader-progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  transition: opacity 0.4s ease, transform 0.4s ease;
  width: 100%;
}

.loader-progress-bar {
  width: 160px;
  height: 2px;
  background-color: var(--divider-color);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-progress-fill {
  height: 100%;
  width: 0;
  background-color: var(--divider-dot-color);
  border-radius: 2px;
  animation: loaderProgressLoad 2.2s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
  box-shadow: 0 0 8px var(--divider-dot-glow);
}

@keyframes loaderProgressLoad {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* Loader Enter Button styling */
.loader-enter-btn {
  display: none;
  opacity: 0;
  position: absolute;
  transition: opacity 0.5s ease, transform 0.5s ease;
  font-size: 0.8rem;
  padding: 0.6rem 1.2rem;
  white-space: nowrap;
}

body.loading {
  overflow: hidden !important;
  height: 100vh !important;
}

/* ─── 404 Error Page ─── */
.error-page-body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--body-bg);
}

.error-page-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding: 2rem 1.5rem;
}

.error-page-sc-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  animation: errorScTypographyFloat 10s ease-in-out infinite alternate;
}

.dark-theme .error-page-sc-bg {
  opacity: 0.18;
}

.error-page-sc-bg .signature-svg {
  width: 100%;
  height: auto;
  display: none;
}

.light-theme .error-page-sc-bg .signature-svg.light-only {
  display: block !important;
}

.dark-theme .error-page-sc-bg .signature-svg.dark-only {
  display: block !important;
}

@keyframes errorScTypographyFloat {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.98);
    filter: drop-shadow(0 0 2px var(--divider-dot-glow));
  }
  100% {
    transform: translate(-52%, -48%) rotate(5deg) scale(1.03);
    filter: drop-shadow(0 0 12px var(--divider-dot-glow));
  }
}

.error-content-card {
  position: relative;
  z-index: 2;
  background: rgba(20, 20, 22, 0.3);
  border: 1.5px solid var(--sidebar-border);
  border-radius: 12px;
  padding: 3.5rem 3rem;
  max-width: 600px;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 203, 214, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  text-align: center;
}

.light-theme .error-content-card {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06), 0 0 30px rgba(0, 143, 160, 0.03);
}

.error-code-cutouts {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 0.5rem;
}

.error-code-cutouts .code-digit {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 6.5rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.4rem 1.6rem;
  background-color: var(--proj-tape-bg, #fde047);
  color: #000000 !important; /* High contrast black text on yellow */
  border: 3px solid #000000;
  box-shadow: 6px 6px 0px #000000;
  border-radius: 4px;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
  user-select: none;
}

.error-code-cutouts .code-digit:nth-child(1) {
  transform: rotate(-3.5deg);
}

.error-code-cutouts .code-digit:nth-child(2) {
  transform: rotate(2.5deg) translateY(-4px);
}

.error-code-cutouts .code-digit:nth-child(3) {
  transform: rotate(-2deg);
}

.error-code-cutouts .code-digit:hover {
  transform: scale(1.1) rotate(0deg) translateY(-2px);
  box-shadow: 10px 10px 0px #000000;
  background-color: #fef08a; /* Slightly brighter yellow on hover */
}

.error-badge {
  margin: 0;
  display: flex;
  justify-content: center;
}

.error-badge .cutout-highlight {
  font-size: 1rem;
  padding: 0.25rem 0.6rem;
  transform: rotate(-1deg);
}

.error-message {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  color: var(--sidebar-text-muted);
  line-height: 1.6;
  margin: 0;
}

.error-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .error-code-cutouts .code-digit {
    font-size: 4rem;
    padding: 0.3rem 1rem;
    border-width: 2px;
    box-shadow: 4px 4px 0px #000000;
    gap: 0.8rem;
  }
  .error-page-sc-bg {
    width: 320px;
  }
  .error-content-card {
    padding: 2.5rem 1.8rem;
  }
  .error-actions {
    flex-direction: column;
    width: 100%;
  }
  .error-actions .brutalist-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Experience/Journey Timeline Section
   ========================================================================== */
.journey-timeline-section {
  margin-top: 7rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.timeline-header-container {
  margin-bottom: 4rem;
  text-align: center;
  width: 100%;
}

.timeline-title-block {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  position: relative;
}

.timeline-title {
  font-family: "Outfit", sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0;
  color: var(--sidebar-text);
  position: relative;
  display: inline-block;
}

.timeline-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #10b981; /* Premium green/emerald underline for timeline */
  border-radius: 4px;
  transform: rotate(-1deg);
}

.timeline-sparkle-svg-container {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
  animation: sparkleContainerFloat 3s ease-in-out infinite alternate;
}

.timeline-sparkle-svg {
  width: 100%;
  height: 100%;
  animation: timelineSparkleAnim 2.5s ease-in-out infinite alternate;
}

@keyframes sparkleContainerFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-3px);
  }
}

@keyframes timelineSparkleAnim {
  0% {
    filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.3));
    opacity: 0.7;
  }
  100% {
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.85));
    opacity: 1;
  }
}

.timeline-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  color: var(--sidebar-text-muted);
  margin-top: 0.8rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Timeline Layout */
.timeline-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Vertical line */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 4.8rem; /* Terminates cleanly right above the expand button */
  left: 50%;
  width: 2px;
  background-color: var(--sidebar-border);
  transform: translateX(-50%);
  z-index: 1;
}

/* Individual item */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.2rem 3rem;
  z-index: 2;
  box-sizing: border-box;
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Left items */
.timeline-item.left {
  left: 0;
  text-align: right;
}

/* Right items */
.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* Timeline Dot Diamond Nodes */
.timeline-dot {
  position: absolute;
  top: 3.2rem;
  width: 8px;
  height: 8px;
  background-color: var(--sidebar-border);
  border: 1.8px solid var(--sidebar-border);
  z-index: 3;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s, 
              background-color 0.4s ease, 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
}

/* Align diamond dots exactly on center vertical line and hide initially */
.timeline-item.left .timeline-dot {
  right: 0;
  transform: translate(50%, -50%) rotate(45deg) scale(0);
}

.timeline-item.right .timeline-dot {
  left: 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
}

/* Activated state when timeline item is revealed on scroll */
.timeline-item.revealed .timeline-dot {
  background-color: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
}

.timeline-item.left.revealed .timeline-dot {
  transform: translate(50%, -50%) rotate(405deg) scale(1);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s, 
              background-color 0.4s ease, 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
}

.timeline-item.right.revealed .timeline-dot {
  transform: translate(-50%, -50%) rotate(405deg) scale(1);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s, 
              background-color 0.4s ease, 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
}

/* Hover effects (only applicable when revealed) */
.timeline-item.revealed:hover .timeline-dot {
  background-color: #059669;
  border-color: #059669;
  box-shadow: 0 0 16px rgba(5, 150, 105, 0.95);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1) 0s,
              background-color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.timeline-item.left.revealed:hover .timeline-dot {
  transform: translate(50%, -50%) rotate(405deg) scale(1.25);
}

.timeline-item.right.revealed:hover .timeline-dot {
  transform: translate(-50%, -50%) rotate(405deg) scale(1.25);
}

/* Transparent wrapper to handle mouse events and prevent 3D jitter */
.timeline-card-wrapper {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
  z-index: 2;
}

/* Timeline card with 3D Depth */
.timeline-card {
  background-color: var(--card-surface);
  border: 2.2px solid var(--sidebar-border); /* Thicker 3D border */
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 6px 6px 0px var(--sidebar-border); /* 3D depth brutalist shadow */
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translate3d(0, 0, 0);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease-out;
}

/* Hover state: 3D Pop (implements small 3D translate and emerald shadow) */
.timeline-item.revealed:hover .timeline-card {
  border-color: #10b981;
  box-shadow: 10px 10px 0px rgba(16, 185, 129, 0.4);
}

/* Year styling */
.timeline-year-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.timeline-item.left .timeline-year-row {
  justify-content: flex-end;
}

.timeline-year {
  font-family: "Space Mono", monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.timeline-tag-duration {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Title & Subtitle */
.timeline-item-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--sidebar-text);
}

.timeline-item-subtitle {
  font-size: 0.9rem;
  color: var(--sidebar-text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Desc & Bullets */
.timeline-item-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--sidebar-text-muted);
}

.timeline-item-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.timeline-item.left .timeline-item-bullets {
  text-align: right;
}

/* For right alignment, keep bullets normal but align right */
.timeline-item.left .timeline-item-bullets li {
  text-align: right;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--sidebar-text-muted);
}

.timeline-item.left .timeline-item-bullets li::before {
  content: "← ";
  color: #10b981;
  font-weight: bold;
}

.timeline-item.right .timeline-item-bullets li {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--sidebar-text-muted);
}

.timeline-item.right .timeline-item-bullets li::before {
  content: "→ ";
  color: #10b981;
  font-weight: bold;
}

/* Timeline Tags */
.timeline-item-tags {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-item.left .timeline-item-tags {
  justify-content: flex-end;
}

.timeline-badge-tag {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  background-color: var(--card-surface);
  border: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
  border-radius: 50px;
  box-shadow: 1px 1px 0px var(--sidebar-border);
}

/* ==========================================================================
   Expand/Collapse Button Styling (Center Bottom of Timeline)
   ========================================================================== */
.timeline-expand-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 5.5rem;
  width: 100%;
  position: relative;
  z-index: 5;
}

.timeline-expand-btn {
  border-color: #10b981 !important;
  box-shadow: 2px 2px 0px #10b981 !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.timeline-expand-btn:hover {
  transform: translate(-2px, -2px); /* Integer value prevents sub-pixel text blurriness */
  box-shadow: 4px 4px 0px #10b981 !important;
}

.timeline-expand-btn:active {
  transform: translate(2px, 2px); /* Integer value prevents sub-pixel text blurriness */
  box-shadow: 0px 0px 0px #10b981 !important;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Timeline Layout
   ========================================================================== */
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
    bottom: 5.5rem;
  }
  
  .timeline-item {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    text-align: left !important;
  }
  
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }
  
  .timeline-dot {
    left: 20px !important;
    right: auto !important;
    transform: translate(-50%, -50%) rotate(45deg) scale(0) !important;
  }
  
  .timeline-item.revealed .timeline-dot {
    transform: translate(-50%, -50%) rotate(405deg) scale(1) !important;
  }
  
  .timeline-item.revealed:hover .timeline-dot {
    transform: translate(-50%, -50%) rotate(405deg) scale(1.2) !important;
  }
  
  .timeline-item.left .timeline-year-row,
  .timeline-item.left .timeline-item-tags {
    justify-content: flex-start;
  }
  
  .timeline-item.left .timeline-item-bullets li {
    text-align: left;
  }

  .timeline-item.left .timeline-item-bullets li::before {
    content: "→ ";
  }
  
  .timeline-expand-wrapper {
    justify-content: center;
    padding-left: 0;
  }
}

/* ==========================================================================
   GITHUB CONTRIBUTION GRAPH STYLES
   ========================================================================== */
.github-contrib-section {
  width: 100%;
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.contrib-header-container {
  margin-bottom: 2.5rem;
  text-align: center;
}

.contrib-title-block {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  position: relative;
}

.contrib-title {
  font-family: "Outfit", sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0;
  color: var(--sidebar-text);
  position: relative;
  display: inline-block;
}

.contrib-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #10b981; /* Green underline matching other titles */
  border-radius: 4px;
  transform: rotate(-1deg);
}

.contrib-subtitle {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  color: var(--sidebar-text-muted);
  margin: 0.8rem 0 0;
}

.contrib-svg-container {
  width: 36px;
  height: 36px;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contrib-svg {
  width: 100%;
  height: 100%;
  animation: lightningFloat 2s ease-in-out infinite alternate, toolboxPulse 1.4s infinite alternate;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
}

/* Hide the auto-injected accessibility skip link from github-calendar */
.calendar a[href="#year-overview-graph"],
.calendar .sr-only,
#github-calendar-widget a[href^="#year"] {
  display: none !important;
}

.calendar-wrapper {
  width: 100%;
  max-width: 900px;
  background-color: #121214; /* Same flat card surface as .skill-dark-card */
  border: 1.5px solid #27272a;
  border-radius: 12px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  z-index: 2;
}

.light-theme .calendar-wrapper {
  background-color: #fcfcfd;
  border-color: #e4e4e7;
}

/* Wrapper for graph scrolling to prevent entire card from scrolling on mobile */
.calendar-graph-scroll-container {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.calendar-graph-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.calendar-graph-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--proj-card-border);
  border-radius: 4px;
}

/* Dynamic Subtle Divider */
.github-stats-divider {
  display: none; /* Controlled via JS */
  width: 100%;
  height: 1.5px;
  background: rgba(63, 63, 70, 0.4);
  margin: 0.5rem 0 1.8rem 0; /* Reduced top gap to place closer to graph */
  opacity: 0;
  transition: opacity 0.5s ease;
}

.github-stats-divider.visible {
  opacity: 1;
}

body.light-theme .github-stats-divider {
  background: rgba(228, 228, 231, 0.8);
}

/* GitHub username handle bar */
.contrib-handle-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem; /* Spacious padding after the stats row */
}

.contrib-github-handle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  font-family: "Space Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #a78bfa;
  text-decoration: none;
  background-color: rgba(167, 139, 250, 0.08);
  border: 1.5px solid rgba(167, 139, 250, 0.25);
  border-radius: 50px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contrib-github-handle:hover {
  background-color: rgba(167, 139, 250, 0.18);
  border-color: rgba(167, 139, 250, 0.6);
  color: #c4b5fd;
  transform: translateY(-1px);
}

.light-theme .contrib-github-handle {
  color: #4f46e5;
  background-color: rgba(79, 70, 229, 0.07);
  border-color: rgba(79, 70, 229, 0.2);
}

.light-theme .contrib-github-handle:hover {
  background-color: rgba(79, 70, 229, 0.14);
  border-color: rgba(79, 70, 229, 0.5);
  color: #3730a3;
}

/* Custom styling for calendar svg text and layout */
.calendar text.ContributionCalendar-label,
.calendar .graph-before-activity-overview {
  font-family: "Space Mono", monospace !important;
  fill: var(--sidebar-text-muted) !important;
  color: var(--sidebar-text-muted) !important;
  font-size: 0.75rem !important;
}

.calendar .contrib-number {
  font-family: "Outfit", sans-serif !important;
  color: var(--sidebar-text) !important;
  font-weight: 700 !important;
}

.calendar .contrib-column {
  display: none !important; /* Hide default un-styled stats */
}

/* Modern Glassmorphic Stats Dashboard Row */
/* Modern Glassmorphic Stats Dashboard Row */
.github-stats-row {
  display: none; /* Shown dynamically in JavaScript when successfully loaded */
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  perspective: 1000px; /* Enable 3D space for cards */
}

.github-stats-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.github-stat-card {
  flex: 1;
  background: rgba(39, 39, 42, 0.3); /* Glassmorphic dark card surface */
  border: 1.5px solid rgba(63, 63, 70, 0.4);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d; /* Enable 3D child rendering */
}

.github-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: linear-gradient(90deg, #10b981, #3b82f6); /* Premium signature emerald gradient */
  opacity: 0.95;
}

.github-stat-card:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-2deg) translateZ(10px); /* 3D rotation and elevation */
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 
    0 15px 30px -10px rgba(16, 185, 129, 0.35),
    0 30px 60px -20px rgba(0, 0, 0, 0.5); /* 3D pop shadows */
}

.github-stat-card .stat-label {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  color: var(--sidebar-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: translateZ(0);
}

.github-stat-card .stat-value {
  font-family: "Outfit", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--sidebar-text);
  line-height: 1.2;
  margin-bottom: 0.3rem;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: translateZ(0);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.github-stat-card .stat-value .unit {
  font-family: "Space Mono", monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sidebar-text-muted);
  text-transform: lowercase;
}

.github-stat-card .stat-period {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--sidebar-text-muted);
  opacity: 0.85;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: translateZ(0);
}

.github-stat-card:hover .stat-label {
  transform: translateZ(15px); /* Push labels forward in 3D space */
}

.github-stat-card:hover .stat-value {
  transform: translateZ(25px); /* Push values further forward */
}

.github-stat-card:hover .stat-period {
  transform: translateZ(10px); /* Subtle push for period text */
}

/* Light Theme Styling overrides */
body.light-theme .github-stat-card {
  background: rgba(244, 244, 245, 0.75);
  border-color: rgba(228, 228, 231, 0.9);
}

body.light-theme .github-stat-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 
    0 15px 30px -10px rgba(16, 185, 129, 0.15),
    0 25px 50px -20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .github-stats-row {
    flex-direction: column;
    gap: 1.2rem;
  }
}

.calendar .text-muted {
  font-family: "Space Mono", monospace !important;
  color: var(--sidebar-text-muted) !important;
}

/* Custom coloring for GitHub contribution cells — slightly rounded for a modern look */
.calendar rect.ContributionCalendar-day,
.calendar rect.day,
.calendar td.ContributionCalendar-day {
  rx: 3px;
  ry: 3px;
  border-radius: 3px !important;
  transition: filter 0.2s ease;
}

/* ── Dark mode cell colors: Portfolio emerald green signature palette ── */
.calendar rect.ContributionCalendar-day[data-level="0"],
.calendar rect.day[fill="#ebedf0"],
.calendar rect.day[fill="#161b22"],
.calendar td.ContributionCalendar-day[data-level="0"] {
  fill: #1c1b23 !important;
  background-color: #1c1b23 !important; /* Near-black void — clean empty state */
}
.calendar rect.ContributionCalendar-day[data-level="1"],
.calendar rect.day[fill="#9be9a8"],
.calendar rect.day[fill="#0e4429"],
.calendar td.ContributionCalendar-day[data-level="1"] {
  fill: #064e3b !important;
  background-color: #064e3b !important; /* Deep emerald green */
}
.calendar rect.ContributionCalendar-day[data-level="2"],
.calendar rect.day[fill="#40c463"],
.calendar rect.day[fill="#006d32"],
.calendar td.ContributionCalendar-day[data-level="2"] {
  fill: #047857 !important;
  background-color: #047857 !important; /* Medium emerald green */
}
.calendar rect.ContributionCalendar-day[data-level="3"],
.calendar rect.day[fill="#30a14e"],
.calendar rect.day[fill="#26a641"],
.calendar td.ContributionCalendar-day[data-level="3"] {
  fill: #10b981 !important;
  background-color: #10b981 !important; /* Bright emerald green */
  filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.5));
}
.calendar rect.ContributionCalendar-day[data-level="4"],
.calendar rect.day[fill="#216e39"],
.calendar rect.day[fill="#39d353"],
.calendar td.ContributionCalendar-day[data-level="4"] {
  fill: #34d399 !important;
  background-color: #34d399 !important; /* Glowing light emerald green */
  filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.7));
}

/* ── Light mode cell colors: Clean saturated emerald palette ── */
.light-theme .calendar rect.ContributionCalendar-day[data-level="0"],
.light-theme .calendar rect.day[fill="#ebedf0"],
.light-theme .calendar rect.day[fill="#161b22"],
.light-theme .calendar td.ContributionCalendar-day[data-level="0"] {
  fill: #e2e2e8 !important;
  background-color: #e2e2e8 !important; /* Warm gray — crisp empty state */
}
.light-theme .calendar rect.ContributionCalendar-day[data-level="1"],
.light-theme .calendar rect.day[fill="#9be9a8"],
.light-theme .calendar rect.day[fill="#0e4429"],
.light-theme .calendar td.ContributionCalendar-day[data-level="1"] {
  fill: #d1fae5 !important;
  background-color: #d1fae5 !important; /* Very light emerald green */
}
.light-theme .calendar rect.ContributionCalendar-day[data-level="2"],
.light-theme .calendar rect.day[fill="#40c463"],
.light-theme .calendar rect.day[fill="#006d32"],
.light-theme .calendar td.ContributionCalendar-day[data-level="2"] {
  fill: #a7f3d0 !important;
  background-color: #a7f3d0 !important; /* Soft light emerald green */
}
.light-theme .calendar rect.ContributionCalendar-day[data-level="3"],
.light-theme .calendar rect.day[fill="#30a14e"],
.light-theme .calendar rect.day[fill="#26a641"],
.light-theme .calendar td.ContributionCalendar-day[data-level="3"] {
  fill: #34d399 !important;
  background-color: #34d399 !important; /* Bright emerald green */
}
.light-theme .calendar rect.ContributionCalendar-day[data-level="4"],
.light-theme .calendar rect.day[fill="#216e39"],
.light-theme .calendar rect.day[fill="#39d353"],
.light-theme .calendar td.ContributionCalendar-day[data-level="4"] {
  fill: #10b981 !important;
  background-color: #10b981 !important; /* Deep emerald green */
  filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
}

/* Responsiveness override for smaller/touch screens - clips older weeks and keeps latest visible */
@media (max-width: 768px) {
  .calendar-wrapper {
    overflow-x: hidden !important; /* Hide horizontal scrollbar */
    padding: 1.2rem 0.8rem !important; /* Snugger padding for mobile */
  }
  #github-calendar-widget div {
    overflow-x: hidden !important; /* Hide scrollbar on dynamic inner divs injected by library */
  }
  .calendar-graph {
    display: flex !important;
    justify-content: center !important; /* Center the calendar widget on mobile */
    width: 100% !important;
  }
  .calendar-graph svg {
    min-width: unset !important; /* Remove the forced 720px width */
    width: 100% !important;
    max-width: 450px !important; /* Allow wider rendering for tablet */
    height: auto !important;
    flex-shrink: 0 !important;
  }
  table.ContributionCalendar-grid {
    border-spacing: 3px !important; /* Reduce border spacing slightly */
    margin: 0 auto !important; /* Center the table */
    width: auto !important;
  }
  table.ContributionCalendar-grid td {
    padding: 0 !important; /* Remove cell padding to keep cells compact */
  }
  td.ContributionCalendar-day {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    border-radius: 2px !important;
  }
  td.ContributionCalendar-label {
    width: 28px !important;
    min-width: 28px !important;
    text-align: left !important;
    vertical-align: middle !important;
  }
  td.ContributionCalendar-label span[aria-hidden="true"] {
    position: static !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    color: var(--sidebar-text-muted) !important;
    display: inline-block !important;
  }
}

@media (max-width: 520px) {
  .calendar-graph svg {
    max-width: 280px !important; /* Keep mobile view compact */
  }
}

/* Loading state styling */
.calendar-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
  font-family: "Space Mono", monospace;
  color: var(--sidebar-text-muted);
}

.calendar-loading .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  border-top-color: #10b981;
  animation: calendarSpin 1s linear infinite;
}

@keyframes calendarSpin {
  to { transform: rotate(360deg); }
}

/* Fallback styling */
.calendar-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  text-align: center;
  gap: 1.2rem;
}

.calendar-fallback .fallback-icon {
  font-size: 2.5rem;
  color: var(--sidebar-text-muted);
}

.calendar-fallback p {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  color: var(--sidebar-text-muted);
  max-width: 450px;
  margin: 0;
  line-height: 1.5;
}

.calendar-fallback .fallback-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
}


/* ══════════════════════════════════════════════════════════════
   CUSTOM RIGHT-CLICK CONTEXT MENU
   ══════════════════════════════════════════════════════════════ */

.custom-ctx-menu {
  position: fixed;
  z-index: 99999;
  min-width: 190px;
  padding: 6px 0;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92) translateY(-6px);
  transform-origin: top left;
  transition:
    opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
  user-select: none;
}

.custom-ctx-menu.ctx-visible {
  opacity: 1;
  pointer-events: all;
  transform: scale(1) translateY(0);
}

/* ── Dark theme ── */
body.dark-theme .custom-ctx-menu {
  background: rgba(20, 20, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 0 0.5px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Light theme ── */
body.light-theme .custom-ctx-menu {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.07),
    0 0 0 0.5px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Menu list reset ── */
.ctx-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Menu items ── */
.ctx-menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: 'Outfit', 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 450;
  letter-spacing: 0.01em;
  border-radius: 6px;
  margin: 0 4px;
  transition:
    background-color 0.12s ease,
    color 0.12s ease,
    transform 0.1s ease;
  outline: none;
  position: relative;
}

/* ── Item colors per theme ── */
body.dark-theme .ctx-menu-item {
  color: rgba(230, 230, 235, 0.92);
}

body.light-theme .ctx-menu-item {
  color: rgba(28, 28, 32, 0.9);
}

/* ── Hover states ── */
body.dark-theme .ctx-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.light-theme .ctx-menu-item:hover {
  background-color: rgba(0, 0, 0, 0.055);
  color: #0a0a0a;
}

/* ── Active / press state ── */
.ctx-menu-item:active {
  transform: scale(0.97);
}

body.dark-theme .ctx-menu-item:active {
  background-color: rgba(255, 255, 255, 0.13);
}

body.light-theme .ctx-menu-item:active {
  background-color: rgba(0, 0, 0, 0.1);
}

/* ── Focus ring (keyboard nav) ── */
.ctx-menu-item:focus-visible {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.6);
}

/* ── Icon wrapper ── */
.ctx-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.12s ease;
}

.ctx-menu-item:hover .ctx-icon {
  opacity: 1;
}

/* ── Dashed divider (matches the screenshot) ── */
.ctx-divider {
  height: 0;
  margin: 5px 12px;
  border: none;
  border-top: 1px dashed;
}

body.dark-theme .ctx-divider {
  border-top-color: rgba(255, 255, 255, 0.15);
}

body.light-theme .ctx-divider {
  border-top-color: rgba(0, 0, 0, 0.15);
}

/* ── "Copied!" flash feedback ── */
.ctx-menu-item.ctx-copied .ctx-label::after {
  content: " ✓";
  color: #10b981;
  font-size: 12px;
  font-weight: 600;
}

/* ── Sound item: dynamic red/green SVG depending on state ── */
/* Unmuted/Active state (option is "Mute sounds") - Red SVG */
body.dark-theme #ctx-sound.ctx-sound-active .ctx-icon,
body.light-theme #ctx-sound.ctx-sound-active .ctx-icon {
  color: #ef4444 !important;
  opacity: 1 !important;
}

/* Muted state (option is "Unmute sounds") - Green SVG */
body.dark-theme #ctx-sound .ctx-icon {
  color: #10b981 !important;
  opacity: 1 !important;
}
body.light-theme #ctx-sound .ctx-icon {
  color: #059669 !important;
  opacity: 1 !important;
}

/* ── Share Modal Overlay ── */
.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.share-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.share-modal-card {
  background: rgba(20, 20, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  padding: 2rem;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #fff;
  text-align: center;
}

body.light-theme .share-modal-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
}

.share-modal-overlay.active .share-modal-card {
  transform: scale(1);
}

.share-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.share-modal-close:hover {
  opacity: 1;
}

.share-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.share-header-icon {
  width: 32px;
  height: 32px;
  filter: invert(1);
}

body.light-theme .share-header-icon {
  filter: none;
}

.share-modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.share-modal-desc {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.share-social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.share-social-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.share-social-item i {
  font-size: 1.2rem;
}

/* X / Twitter */
.share-social-item.twitter {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
body.light-theme .share-social-item.twitter {
  background: rgba(0, 0, 0, 0.03);
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.share-social-item.twitter:hover {
  background: #1da1f2;
  color: #fff;
  transform: translateY(-2px);
}

/* LinkedIn */
.share-social-item.linkedin {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
body.light-theme .share-social-item.linkedin {
  background: rgba(0, 0, 0, 0.03);
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.share-social-item.linkedin:hover {
  background: #0077b5;
  color: #fff;
  transform: translateY(-2px);
}

/* Facebook */
.share-social-item.facebook {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
body.light-theme .share-social-item.facebook {
  background: rgba(0, 0, 0, 0.03);
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.share-social-item.facebook:hover {
  background: #1877f2;
  color: #fff;
  transform: translateY(-2px);
}

/* WhatsApp */
.share-social-item.whatsapp {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
body.light-theme .share-social-item.whatsapp {
  background: rgba(0, 0, 0, 0.03);
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.share-social-item.whatsapp:hover {
  background: #25d366;
  color: #fff;
  transform: translateY(-2px);
}

.share-copy-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

body.light-theme .share-copy-wrapper {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

#share-url-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.6rem 0.8rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: inherit;
  outline: none;
}

.share-copy-button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  padding: 0 1.2rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

body.light-theme .share-copy-button {
  background: rgba(0, 0, 0, 0.05);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.share-copy-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

body.light-theme .share-copy-button:hover {
  background: rgba(0, 0, 0, 0.08);
}

.share-copy-button.copied {
  background: #10b981;
  color: #fff;
}



/* Invert share icon depending on context menu theme */
body.dark-theme .ctx-share-icon {
  filter: invert(1) !important;
}
body.light-theme .ctx-share-icon {
  filter: none !important;
}

/* ── Restore Custom Menu Toast ── */
.restore-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(20, 20, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: #fff;
  z-index: 100001;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

body.light-theme .restore-toast {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

.restore-toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.restore-toast-btn {
  background: #10b981;
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  outline: none;
}

body.light-theme .restore-toast-btn {
  background: #059669;
}

.restore-toast-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

body.light-theme .restore-toast-btn:hover {
  background: #047857;
}

.restore-toast-btn:active {
  transform: scale(0.97);
}

/* Floating Scroll To Top & Bottom Controls */
.floating-scroll-controls {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
}

.floating-scroll-controls.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-icon-float {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.25s, background-color 0.25s, opacity 0.25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scroll-icon-float:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

body.light-theme .scroll-icon-float {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme .scroll-icon-float:hover {
  background: rgba(0, 0, 0, 0.05);
}

.scroll-up-img-float {
  width: 24px;
  height: 24px;
  transform: rotate(180deg);
  display: block;
}

.scroll-down-img-float {
  width: 24px;
  height: 24px;
  transform: rotate(0deg);
  display: block;
}

body.light-theme .scroll-up-img-float,
body.light-theme .scroll-down-img-float {
  filter: invert(1);
}

@media (max-width: 768px) {
  .floating-scroll-controls {
    right: 16px;
    bottom: 16px;
  }
  .scroll-icon-float {
    width: 38px;
    height: 38px;
  }
  .scroll-up-img-float,
  .scroll-down-img-float {
    width: 20px;
    height: 20px;
  }
}

/* Green Paper Cutout Highlight Style for Timeline Cards */
.cutout-highlight-green {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  background-color: #10b981; /* Emerald green */
  color: #ffffff !important; /* High contrast white text */
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  border-radius: 2px;
  transform: rotate(-1.5deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 0.15rem;
}

.cutout-highlight-green:nth-of-type(even) {
  transform: rotate(1.2deg);
}

.cutout-highlight-green:hover {
  transform: scale(1.06) rotate(0deg);
  box-shadow: 3px 3px 0px #000000;
}

/* ==========================================================================
   Thanos Snap Fading Effect
   ========================================================================== */
body.thanos-enabled .thanos-element {
  opacity: 0;
  filter: blur(10px) contrast(1.1);
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), 
              filter 0.8s cubic-bezier(0.5, 0, 0, 1), 
              transform 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: opacity, filter, transform;
}

body.thanos-enabled .thanos-element.thanos-revealed {
  opacity: 1;
  filter: blur(0px) contrast(1);
  transform: translateY(0) scale(1);
}

body.thanos-enabled .thanos-element.thanos-snapped-out-up {
  opacity: 0;
  filter: blur(12px) contrast(1.2);
  transform: translateY(-40px) scale(0.9);
}

body.thanos-enabled .thanos-element.thanos-snapped-out-down {
  opacity: 0;
  filter: blur(12px) contrast(1.2);
  transform: translateY(40px) scale(0.9);
}

/* ══════════════════════════════════════════════════
   CUSTOM SCROLLBARS (SLEEK / HIDDEN)
   ══════════════════════════════════════════════════ */
@media (min-width: 1025px) {
  /* Sleek Scrollbar */
  html.scrollbar-sleek::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background: transparent;
  }
  html.scrollbar-sleek::-webkit-scrollbar-track {
    background: transparent;
  }
  html.scrollbar-sleek::-webkit-scrollbar-thumb {
    background-color: var(--divider-dot-color);
    border-radius: 10px;
    opacity: 0.8;
  }
  html.scrollbar-sleek::-webkit-scrollbar-thumb:hover {
    background-color: var(--close-btn-hover);
  }
  
  /* Firefox Support for Sleek */
  html.scrollbar-sleek {
    scrollbar-width: thin;
    scrollbar-color: var(--divider-dot-color) transparent;
  }

  /* Hidden Scrollbar */
  html.scrollbar-hidden {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  html.scrollbar-hidden::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}

/* ══════════════════════════════════════════════════
   ROCKET & CHECKMARK ANIMATIONS (CONTACT FORM)
   ══════════════════════════════════════════════════ */

/* Rocket Container */
.rocket-container {
  position: absolute;
  bottom: 0;
  right: -60px;
  width: 40px;
  height: 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) rotate(45deg);
  z-index: 100;
}

.rocket-container.launching {
  animation: rocketFly 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes rocketFly {
  0% {
    opacity: 0;
    transform: translateY(20px) translateX(0) rotate(45deg);
  }
  15% {
    opacity: 1;
    transform: translateY(5px) translateX(0) rotate(45deg);
  }
  40% {
    opacity: 1;
    transform: translateY(0px) translateX(0) rotate(45deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-200px) translateX(100px) rotate(45deg) scale(0.5);
  }
}

/* Checkmark SVG Animation */
.success-checkmark {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}
.success-checkmark .check-path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawCheck 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes drawCheck {
  0% {
    stroke-dashoffset: 48;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

