@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600&display=swap');

html {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: auto;
  /* scroll-snap-type: y mandatory; */
  overscroll-behavior-y: auto !important;
}

@media (min-width: 769px) {
  html {
    scroll-behavior: smooth;
  }
}

body,
html,
p,
div,
span,
button,
input,
select,
textarea,
a,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  overflow: visible;
  /* Prevent body from becoming its own scroll container */
  overscroll-behavior-y: auto !important;
}

p {
  font-size: 24px;
  font-family: Helvetica, Arial, sans-serif;
}

.bg {
  background-color: black;
}

.page-sec-wrapper {
  margin: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
  /* Apply top-only drop shadow to the wrapper so it is not clipped by the child's mask-image */
  filter: drop-shadow(0 -15px 30px rgba(255, 255, 255, 0.23));
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.page-sec {
  background-color: #333;
  color: white;
  box-sizing: border-box;
  height: calc(100vh - 40px);
  margin: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
  width: calc(100% - 20px);
  border-radius: 15px;
  padding: 10px 10px 120px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;

  /* Fade out content at the bottom to clear fixed nav bar */
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 100px), transparent 100%);
  mask-image: linear-gradient(to bottom, black calc(100% - 100px), transparent 100%);
}

.page-sec>*:not(.particles-bg) {
  position: relative;
  z-index: 1;
}

.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.center-p {
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
  text-align: center;
}

.content-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

/* ########################################### */

/* support section */

.payment-container {
  max-width: 600px;
  margin: auto;
  font-family: sans-serif;
  margin-top: 0px;
}

#sk-direct {

  padding: 12px 25px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

#support-qr,
#support-bkash-qr {
  /* width: 100%; */
  min-width: 150px;
  max-width: 200px;
  padding: 15px;
  /* background: #ffdd00; */
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  /* margin-left: 16%; */

}

.support-heading {
  font-size: medium;
  text-align: center;
  color: rgba(255, 255, 255, 0.568);
  margin-top: 50px;
  /* margin-bottom: -40px; */
}

.support-p {
  margin: auto;
  font-size: small;
  text-align: center;
  color: rgba(255, 255, 255, 0.568);
}

.support-img {

  max-width: 100%;
  height: auto;
  max-height: 300px;
  border-radius: 10px;
  /* padding-top: -100px; */
}

.support-img-div {
  text-align: center;
  border-top: none;
  /* margin-top: 20px; */


}

.support-qr-div {

  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

/* ########################################### */

/* blog.html */

.mirror-link,
.mirror-link-2 {
  color: rgb(67, 202, 255);
  transition: 0.2s ease-in-out;
}

.mirror-link:hover,
.mirror-link a:hover {
  color: black;
}

.mirror-link-2:hover {
  color: white;
}

/* ########################################### */

#intro,
#resources,
#certifications,
#blood-donation,
#projects,
#interests,
#useful-tools,
#support,
#social {
  scroll-margin-top: 20px;
}



/* Arcing Carousel Container */
.nav-carousel-container {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 450px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  /* Let clicks pass through outside the interactive cards */
  padding-top: 15px;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* Viewport for the arcing cards */
.nav-carousel-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 150px;
  margin-bottom: -50px;
  overflow: visible;
  pointer-events: auto;
  /* Horizontal fade mask, centered so tooltips below/above aren't clipped */
  mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
  mask-size: 100% 500%;
  -webkit-mask-size: 100% 500%;
  mask-position: center center;
  -webkit-mask-position: center center;
}

/* Bottom overlay removed — was causing a dark bar */

/* The moving track */
.nav-carousel-track {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  cursor: grab;
  touch-action: pan-y;
}

.nav-carousel-track:active {
  cursor: grabbing;
}

/* Cards (Nav items) */
.nav-carousel-card {
  position: absolute;
  left: 50%;
  top: 32px;
  /* Sits nicely in the viewport */
  width: 38px;
  height: 38px;
  /* Center alignment */
  text-decoration: none;
  cursor: pointer;
  z-index: 2;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity;
}

/* Inner content wrapper to allow hover scaling without affecting absolute coordinates */
.nav-carousel-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}


.nav-carousel-card:hover .nav-carousel-card-inner {
  background: #2c2c2e;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.nav-carousel-card.active .nav-carousel-card-inner {
  background: #1c1c1e;
  border-color: #ffdd00;
  color: #ffdd00;
  box-shadow: 0 0 15px rgba(255, 221, 0, 0.4);
}

/* Wavy Highlight Animation on First Load */
@keyframes navWavyHighlight {
  0% {
    transform: translateY(0) scale(1);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
  40% {
    transform: translateY(calc(-8px * var(--wave-lift, 1))) scale(var(--wave-scale, 1.2));
    border-color: #ffdd00;
    box-shadow: 0 0 14px rgba(255, 221, 0, 0.8), 0 8px 20px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    background: #3a3a3c;
  }
  100% {
    transform: translateY(0) scale(1);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
}

.nav-carousel-card-inner.wavy-highlight {
  animation: navWavyHighlight 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}


/* Arrowhead indicator showing during scrolling */
.nav-carousel-arrowhead {
  position: absolute;
  top: 14px;
  /* Align above center card top */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #ffdd00c0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-carousel-container.scrolling .nav-carousel-arrowhead {
  opacity: 1;
}


/* Tooltip for the Carousel Cards */
.nav-carousel-card::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  text-transform: capitalize;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.nav-carousel-card:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Portfolio text styled clean at the bottom */
.nav-portfolio-text {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: 100%;
  text-align: center;
  padding: 2px 0 10px 0;
  background: transparent;
  /* Transparent background to avoid black blocking bar */
}

.nav-portfolio-text p,
.nav-portfolio-text i {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  margin: 0;
  font-family: sans-serif;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .nav-carousel-container {
    max-width: 250px;
  }

  .intro-start {
    margin-top: 10vh !important;
  }
}

/* Social Grid Styling */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.social-grid .a-1,
.social-grid .tooltip-D {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
}

.social-grid .a-1:hover,
.social-grid .tooltip-D:hover {
  transform: translateY(-5deg) scale(1.1);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-grid i {
  color: #fff;
}

/* Tooltip for Socials (Simple version) */
.tooltip-D {
  position: relative;
  cursor: pointer;
}

.tooltiptext-DR {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff4757;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}

.tooltip-D:hover .tooltiptext-DR {
  opacity: 1;
  visibility: visible;
}

/* Support Section Payment List */
.payment-list {
  display: flex;
  gap: 10px;
  justify-content: center;
}

@media (max-width: 600px) {
  .payment-list {
    flex-direction: column;
    align-items: center;
  }
}

/* ########################################### */
/* SKILLS SECTION - TABLE LAYOUT (Dark Theme) */

.skills-table {
  max-width: 800px;
  margin: 0 auto;
  background: #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 1px solid #444;
}

.skill-row {
  display: flex;
  border-bottom: 1px solid #444;
  transition: background-color 0.2s ease;
}

.skill-row:last-child {
  border-bottom: none;
}

.skill-row:hover {
  background-color: #333;
}

.skill-category {
  width: 35%;
  padding: 20px 25px;
  background-color: #222;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  border-right: 1px solid #444;
}

.skill-list {
  width: 65%;
  padding: 20px 25px;
  color: #ccc;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

@media screen and (max-width: 600px) {
  .skill-row {
    flex-direction: column;
  }

  .skill-category {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #444;
    padding: 15px 20px;
    background-color: #1a1a1a;
    box-sizing: border-box;
  }

  .skill-list {
    width: 100%;
    padding: 15px 20px;
    box-sizing: border-box;
  }
}

/* ########################################### */
/* INTERACTIVE SKILL TREE STYLES */

.skill-tree-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 580px;
  margin: 30px auto;

  /* margin-top: -100px !important; */
  /* border-radius: 16px; */
  /* background: radial-gradient(circle at center, #1b2230 0%, #0d1117 100%); */
  /* background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 0); */
  background-size: 24px 24px;
  /* border: 1px solid rgba(255, 255, 255, 0.08); */
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); */
  overflow: hidden;
  user-select: none;
}

.skill-tree-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.skill-tree-nodes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Base Skill Node */
.skill-node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(18, 22, 30, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  pointer-events: auto;
  border-radius: 50% !important;
  overflow: visible;
  transition:
    left 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    top 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.5s ease,
    transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1.4),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
  z-index: 5;
}

/* Node sizes based on depth */
.skill-node.node-depth-0 {
  width: 24px;
  height: 24px;
}

.skill-node.node-depth-1 {
  width: 16px;
  height: 16px;
}

.skill-node.node-depth-2 {
  width: 10px;
  height: 10px;
  cursor: default;
}

.skill-node:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

.skill-node.node-depth-2:hover {
  transform: translate(-50%, -50%);
  /* no hover scale on leaf nodes */
}

/* Shift active nodes to the right when branches are in view */
.skill-tree-container.branches-visible .skill-node:not(.node-hidden):not(.node-faded) {
  transform: translate(0%, -50%);
}

.skill-tree-container.branches-visible .skill-node:not(.node-hidden):not(.node-faded):hover {
  transform: translate(0%, -50%) scale(1.2);
}

.skill-tree-container.branches-visible .skill-node.node-depth-2:not(.node-hidden):not(.node-faded):hover {
  transform: translate(0%, -50%);
}

/* Node Text Content styling positioned underneath the circular node */
.skill-node-text {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.skill-node-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.node-depth-0 .skill-node-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.03em;
}

.node-depth-1 .skill-node-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.node-depth-2 .skill-node-title {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.skill-node-details {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 3px;
  font-weight: 400;
  max-width: 160px;
  line-height: 1.2;
}

/* Branch specific styling (Colors & Glows) */
/* Game Dev (Green/Teal) */
.skill-node.branch-game {
  border-color: rgba(0, 255, 170, 0.4);
  background: rgba(0, 255, 170, 0.12);
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.1), inset 0 0 5px rgba(0, 255, 170, 0.1);
}

.skill-node.branch-game:hover,
.skill-node.branch-game.active-focus {
  border-color: rgba(0, 255, 170, 0.95);
  background: rgba(0, 255, 170, 0.25);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.4), inset 0 0 10px rgba(0, 255, 170, 0.2);
}

.skill-node.branch-game:hover .skill-node-title,
.skill-node.branch-game.active-focus .skill-node-title {
  color: #00ffaa !important;
}

/* Web Dev (Cyan/Blue) */
.skill-node.branch-web {
  border-color: rgba(0, 210, 255, 0.4);
  background: rgba(0, 210, 255, 0.12);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.1), inset 0 0 5px rgba(0, 210, 255, 0.1);
}

.skill-node.branch-web:hover,
.skill-node.branch-web.active-focus {
  border-color: rgba(0, 210, 255, 0.95);
  background: rgba(0, 210, 255, 0.25);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4), inset 0 0 10px rgba(0, 210, 255, 0.2);
}

.skill-node.branch-web:hover .skill-node-title,
.skill-node.branch-web.active-focus .skill-node-title {
  color: #00d2ff !important;
}

/* Archivist (Gold/Yellow) */
.skill-node.branch-archive {
  border-color: rgba(255, 221, 0, 0.4);
  background: rgba(255, 221, 0, 0.12);
  box-shadow: 0 0 10px rgba(255, 221, 0, 0.1), inset 0 0 5px rgba(255, 221, 0, 0.1);
}

