/* Terminal-specific styles that extend crt.css */

body {
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  font-family: 'Cascadia Code', monospace;
}

.terminal-container {
  height: 100%;
  padding: 25px;
}


.terminal-content {
  color: var(--text-color);
  height: 400px;
  overflow-y: auto;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.terminal-content div {
  margin-bottom: 5px;
}

/* Navigation buttons */
.nav-controls {
  display: flex;
  justify-content: left;
  gap: 20px;
  margin: 15px 0;
}

.custom-font {
    font-family: 'Assets/Fonts/Glass_TTY_VT220.ttf';
    letter-spacing: 2.2px; 
}

.about-header {
    font-family: 'Assets/Fonts/Glass_TTY_VT220.ttf';
    font-size: 1.2rem;
    color: var(--accent-color);
}

.nav-button {
  background: rgba(0, 0, 0, 0.3);
  border: 10px solid var(--text-color);
  color: var(--text-color);
  padding: 10px 5px;
  margin-top: 20px;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Cascadia Code', monospace;
  transition: all 0.2s;
}

.nav-button:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Ensure all text uses the theme color */
.terminal-content span {
  color: var(--text-color);
}

/* Make window larger */
.terminal-window {
  height: 50%;
  display: flex;
  flex-direction: column;
}

.window-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.input-container {
  display: flex;
  align-items: center;
  position: relative; /* This is the anchor for the cursor */
  width: 100%;
}

#commandInput {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-family: 'Cascadia Code', monospace;
  font-size: 0.95rem;
  padding: 2px 5px;
  flex-grow: 1;
  outline: none;
  /* HIDE the default vertical line cursor */
  caret-color: transparent; 
}
.success {
  color: #00ff41; /* Or your theme color */
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
  font-weight: bold;
}
#cursor {
  position: absolute;
  left: 224px; 
  pointer-events: none; 
  transition: transform 0.05s linear; /* Makes movement snappy */
}

/* Navigation controls */
.nav-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
}

.nav-button {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--text-color);
  color: var(--text-color);
  padding: 5px 15px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-button:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Terminal text styles */
.accent {
  color: var(--accent);
  font-weight: bold;
}

.dim {
  opacity: 0.7;
}

.success {
  color: var(--text-color);
  font-weight: bold;
}

.error {
  color: #ff5555;
}


/* Section-specific styles */
.section-slide {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.project-diagram {
  font-family: monospace;
  white-space: pre;
  margin: 10px 0;
  line-height: 1.2;
}

.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
  margin: 10px 0;
}



/* Theme-aware text colors */
.section-title {
  color: var(--accent);
  font-weight: bold;
  text-shadow: 0 0 5px var(--glow);
}

.highlight-text {
  color: var(--highlight, #ffffff);
  /* Fallback to white */
  font-weight: 500;
}

.section-subtitle {
  color: var(--text-color);
  opacity: 0.7;
  text-decoration: underline;
}

.skill-item {
  color: var(--skill-color, #aaffaa);
  /* Greenish fallback */
  margin-left: 1rem;
}

.current-status {
  color: var(--status-color, #aaaaaa);
  font-style: italic;
}

.icon {
  color: var(--icon-color, var(--accent));
  margin-right: 0.5rem
}


/* Add to your terminal.css */
.crt-screen {
  position: relative;
  background-color: var(--bg);
  border: 2px solid var(--border);
  box-shadow:
    0 0 20px var(--glow),
    inset 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Scanlines */
.crt-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0) 50%,
      var(--scanline) 51%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
}

/* Phosphor Glow */
.glow-text {
  text-shadow: var(--glow);
  animation: phosphor 1s infinite alternate;
}

@keyframes phosphor {
  0% {
    opacity: 0.9;
  }

  100% {
    opacity: 1;
  }
}

/* Screen Bloom */
.crt-bloom {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center,
      transparent 60%,
      var(--accent) 120%);
  opacity: 0.1;
  mix-blend-mode: screen;
  z-index: 0;
}

/* Text Effects */
.blink {
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.flicker {
  animation: flicker 0.5s infinite alternate;
}

@keyframes flicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
  }

  20%,
  22%,
  24%,
  55% {
    opacity: 0.5;
  }
}

