@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600&family=Share+Tech+Mono&display=swap');

.contra-cta {
  text-align: center;
  margin: 2rem 0 1.5rem;
  padding: 0 1rem; 
}

.contra-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.9rem 1.8rem;
  min-height: 48px;        
  min-width: 220px;

  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;

  text-decoration: none;
  color: #1a1b2b;

  background: linear-gradient(90deg, #6effd5, #ffe57f);
  border-radius: 16px;

  box-shadow: 0 0 14px rgba(110, 255, 213, 0.45);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;

  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .contra-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(255, 229, 127, 0.7);
    filter: brightness(1.05);
  }
}

.contra-button:active {
  transform: scale(0.98);
}

.contra-button:focus-visible {
  outline: 3px solid #ffe57f;
  outline-offset: 4px;
}

@media (hover: none) {
  .contra-button {
    box-shadow: 0 0 18px rgba(110, 255, 213, 0.55);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .contra-button {
    width: 100%;
    max-width: 260px;

    font-size: 1.05rem;
    padding: 1rem 1.6rem;
    min-height: 52px;

    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .contra-button {
    width: 100%;            
    max-width: 150px;
    font-size: 0.9rem;
    padding: 1rem 1.2rem;
  }
}

/* =========================================================
   Perseverance Afterword Card — Typographic Balance
   ========================================================= */

#perseverance-card {
  display: flex;
  justify-content: center;
  padding: 4.5rem 1.5rem 4.5rem;
}

.perseverance-inner {
  background: #f7f2e8;
  max-width: 760px;
  width: 100%;

  padding: 3.25rem 3.25rem 3.75rem;
  border-radius: 12px;

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.32);

  color: #000000;
}

.perseverance-image {
  display: block;
  max-width: 230px;
  width: 100%;
  margin: 0 auto 2.25rem;
  opacity: 0.95;
}

#perseverance-card h2 {
  text-align: center;
  font-weight: 500;
  font-size: 2rem;       
  letter-spacing: 0.08em;
  margin-bottom: 2.25rem;      
  color: #000000;
}

.perseverance-notes {
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

.perseverance-notes li {
  font-size: 1.3rem;          
  line-height: 1.75;           
  margin-bottom: 1rem;    
  padding-left: 1.4rem;
  position: relative;
  color: #000000;
}

.perseverance-notes li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.2em;
  font-size: 1.5rem;
  opacity: 0.5;
}

.welcome-section {
  padding: 2.5rem 1rem;
  position: relative;
}

.welcome-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  pointer-events: none;
}

.itch-embed-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem;
  border-radius: 20px;
}

.itch-embed-wrap iframe {
  border-radius: 12px;
}

.video-square {
  width: 250px;
  height: 250px;
}

.video-wrap {
  position: relative;
  width: 250px;
  height: 250px;
  background: black;
  border-radius: 14px;
  overflow: hidden;
}

.video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.overlay-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
}

.video-wrap.is-playing .overlay-play {
  opacity: 0;
  pointer-events: none;
}

.video-wrap.is-paused .overlay-pause {
  opacity: 0;
  pointer-events: none;
}

.endorsement-card {
  max-width: 42ch;
  margin: 0 auto 2rem auto;
  padding: 1.6rem 1.4rem 1.4rem;

  background: rgba(255, 255, 255, 0.78);
  border-radius: 14px;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
}

.endorsement-quote {
  color: #111;
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  letter-spacing: 0.01em;
  margin: 0;
}

.endorsement-quote p {
  margin: 0 0 0.85rem 0;
}

.endorsement-quote p:last-child {
  margin-bottom: 0;
}

.endorsement-attribution {
  color: #222;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.8rem;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .endorsement-quote,
  .endorsement-attribution {
    font-size: 0.8rem;
  }
}

/* === 🌈 Portfolio + SourceHut Buttons Global === */

.logo-badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem; 
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.logo-container,
.badge-container {
  max-width: 200px;
}

.logo-container img,
.badge-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px; 
}

a[href*="4900125"] {
  color: #a505ce; 
  text-shadow:
    0 0 6px rgba(247, 0, 255, 0.25),
    0 0 10px rgba(196, 235, 248, 0.25);
  font-size: 1.4rem; 
  transition: color 0.35s ease, text-shadow 0.35s ease, font-size 0.25s ease;
}

a[href*="4900125"]:hover {
  color: #00e0ff; 
  text-shadow:
    0 0 10px rgba(0, 240, 255, 0.8),
    0 0 20px rgba(0, 180, 255, 0.7),
    0 0 30px rgba(0, 120, 255, 0.6);
  font-size: 1.5rem;
}