.skill-node.branch-archive:hover,
.skill-node.branch-archive.active-focus {
  border-color: rgba(255, 221, 0, 0.95);
  background: rgba(255, 221, 0, 0.25);
  box-shadow: 0 0 20px rgba(255, 221, 0, 0.4), inset 0 0 10px rgba(255, 221, 0, 0.2);
}

.skill-node.branch-archive:hover .skill-node-title,
.skill-node.branch-archive.active-focus .skill-node-title {
  color: #ffdd00 !important;
}

/* System Design (Purple/Pink) */
.skill-node.branch-sys {
  border-color: rgba(224, 86, 253, 0.4);
  background: rgba(224, 86, 253, 0.12);
  box-shadow: 0 0 10px rgba(224, 86, 253, 0.1), inset 0 0 5px rgba(224, 86, 253, 0.1);
}

.skill-node.branch-sys:hover,
.skill-node.branch-sys.active-focus {
  border-color: rgba(224, 86, 253, 0.95);
  background: rgba(224, 86, 253, 0.25);
  box-shadow: 0 0 20px rgba(224, 86, 253, 0.4), inset 0 0 10px rgba(224, 86, 253, 0.2);
}

.skill-node.branch-sys:hover .skill-node-title,
.skill-node.branch-sys.active-focus .skill-node-title {
  color: #e056fd !important;
}

/* Content (Orange/Red) */
.skill-node.branch-content {
  border-color: rgba(255, 122, 0, 0.4);
  background: rgba(255, 122, 0, 0.12);
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.1), inset 0 0 5px rgba(255, 122, 0, 0.1);
}

.skill-node.branch-content:hover,
.skill-node.branch-content.active-focus {
  border-color: rgba(255, 122, 0, 0.95);
  background: rgba(255, 122, 0, 0.25);
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.4), inset 0 0 10px rgba(255, 122, 0, 0.2);
}

.skill-node.branch-content:hover .skill-node-title,
.skill-node.branch-content.active-focus .skill-node-title {
  color: #ff7a00 !important;
}

/* Inactive/Hidden/Faded classes */
.skill-node.node-faded {
  opacity: 0.08;
  pointer-events: none;
}

.skill-node.node-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Connecting Paths */
.skill-tree-path {
  fill: none;
  stroke-width: 2.5px;
  stroke-linecap: round;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.skill-tree-path.path-visible {
  opacity: 0.6;
}

/* Colored paths with subtle flow animation */
.skill-tree-path.path-game {
  stroke: #00ffaa;
  filter: drop-shadow(0 0 3px rgba(0, 255, 170, 0.4));
  stroke-dasharray: 6 4;
  animation: skill-path-flow 2s linear infinite;
}

.skill-tree-path.path-web {
  stroke: #00d2ff;
  filter: drop-shadow(0 0 3px rgba(0, 210, 255, 0.4));
  stroke-dasharray: 6 4;
  animation: skill-path-flow 2s linear infinite;
}

.skill-tree-path.path-archive {
  stroke: #ffdd00;
  filter: drop-shadow(0 0 3px rgba(255, 221, 0, 0.4));
  stroke-dasharray: 6 4;
  animation: skill-path-flow 2s linear infinite;
}

.skill-tree-path.path-sys {
  stroke: #e056fd;
  filter: drop-shadow(0 0 3px rgba(224, 86, 253, 0.4));
  stroke-dasharray: 6 4;
  animation: skill-path-flow 2s linear infinite;
}

.skill-tree-path.path-content {
  stroke: #ff7a00;
  filter: drop-shadow(0 0 3px rgba(255, 122, 0, 0.4));
  stroke-dasharray: 6 4;
  animation: skill-path-flow 2s linear infinite;
}

@keyframes skill-path-flow {
  from {
    stroke-dashoffset: 20;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* Control elements */
.skill-tree-back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(18, 22, 30, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.skill-tree-back-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.skill-tree-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.skill-tree-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: 'Outfit', 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.4s ease;
}

.skill-tree-hint.hidden {
  opacity: 0;
}

/* ########################################### */
/* DARK THEME OVERRIDES FOR OTHER SECTIONS */

/* Intro Section */
.hoverEffectonHeader {
  background-color: #222;
  border-left: 5px solid #444;
  border-right: 5px solid #444;
  padding: 1rem 2rem;
  border-radius: 12px;
}

.hoverEffectonHeader:hover {
  background-color: #2a2a2a;
  border-color: #555;
}

.bio-box {
  background-color: #222;
  padding: 1.5rem;
  border-radius: 15px;
  margin: 10px;
  border: 1px solid #333;
}

.CV {
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid #444;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.CV:hover {
  background-color: #333;
  border-color: #666;
}

/* Resources & Online Judge */
.box-highlighter {
  background-color: #222;
  border: 1px solid #333;
  border-radius: 15px;
}

.link-button {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 20px 0;
}

.link-button a,
.link-button .tooltip-D,
.a-1,
.a-alt,
.a-3 {
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  padding: 15px 25px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  transition: 0.3s;
  display: inline-block;
}

.link-button a:hover,
.link-button .tooltip-D:hover,
.a-1:hover,
.a-alt:hover,
.a-3:hover {
  background-color: #3a3a3a;
  border-color: #666;
  transform: translateY(-2px);
}

/* Blood Donation Section */
.blood-donation-section {
  /* background-color: #ffffff11; */
  backdrop-filter: blur(3px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid #333;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.219); */
  margin-top: 10vh !important;
}

.blood-status {
  padding: 15px 25px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 15px 0;
  display: inline-block;
}

.status-ready {
  background-color: #0d2d24;
  color: #4ade80;
  border: 1px solid #166534;
}

.status-replenishing {
  background-color: #2d0d0d;
  color: #f87171;
  border: 1px solid #7f1d1d;
}

/* Projects Section */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* gap: 25px; */
  padding: 20px 0;
  place-items: center;
}

.project-box {
  /* background-color: #222; */
  padding: 20px 0 0 0;
  border-radius: 20px;
  border: 1px solid #333;
  transition: 0.3s;
  text-align: center;
}

.project-box:hover {
  /* background-color: #2a2a2a; */
  /* border-color: #444; */
  transform: translateY(-5px);
}

.project-caption {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 15px;
  display: block;
}

#education {
  overflow: visible !important;
}

.education-wrapper {
  position: relative;
  height: 600px;
  width: 100%;
  margin: -10px auto;
}

@media (max-width: 600px) {
  .education-wrapper {
    height: 380px;
    margin: -20px auto;
    overflow-x: clip;
  }

  .education-link,
  .edu-item {
    animation: none !important;
  }

  .education-link {
    transform-style: flat !important;
  }

  .edu-item {
    transform: none !important;
  }

  .edu-item[style*="--index: 0"] {
    margin-left: 40px;
    margin-top: -40px;
  }

  .edu-item[style*="--index: 1"] {
    margin-left: 34px;
    margin-top: 49px;
  }

  .edu-item[style*="--index: 2"] {
    margin-left: -58px;
    margin-top: 83px;
  }

  .edu-item[style*="--index: 3"] {
    margin-left: -124px;
    margin-top: 0px;
  }

  .edu-item[style*="--index: 4"] {
    margin-left: -76px;
    margin-top: -132px;
  }

  /* New stationary coordinate for the 6th item */
  .edu-item[style*="--index: 5"] {
    margin-left: 90px;
    margin-top: -156px;
  }
}

.education-link {
  margin-top: -180px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Rotate the entire container */
  animation: rotateContainer 30s linear infinite;
  transform-style: preserve-3d;
}

.education-link:hover,
.education-link:hover .edu-item,
.education-link:has(.tooltip.active),
.education-link:has(.tooltip.active) .edu-item {
  animation-play-state: paused;
}

.edu-item {
  position: absolute;
  /* Index based spiral parameters */
  --angle: calc(var(--index) * 60deg);
  --radius: calc(var(--index) * 45px + 60px);

  left: 50%;
  top: 50%;
  transform: rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle)));

  /* Animation to keep item upright as container spins CCW */
  animation: uprightCounter 30s linear infinite;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
  z-index: 10;
}

@media (max-width: 600px) {
  .edu-item {
    --radius: calc(var(--index) * 28px + 40px);
  }
}

.edu-item:hover {
  z-index: 200;
}

@keyframes rotateContainer {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

@keyframes uprightCounter {
  from {
    transform: rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle) + 0deg));
  }

  to {
    transform: rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle) + 360deg));
  }
}

.edu-graph-svg {
  z-index: 5;
  filter: drop-shadow(0 0 5px rgba(79, 199, 255, 0.3));
}

#eduSpiralPath {
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
}

.education-link .tooltip {
  position: relative;
  display: inline-block;
  background-color: #2a2a2a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #444;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  width: fit-content;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.education-link .tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px;
  /* Bridge gap between trigger and tooltip */
  display: none;
}

.node-label {
  display: inline-block;
}

@keyframes nodeShake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-1px);
  }

  50% {
    transform: translateX(1px);
  }

  75% {
    transform: translateX(-1px);
  }
}

@media (max-width: 600px) {
  .education-link .tooltip:hover .node-label {
    animation: nodeShake 0.5s ease-in-out infinite;
  }
}

.education-link .tooltip:hover::after {
  display: block;
}

.education-link .tooltip:hover {
  background-color: #3a3a3a;
  border-color: #666;
}

/* General Tooltip Text (Dark Mode) */
.tooltip .tooltiptext-D,
.tooltip .tooltiptext-DR {
  visibility: hidden;
  opacity: 0;
  width: 250px;
  background-color: #3f3434 !important;
  color: #fff !important;
  text-align: center;
  border-radius: 10px;
  padding: 1rem;
  position: absolute;
  z-index: 100;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 1.3s ease, transform 0.4s ease, visibility 0s 1.3s;
  border: 1px solid #333 !important;
  pointer-events: auto;
  /* Allow hovering on details */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  cursor: auto
}

