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

html {
  width: 100%;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  width: 100%;
  background-color: #000;
  overflow-x: hidden;
}

/* Scroll track determining total scroll depth */
#scroll-container {
  width: 100%;
  height: 8000px;
  position: relative;
}

/* Fullscreen fixed canvas */
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* =========================================================
   REFERENCE-STYLE HERO UI OVERLAY
   ========================================================= */
.hero-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 48px;
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}

/* Top Navigation */
.top-nav {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s ease;
}

.brand-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  text-transform: lowercase;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
  cursor: pointer;
}

.brand-logo span {
  font-weight: 400;
  font-style: italic;
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  pointer-events: auto;
}

.nav-item {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.25s, text-shadow 0.25s, transform 0.25s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  padding: 4px 6px;
  display: inline-block;
}

.nav-item:hover {
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Top Navigation Dimmed State (Past Frame 175): Low Opacity, High on Hover */
.top-nav.dimmed {
  opacity: 0.35;
}

.top-nav.dimmed:hover {
  opacity: 1 !important;
}

/* Left Vertical Spine (from Ref Image) */
.left-spine {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  user-select: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.spine-item {
  line-height: 1;
}

/* Right Vertical Social Icons Spine (Portfolio, GitHub, LinkedIn) */
.right-spine {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  transform: scale(1.16);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}

.spine-line {
  width: 1px;
  height: 35px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  margin-top: 4px;
}


/* =========================================================
   3D GROUND PERSPECTIVE FLOOR TEXT (Frames 1 -> 50)
   ========================================================= */
.ground-3d-text {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  perspective: 700px;
  perspective-origin: 50% -30%;
  pointer-events: none;
  z-index: 12;
  will-change: transform, opacity;
  transform-origin: center bottom;
}

.ground-text-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: rotateX(66deg);
  transform-origin: center bottom;
  will-change: transform;
}

.ground-label {
  font-family: 'Anton', 'Impact', 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 12px;
  text-transform: uppercase;
  color: #eafff8;
  white-space: nowrap;
  text-shadow: 
    0 0 10px rgba(0, 255, 170, 0.7),
    0 0 25px rgba(0, 255, 170, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.95);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.9));
}

.ground-arrow {
  font-size: 26px;
  font-weight: 800;
  color: #00ffaa;
  text-shadow: 0 0 12px #00ffaa;
  animation: ground-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes ground-pulse {
  0% {
    transform: translateY(0);
    opacity: 0.7;
  }
  100% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* =========================================================
   3D INTERACTIVE INVISIBLE BILLBOARD HITBOX (Frames 348 -> 470)
   ========================================================= */
.billboard-hitbox {
  position: absolute;
  z-index: 18;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  pointer-events: auto;
  display: none;
}

/* Floating Cyber Green Bottom-Right Billboard Hint Popup */
.billboard-hint-popup {
  position: fixed;
  bottom: 36px;
  right: 42px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #00ffaa 0%, #00df94 100%);
  color: #051329;
  padding: 12px 22px;
  border-radius: 30px;
  border: 1.5px solid #00ffaa;
  cursor: pointer;
  pointer-events: auto;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.92);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  animation: billboard-glow-pulse 1.8s ease-in-out infinite alternate;
}

.billboard-hint-popup.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.billboard-hint-popup:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, #2bffc2 0%, #00ffaa 100%);
  box-shadow: 0 0 40px rgba(0, 255, 170, 0.9), 0 12px 30px rgba(0, 0, 0, 0.5);
}

.hint-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #051329;
  display: inline-block;
  animation: hint-dot-blink 1.2s ease-in-out infinite;
}

.hint-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  color: #051329;
}

.hint-arrow {
  font-size: 15px;
  font-weight: 900;
  color: #051329;
  transition: transform 0.2s ease;
}

.billboard-hint-popup:hover .hint-arrow {
  transform: translate(2px, -2px);
}

@keyframes billboard-glow-pulse {
  0% {
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.35), 0 6px 18px rgba(0, 0, 0, 0.35);
    opacity: 0.88;
  }
  100% {
    box-shadow: 0 0 32px rgba(0, 255, 170, 0.95), 0 0 50px rgba(0, 255, 170, 0.45), 0 12px 28px rgba(0, 0, 0, 0.45);
    opacity: 1;
  }
}

