/* ============================================================
   components.css — all section-specific styles
   ============================================================ */

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 3rem;                                 /* Sleeker, thinner padding */
  background: rgba(5, 10, 20, 0.82);                     /* Airy glass background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(29, 127, 255, 0.16);       /* Clean, subtle cyan-blue cutoff border */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);             /* Soft, premium drop shadow */
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s, transform 0.2s ease-out;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--nav-tilt-x, 0deg)) rotateY(var(--nav-tilt-y, 0deg));
  overflow: hidden;
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--nav-glow-x, 50%) 100%,
    rgba(29, 127, 255, 0.14),
    transparent 55%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}

.nav:hover::before,
.nav.nav-scrolled::before {
  opacity: 1;
}

.nav.nav-scrolled {
  padding: 0.55rem 3rem;                                 /* Thinner on scroll */
  background: rgba(5, 10, 20, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(29, 127, 255, 0.25);
}

.nav.nav-enter {
  animation: nav-enter 0.65s ease-out forwards;
}

@keyframes nav-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nav-logo {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 0.04em;
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  transform: translate(var(--magnetic-x), var(--magnetic-y)) translateZ(30px);
  transition: transform 0.15s ease-out, color 0.2s, text-shadow 0.2s;
}

a.nav-logo:hover {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0, 212, 255, 0.4);
}

.nav-path {
  color: var(--text3);
}

.nav-cursor {
  color: var(--cyan);
  animation: nav-blink 1.1s step-end infinite;
}

@keyframes nav-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.nav-links-group {
  position: relative;
  z-index: 1;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links .nav-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s, transform 0.15s ease-out, text-shadow 0.2s;
  position: relative;
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  transform: translate(var(--magnetic-x), var(--magnetic-y)) translateZ(20px);
  display: inline-block;
}

.nav-links .nav-link::before {
  content: '> ';
  color: var(--blue);
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-links .nav-link:hover {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
}

.nav-links .nav-link:hover::before,
.nav-links .nav-active::before {
  opacity: 1;
}

.nav-indicator {
  position: absolute;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.55);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s;
  transform: translateZ(10px);
}

.nav-indicator.visible {
  opacity: 1;
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 4rem;
  align-items: center;
  width: 100%;
  perspective: 1200px;
}

.hero-content {
  transform-style: preserve-3d;
}

.hero-layer {
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.hero-layer-static {
  transition: none;
  will-change: auto;
}

.hero-el {
  transform-style: preserve-3d;
  opacity: 0;
}

/* Status pill */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }
}

/* Name */
.hero-name {
  font-family: var(--sans);
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.hero-name .accent {
  color: var(--blue);
  text-shadow: 0 0 30px rgba(29, 127, 255, 0.35);
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 17px);
  color: var(--cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  min-height: 1.4em;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--cyan);
  margin-left: 2px;
  vertical-align: middle;
  animation: cur 0.9s step-end infinite;
}

@keyframes cur {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-desc {
  font-size: 15.5px;
  color: var(--text2);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.magnetic-btn {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  transform: translate(var(--magnetic-x), var(--magnetic-y));
  transition: transform 0.15s ease-out, box-shadow 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
  will-change: transform;
}

.magnetic-btn:hover {
  box-shadow: 0 0 24px rgba(29, 127, 255, 0.25);
}

/* ── TERMINAL CARD ── */
.terminal-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  font-family: var(--space);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.25s, box-shadow 0.25s;
  min-height: 340px; /* Increased height */
  display: flex;
  flex-direction: column;
}

.terminal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(29, 127, 255, 0.14),
    transparent 40%
  );
  pointer-events: none;
  z-index: 2;
}