.scanline-text {
  position: relative;
}

.scanline-text:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--scanline);
  bottom: -2px;
  opacity: 0.7;
}

/* Project Terminal Style */
.project-terminal {
  padding: 1rem;
  font-family: 'Cascadia Code', monospace;
}

.project-header {
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.project-card {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.project-title-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border);
}

.project-name {
  color: var(--highlight);
  font-weight: bold;
}

.project-meta {
  color: var(--status-color);
  font-size: 0.9em;
}

.project-details {
  margin: 1rem 0;
}

.detail-item {
  display: flex;
  margin-bottom: 0.5rem;
}

.detail-prompt {
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: bold;
}

.detail-text {
  color: var(--text-color);
}

.project-flow {
  margin-top: 1.5rem;
}

.flow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.flow-box {
  background: rgba(0,0,0,0.3);
  color: var(--highlight);
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  min-width: 80px;
  text-align: center;
}

.flow-arrow {
  color: var(--accent);
  font-weight: bold;
}

.flow-label {
  text-align: center;
  color: var(--status-color);
  font-size: 0.9em;
  font-style: italic;
}


/* Skills Section Styles */
.skills-container {
  padding: 1rem;
}

.skills-header {
  color: var(--accent);
  font-size: 1.3em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 5px var(--glow);
  letter-spacing: 2px;
}

.skills-category {
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.category-title {
  color: var(--highlight);
  font-weight: bold;
  margin-bottom: 0.8rem;
  font-size: 1em;
}

.skill-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.skill-name {
  width: 120px;
  color: var(--text-color);
}

.skill-meter {
  flex-grow: 1;
  height: 2px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  margin: 0 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.skill-level {
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
  box-shadow: 0 0 5px var(--glow);
  transition: width 0.5s ease;
}

.skill-percent {
  width: 40px;
  text-align: right;
  color: var(--skill-color);
  font-weight: bold;
}

/* Animation for skill bars */
@keyframes skill-load {
  from { width: 0; }
  to { width: attr(style width); }
}

.skill-level {
  animation: skill-load 1s ease-out forwards;
}

.github-link {
  color: var(--accent);
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

.github-link:hover {
  text-decoration: underline;
  text-shadow: 0 0 5px var(--glow);
}

.github-link:active {
  color: var(--highlight);
}

/* Make links work in terminal context */
.terminal-content a {
  pointer-events: auto !important;
}

/* Using only existing classes - no new ones */
.education-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.5rem;
}

.education-card {
  background: rgba(0,0,0,0.1);
  padding: 1rem;
  border-left: 3px solid var(--accent);
}

.education-detail {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--accent);
}

.coursework-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.starfield-container {
    position: relative;
    width: 100%;
    height: 350px; /* Adjust based on your layout */
    overflow: hidden;
    margin-top: 20px;
    pointer-events: none;
}

.star {
    position: absolute;
    color: var(--text-color);
    text-shadow: 0 0 5px var(--text-color); /* Adds a neon glow */
    opacity: 0;
    font-family: monospace;
    animation: star-float 4s linear infinite;
    will-change: transform, opacity; /* Optimizes performance for many stars */
}

@keyframes star-float {
    0% {
        transform: translateY(20px) scale(0.5);
        opacity: 0;
    }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% {
        transform: translateY(-100px) scale(1.2);
        opacity: 0;
    }
}

#terminal {
    position: relative; /* Container for absolute stars */
    z-index: 1;
}

.starfield-container {
    pointer-events: none;
    z-index: -1; /* Puts stars behind the text */
}

/* Ensure your text spans/divs have higher z-index if needed */
.section-slide, .education-card, .story-paragraph {
    position: relative;
    z-index: 2;
}