.tooltip:hover .tooltiptext-D,
.tooltip:hover .tooltiptext-DR,
.tooltip.active .tooltiptext-D,
.tooltip.active .tooltiptext-DR {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

/* Institutional Link Styling */
.tooltip-link5 {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.tooltip-link5 a {
  color: #4fc7ff;
  text-decoration: none;
}

.tooltip-link5:hover {
  background: rgba(79, 199, 255, 0.1);
  border-color: #4fc7ff;
}

.mirror-link-2 {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  color: #4fc7ff;
  text-decoration: none;
  margin-top: 5px;
}

.mirror-link-2:hover {
  background: rgba(79, 199, 255, 0.2);
  border-color: #4fc7ff;
  color: #fff;
}

/* Mobile Alignment */
@media screen and (max-width: 600px) {

  .education-link {
    margin-top: -100px;
  }

  .tooltip .tooltiptext-D {
    position: fixed;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 80%;
    max-width: 300px;
    z-index: 2000;
  }

  .tooltip:hover .tooltiptext-D,
  .tooltip.active .tooltiptext-D {
    transform: translate(-50%, -50%) scale(1);
  }

  .edu-item {
    gap: 5px;
  }
}


.duck-gif {
  /* padding: 0; */
  /* display: none; */
  /* max-width: 80px; */
  width: 90%;
  max-width: 250px;
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 50px;

}

.duck-gif:hover {
  cursor: pointer;
  transition: .5s ease;
  /* padding: 20px; */
  /* max-width: 200px; */
  /* border: 1px solid rgba(0, 0, 0, 0.075); */
  border-radius: 20px;
  box-shadow: 10px 10px 10px 1px rgba(0, 0, 0, 0.068);
  /* position: sticky; */
}

.shake:hover {
  display: inline-block;
  animation: shake .5s ease-in-out;
}

/* Define the spiral orbit animation */
@keyframes orbit {
  from {
    transform: rotate(var(--init-angle)) translateX(var(--radius)) rotate(calc(-1 * var(--init-angle)));
  }

  to {
    transform: rotate(calc(var(--init-angle) + 360deg)) translateX(var(--radius)) rotate(calc(-1 * (var(--init-angle) + 360deg)));
  }
}

/* Ensure tooltips are readable */
.tooltip .tooltiptext-D {
  z-index: 999 !important;
  /* Fix for counter-rotation in tooltips - they inherit parent's transform but we want them upright */
  /* This can be complex depending on browser, but usually visibility is enough. */
}

/* Define more keyframes if needed... */
@keyframes shake {
  0% {
    transform: translateX(0);
  }

  10% {
    transform: translateX(-20px);
  }

  20% {
    transform: translateX(-20px);
  }

  25% {
    transform: translateX(0px);
  }

  30% {
    transform: translateX(5px);
  }

  40% {
    transform: translateX(5px);
  }

  60% {
    transform: translateX(-2px);
  }

  80% {
    transform: translateX(2px);
  }

  100% {
    transform: translateX(0);
  }
}

/* ############################################################# */
/* BLOOD DONATION SECTION */

.custom-div-1 {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.blood-animation-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  margin-bottom: 1rem;
}

.high-five-animation {
  display: none;
  justify-content: center;
  align-items: center;
  animation: highFiveWave 1.5s ease-in-out infinite;
}

.high-five-animation .hand {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes highFiveWave {

  0%,
  100% {
    transform: rotate(-15deg) scale(1);
  }

  25% {
    transform: rotate(15deg) scale(1.1);
  }

  50% {
    transform: rotate(-10deg) scale(1.05);
  }

  75% {
    transform: rotate(10deg) scale(1.1);
  }
}

/* Blood Flow Animation (Currently Replenishing) */
.blood-flow-animation {
  display: none;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  height: 60px;
  overflow: hidden;
}

.blood-drop {
  width: 12px;
  height: 14px;
  background: linear-gradient(180deg, #c41e3a 0%, #8b0000 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  animation: bloodDrop 1.8s ease-in-out infinite;
  box-shadow:
    0 2px 8px rgba(139, 0, 0, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 100, 100, 0.3);
}

.blood-drop::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #af1932;
}

.blood-drop:nth-child(1) {
  animation-delay: 0s;
}

.blood-drop:nth-child(2) {
  animation-delay: 0.6s;
}

.blood-drop:nth-child(3) {
  animation-delay: 1.2s;
}

@keyframes bloodDrop {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateY(60px);
    opacity: 0;
  }
}

/* Blood Info Container */
.blood-info-container {
  margin: 15px;
  color: #5a1a1a;
  font-size: 0.9rem;
  text-align: center;
}

.blood-group-info {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #3d0c0c;
}

.blood-type {
  color: #ff002b;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(196, 30, 58, 0.3);
}

/* Status Display */
.blood-status {
  padding: 12px 24px;
  border-radius: 30px;
  display: inline-block;
  margin: 1rem auto;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.status-ready {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white !important;
  box-shadow:
    0 4px 15px rgba(40, 167, 69, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: readyPulse 2s ease-in-out infinite;
}

@keyframes readyPulse {

  0%,
  100% {
    box-shadow:
      0 4px 15px rgba(40, 167, 69, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  50% {
    box-shadow:
      0 4px 25px rgba(40, 167, 69, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

.status-replenishing {
  background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
  color: white !important;
  box-shadow:
    0 4px 15px rgba(220, 53, 69, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.status-text {
  letter-spacing: 0.5px;
}

/* Last Donation Date */
.last-donation-date {
  font-size: 0.95rem;
  color: #ffffff;
  margin: 0.8rem 0;
  font-weight: 500;
}

/* Blood Note */
.blood-note {
  background: rgba(226, 166, 166, 0.08);
  padding: 1rem;
  border-radius: 10px;
  border-left: 4px solid #ff4f6c;
  margin-top: 1rem;
  text-align: left;
  font-size: 0.85rem;
  color: #fcf9f9;
  line-height: 1.6;
}

.blood-note b {
  color: #ffffff;
}

/* Contact Links in Blood Section */
.blood-donation-section .tooltip {
  color: #c41e3a;
  border-bottom: 1px dashed #c41e3a;
  transition: all 0.2s ease;
}

.blood-donation-section .tooltip:hover {
  color: #8b0000;
  border-bottom-color: #8b0000;
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
  .custom-div-1 {
    flex-direction: column;
    gap: 0;
  }

  .blood-donation-section {
    padding: 1.5rem 1rem;
    margin: 0 10px;
  }

  .blood-group-info {
    font-size: 1.1rem;
  }

  .blood-status {
    padding: 10px 18px;
    font-size: 1rem;
  }

  .high-five-animation .hand {
    font-size: 2.8rem;
  }
}




/* --- Blood Donation Improved Layout & Style Updates --- */
.blood-donation-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.blood-donation-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.blood-donation-layout .blood-donation-section {
  margin-top: 0 !important;
}

/* Sidebar styling (Desktop only by default override) */
.blood-donation-sidebar {
  display: none;
  /* hidden on mobile/tablet */
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  align-self: center;
}

.sidebar-image-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  /* Fade out right edge */
  mask-image: linear-gradient(to left, transparent, black 100px);
  -webkit-mask-image: linear-gradient(to left, transparent, black 100px);
}

.sidebar-image {
  height: 60vh;
  width: auto;
  object-fit: contain;
  border-radius: 50px;
  /* border: 1px solid rgba(255, 255, 255, 0.1); */
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  /* Fade out bottom edge */
  mask-image: linear-gradient(to top, transparent, black 100px);
  -webkit-mask-image: linear-gradient(to top, transparent, black 100px);
}

.sidebar-image:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

/* Image 1 bobbing and tooltips */
.blood-ready-img {
  max-width: 120px;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.blood-ready-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

/* Bobbing animation for Image 1 when Ready to Donate */
@keyframes bobbing {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.high-five-animation {
  animation: bobbing 3s ease-in-out infinite !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blood-img-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Tooltips */
.blood-img-tooltip,
.sidebar-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.blood-img-tooltip::after,
.sidebar-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(26, 26, 26, 0.95) transparent transparent transparent;
}

/* Show tooltip on hover */
.blood-img-wrapper:hover .blood-img-tooltip,
.sidebar-image-wrapper:hover .sidebar-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Keep tooltip visible on copy success */
.blood-img-wrapper.copy-success .blood-img-tooltip,
.sidebar-image-wrapper.copy-success .sidebar-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Clickable Status Button ready state cursor */
.status-ready {
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-ready:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 6px 20px rgba(40, 167, 69, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.status-ready:active {
  transform: translateY(1px) scale(0.98);
}

/* Dropdown Menu styling */
.blood-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  margin-top: 10px;
  overflow: hidden;
  padding: 5px 0;
  animation: dropdownFadeIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.blood-dropdown-menu a {
  padding: 10px 18px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: left;
}

.blood-dropdown-menu a i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.blood-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffdd00;
}

/* History table styling */
#blood-history-table {
  overflow-x: auto;
  width: 100%;
}

#blood-history-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

#blood-history-table th,
#blood-history-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

#blood-history-table th {
  background: rgba(255, 255, 255, 0.06);
  color: #ff4d5a;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

#blood-history-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

#blood-history-table tr:last-child td {
  border-bottom: none;
}

#blood-history-table td {
  color: rgba(255, 255, 255, 0.85);
}

/* Desktop Sidebar display overlay */
@media screen and (min-width: 992px) {
  .blood-donation-layout {
    display: block;
    max-width: 800px;
    margin: 0 auto;
  }

  .blood-donation-main {
    width: 100%;
  }

  .blood-donation-sidebar {
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    z-index: 10;
  }
}

/* --- Blood Donation Section Light Theme & Red Abstract Graphics --- */
#blood-donation {
  background-color: #fdfbfb !important;
  background-image:
    repeating-linear-gradient(45deg, rgba(220, 53, 69, 0.012) 0px, rgba(220, 53, 69, 0.012) 2px, transparent 2px, transparent 10px),
    radial-gradient(circle at 80% 20%, rgba(220, 53, 69, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 15% 85%, rgba(220, 53, 69, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(220, 53, 69, 0.02) 0%, transparent 60%) !important;
  color: #2b2b2b !important;
  /* Dark vignette border blend */
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.35),
    inset 0 0 150px rgba(0, 0, 0, 0.2) !important;
}

/* Hide particles inside this light section to keep clean */
#blood-donation canvas {
  display: none !important;
}

#blood-donation h2 {
  color: #1a1a1a !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Card styling overrides for light theme contrast */
#blood-donation .blood-donation-section {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 53, 69, 0.15) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
}

#blood-donation .blood-group-info {
  color: #1a1a1a !important;
}

#blood-donation .blood-type {
  background-color: #fff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(220, 53, 69, 0.1) !important;
}

#blood-donation .last-donation-date {
  color: #4a4a4a !important;
}

#blood-donation .blood-note {
  background: rgba(220, 53, 69, 0.04) !important;
  border-left-color: #dc3545 !important;
  color: #333 !important;
  box-shadow: inset 0 0 10px rgba(220, 53, 69, 0.01);
}

#blood-donation .blood-note b {
  color: #b01a2e !important;
}

#blood-donation #contact-message {
  color: #333 !important;
}

#blood-donation #contact-message a {
  color: #dc3545 !important;
  border-bottom: 1px dashed rgba(220, 53, 69, 0.4);
}

#blood-donation #contact-message a:hover {
  color: #bd2130 !important;
  border-bottom-color: #bd2130;
}

#blood-donation .blood-history-section h3 {
  color: #1a1a1a !important;
}

/* Dropdown Menu Light Theme Override */
#blood-donation .blood-dropdown-menu {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(220, 53, 69, 0.15) !important;
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.08) !important;
}

#blood-donation .blood-dropdown-menu a {
  color: #333 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

#blood-donation .blood-dropdown-menu a:last-child {
  border-bottom: none;
}

#blood-donation .blood-dropdown-menu a:hover {
  background: rgba(220, 53, 69, 0.05) !important;
  color: #dc3545 !important;
}

/* History Table Light Theme Override */
#blood-donation #blood-history-table table {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(220, 53, 69, 0.1) !important;
}

#blood-donation #blood-history-table th {
  background: rgba(220, 53, 69, 0.05) !important;
  color: #dc3545 !important;
  border-bottom: 2px solid rgba(220, 53, 69, 0.15) !important;
  text-shadow: none;
}

#blood-donation #blood-history-table td {
  color: #333 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

