/* ═══════════════════════════════════════════════════════════
   helper.css 
   ═══════════════════════════════════════════════════════════ */

/* ── BODY & BACKGROUND ─────────────────────────────────── */
.term-body {
  margin: 0;
  min-height: 100vh;
  background-color: #050d14;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(122,224,202,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 80%,  rgba(100,80,200,0.07) 0%, transparent 60%);
  font-family: 'Ubuntu', sans-serif;
  overflow-y: scroll;
}

/* subtle dot-grid */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(122,224,202,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* CRT scanlines */
.bg-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
}

/* ── TERMINAL WINDOW ───────────────────────────────────── */
.term-window {
  position: relative;
  z-index: 2;
  background: rgba(8, 22, 36, 0.92);
  border: 1px solid rgba(122,224,202,0.35);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(122,224,202,0.08),
    0 24px 64px rgba(0,0,0,0.6),
    0 0 40px rgba(122,224,202,0.04) inset;
  min-height: 98vh;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

/* ── TITLEBAR ──────────────────────────────────────────── */
.term-titlebar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: rgba(6,16,28,0.7);
  gap: 10px;
}
.term-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s;
}
.term-dot:hover { opacity: 0.75; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.term-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: rgba(156,163,175,0.7);
  letter-spacing: 0.05em;
  font-family: 'Ubuntu Mono', monospace;
}
.term-gh {
  color: rgba(156,163,175,0.5);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
  flex-shrink: 0;
}
.term-gh:hover { color: #7AE0CA; }

.term-divider {
  border: none;
  border-top: 1px solid rgba(122,224,202,0.25);
  margin: 0;
}

/* ── ASCII ─────────────────────────────────────────────── */
.ascii {
  color: rgba(141,226,208,0.55);
  font-size: clamp(6px, 1.8vw, 13px);
  white-space: pre;
  line-height: 1.15;
  display: block;
  overflow-x: auto;
  padding: 8px 0 24px 0;
  margin: 0;
  font-family: 'Ubuntu Mono', monospace;
}

/* ── FOOTER ────────────────────────────────────────────── */
.term-footer {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  border-top: 1px solid rgba(122,224,202,0.12);
  font-family: 'Ubuntu Mono', monospace;
  font-size: 12px;
  margin-top: auto;
  gap: 6px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-left  { display: flex; align-items: center; min-width: 0; }
.footer-right { display: flex; align-items: center; }

.footer-tag {
  color: #4b5563;
  margin-left: 8px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-tag::before { content: "// "; color: #374151; }
.footer-bracket { color: rgba(122,224,202,0.4); }
.footer-user    { color: #7AE0CA; letter-spacing: 0.03em; white-space: nowrap; }
.footer-dim     { color: #374151; }

.footer-made {
  color: #4b5563;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.footer-made a {
  color: #7AE0CA;
  text-decoration: none;
}
.footer-made a:hover { text-decoration: underline; }

.footer-heart {
  color: #f87171;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.footer-star {
  color: #4b5563;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-star i { margin-right: 4px; }
.footer-star:hover,
.footer-star:hover i { color: #facc15; }

.footer-status {
  color: #22c55e;
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@media (max-width: 600px) {
  .footer-tag  { display: none; }
  .footer-made { font-size: 11px; }
}
@media (max-width: 380px) {
  .footer-right { display: none; }
}

/* ── MOBILE KEYBOARD BUTTON ────────────────────────────── */
.mobile-kbd-btn {
  display: none;
  margin: 12px 0 4px 0;
  padding: 8px 16px;
  background: rgba(122,224,202,0.08);
  border: 1px solid rgba(122,224,202,0.25);
  border-radius: 20px;
  color: #7AE0CA;
  font-size: 13px;
  font-family: 'Ubuntu', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-kbd-btn:hover,
.mobile-kbd-btn:active { background: rgba(122,224,202,0.18); }

@media (max-width: 640px) {
  .mobile-kbd-btn { display: inline-flex; align-items: center; gap: 6px; }
  .ascii { font-size: clamp(5px, 2.5vw, 10px); }
  .term-title { font-size: 11px; }
}

/* ── SOCIAL CARDS ──────────────────────────────────────── */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 8px 0;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(122,224,202,0.05);
  border: 1px solid rgba(122,224,202,0.18);
  border-radius: 6px;
  text-decoration: none;
  color: #a8e6de;
  font-size: 13px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  font-family: 'Ubuntu', sans-serif;
}
.social-card:hover {
  background: rgba(122,224,202,0.12);
  border-color: rgba(122,224,202,0.45);
  transform: translateY(-2px);
  color: #7AE0CA;
}
.social-card i {
  font-size: 20px;
  flex-shrink: 0;
}
.social-card-info { display: flex; flex-direction: column; gap: 2px; }
.social-card-name { color: #7AE0CA; font-size: 13px; font-weight: 500; }
.social-card-handle { color: rgba(156,163,175,0.65); font-size: 11px; }

/* ── HELP ──────────────────────────────────────────────── */
.help-wrap { margin: 8px 0; }
.help-header {
  color: #7AE0CA;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  opacity: 0.65;
  font-family: 'Ubuntu Mono', monospace;
}
.help-prompt { color: #B89076; margin-right: 6px; }
.help-grid { display: flex; flex-direction: column; gap: 3px; }
.help-row {
  display: grid;
  grid-template-columns: 114px 20px 1fr;
  align-items: baseline;
  padding: 2px 0;
}
.help-cmd {
  color: #75e1e7;
  font-size: 13px;
  font-family: 'Ubuntu Mono', monospace;
}
.help-arrow { color: #B89076; font-size: 11px; opacity: 0.55; }
.help-desc  { color: #6b7280; font-size: 12px; }
.help-footer {
  margin-top: 12px;
  font-size: 11px;
  color: #374151;
  letter-spacing: 0.05em;
}

/* ── ABOUT ME ──────────────────────────────────────────── */
.about-card {
  background: rgba(7,28,44,0.65);
  border: 1px solid rgba(122,224,202,0.2);
  border-radius: 6px;
  padding: 20px;
  max-width: 580px;
  animation: fadeSlideIn 0.35s ease both;
  font-family: 'Ubuntu Mono', monospace;
}

.about-header {
  display: flex;
  align-items: center;
  flex-direction: row;        /* side by side on desktop */
  gap: 20px;
  margin-bottom: 14px;
}

.about-avatar {
  width: clamp(90px, 15vw, 140px);   /* scales with screen */
  height: clamp(110px, 18vw, 170px);
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: none;
  -webkit-mask-image: radial-gradient(
    ellipse 88% 88% at 50% 50%,
    black 45%, transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 88% 88% at 50% 50%,
    black 45%, transparent 100%
  );
  filter: brightness(0.9) contrast(1.05) saturate(0.85) hue-rotate(160deg);
}

.about-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.about-name {
  font-size: clamp(15px, 2vw, 20px);
  color: #7AE0CA;
  margin: 0;
  font-weight: 400;
  white-space: nowrap;  /* stops the name from wrapping */
}
.about-tag {
  font-size: clamp(11px, 1.2vw, 13px);
  color: #B89076;
  margin: 0;
  letter-spacing: 0.04em;
}

.about-bio p {
  margin: 0 0 8px 0 !important;
  text-indent: 0 !important;
}

/* Stack vertically on mobile */
@media (max-width: 500px) {
  .about-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-avatar {
    width: 100px;
    height: 120px;
  }
}
.about-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(122,224,202,0.3), transparent);
  margin-bottom: 12px;
}
.about-bio   { color: #9ca3af; font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.about-list  { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.about-item  { font-size: 13px; color: #B89076; display: flex; gap: 8px; }
.about-item span   { color: #9ca3af; }
.about-item strong { color: #7AE0CA; font-weight: 400; }
.about-item a      { color: #75e1e7; text-decoration: none; }
.about-item a:hover { text-decoration: underline; }
.about-item code {
  background: rgba(122,224,202,0.1);
  color: #75e1e7; padding: 1px 5px;
  border-radius: 3px; font-size: 12px;
}
.about-hint { font-size: 11px; color: #374151; margin: 0; letter-spacing: 0.04em; }
.about-hint code {
  color: #75e1e7; background: rgba(122,224,202,0.08);
  padding: 1px 4px; border-radius: 3px;
}
.wave {
  display: inline-block;
  animation: wave 1.8s ease-in-out infinite;
  transform-origin: 70% 70%;
}
@keyframes wave {
  0%,100% { transform: rotate(0deg); }
  20%     { transform: rotate(14deg); }
  40%     { transform: rotate(-8deg); }
  60%     { transform: rotate(14deg); }
  80%     { transform: rotate(-4deg); }
}

/* ── SKILLS ────────────────────────────────────────────── */
.skills-wrap { max-width: 520px; animation: fadeSlideIn 0.35s ease both; }
.skills-title { color: #75e1e7; font-size: 15px; font-weight: 400; margin: 0 0 14px 0; letter-spacing: 0.05em; }
.skills-section { margin-bottom: 16px; }
.skills-label { font-size: 10px; color: #B89076; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 8px 0; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(122,224,202,0.06);
  border: 1px solid rgba(122,224,202,0.18);
  color: #a8e6de; font-size: 12px;
  padding: 5px 11px; border-radius: 20px;
  cursor: default;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.skill-chip:hover {
  background: rgba(122,224,202,0.14);
  border-color: rgba(122,224,202,0.45);
  transform: translateY(-3px) scale(1.04);
}
.skill-chip i { font-size: 15px; line-height: 1; }
.skills-hint { font-size: 11px; color: #374151; letter-spacing: 0.05em; margin: 4px 0 0 0; }

.float-1 { animation: floatA 3.8s ease-in-out infinite; }
.float-2 { animation: floatB 4.3s ease-in-out infinite; }
.float-3 { animation: floatC 3.5s ease-in-out infinite; }
@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
@keyframes floatC { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }

/* ── SHARED ANIMATION ──────────────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── PROMPT LABEL ──────────────────────────────────────── */
.prompt-label {
  color: #7AE0CA;
  font-family: 'Ubuntu Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-right: 2px;
  user-select: none;
}

/* ── NAME ASK ──────────────────────────────────────────── */
.name-ask {
  color: #7AE0CA;
  font-size: 14px;
}
.name-hint {
  color: #4b5563;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.username-hi {
  color: #7AE0CA;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ── INPUT FEEL — lighter, thinner ────────────────────────
   Add/update these in main.css or here, they override      */
.texter {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
#liner {
  display: flex;
  align-items: center;
  font-family: 'Ubuntu Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  color: #e2e8f0;
  letter-spacing: 0.02em;
  line-height: 1.5;
  min-height: 22px;
}
#typer {
  color: #e2e8f0;
  font-family: 'Ubuntu Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  white-space: pre;
}
.cursor {
  color: #7AE0CA;
  font-size: 13px;
  animation: blink 1s step-end infinite;
  line-height: 1;
  margin-left: 1px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── ASCII FIX ─────────────────────────────────────────── */
.ascii {
  color: rgba(141,226,208,0.55);
  font-size: clamp(10px, 1.5vw, 16px);
  white-space: pre;
  line-height: 1.2;
  display: block;
  overflow-x: auto;
  padding: 12px 0 28px 0;
  margin: 0;
  font-family: 'Ubuntu Mono', monospace;
  letter-spacing: 0.05em;
}

/* ── FOOTER FIX ────────────────────────────────────────── */
.term-window {
  display: flex;
  flex-direction: column;
  min-height: 98vh;
}
.term-window .p-4 {
  flex: 1;  /* pushes footer to the bottom */
}
.term-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 11px;
  color: rgba(107,114,128,0.8);
  border-top: 1px solid rgba(122,224,202,0.1);
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

/* ── GLOBAL FONT SIZE OVERRIDES ────────────────────────────
   These override earlier rules — put at the very bottom     */

/* Base terminal text */
.terminal p,
.terminal div,
.terminal span,
.terminal a,
.terminal li {
  font-size: 15px !important;
  line-height: 1.75 !important;
}

/* Command output headings */
.terminal h1 { font-size: 20px !important; margin: 4px 0 !important; }
.terminal h2 { font-size: 17px !important; margin: 4px 0 !important; }

/* Prompt line (the echoed input lines) */
p.no-animation {
  font-family: 'Ubuntu Mono', monospace !important;
  font-size: 15px !important;
  color: #7AE0CA !important;
  line-height: 1.75 !important;
}

/* Help grid */
.help-header { font-size: 13px !important; }
.help-cmd    { font-size: 15px !important; }
.help-desc   { font-size: 14px !important; color: #9ca3af !important; }
.help-footer { font-size: 12px !important; margin-top: 14px !important; }
.help-row    { grid-template-columns: 130px 24px 1fr !important; padding: 3px 0 !important; }

/* Prompt label & typer */
.prompt-label,
#typer,
.cursor {
  font-size: 15px !important;
  font-family: 'Ubuntu Mono', monospace !important;
}

/* About card */
.about-name { font-size: 20px !important; }
.about-tag  { font-size: 13px !important; }
.about-bio,
.about-item { font-size: 15px !important; }

/* Skills */
.skills-title   { font-size: 18px !important; }
.skills-label   { font-size: 12px !important; }
.skill-chip     { font-size: 14px !important; padding: 7px 14px !important; }
.skill-chip i   { font-size: 17px !important; }

/* Social cards */
.social-card       { font-size: 15px !important; padding: 14px 16px !important; }
.social-card i     { font-size: 22px !important; }
.social-card-name  { font-size: 15px !important; }
.social-card-handle{ font-size: 12px !important; }

/* Status / experience divs — fix the gap between └─ lines */
.terminal div[style*="line-height"] > div {
  margin-bottom: 2px !important;
}

/* Error line */
p.error { font-size: 15px !important; color: #f87171 !important; }

/* name ask */
.name-ask  { font-size: 16px !important; }
.name-hint { font-size: 13px !important; }
.username-hi { font-size: 16px !important; }

/* ASCII — larger on desktop, readable on mobile */
.ascii {
  font-size: clamp(11px, 2vw, 18px) !important;
  letter-spacing: 0.06em !important;
}

/* Mobile — bump everything up */
@media (max-width: 640px) {
  .terminal p,
  .terminal div,
  .terminal span,
  .terminal a {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
  .help-cmd  { font-size: 14px !important; }
  .help-desc { font-size: 13px !important; }
  .help-row  { grid-template-columns: 110px 20px 1fr !important; }
  .skill-chip { font-size: 13px !important; padding: 6px 11px !important; }
  .ascii { font-size: clamp(6px, 3.5vw, 11px) !important; }
  .prompt-label, #typer, .cursor { font-size: 14px !important; }
}