.portfolio-btn-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 8rem;
  flex-wrap: wrap;
}

.portfolio-btn {
  background: linear-gradient(90deg, #00ffe5, #ff66cc, #ffa500);
  color: #ffffff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 400px;
  width: auto;
  box-shadow: 0 0 8px #00ffe5, 0 0 12px #ff66cc;
  transition: all 0.3s ease;
}

.portfolio-btn:hover {
  box-shadow: 0 0 10px #ff66cc, 0 0 25px #00ffe5;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .nav-spacer { height: 20rem; } 
}

.section-fade-bottom {
  position: relative;
  overflow: visible;
}

.section-fade-bottom::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
  z-index: 4;
}

/* ✦ 1) Welcome section */
.fade-yellow-to-pastel::after {
  background: linear-gradient(
    rgba(0, 255, 255, 0),
    rgba(140, 242, 255, 0.657)
  );
}

/* ✦ 2) After orange → MAGENTA */
.fade-purple-to-dark::after {
  background: linear-gradient(
    rgba(255, 170, 60, 0),
    rgba(255, 60, 180, 1)
  );
}

.synthwave-table {
  width: 100%;
  margin-bottom: 2rem;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 10px #ff6bff66,
    0 0 18px #00eaff44 inset;
}

.synthwave-table th {
  background:#00eaff;
  color: #111;
  font-size: 1.05rem;
  padding: 0.75rem 0.9rem;
  text-shadow: 0 0 2px #ffffffaa;
}

.synthwave-table td {
  background: rgba(255, 255, 255, 0.55);
  color: #111;
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #00eaff44;
  line-height: 1.5;
}

.synthwave-category {
  width: 22%;
  font-weight: 700;
  font-size: 0.9rem;
  color: #222;
  background: rgba(255, 255, 255, 0.75);
  text-shadow: 0 0 2px #ff6bff44;
  border-right: 1px solid #ff6bff44;
  padding: 0.65rem 0.8rem;
}

.synthwave-table tr:last-child td {
  border-bottom: none;
}

.synthwave-table.compact td,
.synthwave-table.compact th {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* =========================================
   === Featured Projects ===
   ========================================= */
.projects-grid.featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Section padding */
#projects { padding: 3rem 2rem; }

/* --- Horizontal scroll strip --- */
.projects-scroll-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 1rem 0 1rem;
}

.projects-row {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: auto;
  scrollbar-color: #ff82c6 #1a1a1a;
  padding: 0.5rem 3rem;
}
.projects-row::-webkit-scrollbar { height: 10px; }
.projects-row::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff82c6, #ffd86f);
  border-radius: 10px;
}
.projects-row::-webkit-scrollbar {
  height: 10px; 
}

.projects-row::-webkit-scrollbar-track {
  background: #2e2e2e;
  border-radius: 10px;
}

.projects-row::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff82c6, #ffd86f);
  border-radius: 10px;
}

/* Firefox only */
.projects-row {
  scrollbar-width: 10px;
}

/* --- Featured cards --- */
.project-card {
  flex: 0 0 240px;                    
  background: linear-gradient(160deg, #31284b 0%, #e6f56155 100%);
  border-radius: 14px;
  padding: 0.7rem;
  color: #e8faff;
  text-align: left;
  box-shadow:
    0 0 11px rgba(255, 255, 255, 0.08),
    0 0 4px rgba(125, 249, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 182, 255, 0.25);
  flex-shrink: 0;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 22px rgba(255, 192, 255, 0.3),
    0 0 12px rgba(255, 255, 150, 0.25);
}
.project-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 0.35rem;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}
.project-card h3 {
  font-size: 1rem;
  margin: 0.4rem 0 0.35rem;
  color: #7df9ff;
  text-shadow: 0 0 6px rgba(125, 249, 255, 0.4);
}
.project-card p {
  font-size: 0.85rem;
  text-shadow: 1px 1px 2px #00000055;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 0.7rem;
}

/* --- Buttons --- */
.project-card .btn {
  display: inline-block;
  background: linear-gradient(90deg, #ff82c6, #ffd86f, #7df9ff);
  background-size: 200%;
  color: #2d004a;
  font-weight: bold;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255, 200, 255, 0.25);
  transition:
    background-position 0.4s ease,
    transform 0.2s ease,
    opacity 0.3s ease;
}
.project-card .btn:hover {
  background-position: right center;
  transform: scale(1.05);
  opacity: 0.9;
}