.terminal-card:hover {
  border-color: rgba(29, 127, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(29, 127, 255, 0.08);
}

.terminal-card:hover::after {
  opacity: 1;
}

.terminal-card:hover .px-corner {
  opacity: 1;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-sub);
  background: var(--bg3);
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.t-dot.red {
  background: #ff5f57;
}

.t-dot.yellow {
  background: #ffbd2e;
}

.t-dot.green {
  background: #28c840;
}

.t-title {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.1em;
  margin-left: auto;
  text-transform: uppercase;
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.t-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 12px;
  line-height: 1.4;
  transition: opacity 0.4s;
}

.t-line.dim-line {
  opacity: 0.35;
}

.t-prompt {
  color: #00ffaa; /* Clean green bash color */
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 255, 170, 0.4);
  flex-shrink: 0;
}

.t-key {
  color: var(--text3);
  flex-shrink: 0;
  min-width: 140px; /* Optimized for Space Mono key variables */
}

.t-eq {
  color: var(--text3);
  flex-shrink: 0;
}

.t-val {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 90px; /* Aligns comments vertically */
  flex-shrink: 0;
}

.t-note {
  color: var(--text3);
  font-size: 10px;
  margin-left: 0.25rem;
}

/* rotating stat highlight */
.t-line.active .t-val {
  color: #00ffaa;
  text-shadow: 0 0 10px #00ffaa66;
}

.t-line.active .t-prompt {
  color: #00ffaa;
}

/* ══════════════════════════════════════════════
   EXPERIENCE
══════════════════════════════════════════════ */
.exp-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}

.exp-sidebar {
  border-right: 1px solid var(--border-sub);
  padding-right: 2rem;
  position: relative;
}

.exp-nav-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-sub);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, background 0.2s;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.exp-nav-item:last-child {
  border-bottom: none;
}

.exp-nav-item:hover {
  transform: translateX(5px);
  background: rgba(29, 127, 255, 0.02);
}

.exp-nav-item::before {
  content: '';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.25s;
}

.exp-nav-item.active::before {
  width: 2rem;
}

.exp-nav-company {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  transition: color 0.2s;
}

.exp-nav-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  transition: color 0.2s;
}

.exp-nav-item.active .exp-nav-company {
  color: var(--blue);
}

.exp-nav-item.active .exp-nav-role {
  color: var(--text);
}

.exp-nav-item:hover .exp-nav-company:not(.active) {
  color: var(--cyan);
}

.exp-nav-item:hover .exp-nav-role:not(.active) {
  color: var(--text);
}

.exp-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  padding: 1px 6px;
  border: 1px solid var(--blue);
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.exp-content {
  padding-left: 2.5rem;
  perspective: 1000px;
}

.exp-panel {
  display: none;
  transform-origin: top center;
  backface-visibility: hidden;
}

.exp-panel.active {
  display: block;
}

.exp-panel-header {
  margin-bottom: 1.5rem;
}

