body {
  overflow-x: hidden;
}

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

.bg {
  background-color: black;
}

.page-sec {
  background-color: #333;
  color: white;
  /* min-height: 90vh; */
  min-height: 93.5vh;
  margin: 10px;
  border-radius: 15px;
  padding: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 100px rgba(255, 255, 255, 0.23);
  border: 1px solid rgba(255, 255, 255, 0.109);
  position: relative;
  scroll-snap-align: start;
}

.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,
#online-judge,
#skills,
#useful-tools,
#support,
#social {
  scroll-margin-top: 2.2vh;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

nav {
  position: fixed;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(10, auto);
  gap: 10px;
  background-color: #ffffff25;
  padding: 10px;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.616);
  z-index: 1000;
  backdrop-filter: blur(8px);
  justify-content: center;
}

@media (max-width: 600px) {

  html {
    /* scroll-behavior: smooth; */
    scroll-snap-type: y proximity;
  }

  /* .exd-sec-p {
    padding-bottom: 20vh;
  }

  .exd-sec-m {
    margin-bottom: 20vh !important;
  } */


  nav {
    grid-template-columns: repeat(5, auto);
    border-radius: 20px;
    bottom: 4vh;
    /* top: 0; */
  }
}

nav a {
  color: rgba(255, 255, 255, 0.7);
  border: 0.1px solid rgba(255, 255, 255, 0.322);
  border-radius: 50px;
  padding: 0;
  text-decoration: none;
  font-size: 16px;
  transition: 0.2s ease-in-out;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Tooltip Logic */
nav a::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Segoe UI", Roboto, sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  text-transform: capitalize;
}

nav a::before {
  content: "";
  color: transparent;
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

nav a:hover::after,
nav a:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 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;
  }
}

/* ########################################### */
/* 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 */

.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;
  }
}


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

/*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;
  }

}