/* --- Fade edges for scroll area --- */
.projects-scroll-container::before,
.projects-scroll-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 70px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.projects-scroll-container::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgb(234, 236, 220) 30%,
    rgba(125, 249, 255, 0.05),
    transparent
  );
}
.projects-scroll-container::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgb(241, 240, 221) 30%,
    rgba(255, 130, 198, 0.08),
    transparent
  );
}

/* --- Scroll buttons --- */
.scroll-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: -0.4rem;
}

.scroll-buttons button {
  background: linear-gradient(90deg, #00ffe5, #ff66cc, #ffa500);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  color: #2d004a;
  font-size: 1rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.scroll-buttons button:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* --- Featured responsive tweaks --- */
@media (max-width: 700px) {
  .project-card { flex: 0 0 220px; padding: 0.7rem; }
  #projects { padding: 2rem 1rem; }
}

/* 🌈 Soft Skills Radar Chart Section */
#soft-skills {
  margin: 3rem auto;
  padding: 1rem;
  overflow-x: hidden;
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
}

#soft-skills p {
  text-align: center;
  font-size: 1.2rem;
  color: #2c003e;
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

#soft-skills h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.8rem;
  font-family: 'Orbitron', sans-serif;
  color: #ff66cc;
  text-shadow: 0 0 12px #ff66cc, 0 0 20px #00ffe5;
}

/* 🎨 Chart canvas container */
.chart-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 420px; 
  margin: 0 auto;
  background: linear-gradient(135deg, #ffd6fa 0%, #d0ccff 100%);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 0 20px rgba(255, 150, 255, 0.3);
  animation: soft-chart-glow 6s ease-in-out infinite;
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 2rem;
}

#softSkillsChart {
  width: 100% !important;
  height: 100% !important;
  display: block;
  max-width: 100% !important;
}

/* ✨ Chart glow animation */
@keyframes soft-chart-glow {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(255, 100, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(255, 180, 255, 0.6));
  }
}

/* 🪐 Glowing halo rings */
.halo-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
}

/* ✨ Halo container */
.halo-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10;
}

/* 📝 Tooltip for milestones */
.chartjs-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.8rem;
  pointer-events: none;
  word-wrap: break-word;
  line-height: 1.4;
  z-index: 999;
  word-break: break-word;
  max-width: 90vw;
  white-space: pre-line !important; 
  overflow-wrap: break-word;
  text-align: left;
  font-size: 14px;
  box-shadow: 0 0 10px #ff66cc66;
}

#soft-skills {
  overflow-x: clip;
}

#softSkillsChart {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}

.chart-container {
  overflow: hidden;
}

/* 📱 Mobile Adjustments */
@media (max-width: 768px) {
  .chart-container {
    padding: 0.75rem;
    max-width: 100%;
  }

  #soft-skills h2 {
    font-size: 1.2rem;
  }

  #soft-skills p {
    font-size: 0.70rem;
    padding: 0 0.5rem;
  }

  .chartjs-tooltip {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .chart-container {
    padding: 0.5rem;
    max-width: 100%;
  }

  #soft-skills h2 {
    font-size: 1.2rem;
  }

  #soft-skills p {
    font-size: 0.7rem;
  }

  .chartjs-tooltip {
    font-size: 12.5px;
  }
}

/* 🌐 NAV BAR */
.top-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 160px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border: 2px solid #ff6bff;
  border-radius: 0 0 14px 14px;
  padding: 0.7rem 1rem;
  box-shadow:
    0 0 12px #ff6bff88,
    0 0 18px #00eaff66 inset;

  box-sizing: border-box;
  z-index: 10000;
}

.top-nav a {
  display: block;
  text-align: center;
  white-space: normal;             
  word-break: break-word;          
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.2rem;
  padding: 0.4rem 0.6rem;
  color: #141414;
  font-weight: 700;
  position: relative;
  border-radius: 6px;
  transition: 0.25s ease;
}

.top-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ff6bff, #00eaff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.top-nav a:hover {
  color: #000;
  text-shadow: 0 0 5px #ff6bffaa, 0 0 6px #00eaffaa;
}

.top-nav a:hover::after {
  transform: scaleX(1);
}