#blood-donation #blood-history-table tr:hover td {
  background: rgba(220, 53, 69, 0.02) !important;
  color: #000 !important;
}

/*BOTTOM BAR CSS*/

.navbar-5 {
  overflow-x: auto !important;
  position: fixed;
  bottom: -5px;
  left: 0;
  width: -webkit-fit-available !important;

  background-color: #33333300;
  color: white;
  text-align: center;
  padding: 10px 0px 15px 0px;
  box-sizing: border-box;
  z-index: 1000;
}

.navbar-5 p {
  margin: 0;
  white-space: normal;
  word-wrap: break-word;
}

/* Extracted from old.styles.css */
/* -------------------------------------------------------- */

/* * 1. The Container Fix:
         * We add `position: relative` to the parent container.
         * This establishes a "stacking context". Now, the z-index of its children 
         * (.my-div, .left-space, .right-space) will be contained and ordered within this parent.
         * It also becomes the positioning reference for its `position: absolute` children.
        */


#CV {

  margin-top: 10vh;

}

.container {

  position: relative;
  background-color: #FAF9F6;
  border-radius: 20px;
  overflow: hidden;

  /* background-color: #FAF9F6; */
  margin: 15px;
  border-radius: 20px;
  margin-top: 20px;
  margin-bottom: 40px;

}

/* * 2. The Center Div Fix:
         * - `position: relative` keeps it in the normal document flow, so `margin: auto` can center it.
         * - `z-index: 2` places it on the highest layer.
         * - A `background-color` is crucial. Without it, this div would be transparent, 
         * and you'd see the side spaces right through it.
        */
.my-div {

  position: relative;
  z-index: 2;
  max-width: 1000px;
  /* margin: auto; */
  background-color: #FAF9F6;
  box-shadow:
    -4px 0px 5px -4px rgba(0, 0, 0, 0.3),
    4px 0px 5px -4px rgba(0, 0, 0, 0.3);


  margin: auto;
  padding-left: 2%;
  padding-right: 2%;
  margin-bottom: -20px;
  margin-top: -20px;

}

.page-border {

  background-color: #333;
  width: -webkit-fit-available !important;


}

/* -----------------------------------------------------------------  */
/* TOOTLTIP TEXT FOR LINK. see shortcut.html*/

.tooltip .tooltip-link1,
.tooltip .tooltip-link2,
.tooltip .tooltip-link3,
.tooltip .tooltip-link4,
.tooltip .tooltip-link5 {

  visibility: hidden;
  color: #ffffff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  margin-left: -60px;
  transition: .3s;
  visibility: 1s;
  opacity: 0;

}

.tooltip .tooltip-link1 {

  top: -0.5rem;
  right: -4rem;

}

.tooltip .tooltip-link2 {

  top: -0.5rem;
  right: -8rem;

}

.tooltip .tooltip-link3 {


  top: 1.5rem;
  right: -4rem;

}

.tooltip:hover .tooltip-link1,
.tooltip:hover .tooltip-link2,
.tooltip:hover .tooltip-link3,
.tooltip:hover .tooltip-link4,
.tooltip:hover .tooltip-link5 {

  visibility: visible;
  opacity: 1;


}

.link-hover {

  position: relative;
  display: inline-block;
  transition: 0.1s ease;
  text-decoration: none;

}

.link-hover:hover {

  transform: translateY(-3px);

}

.a-4 {

  text-decoration: none;
  color: rgba(0, 0, 0, 0.999);
  background-color: rgba(0, 0, 0, 0.043);
  padding: 6px;
  border-radius: 5px;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.364);
  min-width: 200px !important;


}

.a-4:hover {

  color: #3F72AF;
  font-size: 18px;

}

/* -----------------------------------------------------------------  */
/* -----------------------------------------------------------------  */
/* BUTTONS */
/* -----------------------------------------------------------------  */
/* -----------------------------------------------------------------  */

/* Hamburger Menu Icon Styling */
.hamburger-menu {

  position: fixed;
  bottom: 55px;
  right: 80px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background-color: #007bff;
  padding: 5px;
  border-radius: 50px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);


  /* -moz-user-select: none; */
  /* -ms-user-select: none; */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  /* -webkit-user-select: none; */
  /* user-select: none; */
  /* -khtml-user-select: none; */


}

.hamburger-menu .bar {

  width: 70%;
  margin: auto;
  height: 4px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  /* padding: -1px; */


}

/* Sidebar Styling */
.sidebar {

  position: fixed;
  bottom: 160px;
  right: 30px;
  width: 250px;
  max-height: 50vh;
  background-color: #f4f4f4;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  transform: translateY(180%);
  transition: transform 0.4s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(0, 0, 0, 0.841);

}

.sidebar.active {

  transform: translateY(0%);

}

.sidebar-header {

  padding-bottom: 5px;
  margin-top: -10px;
  background-color: #1d89fd;
  color: white;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;

}

.sidebar-header h3 {

  margin: 0;
  font-size: 1.2em;
  color: white;
  text-shadow: 1px 1px 5px black;
  text-align: center;
  /* padding-left: 5%; */


}

.sidebar-header p {

  margin: 0;
  font-size: 0.5em;
  color: white;
  text-shadow: 1px 1px 10px black;
  text-align: center;
  /* padding-left: 5%; */


}

.sidebar-nav {

  list-style: none;
  padding: 15px 0;
  margin: 0;

}

.sidebar-nav li {

  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.084);

}

.sidebar-nav a {

  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s;
  border-left: 1px solid rgba(0, 0, 0, 0.084);
  margin-left: 20px;

}

.sidebar-nav a:hover {

  background-color: #ddd;

}

.sidebar-nav .submenu-item a {

  padding-left: 40px;

}

/* ----------------------------------------------------------- */
/* HOME BUTTON */

.home-button,
.home-button-T,
.home-button-B {

  z-index: 100;

  position: fixed;
  /* bottom: 65px;
  right: 20px; */

  background-color: #007bff;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s;

  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  /* -webkit-user-select: none; */
  /* user-select: none; */
  outline: none;


}

.home-button-T {

  top: 30px;

}

.home-button-B {

  display: none;

}

/* Add rules for all link states to maintain the same color */
.home-button:link,
.home-button:visited,
.home-button:active,
.home-button:focus {

  color: #ffffff;
  outline: none;

}

.home-button:hover {

  background-color: #0056b3;
  transform: scale(1.1);

}

.home-icon {

  width: 30px;
  height: 30px;

}

/* -----------------------------------------------------------------  */

/* BACK BUTTON */


.back-icon {

  z-index: 100;
  position: fixed;
  /* top: 70px;
  left: 20px; */
  bottom: 65px;
  right: 65px;
  background-color: #007bff;
  color: white;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);

  width: 20px;
  height: 25px;
  line-height: 50px;
  border-radius: 50%;

  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  /* -webkit-user-select: none; */
  /* user-select: none; */
  outline: none;


}

/* Add rules for all link states to maintain the same color */
.back-icon:link,
.back-icon:visited,
.back-icon:active,
.back-icon:focus {

  color: #ffffff;
  /* Keep the same color for all states */
  outline: none;

}

.back-icon:hover {

  background-color: #0056b3;
  transform: scale(1.1);

}

/* -----------------------------------------------------------------  */

/* SCROLL UP OR DOWN BUTTON */

.scroll-button {

  z-index: 100;

  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);

  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: fixed;
  bottom: 105px;
  right: 80px;
  padding: 20px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  transition: opacity 0.3s;
  opacity: 0;


  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  /* -webkit-user-select: none; */
  /* -khtml-user-select: none; */
  /* -moz-user-select: none; */
  /* -ms-user-select: none; */
  /* user-select: none; */

}

.scroll-button:hover {

  background-color: #0056b3;
  transform: scale(1.1);

}

.scroll-button.visible {

  opacity: 1;

}

.arrow {

  border: solid white;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  transition: transform 0.3s;

}

.arrow-circle {

  width: 24px;
  height: 24px;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

}

.arrow-up {

  transform: rotate(-135deg);

}

.arrow-down {

  transform: rotate(45deg);

}

.info {

  display: none;

}

.home-button-T {

  display: none;

}

.home-button-B {

  display: flex;
  bottom: 55px;
  right: 30px;
  /* top: unset; */
  /* left: unset; */

}

.home-button {

  bottom: 55px !important;
  right: 30px !important;
  top: unset;
  left: unset;

}

@media screen and (max-width: 600px) {



  .education-link .edu-br {
    display: block !important;
  }


  #CV {
    margin-top: 0vh;
  }

  .duck-gif {
    /* padding: 0; */
    /* display: none; */
    /* max-width: 80px; */
    width: 90%;
    max-width: 150px;
  }

  .project-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 3fr));
  }

  .project-video {
    height: 150px;
    width: 150px;

  }

  .project-box {
    width: 150px;
    /* height: 150px; */
    /* margin: auto; */
    /* overflow-y: hidden; */
  }

  .project-caption {

    overflow-y: hidden;
  }

  .CV {
    margin: auto !important;
    justify-content: center;
  }

  .faq-box {
    left: -14rem;
    top: 4rem;
    position: relative;
    margin-bottom: 1rem;
  }

  .faq-icon {
    left: 0;

  }


  .home-button-T {
    display: none;
  }

  .home-button-B {
    display: flex;
    bottom: 55px;
    right: 30px;
    /* top: unset; */
    /* left: unset; */
  }

  .home-button {
    bottom: 55px !important;
    right: 30px !important;
    top: unset;
    left: unset;
  }

}

.motivation-link:hover {
  transform: translateY(-5px) scale(1.1);

}


/* Hide scrollbar for the whole website to prevent layout shifts */
::-webkit-scrollbar {
  display: none;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-y: auto !important;
}

body {
  overflow: visible;
  /* Ensure scroll propagates to html scroller */
}

#UITS {
  scroll-margin-top: 32.8vh;
  ;
}

#support-bkash-qr {
  scroll-margin-top: 20vh;
  ;
}

.link-hover {
  color: white;
  /* margin: 2px !important; */
}

.sk-profile-link {
  color: black;
  background: #ffdd00;
  min-width: 80px;
  width: fit-content;
  text-decoration: none;
  padding: 10px 30px 10px 30px;
  border-radius: 15px;
  box-shadow: 0 0 1px black;
  transition: 0.3s ease-out;
}

.sk-profile-link:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.212);
}

.blank-btn {
  color: transparent;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-support {

  display: flex;
  justify-content: center;
  /* bottom: 150px; */
  /* position: fixed; */
  gap: 20px;
  flex-wrap: wrap;
}



#shop-btn:hover {
  transform: translateY(-5px) scale(1.1);
}



@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes hangSwing {

  0%,
  100% {
    transform: rotate(-80deg);
  }

  50% {
    transform: rotate(-85deg);
  }
}

#floatingSupportBtn {
  animation: hangSwing 3.5s ease-in-out infinite;
  transform-origin: 100% 0%;
  /* Hinged at top-right corner */
}

#floatingSupportBtn:hover {
  animation-play-state: paused;
  /* transform: scale(1.2) !important; */
  /* transform: rotate(10deg) scale(1.2) !important; */
  /* right: 20px !important; */
  /* top: 60px !important; */
  /* margin: 50px; */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}



.products-btns-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 5px;
}

