@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital@1&display=swap');

html {
  min-height: 100%;
  background: #030508;
}

* {
  margin: 0;
  padding: 0;
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  overflow: hidden;
  color: #d8ffe5;
  background:
    radial-gradient(circle at top, rgba(0, 255, 154, 0.16), transparent 36%),
    linear-gradient(180deg, #05090b 0%, #020304 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: soft-light;
  opacity: 0.35;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.terminal-shell {
  position: relative;
  width: min(1200px, 100%);
  height: min(90vh, 900px);
  border: 1px solid rgba(121, 255, 171, 0.22);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(2, 7, 4, 0.76);
  box-shadow:
    0 0 0 1px rgba(0, 255, 154, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.terminal-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(121, 255, 171, 0.14);
  background: linear-gradient(180deg, rgba(15, 28, 20, 0.96), rgba(8, 14, 10, 0.92));
  color: #00ff88;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  align-items: center;
}

.terminal-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.btn-close {
  background: #ff5f57;
}

.btn-minimize {
  background: #febc2e;
}

.btn-maximize {
  background: #28c840;
}

.terminal-title {
  flex: 1;
  text-align: center;
  color: #c8ffd8;
}

.terminal-status {
  color: #00ff88;
}

#terminal {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  height: calc(100% - 49px);
  padding: 22px 22px 26px;
  overflow-y: auto;
  color: #d8ffe5;
  font-size: 0.98rem;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: rgba(132, 255, 170, 0.45) transparent;
}

#terminal::-webkit-scrollbar {
  width: 8px;
}

#terminal::-webkit-scrollbar-track {
  background: transparent;
}

#terminal::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(132, 255, 170, 0.4);
}

.line {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  min-height: 2rem;
}

.output {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.output p,
.output div {
  max-width: 72rem;
}

.banner {
  margin-bottom: 10px;
  color: #00ff88;
  font-size: clamp(0.58rem, 0.82vw, 0.78rem);
  line-height: 1.05;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
}

.command {
  color: #9cffa8;
}

.prompt {
  color: #00ff88;
  flex: 0 0 auto;
  white-space: nowrap;
}

.cmd {
  flex: 1;
  min-width: 0;
  border: none;
  font-size: 0.98rem;
  background: transparent;
  color: #e7fff0;
  caret-color: #00ff88;
}

.cmd::placeholder {
  color: rgba(216, 255, 229, 0.45);
}

.cmd:focus {
  outline: none;
}

#wall{
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  top: 0px;
  left: 0px;
  z-index: -1;
  object-fit: cover;
  filter: blur(1px) brightness(0.35) saturate(0.75);
}

#cursor-fade {
  position: absolute;
  width: 300px;
  height: 300px;
  pointer-events: none;
  border-radius: 50%;
  z-index: 5;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.097) 0%,
    rgba(255, 255, 255, 0) 50%
  );
  mix-blend-mode: lighten;
  transition: background 0.1s ease;
}

.sprite {
  height: auto;
  width: 200px;
}

.quote {
  font-family: "PT Serif", serif;
  font-weight: 400;
  /* font-style: italic; */
  color: #dfffe7;
}

.history-output,
.socials-output,
.help-output,
.summary-section,
.skills-section,
.experience-section,
.education-section,
.projects-section,
.certificates-section,
.achievements-section {
  font-size: 0.98rem;
  line-height: 1.35;
}

.section-intro {
  color: #d8ffe5;
  font-size: 1rem;
  margin-bottom: 0;
}

.section-spacer {
  height: 20px;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-line {
  line-height: 1.25;
}

.section-gap {
  height: 12px;
}

.history-output div,
.socials-output div,
.summary-section div,
.skills-section div,
.experience-section div,
.education-section div,
.projects-section div,
.certificates-section div,
.achievements-section div {
  margin-bottom: 2px;
}

.help-output {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #d8ffe5;
}

.help-header {
  color: #84ffaa;
}

.help-list {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-row {
  display: flex;
  gap: 18px;
  align-items: baseline;
  white-space: nowrap;
}

.help-command {
  color: #18d0be;
  min-width: 140px;
  flex: 0 0 140px;
}

.help-description {
  color: #e7fff0;
  white-space: normal;
}

.help-shortcuts {
  color: #e7fff0;
  font-size: 0.92rem;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .app-shell {
    padding: 0;
  }

  .terminal-shell {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .terminal-bar {
    padding: 12px 14px;
    gap: 10px;
  }

  .terminal-title {
    display: none;
  }

  #terminal {
    padding: 18px 14px 22px;
    font-size: 0.94rem;
  }

  .line {
    align-items: flex-start;
  }

  .banner {
    font-size: 0.52rem;
    overflow-x: auto;
  }
}