/* mobile */
@media (max-width: 768px) {
  .top-nav {
    width: 100%;
    left: 0;
    transform: none;
    padding: 0.9rem 1rem;
    border-radius: 0 0 16px 16px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .top-nav a {
    font-size: 1rem;
  }

  .nav-spacer {
    height: 6rem;
  }
}

body {
  background: 
    linear-gradient(
      rgba(10, 10, 20, 0.6),
      rgba(10, 10, 20, 0.6)
    ),
    url('https://images-assets.nasa.gov/image/PIA21421/PIA21421~orig.jpg')
    no-repeat center center fixed;

  background-size: cover;
  background-blend-mode: multiply;

  color: #f8f8f8;
  font-family: 'Share Tech Mono', monospace;
  margin: 4rem auto;
  max-width: 980px;
  line-height: 1.8;
  padding: 2.5rem 3rem;
  box-shadow: 0 0 40px #ff66cc;
  border: 3px solid #ff66cc;
  border-radius: 20px;
  font-size: 1rem;

  backdrop-filter: blur(8px) brightness(0.9);
}

/* 📱 mobile-only: */
@media (max-width: 768px) {
  body {
    padding-top: 6rem; 
  }
}

a {
  color: #ffeb3b;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: text-shadow 0.3s ease-in-out;
  margin-bottom: 2.5rem;
}

a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: #ffeb3b;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

a:hover {
  text-shadow: 0 0 8px #ffeb3b, 0 0 14px #ffeb3b;
}

a:hover::after {
  visibility: visible;
  transform: scaleX(1);
}

h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  color: #ff66cc;
  text-shadow: 0 0 12px #ff66cc, 0 0 20px #00ffe5;
}

h1 {
  font-size: 3rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  border-bottom: 3px solid #ff66cc;
  padding-bottom: 0.5rem;
}

ul {
  list-style-type: square;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.75rem;
}

em {
  color: #89f0ff;
  font-style: italic;
}

footer {
  text-align: center;
  margin-top: 4rem;
  color: #aaa;
  font-size: 1rem;
  border-top: 1px solid #333;
  padding-top: 1.5rem;
}

::selection {
  background: #ffeb3b;
  color: #1a0033;
}

.highlight-btn-wrapper {
  text-align: center;
  margin: 2rem 0;
}

.highlight-btn {
  display: inline-block;
  background:#ff0088;
  color: #1a1a2f;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow:
    0 0 10px #ffe600,
    0 0 20px #fffb00c5,
    0 0 30px #eeff00;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.highlight-btn:hover {
  background: #ff0088;
  transform: scale(1.05);
  box-shadow:
    0 0 15px #ff99dd,
    0 0 30px #ff66ccaa;
}

/* === SIDE COLUMNS === */
.side-column {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 60px;
  overflow: visible;
  z-index: 100;
  pointer-events: none;
}
.left-column { left: 0; }
.right-column { right: 0; }

/* === SCROLLING ICONS === */
.scrolling-icon {
  position: absolute;
  width: 50px;
  height: auto;
  left: 5px;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
  z-index: 1;
  opacity: 0;
}

/* === ROCKET === */
.rocket {
  animation-name: rocketScroll, fadeInOut;
  animation-duration: 20s, 20s;
  filter: drop-shadow(0 0 4px magenta) drop-shadow(0 0 8px magenta);
}

/* === ALIEN === */
.alien {
  animation-name: alienScroll, fadeInOut;
  animation-duration: 20s, 20s;
  filter: drop-shadow(0 0 4px yellow) drop-shadow(0 0 8px yellow);
}

/* === FADE IN/OUT === */
@keyframes fadeInOut {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; }
}

/* === MOVEMENT === */
@keyframes rocketScroll {
  0%   { top: 100%; }
  100% { top: -60px; }
}

@keyframes alienScroll {
  0%   { top: -60px; }
  100% { top: 100%; }
}


/* HIGHLIGHT BLOCK */

.highlight-block {
  background-color: #fcef78;
  margin-bottom: 2rem;
  color: #111;
  display: block;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 0 10px #fdf5a8aa, 0 0 20px #ffeb3b55;
  text-align: center;
}

.highlight-block ul {
  list-style-type: square;
  padding-left: 1.5rem;
  margin-top: 1rem;
  text-align: left;
}

.highlight-block li {
  margin-bottom: 0.75rem;
  color: #111;
  font-weight: normal;
  text-shadow: none;
}

.highlight-block p {
  text-align: left;
  margin-top: 1rem;
  line-height: 1.7;
}

/* Rainbow Glow for <strong> */

.highlight-block strong {
  font-weight: 700;
  color: #ffffff;
  animation: rainbowGlow 3s infinite ease-in-out;
}

/* Rainbow Glow Animation */