.exp-panel-role {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.exp-panel-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.exp-panel-company {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
}

.exp-panel-period {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}

.exp-panel-note {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.exp-bullets li {
  font-size: 14.5px;
  color: var(--text2);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.75;
  margin-bottom: 0.65rem;
}

.exp-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 11px;
  top: 4px;
}

.exp-bullets li strong {
  color: var(--cyan);
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════════ */
.projects-page {
  padding: 8rem 0;
}

.projects-footer {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.projects-desc {
  font-size: 16px;
  color: var(--text2);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.projects-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

.projects-full-grid .project-card {
  max-width: none;
  min-width: 0;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--gap-lg);
}

.projects-header .section-title {
  margin-bottom: 0.4rem;
}

.view-all-link {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-sub);
  background: rgba(29, 127, 255, 0.03);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.view-all-link:hover {
  border-color: var(--blue);
  background: var(--blue-glow);
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(29, 127, 255, 0.1);
}

.carousel-nav {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: all 0.2s;
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
}

.carousel-btn:hover {
  border-color: var(--blue);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.projects-carousel-wrapper {
  position: relative;
  margin: 0 -2rem; /* Bleed to container edges */
  padding: 0 2rem;
}

.projects-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  /* scroll-snap disabled for smooth infinite scroll */
  scrollbar-width: none; /* Firefox */
  padding-bottom: 1rem; /* Space for shadow/hover transform */
}

.projects-carousel::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.project-card {
  flex: 0 0 calc(50% - 0.625rem); /* Default to 2 cards visible */
  min-width: 340px;
  max-width: 420px;
  /* scroll-snap-align: start; */
  position: relative;
  background: rgba(8, 15, 30, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-sub);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.25s;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-glow);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.project-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover .px-corner {
  opacity: 1;
}

.project-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.project-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.project-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.project-section-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.project-text {
  font-size: 14.5px;
  color: var(--text2);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-sub);
  margin-top: 0.5rem;
}

.project-metric {
  background: rgba(29, 127, 255, 0.02);
  border: 1px solid var(--border-sub);
  border-top: 2px solid var(--blue);
  padding: 0.5rem 0.25rem;
  text-align: center;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.project-card:hover .project-metric {
  border-color: rgba(29, 127, 255, 0.2);
  background: rgba(29, 127, 255, 0.04);
  box-shadow: 0 4px 12px rgba(29, 127, 255, 0.05);
}

.metric-val {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--cyan);
  display: block;
  line-height: 1;
}

.metric-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.project-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: auto;
  padding-top: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
  position: relative;
  z-index: 10;
}

.project-card:hover .project-actions {
  opacity: 1;
}

.project-link {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s;
}

.project-link:hover {
  color: var(--cyan);
}

/* ══════════════════════════════════════════════
   SKILLS — GRID OF CARDS
══════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  position: relative;
  background: rgba(8, 15, 30, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-sub);
  padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.skill-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y), 
    rgba(255, 255, 255, 0.08),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--cluster-color), transparent 70%);
  opacity: 0.05;
  transition: opacity 0.3s;
  z-index: 0;
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--cluster-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.skill-card:hover::before {
  opacity: 0.15;
}

.skill-card:hover::after {
  opacity: 1;
}

.skill-card:hover .px-corner {
  border-color: var(--cluster-color);
  opacity: 1;
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.skill-card-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-card-icon svg {
  width: 100%;
  height: 100%;
}

.skill-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
  background: var(--bg2);
  border: 1px solid var(--border-sub);
  padding: 3px 8px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.skill-card:hover .skill-tag {
  border-color: var(--border);
  color: var(--text);
}

/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */
.contact-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.contact-desc {
  font-size: 15.5px;
  color: var(--text2);
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--border-sub);
  letter-spacing: 0.08em;
  transition: all 0.2s;
  position: relative;
  transform-style: preserve-3d;
}

.social-link:hover {
  border-color: var(--blue);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.social-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.email-btn {
  background: none;
  cursor: pointer;
  outline: none;
  position: relative;
}

.email-btn-label,
.email-btn-address {
  display: block;
  transition: opacity 0.2s ease;
}

.email-btn-address {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-btn:hover .email-btn-label,
.email-btn:focus-visible .email-btn-label {
  opacity: 0;
}

.email-btn:hover .email-btn-address,
.email-btn:focus-visible .email-btn-address {
  opacity: 1;
}

.hero-cta .email-btn {
  min-width: 13rem;
}

.email-btn-icon {
  transition: opacity 0.2s ease;
}

.email-btn:hover .email-btn-icon,
.email-btn:focus-visible .email-btn-icon {
  opacity: 0;
}

.social-row .email-btn {
  transition: all 0.25s ease;
}

.social-row .email-btn:hover .email-btn-icon,
.social-row .email-btn:focus-visible .email-btn-icon,
.social-row .email-btn:hover .email-btn-label,
.social-row .email-btn:focus-visible .email-btn-label {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.social-row .email-btn:hover .email-btn-address,
.social-row .email-btn:focus-visible .email-btn-address {
  position: static;
  overflow: visible;
  text-overflow: unset;
  padding: 0;
}

.social-row .email-btn.copied .email-btn-icon {
  display: none;
}

.social-row .email-btn.copied .email-btn-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  opacity: 1;
}

.email-btn.copied .email-btn-label {
  opacity: 1;
}

.email-btn.copied .email-btn-address {
  opacity: 0;
}

.email-btn.copied {
  color: #00ff88 !important;
  border-color: #00ff88 !important;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 2;
  padding: 2rem 3rem;
  border-top: 1px solid var(--border-sub);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.06em;
  background: rgba(5, 10, 20, 0.4);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 10px;
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
}

.footer-status .status-dot.pulsing {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: footer-pulse 1.8s infinite ease-in-out;
}

@keyframes footer-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 8px #00ff88;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.4;
    box-shadow: 0 0 2px #00ff88;
  }
}