@keyframes hint-dot-blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(0.6);
  }
}

.monitor-hud {
  position: absolute;
  z-index: 15;
  pointer-events: auto;
  display: none;
  opacity: 0;
  transform-origin: center center;
  will-change: transform, opacity, width, height, top, left;
  cursor: pointer;
}

.monitor-about-surface {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  box-sizing: border-box;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  user-select: none;
}

/* Projects monitor — content positioned to upper-center matching screen perspective */
#project-monitor-hud .monitor-about-surface {
  justify-content: center;
  align-items: center;
  padding-left: 8%;
  padding-right: 4%;
  padding-top: 0;
}

.monitor-hud:hover .monitor-about-surface {
  transform: scale(1.04);
}

.about-screen-tag {
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: clamp(8px, 1.25vw, 13px);
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(0, 0, 0, 0.75);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.about-screen-text {
  font-family: 'Anton', 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 5.5vw, 56px);
  font-weight: 900;
  letter-spacing: 7px;
  color: #000000;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.about-screen-icon {
  font-size: clamp(11px, 1.8vw, 18px);
  font-weight: 900;
  color: #000000;
  animation: bounce-diag 1.4s infinite ease-in-out;
}

@keyframes bounce-diag {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -3px); }
}

/* =========================================================
   REFERENCE-MATCHED ULTRA-REALISTIC GLASSMORPHISM MODAL
   ========================================================= */
.glass-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.35); /* Subtle dark overlay so background 3D video remains visible */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.glass-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.glass-window {
  position: relative;
  width: 100%;
  max-width: 660px;
  /* True Optical Frosted Glass Gradient */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(15, 25, 30, 0.35) 100%);
  backdrop-filter: blur(36px) saturate(190%) contrast(105%);
  -webkit-backdrop-filter: blur(36px) saturate(190%) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top: 1.5px solid rgba(255, 255, 255, 0.55);
  border-left: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 
    0 35px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 25px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: scale(0.92) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.glass-modal-backdrop.open .glass-window {
  transform: scale(1) translateY(0);
}