@keyframes rainbowGlow {
  0% {
    text-shadow:
      0 0 4px #ff0080,
      0 0 6px #ff8c00,
      0 0 8px #ffff00,
      0 0 10px #00ff00,
      0 0 12px #00ffff,
      0 0 14px #0000ff,
      0 0 16px #8a2be2;
  }
  50% {
    text-shadow:
      0 0 8px #8a2be2,
      0 0 10px #0000ff,
      0 0 12px #00ffff,
      0 0 14px #00ff00,
      0 0 16px #ffff00,
      0 0 18px #ff8c00,
      0 0 20px #ff0080;
  }
  100% {
    text-shadow:
      0 0 4px #ff0080,
      0 0 6px #ff8c00,
      0 0 8px #ffff00,
      0 0 10px #00ff00,
      0 0 12px #00ffff,
      0 0 14px #0000ff,
      0 0 16px #8a2be2;
  }
}

/* === 📟 Command Button === */
.command-btn {
  background-color: #111;
  color: #ffeb3b;
  border: 2px solid #ffeb3b;
  font-family: 'Share Tech Mono', monospace;
  padding: 0.4rem 0.9rem;
  margin-top: 1.1rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.command-btn:hover {
  background-color: #ffeb3b;
  color: #111;
  box-shadow: 0 0 8px #ffeb3b88;
}

/* === 💻 Command Output === */
.command-output {
  transition: opacity 1s ease-in-out, transform 0.3s ease-in-out;
  opacity: 1;
  max-width: 600px;
  margin: 1.5rem auto;
  padding: 1.2rem;
  border: 2px solid #00ffe5;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #00ffe5;
  font-family: monospace;
  white-space: pre-wrap;
  text-shadow: 0 0 6px #00ffe5;
  box-shadow: 0 0 12px #00ffe544;
  animation: pulseCyan 2.5s infinite;
}

/* === 🌊 Cyan Pulse Animation === */
@keyframes pulseCyan {
  0% {
    box-shadow: 0 0 6px #00ffe5, 0 0 12px #00ffe588;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 12px #00ffe5, 0 0 20px #00ffe5cc;
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 6px #00ffe5, 0 0 12px #00ffe588;
    transform: scale(1);
  }
}

/* === 👻 Fade-Out for Auto-Remove === */
.command-output.fade-out {
  opacity: 0;
  transform: scale(0.98);
}


/* ✨ Fade-in and fade-out */
@keyframes fadeScroll {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* Sitemap Styles */

.sitemap {
  margin-top: 3rem;
  padding: 2rem;
  border: 2px solid #00ffe5;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 20px #00ffe544;
  text-align: center;
}

.sitemap-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: #ff66cc;
  text-shadow: 0 0 10px #ff66cc, 0 0 20px #00ffe5;
  margin-bottom: 1.5rem;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 1.2rem;
}

.sitemap-grid a {
  font-weight: bold;
}

.sitemap-box {
  display: block;
  background-color: rgba(255, 235, 59, 0.1);
  color: #ffeb3b;
  padding: 1rem;
  border: 2px solid #ffeb3b;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px #ffeb3b33;
}

.sitemap-box:hover {
  background-color: #ffeb3b;
  color: #111;
  box-shadow: 0 0 12px #ffeb3b;
}

/* Highlight‐block button */

.highlight-block .highlight-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(45deg, #ff6ef5, #ffe66d, #6effd5);
  color: #111;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.highlight-block .highlight-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Trans Logo */

.trans-logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.trans-logo-wrapper {
  background-color: rgba(0, 0, 0, 0.058);
  border-radius: 20px;
  padding: 1.2rem;
  animation: shimmerGlow 3s infinite ease-in-out;
  transition: all 0.3s ease-in-out;
  max-width: 280px;
  z-index: 1;
  position: relative;
}

.trans-logo-wrapper:hover {
  animation: none !important;
  box-shadow:
    0 0 12px #ff66cc,
    0 0 20px #6effd5,
    0 0 30px #ffeb3b,
    0 0 40px #00ffe5 !important;
  transform: scale(1.05);
}

.trans-logo-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  position: relative;
  z-index: 1; 
}

.trans-logo {
  position: relative;
  overflow: hidden;
  display: inline-block;
  z-index: 1;
}

.trans-logo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}

.shimmer-overlay {
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: skewX(-25deg);
  animation: shimmer 2.5s infinite;
  z-index: 3;
  pointer-events: none;
}

/* Animation Keys */