@media (max-width: 380px) {
  .products-btns-container {
    flex-direction: column;
  }
}

/* Stamp Collection Board Styles */
.stamp-section-container {
  position: relative;
  margin-bottom: 0.2rem;
  padding: 4px 10px;
  border-radius: 15px;
  background: none;
  border: none;
  overflow: hidden;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#resource-links.link-button {
  padding: 5px 0 !important;
  gap: 12px;
}

/* ── Section hover tooltip (replaces .intro-cover) ────────── */
#section-hover-tooltip {
  position: fixed;
  bottom: 120px;
  /* sits above the nav carousel */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  background: rgba(30, 30, 30, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 7px 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#section-hover-tooltip.visible {
  opacity: 1;
}

.stamp-board-wrap {
  padding: 0;
  width: 100%;
}

.section-desc {
  max-width: 500px;
  text-align: center;
  margin: 0 auto 1rem auto;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Stamp design */
.stamp-card {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  /* White stamp border */
  border: none !important;
  border-radius: 0 !important;
  padding: 4px !important;
  box-sizing: border-box;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s, filter 0.3s;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  cursor: pointer;
  margin: 5px;
}

/* Perforations */
.stamp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle 3.5px at 7px 0, #333 3.5px, transparent 4.5px),
    radial-gradient(circle 3.5px at 7px 100%, #333 3.5px, transparent 4.5px),
    radial-gradient(circle 3.5px at 0 7px, #333 3.5px, transparent 4.5px),
    radial-gradient(circle 3.5px at 100% 7px, #333 3.5px, transparent 4.5px);
  background-size: 14px 14px;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  pointer-events: none;
  z-index: 5;
}

.stamp-inner {
  position: relative;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 85px;
  min-height: 38px;
  border-radius: 4px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
}

.stamp-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.stamp-denomination {
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: 0.55rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

/* Animations and tilts */
@keyframes stampFloat {
  0% {
    transform: translateY(0) rotate(var(--tilt));
  }

  50% {
    transform: translateY(-6px) rotate(var(--tilt));
  }

  100% {
    transform: translateY(0) rotate(var(--tilt));
  }
}

/* Base styles for individual cards */
.stamp-card:nth-child(4n+1) {
  --tilt: -2.5deg;
  transform: rotate(var(--tilt));
  animation: stampFloat 2.4s ease-in-out infinite;
}

.stamp-card:nth-child(4n+2) {
  --tilt: 3deg;
  transform: rotate(var(--tilt));
  animation: stampFloat 2.8s ease-in-out infinite 0.3s;
}

.stamp-card:nth-child(4n+3) {
  --tilt: -1.5deg;
  transform: rotate(var(--tilt));
  animation: stampFloat 2.2s ease-in-out infinite 0.6s;
}

.stamp-card:nth-child(4n+4) {
  --tilt: 2deg;
  transform: rotate(var(--tilt));
  animation: stampFloat 2.6s ease-in-out infinite 0.9s;
}

/* Color palettes for the stamps - Monochromatic Shades of Black & White */
.stamp-card:nth-child(8n+1) .stamp-inner {
  background: linear-gradient(135deg, #1c1c1c, #0a0a0a);
}

.stamp-card:nth-child(8n+2) .stamp-inner {
  background: linear-gradient(135deg, #2d2d2d, #141414);
}

.stamp-card:nth-child(8n+3) .stamp-inner {
  background: linear-gradient(135deg, #3b3b3b, #1e1e1e);
}

.stamp-card:nth-child(8n+4) .stamp-inner {
  background: linear-gradient(135deg, #222222, #0d0d0d);
}

.stamp-card:nth-child(8n+5) .stamp-inner {
  background: linear-gradient(135deg, #444444, #252525);
}

.stamp-card:nth-child(8n+6) .stamp-inner {
  background: linear-gradient(135deg, #1a1a1a, #000000);
}

.stamp-card:nth-child(8n+7) .stamp-inner {
  background: linear-gradient(135deg, #333333, #181818);
}

.stamp-card:nth-child(8n+8) .stamp-inner {
  background: linear-gradient(135deg, #292929, #111111);
}

/* Hover effects */
.stamp-card:hover {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.15) rotate(calc(var(--tilt) * -1)) !important;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.6));
  z-index: 100;
}

.stamp-card:hover .stamp-inner {
  border-style: solid;
}

#shuffle-resources-btn:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 6px 20px rgba(255, 221, 0, 0.5);
}

#shuffle-resources-btn:active {
  transform: scale(0.95);
}

/* Hide shuffle container on all screens – now handled by scroll popup */
#resource-shuffle-container {
  display: none !important;
}


/* ── Learning Scroll Popup ─────────────────────────────── */

/* Overlay backdrop */
.scroll-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.scroll-popup-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.45);
}

/* The scroll container */
.scroll-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scaleY(0);
  transform-origin: center center;
  z-index: 9999;
  width: min(340px, 88vw);
  pointer-events: none;
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.6));
}

.scroll-popup.active {
  transform: translate(-50%, -50%) scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

/* Top/bottom scroll handles (the rolled-up parchment edges) */
.scroll-popup-top,
.scroll-popup-bottom {
  width: 100%;
  height: 28px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.scroll-popup-top {
  border-radius: 50% 50% 0 0 / 18px 18px 0 0;
  background: linear-gradient(to bottom,
      #4a2f18 0%,
      #785328 15%,
      #c8a261 40%,
      #fdf3d8 65%,
      #ebd39b 85%,
      #4a2f18 100%) !important;
  /* Pointy tattered bottom edge via SVG mask */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0,20 L0,12 L6,4 L13,15 L20,6 L26,17 L32,3 L39,14 L45,5 L52,16 L58,7 L64,18 L70,4 L77,15 L83,5 L89,16 L95,8 L100,12 L100,20 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0,20 L0,12 L6,4 L13,15 L20,6 L26,17 L32,3 L39,14 L45,5 L52,16 L58,7 L64,18 L70,4 L77,15 L83,5 L89,16 L95,8 L100,12 L100,20 Z'/%3E%3C/svg%3E");
}

.scroll-popup-bottom {
  border-radius: 0 0 50% 50% / 0 0 18px 18px;
  background: linear-gradient(to bottom,
      #4a2f18 0%,
      #ebd39b 15%,
      #fdf3d8 35%,
      #c8a261 60%,
      #785328 85%,
      #4a2f18 100%) !important;
  /* Pointy tattered top edge via SVG mask */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,8 L6,16 L13,5 L20,14 L26,3 L32,17 L39,6 L45,15 L52,4 L58,13 L64,2 L70,16 L77,5 L83,15 L89,4 L95,12 L100,8 L100,0 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,8 L6,16 L13,5 L20,14 L26,3 L32,17 L39,6 L45,15 L52,4 L58,13 L64,2 L70,16 L77,5 L83,15 L89,4 L95,12 L100,8 L100,0 Z'/%3E%3C/svg%3E");
}

/* The scroll body / parchment */
.scroll-popup-body {
  background:
    linear-gradient(to right, rgba(92, 58, 33, 0.25) 0%, transparent 6%, transparent 94%, rgba(92, 58, 33, 0.25) 100%),
    radial-gradient(circle at 50% 50%, #fdf5e2 20%, #fbf0d0 50%, #ebd39b 80%, #c8a261 100%) !important;
  padding: 20px 0px 20px 0px;
  border-left: 2px solid rgba(139, 90, 43, 0.4);
  border-right: 2px solid rgba(139, 90, 43, 0.4);
  box-shadow:
    inset 0 0 35px rgba(92, 58, 33, 0.4),
    /* Vignette burnt shadow */
    inset 0 0 10px rgba(92, 58, 33, 0.2);
  position: relative;
  z-index: 1;

  /* Elegant, natural tattered edge using clip-path polygon */
  clip-path: polygon(0% 0%, 100% 0%,
      99.5% 8%, 98.8% 16%, 99.4% 24%, 98.6% 32%, 99.2% 42%, 98.2% 50%, 99% 58%, 98.4% 68%, 99.1% 78%, 98.5% 88%, 99.3% 95%, 100% 100%,
      0% 100%,
      0.8% 95%, 0.4% 88%, 1.2% 78%, 0.6% 68%, 1.3% 58%, 0.5% 50%, 1.4% 42%, 0.7% 32%, 1.3% 24%, 0.5% 16%, 0.9% 8%);
}

/* Close button */
.scroll-popup-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: #8b6914;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
  padding: 2px 4px;
  transition: opacity 0.2s;
}

.scroll-popup-close:hover {
  opacity: 1;
}

/* Scroll title */
.scroll-popup-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #7a5c1a;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(120, 80, 20, 0.3);
}

/* Links list */
.scroll-popup-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.scroll-popup-links::-webkit-scrollbar {
  display: none;
}

.scroll-popup-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #5a3e10;
  background: rgba(180, 130, 60, 0.08);
  border: 1px solid rgba(180, 130, 60, 0.15);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.scroll-popup-link:hover {
  background: rgba(180, 130, 60, 0.2);
  border-color: rgba(180, 130, 60, 0.4);
  transform: translateX(3px);
  color: #3a2808;
}

.scroll-popup-link i {
  font-size: 0.9rem;
  color: #a0701a;
  flex-shrink: 0;
}



.tool-btn {
  background: linear-gradient(135deg, #6968681c, #7c79796b);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  font-family: inherit;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  gap: 0.3rem;
}

.tool-btn i {
  font-size: 1.3rem;
  line-height: 1;
}

.tool-label {
  font-size: 0.85rem;
  line-height: 1.2;
}

.tool-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .tool-btn {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }

  .tool-btn i {
    font-size: 1.1rem;
  }

  .tool-buttons-grid .tool-label {
    font-size: 0.7rem;
  }

  .tool-buttons-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)) !important;
    gap: 0.5rem !important;
  }
}

/* Useful Tools Redesign Styles */
.tool-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
  max-height: 800px;
  opacity: 1;
  overflow: visible;
  margin-top: 20vh;
}

.tool-buttons-grid.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Tool Switcher / Selector Popup */
.tool-selector-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-selector-modal.show {
  opacity: 1;
}

.tool-selector-modal-content {
  position: relative;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 25px;
  width: 90%;
  max-width: 550px;
  margin: 0 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  color: #fff;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.tool-selector-modal.show .tool-selector-modal-content {
  transform: scale(1);
}

/* Switcher arrows & buttons */
.switcher-arrow-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  color: #fff !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s, transform 0.2s, border-color 0.2s !important;
}

.switcher-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: scale(1.05) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.switcher-current-btn {
  background: linear-gradient(135deg, rgba(105, 104, 104, 0.15), rgba(124, 121, 121, 0.4)) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  padding: 0.6rem 1.2rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s !important;
  min-width: 150px !important;
  justify-content: center !important;
}

.switcher-current-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* #inline-tool-container {} */

/* Inline Tool Display Styles */
.inline-tool {
  /* scroll-margin-top: 15vh;; */
  display: none;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  padding-bottom: 45px !important;
  /* Leave room for copy button */
  margin: 10px 0 0 0;
  /* margin-bottom: 30vh !important; */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.inline-tool.active {
  display: block;
}

/* PDF Tools Hub Grid Styles (Sky Blue Theme) */
.pdf-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 15px;
}