.footer-copy {
  margin: 0;
  color: var(--text2);
}

.footer-right {
  display: flex;
  align-items: center;
}

.footer-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.meta-item {
  color: var(--text3);
  font-size: 10px;
}

.meta-label {
  color: var(--blue);
  font-weight: 700;
  margin-right: 0.25rem;
}

@media (max-width: 768px) {
  .footer {
    padding: 2rem 1.5rem;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .footer-meta {
    gap: 1rem;
  }
}

/* ══════════════════════════════════════════════
   BLOGS — LISTING PAGE
══════════════════════════════════════════════ */
.blogs-page {
  padding-top: 8rem;
  min-height: 100vh;
}

.blogs-desc {
  font-size: 15.5px;
  color: var(--text2);
  max-width: 560px;
  line-height: 1.85;
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

/* Glassmorphism Container for Blog Reading */
.glass-container {
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-sub);
  border-radius: 12px;
  padding: 2.5rem 3rem;
  margin-top: -1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .glass-container {
    padding: 1.5rem;
    border-radius: 8px;
  }
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

/* Card */
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(8, 15, 30, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 2.25rem;
  transition: border-color 0.3s, transform 0.25s, box-shadow 0.3s, background 0.3s;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0px;
}

.blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-glow);
  opacity: 0;
  transition: opacity 0.3s;
}

.blog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y), 
    rgba(255, 255, 255, 0.08),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
}

.blog-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.blog-card:hover::after {
  opacity: 1;
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card:hover .px-corner {
  opacity: 1;
}

.blog-card-date {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.blog-card-summary {
  font-size: 14.5px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 1rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.blog-card-read {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.2s;
  position: relative;
  z-index: 1;
}

.blog-card:hover .blog-card-read {
  opacity: 1;
}

/* Empty state */
.blogs-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--text3);
}

.blogs-empty-icon {
  font-size: 48px;
  margin-bottom: 1rem;
  color: var(--blue-dim);
}

.blogs-empty p {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* Active nav link */
.nav-links .nav-active {
  color: var(--cyan) !important;
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.45);
}

/* ══════════════════════════════════════════════
   BLOGS — ARTICLE PAGE
══════════════════════════════════════════════ */
.blog-article {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
  padding-bottom: var(--gap-xl);
}

.blog-container {
  max-width: 780px;
}

.blog-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.blog-back:hover {
  color: var(--cyan);
}

.blog-article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-sub);
}

.blog-article-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.blog-article-title {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.blog-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Article body typography */
.blog-article-body h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.blog-article-body h2::before {
  content: '## ';
  color: var(--blue);
  font-family: var(--mono);
  font-size: 14px;
}

.blog-article-body h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.blog-article-body p {
  font-size: 15.5px;
  color: var(--text2);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.blog-article-body strong {
  color: var(--cyan);
  font-weight: 700;
}

.blog-article-body code {
  font-family: var(--space);
  font-size: 13.5px;
  color: var(--cyan);
  background: var(--bg3);
  padding: 2px 6px;
  border: 1px solid var(--border-sub);
}

.blog-article-body pre {
  background: var(--bg2);
  border: 1px solid var(--border-sub);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-family: var(--space);
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.65;
}

.blog-article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.blog-article-body ul,
.blog-article-body ol {
  padding-left: 0;
  margin-bottom: 1.25rem;
}

.blog-article-body li {
  font-size: 15.5px;
  color: var(--text2);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.75;
  margin-bottom: 0.7rem;
}

.blog-article-body ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 11px;
  top: 4px;
}

.blog-article-body ol {
  counter-reset: blog-ol;
}

.blog-article-body ol li {
  counter-increment: blog-ol;
}

.blog-article-body ol li::before {
  content: counter(blog-ol) '.';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
}

.blog-article-body blockquote {
  border-left: 2px solid var(--blue);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text2);
  font-style: italic;
}