@keyframes shimmer {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

@keyframes shimmerGlow {
  0% {
    box-shadow:
      0 0 8px #ff66cc,
      0 0 12px #6effd5,
      0 0 16px #ffeb3b;
  }
  50% {
    box-shadow:
      0 0 16px #ff66cc,
      0 0 24px #6effd5,
      0 0 32px #00ffe5;
  }
  100% {
    box-shadow:
      0 0 8px #ff66cc,
      0 0 12px #6effd5,
      0 0 16px #ffeb3b;
  }
}

.site-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  text-align: center;
  margin-top: 1rem;
  letter-spacing: 0.08em;
  color: #ffffff;

  text-shadow:
    0 0 6px rgba(255, 102, 204, 0.7),
    0 0 12px rgba(110, 255, 213, 0.5),
    0 0 18px rgba(0, 255, 229, 0.35);

  animation: glowTitle 5s ease-in-out infinite;
}

@keyframes glowTitle {
  0% {
    text-shadow:
      0 0 6px rgba(255, 102, 204, 0.6),
      0 0 12px rgba(110, 255, 213, 0.4),
      0 0 18px rgba(0, 255, 229, 0.25);
  }
  50% {
    text-shadow:
      0 0 12px rgba(255, 102, 204, 0.9),
      0 0 22px rgba(110, 255, 213, 0.7),
      0 0 30px rgba(0, 255, 229, 0.5);
  }
  100% {
    text-shadow:
      0 0 6px rgba(255, 102, 204, 0.6),
      0 0 12px rgba(110, 255, 213, 0.4),
      0 0 18px rgba(0, 255, 229, 0.25);
  }
}


#sparkle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.site-footer {
  text-align: center;
  margin-top: 4rem;
  padding: 1rem;
  font-size: 1.2rem; 
  color: #ffeb3b;
  border-top: 1px solid #ffeb3b;
  text-shadow: 0 0 5px #ff66cc, 0 0 10px #ff66cc;
}


/* MOBILE */

/* ✨ Mobile – Up to 768px */
@media (max-width: 768px) {

  /* 📍 Side Columns & Emojis */
  .left-column {
    left: 0;
    transform: translateX(-4px);
  }

  .right-column {
    right: 0;
    transform: translateX(4px); 
  }

  /* 📚 Project List – Mobile Spacing Adjustment */
  .project-list li {
    margin-bottom: 0.5rem !important; 
    line-height: 1.3 !important;      
    display: flex;
    flex-direction: column;
    gap: 1rem; 
    font-weight: bold;
  }

  .project-list a {
    font-size: 0.95rem !important;
    font-weight: bold;
  }

  /* 🌠 Animated Icons */
  .scrolling-icon {
    width: 30px !important;
    z-index: 9999 !important;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
  }


  /* 📎 CTA Buttons */
  .highlight-btn-wrapper .highlight-btn,
  .highlight-block#report .highlight-btn {
    font-size: 0.9rem !important;
    padding: 0.6rem 1rem !important;
    border-radius: 10px !important;
    max-width: 260px;
    width: 90%;
    margin: 1rem auto !important;
    display: block;
    text-align: center;
  }

  /*  GitLab Report Block */
  .highlight-block#report {
    max-width: 95%;
    padding: 1rem;
  }

  /*  Tattoo Portfolio */
  .highlight-btn-wrapper {
    margin: 1.5rem auto;
    text-align: center;
    max-width: 95%;
  }

/* ===========================
   MicroTCU-9 Widget (Desktop/Base)
   =========================== */
#micro-widget {
  padding: 2rem 1rem 0 1rem;
  max-width: 95% !important;
  margin: 0 auto !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  overflow: hidden;
}

#micro-widget h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

#micro-widget img {
  width: 70px;
  margin-bottom: 0.5rem;
}

#micro-terminal {
  padding: 1rem 1rem 0 1rem;
  margin-bottom: 0 !important;
  border-bottom: none !important;
}

#terminal-output {
  font-size: 0.85rem;
  min-height: 36px;
}

#terminal-input {
  font-size: 0.9rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0 !important;
}

/* ===========================
   Heroes You Should Know About
   =========================== */
#toggle-heroes {
  font-size: 1rem !important;
  padding: 0.6rem 1rem !important;
  border-radius: 8px !important;
  box-shadow: 0 0 6px #ff6ec7, 0 0 12px #ffe10080 inset;
}

#heroes-content h3 {
  font-size: 1.05rem !important;
}

#heroes-content li {
  font-size: 0.85rem !important;
  line-height: 1.4;
  padding-left: 1.6rem;
  max-width: 95%;
  margin: 0 auto;
}

#heroes-content li::before {
  font-size: 0.9rem !important;
}

/* ===========================
   Sitemap Styles
   =========================== */
.sitemap-box,
.sitemap-grid a {
  display: block;
  margin-bottom: 0.15rem !important;
  line-height: 1.1 !important;
  font-size: 0.75rem !important;
  padding: 0.2rem 0.3rem !important;
}