@media (max-width: 480px) {
  .pdf-hub-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.pdf-hub-cell {
  background: rgba(79, 199, 255, 0.06);
  border: 1px solid rgba(79, 199, 255, 0.25);
  border-radius: 12px;
  padding: 22px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdf-hub-cell i {
  font-size: 1.8rem;
  color: #4fc7ff;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdf-hub-cell:hover,
.pdf-hub-cell:focus-visible {
  background: rgba(79, 199, 255, 0.15);
  border-color: #4fc7ff;
  box-shadow: 0 0 15px rgba(79, 199, 255, 0.25);
  transform: translateY(-2px);
}

.pdf-hub-cell:hover i {
  transform: scale(1.1);
}

.pdf-hub-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: #e0f7ff;
}

/* PDF Back Button style */
.pdf-back-btn {
  background: transparent;
  border: none;
  color: #4fc7ff;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
  vertical-align: middle;
}

.pdf-back-btn:hover {
  color: #fff;
  transform: translateX(-2px);
}

.tool-copy-btn {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #aaa;
  font-size: 0.75rem;
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  z-index: 10;
}

.tool-copy-btn:hover {
  background: rgba(79, 199, 255, 0.15);
  border-color: rgba(79, 199, 255, 0.3);
  color: #4fc7ff;
}


.close-inline-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.close-inline-btn:hover {
  color: #fff;
}

.tool-faq-btn {
  position: absolute;
  top: 15px;
  right: 45px;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  z-index: 10;
}

.tool-faq-btn:hover {
  color: #fff;
}

.modal-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

/* Calculator Styles */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.calc-display {
  width: 100%;
  box-sizing: border-box;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1.6rem;
  text-align: right;
  color: #0f0;
  font-family: 'Courier New', monospace;
  margin-bottom: 10px;
  outline: none;
  caret-color: #0f0;
}

.calc-display:focus {
  border-color: rgba(0, 255, 0, 0.35);
  box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.08);
}

.calc-btn {
  padding: 10px 6px;
  font-size: 1rem;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}

.calc-btn:hover {
  background: #3a3a3a;
}

.calc-btn:active {
  transform: scale(0.94);
}

.calc-btn.calc-op {
  background: #e67e22;
  color: #fff;
}

.calc-btn.calc-op:hover {
  background: #cf6d17;
}

.calc-btn.calc-fn {
  background: #5b3fa6;
  color: #ddd;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.calc-btn.calc-fn:hover {
  background: #7050c8;
}

.calc-btn.equal {
  background: #27ae60;
  grid-column: span 1;
  font-size: 1.3rem;
  font-weight: bold;
}

.calc-btn.equal:hover {
  background: #219a52;
}

.calc-history-panel {
  display: none;
  margin-top: 12px;
  background: #111;
  padding: 8px 10px;
  border-radius: 8px;
  max-height: 140px;
  overflow-y: auto;
  font-family: monospace;
  color: #aaa;
}

/* Text to PDF */
.pdf-textarea {
  width: 100%;
  box-sizing: border-box;
  height: 200px;
  /* background: #000000; */
  /* color: #fff; */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 15px;
}

.pdf-preview {
  width: 100%;
  box-sizing: border-box;
  min-height: 195px;
  max-height: 200px;
  overflow-y: auto;
  background: #ffffff;
  color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0px 10px;
  font-family: 'Times New Roman', Times, serif;
  margin-bottom: 15px;
  cursor: text;
  font-size: 14px;
}

#pdf-make-tool.expanded-view .pdf-textarea {
  height: 50vh !important;
}

#pdf-make-tool.expanded-view .pdf-preview {
  min-height: 49vh !important;
  height: 50vh !important;
  max-height: 50vh !important;
}


.clear-pdf-btn,
.undo-pdf-btn {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.clear-pdf-btn:hover {
  color: #ff4d4d;
}

.undo-pdf-btn {
  color: #4fc7ff;
}

.undo-pdf-btn:hover {
  color: #8be0ff;
}

/* Explicit font-size resets — overrides any global p/heading sizes from the site CSS.
               All values are em, relative to the 14px base set on .pdf-preview. */
.pdf-preview p,
.pdf-preview li,
.pdf-preview td,
.pdf-preview th,
.pdf-preview blockquote {
  font-size: 1em;
  /* = 14px */
}

/* Headings scale proportionally from the 14px base */
.pdf-preview h1 {
  font-size: 2em;
}

/* 28px */
.pdf-preview h2 {
  font-size: 1.6em;
}

/* ~22px */
.pdf-preview h3 {
  font-size: 1.3em;
}

/* ~18px */
.pdf-preview h4 {
  font-size: 1.1em;
}

/* ~15px */
.pdf-preview h5,
.pdf-preview h6 {
  font-size: 1em;
}

/* 14px */

.pdf-preview h1,
.pdf-preview h2,
.pdf-preview h3,
.pdf-preview h4,
.pdf-preview h5,
.pdf-preview h6 {
  margin-top: 0.8em;
  margin-bottom: 0.4em;
}

.pdf-preview p:last-child {
  margin-bottom: 0;
}

.pdf-preview a {
  color: #4fc7ff;
  text-decoration: underline;
}

.pdf-preview a:hover {
  color: #2ab6f6;
}

/* Blockquotes */
.pdf-preview blockquote {
  border-left: 4px solid #4fc7ff;
  margin: 0.8em 0;
  padding: 0.4em 1em;
  background: rgba(79, 199, 255, 0.07);
  color: #ccc;
  border-radius: 0 6px 6px 0;
  font-style: italic;
}

.pdf-preview blockquote p {
  margin: 0;
  font-size: inherit;
}

/* Tables */
.pdf-preview table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.8em 0;
}

.pdf-preview th,
.pdf-preview td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  text-align: left;
}

.pdf-preview th {
  background: rgba(79, 199, 255, 0.15);
  font-weight: bold;
  color: #4fc7ff;
}

.pdf-preview tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.04);
}

/* Code */
.pdf-preview code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  color: #f8c555;
}

.pdf-preview pre {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 12px;
  overflow-x: auto;
  margin: 0.8em 0;
}

.pdf-preview pre code {
  background: none;
  padding: 0;
  color: #e0e0e0;
  font-size: 0.88em;
}

/* HR */
.pdf-preview hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1.2em 0;
}

/* Strikethrough */
.pdf-preview del {
  color: #888;
}

/* Page Break */
.pdf-preview .page-break {
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
  margin: 2em 0;
  position: relative;
  height: 0;
}

.pdf-preview .page-break::after {
  content: 'PAGE BREAK';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  /* color: rgb(0, 0, 0); */
  background: #74ff2459;
  padding: 0 10px;
  font-size: 0.7rem;
  color: rgb(0, 0, 0);
  letter-spacing: 2px;
  width: 100%;
  text-align: center;
}

/* PDF Page Bookmarks */
.pdf-preview .pdf-page-bookmark {
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.9rem;
  font-weight: normal;
  color: #666;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
  margin-top: 0px;
  margin-bottom: 15px;
  padding-bottom: 5px;
  page-break-inside: avoid;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Task lists */
.pdf-preview ul.contains-task-list {
  list-style: none;
  padding-left: 0.5em;
}

.pdf-preview .task-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-preview .task-list-item input[type="checkbox"] {
  accent-color: #4fc7ff;
}

.tool-action-btn {
  background: #4fc7ff;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.tool-action-btn:hover {
  background: #2ab6f6;
}

/* File & Image */
.file-drop-area {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  color: #aaa;
  margin-bottom: 15px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.file-drop-area:hover {
  border-color: #4fc7ff;
  background: rgba(79, 199, 255, 0.05);
}

/* Catbox mode toggle */
.catbox-mode-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.catbox-mode-btn:hover {
  background: rgba(79, 199, 255, 0.1);
  border-color: #4fc7ff;
  color: #fff;
}

.catbox-mode-btn.active-mode {
  background: rgba(79, 199, 255, 0.18);
  border-color: #4fc7ff;
  color: #4fc7ff;
  font-weight: 600;
}

/* Link Cleaner & Text Sorter shared */
.lc-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  resize: vertical;
  height: 100px;
  line-height: 1.55;
  outline: none;
  transition: border-color 0.2s;
}

.lc-textarea:focus {
  border-color: #4fc7ff;
}

.lc-output-ta {
  color: #4fc7ff;
  cursor: pointer;
}

/* Text Sorter button grid */
.ts-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 7px;
  margin: 12px 0 0 0;
}

.ts-op-btn {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 7px;
  padding: 8px 6px;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.ts-op-btn:hover {
  background: rgba(167, 139, 250, 0.28);
  border-color: #a78bfa;
  color: #fff;
}

.ts-op-btn:active {
  transform: scale(0.96);
}

/* PDF Merge Styles */
.pdf-merge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  width: 100%;
}

.pdf-file-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 10px;
  position: relative;
  cursor: grab;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.pdf-file-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.pdf-file-card:active {
  cursor: grabbing;
}

.pdf-file-card.dragging {
  opacity: 0.4;
  border: 1px dashed #4fc7ff;
  background: rgba(79, 199, 255, 0.03);
}

.pdf-file-card.drag-over {
  border: 1px dashed #4fc7ff;
  background: rgba(79, 199, 255, 0.07);
  transform: scale(1.02);
}

.pdf-file-icon {
  font-size: 2.2rem;
  color: #ff4d4d;
  margin-bottom: 8px;
  transition: transform 0.2s;
}

.pdf-file-card:hover .pdf-file-icon {
  transform: scale(1.08);
}

.pdf-file-info {
  width: 100%;
  overflow: hidden;
}

.pdf-file-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-file-size {
  font-size: 0.7rem;
  color: #888;
  margin-top: 2px;
}

.pdf-file-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #aaa;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.8rem;
  line-height: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pdf-file-delete:hover {
  background: #ff4d4d;
  color: #fff;
}

@media (max-width: 768px) {
  .pdf-merge-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .pdf-file-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 10px 12px;
    cursor: pointer;
  }

  .pdf-file-card:hover {
    transform: none;
  }

  .pdf-file-icon {
    font-size: 1.6rem;
    margin-bottom: 0;
    margin-right: 12px;
  }

  .pdf-file-card:hover .pdf-file-icon {
    transform: none;
  }

  .pdf-file-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .pdf-file-name {
    font-size: 0.85rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pdf-file-size {
    font-size: 0.75rem;
  }

  .pdf-file-card.selected {
    border-color: #4fc7ff;
    background: rgba(79, 199, 255, 0.1);
    box-shadow: 0 0 10px rgba(79, 199, 255, 0.2);
  }

  .pdf-file-delete {
    position: static;
    margin-left: 8px;
    flex-shrink: 0;
  }
}

/* Image converter card thumbnail styling */
.img-conv-card-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.pdf-file-card:hover .img-conv-card-thumb {
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .img-conv-card-thumb {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    margin-right: 12px;
  }
}




.bkash-anim-btn {
  transform: rotate(-3deg);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.bkash-anim-btn:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3) !important;
}



.bmc-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  background-color: #ff5f30;
  border: 3px solid #ffffff;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
  transform: rotate(-2.5deg);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bmc-hero-btn:hover {
  transform: rotate(0deg) scale(1.06);
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
  background-color: #e84e1f;
}