.blog-article-body img {
  max-width: 100%;
  border: 1px solid var(--border-sub);
  margin: 1.5rem 0;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .terminal-card {
    display: none;
  }

  /* ══════════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════════ */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--gap-lg);
}

.projects-header .section-title {
  margin-bottom: 0;
}

.carousel-nav {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: all 0.2s;
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
}

.carousel-btn:hover {
  border-color: var(--blue);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.projects-carousel-wrapper {
  position: relative;
  margin: 0 -2rem; /* Bleed to container edges */
  padding: 0 2rem;
}

.projects-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  /* scroll-snap disabled for smooth infinite scroll */
  scrollbar-width: none; /* Firefox */
  padding-bottom: 1rem; /* Space for shadow/hover transform */
}

.projects-carousel::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

  .exp-grid {
    grid-template-columns: 1fr;
  }

  .exp-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-sub);
    padding-right: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
  }

  .exp-nav-item {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    border-bottom: none;
    border: 1px solid var(--border-sub);
  }

  .exp-nav-item::before {
    display: none;
  }

  .exp-content {
    padding-left: 0;
  }

  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  section {
    padding: 4rem 0;
  }

  .skills-map {
    height: 320px;
  }

  .blogs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hero-name {
    font-size: 38px;
  }

  .social-row {
    flex-direction: column;
    align-items: center;
  }

  .skills-map {
    height: 260px;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
  }

  .blog-article-title {
    font-size: 24px;
  }
}

/* ══════════════════════════════════════════════
   TECHNICAL GUIDE / BLOG THEME
══════════════════════════════════════════════ */

.guide-page {
  --bg-page: var(--bg);
  --bg-surface: rgba(8, 15, 30, 0.6);
  --bg-subtle: rgba(8, 15, 30, 0.4);
  --border: var(--border-sub);
  --border-subtle: rgba(29, 127, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.95);
  --text-muted: rgba(255, 255, 255, 0.75);
  --text-faint: rgba(165, 200, 234, 0.5);
  --nav-link: var(--text3);
  --code-bg: var(--bg2);
  --tag-bg: rgba(29, 127, 255, 0.1);
  --tag-color: var(--blue);
  --mini-bg: rgba(8, 15, 30, 0.3);
  --analogy-border: rgba(124, 58, 237, 0.4);
  --analogy-bg: rgba(124, 58, 237, 0.05);

  background: var(--bg-page);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.8;
  font-size: 16px;
}

.guide-page::after {
  display: none !important; /* disable scanlines in reading mode */
}

/* Custom Scrollbar for Entire Site */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(29, 127, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(29, 127, 255, 0.6);
}