.sitemap-title {
  font-size: 1rem !important;
}

/* ===========================
   Project Cards
   =========================== */
.project-card {
  font-size: 0.7rem !important;
  padding: 0.5rem !important;
}

.project-card .btn,
.cta-button {
  font-size: 0.7rem !important;
  padding: 0.5rem 0.7rem !important;
}

.highlight-block {
  font-size: 0.75rem !important;
  padding: 0.6rem !important;
}

/* ===========================
   Terminal Font Scaling
   =========================== */
.terminal,
.terminal-content,
.terminal-output {
  font-size: 0.7rem !important;
  line-height: 1.4 !important;
}

/* ===========================
   Footer
   =========================== */
.footer,
.site-footer {
  font-size: 0.75rem !important;
  padding-top: 0.8rem !important;
}

.highlight-block,
.sitemap,
#micro-widget,
.project-card,
.cta-button,
#toggle-heroes {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 12px;
}

body {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* =========================================
   Mobile Overrides – Up to 768px (Single MQ)
   ========================================= */
@media screen and (max-width: 768px) {
  /* Layout fixes */
  .left-column {
    left: 0 !important;
    transform: translateX(-4px) !important;
  }

  .right-column {
    right: 0 !important;
    transform: translateX(20px) !important;
  }

  .scrolling-icon {
    position: absolute !important;
    width: 30px !important;
    opacity: 1 !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-fill-mode: forwards !important;
  }

  .rocket {
    filter: drop-shadow(0 0 10px magenta) drop-shadow(0 0 18px magenta) !important;
    z-index: 9999;
  }

  .alien {
    filter: drop-shadow(0 0 10px yellow) drop-shadow(0 0 18px yellow) !important;
    z-index: 9999;
  }

  .sitemap-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  .top-nav {
    z-index: 10000 !important;
  }

  /* 📱 Portfolio button adjustments */
  .portfolio-btn-wrapper {
    flex-direction: column;
    align-items: center;
    margin-top: 18rem;
  }

  .portfolio-btn {
    font-size: 1rem !important;
    padding: 1rem 1.25rem !important;
    width: 90% !important;
    max-width: 90vw;
    box-sizing: border-box;
    line-height: 1.4;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
  }

  #micro-widget h2 {
    font-size: 1.5rem;
  }
  #terminal-output { font-size: 0.8rem; }
  #terminal-input  { font-size: 0.85rem; }
}
}

@media (max-width: 600px) {
  a[href*="4900125"] {
    font-size: 1rem;
  }

  a[href*="4900125"]:hover {
    font-size: 1.1rem;
  }
}

/* ===== Browse All Projects: kill global link underline/glow & center content ===== */
#projects .mini-card-link,
#projects .mini-card-link:hover,
#projects .mini-card-link:focus,
#projects .mini-card-link:active{
  color: inherit !important;
  text-decoration: none !important;        
  text-shadow: none !important;            
  border: 0 !important;
  box-shadow: none !important;
}

#projects .mini-card-link::after{ 
  content: none !important; 
}

#projects .mini-card img{
  display: block !important;
  margin: 0 auto !important;               
  float: none !important;
}
#projects .mini-card h3{
  text-align: center !important;
  margin: 0;
}

#projects .project-card .btn::after{
  content: none !important;
}

.solar-game-wrapper {
  position: relative;
  max-width: 440px;
  margin: auto;
  padding: 1.2rem;
}

.solar-game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #80e0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  border-radius: 12px;
  transition: opacity 0.3s;
}

.solar-game-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Responsive scaling ---------- */
@media (max-width: 768px) {
  iframe {
    width: 100%;
    height: 60vw;
    max-height: 480px;
  }

  .solar-journey-pane h3 {
    font-size: 1.3rem !important;
  }

  .solar-journey-pane p {
    font-size: 0.75rem !important;
  }

  .solar-game-wrapper {
    padding: 0.8rem !important;
    max-width: 90% !important;
  }

  .solar-game-overlay {
    font-size: 0.85rem !important;
  }
}

/* ---------- Smaller phones ---------- */
@media (max-width: 480px) {
  .solar-journey-pane h3 {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 768px) {

  .synthwave-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    border-radius: 8px;
  }

  .synthwave-table th,
  .synthwave-table td {
    padding: 10px;
    font-size: 0.9rem;
  }

  .synthwave-category {
    font-size: 1rem;
  }

  .synthwave-table {
    box-shadow: 0 0 16px #ff00e0;
  }
}