.bmc-hero-btn:active {
  transform: rotate(0deg) scale(0.97);
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

.bmc-hero-img {
  height: 1.6em;
  transform: rotate(4deg);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bmc-hero-txt {
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bmc-hero-btn:hover .bmc-hero-img {
  transform: rotate(0deg) scale(1.2);
}

.bmc-hero-btn:hover .bmc-hero-txt {
  transform: scale(1.1);
}



.sk-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #000000;
  background-color: #ffdd00;
  border: 3px solid #ffffff;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
  transform: rotate(1deg);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sk-hero-btn:hover {
  background-color: #e6c700;
  transform: translate(3px, 3px) rotate(-0.5deg);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.sk-hero-btn:active {
  transform: translate(6px, 6px) rotate(0deg);
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

.sk-hero-img {
  height: 1.6em;
  margin-right: 12px;
  transform: rotate(-1deg);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sk-hero-btn:hover .sk-hero-img {
  transform: rotate(0deg) scale(1.15);
}

.shop-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  background-color: #7c3aed;
  border: 3px solid #ffffff;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
  transform: rotate(2deg);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.shop-hero-btn:hover {
  background-color: #6d28d9;
  transform: translate(-2px, -2px) rotate(-1deg) scale(1.06);
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.2);
}

.shop-hero-btn:active {
  transform: translate(4px, 4px) rotate(0deg) scale(0.97);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.shop-hero-img {
  font-size: 1.25rem;
  transform: rotate(-6deg);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.shop-hero-txt {
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.shop-hero-btn:hover .shop-hero-img {
  transform: rotate(6deg) scale(1.2);
}

.shop-hero-btn:hover .shop-hero-txt {
  transform: scale(1.1);
}



.floating-coffee-close {
  position: absolute;
  top: 0px;
  right: 0px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
}

.floating-coffee-popup {
  position: relative;
  background: transparent;
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 30px;
  max-width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* .floating-coffee {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.7);
                z-index: 9999;
                align-items: center;
                justify-content: center;
            } */

.sk-btn {
  padding: 12px;
  background: #ffdd00;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.bmc-btn {
  padding: 12px;
  background: linear-gradient(135deg, #FF5E5B 0%, #FF5F1F 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}



#cha-trigger {
  display: none !important;
}



.quail-img {
  /* transition: all 0.5s ease; */
  background: rgba(0, 0, 0, 0.815);
}

.quail-img:hover {
  /* transform: scale(1.1); */
  background: rgba(0, 0, 0, 0.815);
  z-index: 1;
}

.quail-text {
  display: none;
  position: absolute;
  top: 50%;
  right: 50%;
  z-index: 9999;
}

.quail-text:hover {
  display: block;
}

/* Custom CSS for Tools Popup/Widget View (350x550) */
body.tools-popup-view {
  overflow-x: hidden;
  background: #050505 !important;
}

/* Hide all other sections, preloaders, navigations, and floating widgets */
body.tools-popup-view .page-sec:not(#useful-tools),
body.tools-popup-view #preloader,
body.tools-popup-view .nav-carousel-container,
body.tools-popup-view .motivation-link,
body.tools-popup-view #shop-btn,
body.tools-popup-view #floatingSupportBtn,
body.tools-popup-view #tsparticles,
body.tools-popup-view div[style*="position:fixed"],
body.tools-popup-view div[style*="position: fixed"] {
  display: none !important;
}

body.tools-popup-view #useful-tools {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
  background: radial-gradient(circle at center, #151515 0%, #050505 100%) !important;
}

/* Hide header, description, and switcher inside #useful-tools */
body.tools-popup-view #useful-tools>*:not(.content-wrap) {
  display: none !important;
}

body.tools-popup-view #useful-tools .content-wrap {
  padding: 10px !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
}

body.tools-popup-view #useful-tools .content-wrap>div {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* Hide the grid inside the tools wrapper, but keep the active container and switcher */
body.tools-popup-view #useful-tools .content-wrap>div>*:not(#inline-tool-container):not(#useful-tools-switcher) {
  display: none !important;
}

body.tools-popup-view #inline-tool-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Make sure active tool displays properly and has no margins */
body.tools-popup-view .inline-tool.active {
  display: block !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  padding: 10px 5px !important;
  margin: 0 auto !important;
  max-width: 1000px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Hide the close button in popup widget since closing it would leave a blank screen */
body.tools-popup-view .close-inline-btn {
  display: none !important;
}

body.tools-popup-view .pdf-textarea {
  height: 50vh !important;
}

body.tools-popup-view .pdf-preview {
  height: 50vh !important;
  max-height: 50vh !important;
}

body.tools-popup-view .tool-faq-btn {
  right: 15px !important;
}

/* Style tools-popup-button hover animation */
.tools-popup-button {
  transition: transform 0.2s ease, color 0.2s ease;
}

.tools-popup-button:hover {
  transform: scale(1.1);
  color: white !important;
}

/* Hide tools popup button wrapper when a tool is active */
#useful-tools:has(.inline-tool.active) #tools-popup-btn-wrap {
  display: none !important;
}

/* Image Enhancer Panel CSS */
/* Image Enhancer Dropdown trigger styles */
.enhancer-toggle-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  margin-top: 15px;
  margin-bottom: 5px;
  transition: background 0.2s, border-color 0.2s;
}

.enhancer-toggle-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(79, 199, 255, 0.25);
}

.enhancer-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.enhancer-panel:hover {
  border-color: rgba(79, 199, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.enhancer-activate-btn:hover {
  background: rgba(79, 199, 255, 0.2) !important;
  border-color: #4fc7ff !important;
  box-shadow: 0 0 10px rgba(79, 199, 255, 0.2);
}

.enhancer-label {
  transition: color 0.3s ease, opacity 0.3s ease;
}

.enhancer-label.disabled {
  opacity: 0.5;
}

.enhancer-label:not(.disabled):hover {
  color: #4fc7ff !important;
}

/* Enhancer Progress Spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

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

/* Documentation Section & Highlighted Black/Purple-Gold Stamp Button */
.documentation-section-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 10;
}

#resources-scroll-open-btn {
  background: #000000 !important;
  filter: drop-shadow(0 0 10px rgba(162, 155, 254, 0.8)) drop-shadow(0 0 20px rgba(253, 203, 110, 0.6)) !important;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s !important;
}

#resources-scroll-open-btn::before {
  /* Use the page section background color (#333) for cutouts to blend seamlessly */
  background-image:
    radial-gradient(circle 3.5px at 7px 0, #333 3.5px, transparent 4.5px),
    radial-gradient(circle 3.5px at 7px 100%, #333 3.5px, transparent 4.5px),
    radial-gradient(circle 3.5px at 0 7px, #333 3.5px, transparent 4.5px),
    radial-gradient(circle 3.5px at 100% 7px, #333 3.5px, transparent 4.5px) !important;
}

#resources-scroll-open-btn .stamp-inner {
  background: #0d0d0d !important;
  border: 2px dashed #ffffff !important;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.15) !important;
}

#resources-scroll-open-btn .stamp-text {
  color: #ffffff !important;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

#resources-scroll-open-btn:hover {
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 25px rgba(200, 200, 200, 0.5)) !important;
  transform: translateY(-8px) scale(1.15) !important;
}

#resources-scroll-open-btn:hover .stamp-inner {
  border-style: solid !important;
  border-color: #ffffff !important;
}

#resources-scroll-open-btn:hover .stamp-text {
  color: #ffffff !important;
  text-shadow: 0 0 10px #ffffff, 0 0 18px #cccccc !important;
}

/* PDF Reorder Tool Styles */
.pdf-reorder-page-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}

.pdf-reorder-page-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.pdf-reorder-page-item.active {
  background: rgba(79, 199, 255, 0.08);
  border-color: #4fc7ff;
  box-shadow: 0 0 8px rgba(79, 199, 255, 0.25);
}

.pdf-reorder-page-num {
  font-size: 0.75rem;
  font-weight: bold;
  color: #4fc7ff;
  background: rgba(79, 199, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
}

.pdf-reorder-page-label {
  font-size: 0.82rem;
  color: #eee;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-reorder-page-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 10px;
  flex-shrink: 0;
}

.reorder-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  border-radius: 4px;
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0;
}

.reorder-action-btn:hover {
  background: rgba(79, 199, 255, 0.15);
  border-color: #4fc7ff;
  color: #fff;
}

.reorder-action-btn.delete:hover {
  background: rgba(231, 76, 60, 0.2);
  border-color: #e74c3c;
  color: #e74c3c;
}

@media (max-width: 768px) {
  #pdf-reorder-workspace {
    flex-direction: column !important;
  }

  .pdf-reorder-page-item:hover {
    transform: none;
  }
}

/* Floating Support Prompt (Useful-Tools & Resources Sections) */
.support-prompt-box {
  position: fixed;
  bottom: 9.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 1001;
  width: max-content;
  max-width: 90vw;
  padding: 14px 28px 12px 28px;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255, 221, 0, 0.4);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 221, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.support-prompt-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.support-prompt-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
  transition: color 0.2s ease;
}

.support-prompt-close:hover {
  color: #ffffff;
}

.support-prompt-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: 0.5px;
  /* text-transform: capitalize; */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-right: 12px;
  /* Make space for the close button */
}

.support-prompt-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.support-prompt-link {
  color: #ffdd00;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Outfit', 'Inter', sans-serif;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
  border-bottom: 1px dashed transparent;
}

.support-prompt-link:hover {
  color: #ffffff;
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(255, 221, 0, 0.6);
  border-bottom-color: #ffdd00;
}

.support-prompt-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  user-select: none;
}

/* Custom utility class to pause animations when offscreen or tab is backgrounded */
.anim-paused,
.anim-paused *,
.anim-paused *::before,
.anim-paused *::after {
  animation-play-state: paused !important;
}

/* Resources quote bottom popup */
.resources-quote-popup {
  position: fixed;
  bottom: -150px;
  /* Hidden initially offscreen */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10005;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  max-width: 90%;
  width: min(500px, 90%);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: bottom 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 1s ease;
  box-sizing: border-box;
}

.resources-quote-popup.show {
  bottom: 40px;
  /* Slide up into view */
  opacity: 1;
  pointer-events: auto;
}

.resources-quote-popup .quote-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-style: italic;
  color: #ffdd00;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