/* Window Titlebar (macOS Style from Reference) */
.glass-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.dot-close { background-color: #ff5f56; }
.dot-min { background-color: #ffbd2e; cursor: default; }
.dot-max { background-color: #27c93f; cursor: default; }
.dot-close:hover { transform: scale(1.15); }

.window-url {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
}

.modal-close-x {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

.modal-close-x:hover {
  color: #fff;
  transform: scale(1.2);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.dot-close { background-color: #ff5f56; }
.dot-min { background-color: #ffbd2e; cursor: default; }
.dot-max { background-color: #27c93f; cursor: default; }
.dot-close:hover { transform: scale(1.15); }

.window-url {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
}

.modal-close-x {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

.modal-close-x:hover {
  color: #fff;
  transform: scale(1.2);
}

/* Glass Body */
.glass-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge-pill {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 255, 170, 0.12);
  border: 1px solid rgba(0, 255, 170, 0.3);
  border-radius: 999px;
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #00ffaa;
  margin-bottom: 8px;
}

.glass-heading {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: #fff;
}

.glass-heading span {
  color: #00ffaa;
  text-shadow: 0 0 16px rgba(0, 255, 170, 0.5);
}

.glass-subheading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.glass-bio-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-bio-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(240, 245, 245, 0.9);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.glass-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tag-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-badges .badge {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #00ffaa;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #00ffaa;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ffaa;
  animation: pulse-dot-anim 1.5s infinite ease-in-out;
}

@keyframes pulse-dot-anim {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Discreet Initial Loader */
.loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 99;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-overlay {
    padding: 20px 24px;
  }
  .left-spine, .right-spine {
    display: none;
  }
  .hero-subtitle {
    font-size: 14px;
    max-width: 90%;
  }
}

/* =========================================================
   PROJECTS DUAL-PANE GLASSMORPHISM MODAL & CARD STYLINGS
   ========================================================= */

.projects-window {
  width: 92vw;
  max-width: 1100px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.dual-pane-container {
  display: flex;
  flex-direction: row;
  height: calc(100% - 48px);
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Left Pane: Projects List */
.projects-list-pane {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  flex-shrink: 0;
}

.dual-pane-container.viewing-readme .projects-list-pane {
  transform: translateX(-30%) scale(0.96);
  opacity: 0;
  pointer-events: none;
}

/* Filter Bar */
.projects-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.pf-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pf-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.pf-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 700;
}

/* Projects Grid inside Glass Modal */
.projects-grid-container {
  padding: 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
  flex-grow: 1;
  align-content: start;
  outline: none;
}

.projects-grid-container:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(0, 255, 170, 0.35);
}

.projects-grid-container::-webkit-scrollbar,
.readme-content-wrapper::-webkit-scrollbar {
  width: 6px;
}
.projects-grid-container::-webkit-scrollbar-track,
.readme-content-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.projects-grid-container::-webkit-scrollbar-thumb,
.readme-content-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.projects-grid-container::-webkit-scrollbar-thumb:hover,
.readme-content-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Glass Project Card */
.glass-proj-card {
  background: rgba(20, 24, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  /* Fixed height enforced by grid-auto-rows */
}

.glass-proj-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(30, 36, 48, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.glass-proj-card .cat {
  font-size: 10px;
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  color: rgba(0, 255, 170, 0.8);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  display: block;
}

.glass-proj-card h3 {
  font-size: 15px;
  color: #f0f0f0;
  margin: 0 0 6px 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.3;
  /* Clamp to 2 lines max */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glass-proj-card p {
  font-size: 12px;
  color: rgba(220, 225, 235, 0.75);
  line-height: 1.5;
  margin: 0 0 auto 0;
  flex-grow: 1;
  /* Clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glass-proj-tech {
  display: none; /* hidden in grid view — shown only in README pane */
}

.glass-proj-tech span {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 5px;
}

.glass-proj-tech img {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
}

.glass-proj-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  margin-top: 8px;
  flex-shrink: 0;
}

.view-cs-btn {
  font-size: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #00ffaa;
  letter-spacing: 0.5px;
}

.direct-links {
  display: flex;
  gap: 12px;
}

.proj-ext-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.proj-ext-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.proj-ext-link img {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
}

/* Right Pane: README Case Study */
.projects-readme-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 16, 20, 0.7);
  backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.dual-pane-container.viewing-readme .projects-readme-pane {
  transform: translateX(0);
}

.readme-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
}

.readme-back-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.readme-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.readme-title-bar {
  flex-grow: 1;
  font-family: 'Anton', 'Space Grotesk', sans-serif;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.readme-out-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.readme-out-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.readme-content-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 32px 40px;
  scroll-behavior: smooth;
  outline: none;
}

.readme-content-wrapper:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(0, 255, 170, 0.35);
}

.readme-content {
  max-width: 820px;
  margin: 0 auto;
  color: #e0e0e0;
  line-height: 1.7;
  font-family: 'Inter', -apple-system, sans-serif;
}

/* Markdown Specifics for README */
.cs-markdown-body h1, .cs-markdown-body h2, .cs-markdown-body h3, .cs-markdown-body h4 {
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}
.cs-markdown-body h1 { font-size: 2em; border-bottom-width: 2px; }
.cs-markdown-body p { margin-bottom: 1.2rem; }
.cs-markdown-body a { color: #00ffaa; text-decoration: none; }
.cs-markdown-body a:hover { text-decoration: underline; }
.cs-markdown-body img { max-width: 100%; border-radius: 8px; margin: 1.5rem 0; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.cs-markdown-body pre { background: rgba(0, 0, 0, 0.6); padding: 1.2rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.5rem; border: 1px solid rgba(255, 255, 255, 0.1); }
.cs-markdown-body code { font-family: ui-monospace, monospace; font-size: 90%; background: rgba(255, 255, 255, 0.1); padding: 0.2em 0.4em; border-radius: 4px; color: #00ffaa; }
.cs-markdown-body pre code { background: none; padding: 0; color: inherit; }
.cs-markdown-body blockquote { border-left: 4px solid #00ffaa; padding: 0.5rem 1rem; color: #a0a0a0; margin: 0 0 1.5rem 0; background: rgba(0, 255, 170, 0.03); border-radius: 0 6px 6px 0; }
.cs-markdown-body ul, .cs-markdown-body ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.cs-markdown-body li { margin-bottom: 0.4rem; }
.cs-markdown-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cs-markdown-body th, .cs-markdown-body td { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.1); }
.cs-markdown-body th { background: rgba(255, 255, 255, 0.08); font-weight: 600; color: #fff; }
.cs-markdown-body hr { height: 1px; background: rgba(255,255,255,0.1); border: none; margin: 2rem 0; }

.cs-yt-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; border-radius: 8px; margin: 1.5rem 0; border: 1px solid rgba(255, 255, 255, 0.1); }
.cs-yt-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================
   SKILLS & CREDENTIALS MODAL
   ========================================================= */
.skills-window {
  max-width: 1080px;
  width: 92%;
  height: 84vh;
  max-height: 860px;
  display: flex;
  flex-direction: column;
}

.skills-body-container {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  gap: 16px;
  height: calc(100% - 50px);
  overflow: hidden;
}

.skills-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  flex-shrink: 0;
}

.sf-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sf-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.sf-btn.active {
  background: rgba(0, 255, 170, 0.15);
  color: #00ffaa;
  border-color: #00ffaa;
  box-shadow: 0 0 14px rgba(0, 255, 170, 0.3);
}

.skills-scroll-pane {
  flex-grow: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  outline: none;
}

.skills-scroll-pane::-webkit-scrollbar {
  width: 6px;
}

.skills-scroll-pane::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 170, 0.25);
  border-radius: 3px;
}

.skills-scroll-pane::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 170, 0.6);
}

.skills-sections-wrapper {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-bottom: 24px;
}

.skills-section-header {
  margin-bottom: 16px;
}

.skills-section-header h3 {
  font-family: 'Anton', 'Space Grotesk', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.skills-section-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin: 0;
}

/* Skills Matrix Clusters Grid */
.skills-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.skill-cluster-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill-cluster-card:hover {
  border-color: rgba(0, 255, 170, 0.3);
  transform: translateY(-2px);
}

.skill-cluster-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #00ffaa;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.skill-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #f0f0f0;
}

.skill-icon-img {
  width: 15px;
  height: 15px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.skill-pct-badge {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.skill-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #00df94 0%, #00ffaa 50%, #00b4d8 100%);
  box-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shelf / Verifiable Certifications Grid */
.shelf-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.glass-cert-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.glass-cert-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 255, 170, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 170, 0.15);
}

.cert-top-info {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.cert-badge-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cert-badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-badge-fallback {
  font-size: 22px;
}

.cert-main-text {
  flex-grow: 1;
}

.cert-meta-tag {
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #00ffaa;
  margin-bottom: 4px;
}

.cert-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 4px 0;
}

.cert-issuer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.cert-verify-btn {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #00ffaa;
  letter-spacing: 0.4px;
}

.cert-verify-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.glass-cert-card:hover .cert-verify-btn svg {
  transform: translate(2px, -2px);
}


/* CONTACT MODAL STYLES */
.contact-header {
  text-align: center;
  margin-bottom: 24px;
}

.glass-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.form-group {
  width: 100%;
}

.glass-input, .glass-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: #eafff8;
  outline: none;
  transition: all 0.3s ease;
}

.glass-textarea {
  resize: vertical;
  min-height: 100px;
}

.glass-input::placeholder, .glass-textarea::placeholder {
  color: rgba(234, 255, 248, 0.4);
}

.glass-input:focus, .glass-textarea:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 255, 170, 0.5);
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.2);
}