@media (max-width: 480px) {

  .synthwave-table th {
    font-size: 1rem;
    padding: 8px;
  }

  .synthwave-table td {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 8px;
  }

  .synthwave-category {
    font-size: 0.95rem;
  }
}

#welcome-title.site-title {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.welcome-section {
  padding-top: 0.8rem;
  padding-bottom: 1.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ===============================
   DEFAULT (DESKTOP FIRST)
   =============================== */

/* Hide all mobile UI by default */
.mobile-header,
.mobile-nav,
.mobile-portfolio-wrapper {
  display: none;
}


/* ===============================
   MOBILE LAYOUT
   =============================== */
@media (max-width: 768px) {

  /* Hide desktop UI */
  .top-nav,
  .portfolio-btn-wrapper {
    display: none !important;
  }

  /* ===============================
     Mobile Header Bar
     =============================== */
  .mobile-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    padding: 0.5rem 0.6rem;
    z-index: 10005;
    background: rgba(19, 5, 20, 0.815);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #ff6ec7;
    transition: transform 0.3s ease; 
  }

  .mobile-header .burger-btn {
    font-size: 1.6rem;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    filter: drop-shadow(0 0 6px #ff6ec7);
  }

  .mobile-header {
    z-index: 10005;
  }

  .mobile-nav {
    z-index: 10010;
  }

  /* ===============================
     Centered portfolio buttons
     =============================== */
  .mobile-portfolio-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
  }

  .mobile-portfolio-wrapper .portfolio-btn {
    font-size: 0.9rem !important;     
    padding: 0.55rem 0.85rem !important; 
    border-radius: 10px;
    white-space: nowrap;
  }

  /* ===============================
     Mobile Nav (burger menu)
     =============================== */
  .mobile-nav {
    display: none;
    position: fixed;
    top: 3.2rem;
    left: 0;
    right: 0;
    background: rgba(37, 4, 65, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1rem;
    gap: 0.6rem;
    z-index: 10010;
    border-bottom: 1px solid #ff6ec7;
    flex-direction: column;
  }

  .mobile-nav a {
    font-size: 0.95rem;
    padding: 0.4rem 0.6rem;
    text-decoration: none;
  }

  .mobile-nav.open {
    display: flex;
  }
}

/* ===============================
   Hide-on-scroll helper
   =============================== */
.mobile-header.hide {
  transform: translateY(-100%);
}

.mobile-nav.open {
  pointer-events: auto;
}

.mobile-header {
  pointer-events: auto;
}

.mobile-nav.open + .mobile-header {
  pointer-events: none;
}

.mobile-nav-close {
  align-self: flex-end;
  font-size: 1.6rem;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  filter: drop-shadow(0 0 6px #ff6ec7);
}

.mobile-nav-close:active {
  transform: scale(0.9);
}

@media (max-width: 768px) {
  .mobile-header {
    height: auto;
    max-height: 334px; 
  }
}

@media (max-width: 768px) {

  #perseverance-card {
    padding: 3.5rem 1.25rem 4rem;
  }

  .perseverance-inner {
    padding: 2.75rem 2rem 3.25rem;
  }

  .perseverance-image {
    max-width: 190px;
    margin-bottom: 2rem;
  }

  #perseverance-card h2 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }

  .perseverance-notes li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {

  .mobile-portfolio-zone {
    position: relative;   
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 10005;
  }

}

/* ---------- Mobile optimizations ---------- */

@media (max-width: 768px) {
  .video-card {
    margin: 1rem auto;
    padding: 0 0.75rem;
  }

  .video-wrap {
    border-radius: 12px;
  }

  .overlay-btn {
    width: 64px;
    height: 64px;
    font-size: 26px;
    bottom: 12px;
    left: 12px;
  }

 
/* ---------- Mobile optimizations ---------- */

@media (max-width: 768px) {
  .video-card {
    margin: 1rem auto;
    padding: 0 0.75rem;
  }

  .video-wrap {
    border-radius: 12px;
  }

  .overlay-btn {
    width: 64px;
    height: 64px;
    font-size: 26px;
    bottom: 12px;
    left: 12px;
  }

  .video-wrap.is-playing .overlay-pause {
    opacity: 1;
    pointer-events: auto;
  }

  .video-wrap.is-playing .overlay-play {
    opacity: 0;
    pointer-events: none;
  }

  .video-wrap.is-paused .overlay-play {
    width: 80px;
    height: 80px;
    font-size: 32px;
  }

  .video-caption {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .overlay-btn {
    transition: none;
  }
}
}