.guide-sidebar {
  position: fixed;
  top: 70px;
  left: 0;
  width: 260px;
  height: calc(100vh - 70px);
  background: rgba(5, 10, 20, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  z-index: 100;
}

.guide-sidebar::-webkit-scrollbar {
  width: 4px;
}

.guide-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.guide-sidebar::-webkit-scrollbar-thumb {
  background: var(--blue-dim);
  border-radius: 10px;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.nav-section {
  margin-bottom: 1.5rem;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.guide-sidebar .nav-link {
  display: block;
  font-size: 14px;
  color: var(--nav-link);
  text-decoration: none;
  padding: 6px 12px;
  margin-bottom: 2px;
  border-radius: 6px;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.guide-sidebar .nav-link:hover {
  color: var(--text-primary);
  background: rgba(29, 127, 255, 0.05);
  border-left-color: rgba(29, 127, 255, 0.3);
  transform: translateX(4px);
}

.guide-sidebar .nav-link.active {
  color: var(--cyan);
  font-weight: 600;
  background: rgba(0, 212, 255, 0.08);
  border-left-color: var(--cyan);
}

.guide-main {
  margin-left: 260px;
  padding: 6rem 4rem;
  max-width: 1100px;
}

.guide-hero {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  min-height: auto !important;
  display: block !important;
  padding-top: 0 !important;
}

.guide-hero h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.guide-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 580px;
}

.concept-block {
  background: rgba(29, 127, 255, 0.05);
  border: 1px solid rgba(29, 127, 255, 0.2);
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: background 0.2s, border 0.2s;
}

.concept-block h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.concept-block p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 14.5px;
}

.analogy {
  background: var(--analogy-bg);
  border-left: 3px solid var(--analogy-border);
  padding: 0.75rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 0.75rem 0;
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

.analogy strong {
  font-style: normal;
  color: var(--text-primary);
}

.code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(29, 127, 255, 0.15);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 0.75rem 0;
  overflow-x: auto;
}

.code-block pre {
  font-family: var(--space);
  font-size: 13px;
  line-height: 1.65;
  color: #cdd6f4;
  white-space: pre;
}

.code-block .comment {
  color: #6c7086;
}

.code-block .keyword {
  color: #cba6f7;
}

.code-block .string {
  color: #a6e3a1;
}

.code-block .number {
  color: #fab387;
}

.code-block .func {
  color: #89b4fa;
}

.guide-page section {
  padding: 1.5rem 0;
}

.project-section {
  margin-bottom: 1.5rem;
  scroll-margin-top: 100px;
}

.project-header {
  border-left: 4px solid var(--border);
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.project-header.p1 {
  border-color: var(--blue);
}

.project-header.p2 {
  border-color: var(--cyan);
}

.project-header.p3 {
  border-color: var(--purple);
}

.project-header.p4 {
  border-color: var(--green);
}

.project-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.mini-card {
  background: rgba(29, 127, 255, 0.05);
  border: 1px solid rgba(29, 127, 255, 0.2);
  border-radius: 8px;
  padding: 1.25rem;
}

.mini-card h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.mini-card ul {
  list-style: none;
  padding: 0;
}

.mini-card ul li {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 3px 0;
  padding-left: 1rem;
  position: relative;
}

.mini-card ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

.decision-tree {
  background: rgba(29, 127, 255, 0.05);
  border: 1px solid rgba(29, 127, 255, 0.2);
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.decision-tree h3,
.resources h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dtree-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(29, 127, 255, 0.15);
}

.dtree-q {
  font-size: 13.5px;
  font-weight: 500;
  color: #e8e8e4;
  width: 280px;
  flex-shrink: 0;
}

.dtree-a {
  font-size: 13.5px;
  color: #a5b4fc;
  font-weight: 500;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.75rem 0;
}

.tradeoffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.tradeoff-card {
  background: rgba(0, 212, 255, 0.03);             /* Subtle cyan tint background */
  border: 1px solid rgba(0, 212, 255, 0.15);        /* Muted cyan border outline */
  border-left: 4px solid var(--cyan);                /* Solid cyan left-border accent */
  border-radius: 0 8px 8px 0;                        /* Rounded corners on the right side */
  padding: 1.25rem;
  transition: background 0.2s, border 0.2s;
}

.tradeoff-card h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.tradeoff-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

.section-divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}



.resources {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 0;
  transition: background 0.2s, border 0.2s;
}

.resources h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.resource-info a {
  font-size: 13.5px;
  font-weight: 500;
  color: #a5b4fc;
  text-decoration: none;
}

.resource-info a:hover {
  text-decoration: underline;
}

.resource-info p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.resource-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.dtree-arrow {
  color: var(--text-faint);
  font-size: 16px;
  margin-top: 1px;
}

.dtree-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.when-to-use {
  background: #0d1f14;
  border: 1px solid #1a4028;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
}
.when-to-use h4 { font-size: 12px; color: #059669; margin-bottom: 0.75rem; text-transform: uppercase; }
.when-to-use ul { list-style: none; padding: 0; }
.when-to-use ul li {
  font-size: 13.5px;
  color: #b0b0aa;
  padding: 3px 0;
  padding-left: 1.5rem;
  position: relative;
}
.when-to-use ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #059669;
  font-size: 12px;
}

.warning-box {
  background: #1c1600;
  border: 1px solid #3d2e00;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
}
.warning-box h4 { font-size: 12px; color: #d97706; margin-bottom: 0.5rem; text-transform: uppercase; }
.warning-box p { font-size: 13.5px; color: #b0b0aa; margin: 0; }

.alternatives {
  background: #13101e;
  border: 1px solid #2e2650;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
}
.alternatives h4 { font-size: 12px; color: #7c3aed; margin-bottom: 1rem; text-transform: uppercase; }
.alt-row { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 13.5px; }
.alt-name {
  font-weight: 600;
  color: #e8e8e4;
  width: 180px;
  flex-shrink: 0;
}
.alt-desc { color: #b0b0aa; }

.resource-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #252523;
}
.resource-item:last-child { border-bottom: none; }

.rt-free { background: #052e16; color: #6ee7b7; }
.rt-book { background: #1e1b4b; color: #a5b4fc; }
.rt-course { background: #2a1800; color: #fbbf24; }

@media (max-width: 900px) {
  .guide-sidebar {
    display: none;
  }

  .guide-main {
    margin-left: 0;
    padding: 6rem 1.5rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .tradeoffs {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-layer,
  .magnetic-btn,
  .nav,
  .nav-links .nav-link,
  .nav-logo {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .hero-el {
    opacity: 1 !important;
  }
}

/* ============================================================
   CRT TERMINAL INTERACTIVE STYLES
   ============================================================ */
.terminal-card {
  background: radial-gradient(circle at center, rgba(10, 22, 45, 0.75) 0%, rgba(5, 10, 21, 0.85) 100%) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 40px rgba(0, 212, 255, 0.12), 0 12px 40px rgba(0, 0, 0, 0.45) !important;
  position: relative;
}

.terminal-card::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.18) 50%), 
              linear-gradient(90deg, rgba(29, 127, 255, 0.03), rgba(0, 212, 255, 0.01), rgba(124, 58, 237, 0.03));
  z-index: 5;
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  animation: crt-flicker 0.15s infinite;
}

@keyframes crt-flicker {
  0% { opacity: 0.985; }
  50% { opacity: 0.995; }
  100% { opacity: 0.985; }
}

.t-active-input-line {
  display: flex;
  align-items: center;
  margin-top: auto; /* push input line to the bottom */
  font-family: var(--mono);
  font-size: 12px;
  border-bottom: 1px dashed rgba(0, 255, 170, 0.25);
  padding-bottom: 2px;
  position: relative;
  transition: border-color 0.2s;
  width: 100%;
}

.t-active-input-line:focus-within {
  border-bottom-color: rgba(0, 255, 170, 0.65);
}

#terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #00ffaa;
  font-family: var(--mono);
  font-size: 12px;
  flex: none;
  width: 120px;
  caret-color: transparent;
  text-shadow: 0 0 6px rgba(0, 255, 170, 0.6);
  padding: 0;
  margin: 0;
}

.input-cursor-blink {
  display: inline-block;
  width: 5px;
  height: 13px;
  background: #00ffaa;
  box-shadow: 0 0 6px rgba(0, 255, 170, 0.8);
  animation: crt-cursor-blink 0.8s step-start infinite;
  pointer-events: none;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes crt-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

#terminal-input::placeholder {
  color: var(--text3);
  opacity: 0.4;
}

.terminal-history-command {
  font-weight: bold;
  color: var(--text2) !important;
}

.terminal-response {
  font-size: 12px;
  line-height: 1.5;
  color: #00ffaa;
  text-shadow: 0 0 4px rgba(0, 255, 170, 0.4);
  margin-bottom: 0.85rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(0, 255, 170, 0.2);
  white-space: pre-wrap;
  font-family: var(--mono);
}

/* ── NAV SCANNER BEAM ── */
.nav-scanner-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 8px var(--cyan);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.nav:hover .nav-scanner-line {
  animation: nav-scan-sweep 1.5s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes nav-scan-sweep {
  0% { left: -100%; }
  100% { left: 100%; }
}