.glass-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.8) 0%, rgba(0, 223, 148, 0.8) 100%);
  border: none;
  border-radius: 12px;
  color: #051329;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 170, 0.3);
}

.glass-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 170, 0.5);
}

.glass-submit svg {
  transition: transform 0.3s ease;
}

.glass-submit:hover svg {
  transform: translate(2px, -2px);
}


/* FALLING STARS FOR CONTACT MODAL */
.star-fall-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0; /* Behind the glass window */
  pointer-events: none;
}

.falling-star {
  position: absolute;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 50%;
  transform: rotate(-45deg);
  animation: fall linear infinite;
  opacity: 0;
}

/* Add a glowing head to the shooting star */
.falling-star::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(0, 255, 170, 0.8);
}

@keyframes fall {
  0% {
    opacity: 0;
    transform: translateX(200px) translateY(-200px) rotate(-45deg);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-1200px) translateY(1200px) rotate(-45deg);
  }
}

.falling-star:nth-child(1) { top: 10%; left: 80%; animation-duration: 4s; animation-delay: 0s; }
.falling-star:nth-child(2) { top: -10%; left: 50%; animation-duration: 5s; animation-delay: 1.2s; }
.falling-star:nth-child(3) { top: 30%; left: 90%; animation-duration: 3.5s; animation-delay: 2.5s; }
.falling-star:nth-child(4) { top: -20%; left: 30%; animation-duration: 4.5s; animation-delay: 0.8s; }
.falling-star:nth-child(5) { top: 50%; left: 100%; animation-duration: 5.5s; animation-delay: 3s; }
.falling-star:nth-child(6) { top: 5%; left: 20%; animation-duration: 3s; animation-delay: 4.5s; }
.falling-star:nth-child(7) { top: -5%; left: 70%; animation-duration: 4.2s; animation-delay: 1.8s; }
.falling-star:nth-child(8) { top: 40%; left: 110%; animation-duration: 3.8s; animation-delay: 0.5s; }