/* Custom font-family for page section h2 headings except intro and resources */
.page-sec:not(#intro):not(#resources) h2 {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Floating Fullscreen Button - shown only in tools popup view */
.tools-fullscreen-btn {
  position: fixed;
  top: 15px;
  right: 45px;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  /* Hidden by default */
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  z-index: 10002;
  transition: color 0.2s, transform 0.2s;
}

.tools-fullscreen-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

body.tools-popup-view .tools-fullscreen-btn {
  display: flex;
  /* Shown only in tools popup view */
}

/* ── PDF Bookmarks Tool Styles ────────────────────────────────── */
.bookmark-drop-spacer {
  height: 6px;
  margin: -3px 0;
  position: relative;
  z-index: 10;
  background: transparent;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.bookmark-drop-spacer.active {
  height: 12px;
  margin: -1px 0;
  background: rgba(79, 199, 255, 0.4);
  border: 1px solid rgba(79, 199, 255, 0.8);
  box-shadow: 0 0 8px rgba(79, 199, 255, 0.5);
}

.bookmark-item-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #ddd;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  margin: 2px 0;
}

.bookmark-item-row:hover {
  background: rgba(79, 199, 255, 0.06);
  border-color: rgba(79, 199, 255, 0.25);
  color: #fff;
}

.bookmark-item-row.selected {
  background: rgba(79, 199, 255, 0.12) !important;
  border-color: #4fc7ff !important;
  color: #fff;
  box-shadow: 0 0 8px rgba(79, 199, 255, 0.2);
}

.bookmark-item-row.dragging {
  opacity: 0.4;
  border-style: dashed;
}

.bookmark-item-row.drag-over-nest {
  background: rgba(46, 204, 113, 0.15) !important;
  border-color: #2ecc71 !important;
  border-style: dashed !important;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.bookmark-children-container {
  margin-left: 20px;
  padding-left: 10px;
  border-left: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  margin-bottom: 6px;
}

.bookmark-expand-btn {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 4px;
  margin-right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: color 0.2s, transform 0.2s;
}

.bookmark-expand-btn:hover {
  color: #fff;
}

.bookmark-drag-handle {
  cursor: grab;
  color: #666;
  margin-right: 8px;
  font-size: 0.85rem;
}

.bookmark-drag-handle:active {
  cursor: grabbing;
}

@media (min-width: 769px) {
  .pdf-bookmarks-mobile-only {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .bookmark-drag-handle {
    display: none !important;
  }

  #floatingSupportBtn {
    position: fixed !important;
    right: 55px !important;
    top: 20px !important;
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
  }
}

/* Rocket Engine Rumble Animation */
@keyframes rocketRumble {
  0% {
    transform: translateY(-50%) translate(0, 0) rotate(0deg);
  }

  10% {
    transform: translateY(-50%) translate(-1.5px, 1.5px) rotate(-1.5deg);
  }

  20% {
    transform: translateY(-50%) translate(1.5px, -1px) rotate(1.5deg);
  }

  30% {
    transform: translateY(-50%) translate(-2px, -1.5px) rotate(-1deg);
  }

  40% {
    transform: translateY(-50%) translate(1.5px, 1.5px) rotate(1deg);
  }

  50% {
    transform: translateY(-50%) translate(-1px, 2px) rotate(-1.5deg);
  }

  60% {
    transform: translateY(-50%) translate(2px, -1px) rotate(1.5deg);
  }

  70% {
    transform: translateY(-50%) translate(-1.5px, -1.5px) rotate(-1deg);
  }

  80% {
    transform: translateY(-50%) translate(1px, 1.5px) rotate(1deg);
  }

  90% {
    transform: translateY(-50%) translate(-2px, 1px) rotate(-1.5deg);
  }

  100% {
    transform: translateY(-50%) translate(0, 0) rotate(0deg);
  }
}

/* Smoke puffs expanding outwards down and to the left */
@keyframes smokePuff1 {
  0% {
    transform: translate(0, 0) scale(0.4);
    opacity: 0.9;
    background: rgba(255, 165, 0, 0.9);
  }

  35% {
    background: rgba(220, 220, 220, 0.7);
  }

  100% {
    transform: translate(-38px, 32px) scale(2.2);
    opacity: 0;
    background: rgba(150, 150, 150, 0);
  }
}

@keyframes smokePuff2 {
  0% {
    transform: translate(0, 0) scale(0.3);
    opacity: 0.85;
    background: rgba(255, 100, 0, 0.9);
  }

  35% {
    background: rgba(240, 240, 240, 0.6);
  }

  100% {
    transform: translate(-48px, 16px) scale(2.5);
    opacity: 0;
    background: rgba(180, 180, 180, 0);
  }
}

@keyframes smokePuff3 {
  0% {
    transform: translate(0, 0) scale(0.35);
    opacity: 0.9;
    background: rgba(255, 215, 0, 0.95);
  }

  35% {
    background: rgba(200, 200, 200, 0.65);
  }

  100% {
    transform: translate(-22px, 44px) scale(2.0);
    opacity: 0;
    background: rgba(160, 160, 160, 0);
  }
}

/* Rocket Shortcut Button for 3D View */
.projects-3d-shortcut-btn {
  position: absolute;
  top: 50%;
  right: -12rem;
  transform: translateY(-50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37 0%, #f1c40f 100%);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4), 0 0 15px rgba(255, 140, 0, 0.4);
  z-index: 90;
  transition: box-shadow 0.3s ease;
  text-decoration: none;
  overflow: visible !important;
  animation: rocketRumble 0.12s infinite ease-in-out;
}

.projects-3d-shortcut-btn:hover {
  animation: rocketRumble 0.07s infinite ease-in-out;
  box-shadow: 0 10px 30px rgba(241, 196, 15, 0.8), 0 0 25px rgba(255, 100, 0, 0.7);
  color: #000;
}

/* Smoke Container & Particles */
.smoke-cluster {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: -1;
}

.smoke-p {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
}

.smoke-p.puff-1 {
  animation: smokePuff1 0.85s infinite linear;
}

.smoke-p.puff-2 {
  animation: smokePuff2 1.1s infinite linear 0.28s;
}

.smoke-p.puff-3 {
  animation: smokePuff3 0.95s infinite linear 0.52s;
}

@media (max-width: 768px) {
  .projects-3d-shortcut-btn {
    display: none !important;
  }
}

/* Flying flame dust particles via JS-injected spans */
.motivation-link {
  overflow: visible !important;
}

.motivation-link i.fa-fire {
  animation: none !important;
  transform: none !important;
  color: #ffffff !important;
  filter: none !important;
}

.flame-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  width: 4px;
  height: 4px;
  opacity: 0;
  animation: flameDustRise 2s ease-out infinite;
}

@keyframes flameDustRise {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }

  15% {
    opacity: 0.9;
  }

  70% {
    opacity: 0.7;
  }

  100% {
    opacity: 0;
    transform: translate(var(--dx, 0px), -28px) scale(0.4);
  }
}

/* Slower, gentler icon shaking animation for shop button price tag */
@keyframes iconShake {

  0%,
  100% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(-14deg);
  }

  40% {
    transform: rotate(14deg);
  }

  60% {
    transform: rotate(-10deg);
  }

  80% {
    transform: rotate(10deg);
  }
}

.shop-icon-shake {
  animation: iconShake 1.6s ease-in-out !important;
}

/* Vertical even spacing for resources page section */
#resources .content-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 2.2rem;
  padding: 1.5rem 0;
}

#resources .stamp-section-container {
  margin-bottom: 0;
}

#resources .documentation-section-container {
  margin-top: 0;
  margin-bottom: 0;
}

/* Download Resume Button Hand Placement Animation (From Left) */
.download-cv-container {
  display: flex;
  justify-content: flex-end;
  padding-right: 15%;
  margin-top: 25px;
  margin-bottom: 20px;
  position: relative;
  overflow: visible;
}

.download-cv-container .CV {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 80px;
  opacity: 0;
  background-color: #333;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 15px 32px;
  border: 3px solid #ffffff;
  border-radius: 12px;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
  transform: rotate(-10deg);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
  animation: fadeCVButton 1.2s ease-out forwards 6.2s;
  cursor: pointer;
}

/* Applied by JS after animation completes — locks in visible+tilted state */
.download-cv-container .CV.cv-ready {
  opacity: 1;
  animation: none;
  transform: rotate(-10deg);
}

.download-cv-container .CV.cv-ready:hover {
  transform: rotate(0deg) scale(1.1);
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.25);
}

.download-cv-container .CV.cv-ready:active {
  transform: translate(4px, 4px) rotate(0deg) scale(0.97);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.hand-sideview-graphic {
  position: absolute;
  top: 50%;
  right: calc(15% + 130px);
  left: auto;
  width: 120px;
  height: auto;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.6));
  animation: handPlaceFromLeft 2.8s cubic-bezier(0.25, 1, 0.5, 1) forwards 5s;
}

@keyframes handPlaceFromLeft {
  0% {
    opacity: 0;
    transform: translate(-350px, -50%) rotate(90deg);
  }

  35% {
    opacity: 1;
    transform: translate(10px, -50%) rotate(95deg);
  }

  50% {
    opacity: 1;
    transform: translate(20px, -50%) rotate(90deg);
  }

  65% {
    opacity: 1;
    transform: translate(-10px, -50%) rotate(85deg);
  }

  100% {
    opacity: 0;
    transform: translate(-400px, -50%) rotate(90deg);
  }
}

@keyframes fadeCVButton {
  0% {
    opacity: 0;
    transform: rotate(-10deg);
  }

  100% {
    opacity: 1;
    transform: rotate(-10deg);
  }
}

/* Mobile responsive placement for Hire Me button & hand graphic */
@media (max-width: 600px) {
  .download-cv-container {
    justify-content: flex-end;
    padding-right: 10px;
    margin-left: 80vw;
  }

  .download-cv-container .CV {
    font-size: 1.1rem;
    padding: 12px 24px;
    white-space: nowrap;
    min-width: 80px;
  }

  .hand-sideview-graphic {
    right: calc(10px + 125px);
    width: 100px;
  }
}

/* Handwritten scribble quote styling */

.resources-static-quote {
  font-family: 'Caveat', 'Comic Sans MS', 'Dancing Script', cursive, sans-serif;
  font-size: 1.4rem;
  font-style: italic;
  text-align: center;
  margin: 30px auto 10px auto;
  opacity: 0.85;
  color: inherit;
}

/* Shop Buttons Light Shake & Enlarge Animation with 3-Second Cooldown */
@keyframes shopButtonShakePulse {
  0% {
    transform: scale(1);
  }

  3% {
    transform: scale(1.08) rotate(-4deg);
  }

  6% {
    transform: scale(1.14) rotate(4deg);
  }

  9% {
    transform: scale(1.14) rotate(-3deg);
  }

  12% {
    transform: scale(1.1) rotate(3deg);
  }

  15% {
    transform: scale(1.05) rotate(-1deg);
  }

  18% {
    transform: scale(1) rotate(0deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

a[href="shop.html"].stamp-card,
.shop-hero-btn {
  animation: shopButtonShakePulse 3.8s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

a[href="shop.html"].stamp-card:hover,
.shop-hero-btn:hover {
  animation-play-state: paused;
}

/* Fullscreen Black Fade Transition Overlay */
.black-fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
}

.black-fade-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Skill Tree Child Node Projects Modal */
.skill-project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

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

.skill-project-modal-container {
  background: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 210, 255, 0.15);
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-project-modal-overlay.active .skill-project-modal-container {
  transform: scale(1);
}

.skill-project-modal-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-project-modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #58a6ff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-project-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.skill-project-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.skill-project-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.skill-project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 166, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.skill-project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-project-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f0f6fc;
  margin: 0;
}

.skill-project-card-link {
  color: #58a6ff;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(88, 166, 255, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.skill-project-card-link:hover {
  background: #58a6ff;
  color: #0d1117;
}

.skill-project-card-desc {
  font-size: 0.88rem;
  color: #8b949e;
  margin: 0 0 12px 0;
  line-height: 1.45;
}

.skill-project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-project-tag {
  font-size: 0.72rem;
  background: rgba(56, 139, 253, 0.15);
  color: #58a6ff;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(56, 139, 253, 0.3);
}