/* ==========================================================================
   CUSTOM GLASSMORPHISM SCROLLBAR
   ========================================================================== */

/* Firefox support */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 170, 0.5) transparent;
}

/* Chrome, Edge, and Safari */
::-webkit-scrollbar {
  width: 8px; /* Slim and sleek width */
}

::-webkit-scrollbar-track {
  background: transparent; /* Fully transparent track */
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 255, 170, 0.25) 0%, rgba(0, 223, 148, 0.1) 100%);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 8px rgba(0, 255, 170, 0.2);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 255, 170, 0.6) 0%, rgba(0, 223, 148, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 12px rgba(0, 255, 170, 0.5);
}

::-webkit-scrollbar-corner {
  background: transparent;
}


/* ==========================================================================
   FLOATING CONTACT BUTTON
   ========================================================================== */
.contact-floating-btn {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  padding: 16px 32px;
  background: rgba(0, 255, 170, 0.15);
  border: 1px solid rgba(0, 255, 170, 0.5);
  border-radius: 30px;
  color: #00ffaa;
  font-family: \'Space Grotesk\', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-floating-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.contact-floating-btn:hover {
  background: rgba(0, 255, 170, 0.3);
  box-shadow: 0 0 30px rgba(0, 255, 170, 0.5);
  transform: translate(-50%, -50%) scale(1.05);
  color: #fff;
}


/* ==========================================================================
   MOBILE & RESPONSIVE OPTIMIZATIONS
   ========================================================================== */

/* Rotate Device Overlay */
#rotate-device-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

#rotate-device-overlay .rotate-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 170, 0.3);
  box-shadow: 0 0 40px rgba(0, 255, 170, 0.1);
}

#rotate-device-overlay .rotate-icon {
  font-size: 50px;
  margin-bottom: 20px;
  animation: rotateIcon 2s infinite ease-in-out;
}

@keyframes rotateIcon {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}

#rotate-device-overlay h2 {
  font-size: 24px;
  color: #00ffaa;
  margin-bottom: 10px;
}

#rotate-device-overlay p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
  max-width: 300px;
}

/* Apply Rotate Overlay only on phones in portrait mode */
@media screen and (max-width: 768px) and (orientation: portrait) {
  #rotate-device-overlay {
    display: flex;
  }
}

/* Glass Windows Responsive Scaling for small screens */
@media screen and (max-width: 768px) {
  .glass-window {
    width: 95%;
    max-width: 100%;
    margin: 0 auto;
    max-height: 90vh;
  }
  
  .glass-titlebar {
    padding: 10px 15px;
  }

  .window-url {
    font-size: 10px;
  }

  .glass-modal-content {
    padding: 1.5rem;
  }

  /* Navigation Bar Adjustments */
  .top-nav {
    padding: 1rem;
  }
  
  .nav-links a {
    margin-left: 1rem;
    font-size: 10px;
  }
  
  .brand-logo {
    font-size: 16px;
  }
}
