/* Developer Terminal Portfolio CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.terminal-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
}

.terminal-window {
  width: 100%;
  max-width: 900px;
  background: #161b22;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid #30363d;
}

.terminal-header {
  background: #21262d;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #30363d;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.btn-close {
  background: #ff5f56;
}

.btn-minimize {
  background: #ffbd2e;
}

.btn-maximize {
  background: #27ca3f;
}

.terminal-title {
  font-size: 0.85rem;
  color: #8b949e;
  font-weight: 500;
}

.terminal-body {
  padding: 1.5rem;
  background: #0d1117;
  min-height: 400px;
}

.terminal-line {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

.prompt {
  color: #7ee787;
  font-weight: 500;
  margin-right: 0.5rem;
  white-space: nowrap;
}

.command {
  color: #c9d1d9;
  font-weight: 400;
}

.cursor {
  background: #7ee787;
  color: #0d1117;
  animation: blink 1s infinite;
  width: 8px;
  height: 18px;
  display: inline-block;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.output {
  color: #79c0ff;
  font-style: italic;
  margin-left: 1rem;
}

.file-list {
  margin-left: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.file-item {
  color: #79c0ff;
  padding: 0.25rem 0.5rem;
  background: rgba(121, 192, 255, 0.1);
  border-radius: 4px;
  border-left: 3px solid #79c0ff;
  font-size: 0.9rem;
}

.about-output, .skills-output {
  margin-left: 1rem;
  color: #f85149;
  font-size: 0.9rem;
  line-height: 1.4;
}

.about-output p, .skills-output p {
  margin-bottom: 0.5rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.skill-item {
  background: rgba(126, 231, 135, 0.1);
  color: #7ee787;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  border: 1px solid rgba(126, 231, 135, 0.3);
}

.run-command-section {
  margin-top: 2rem;
  text-align: center;
}

.run-btn {
  background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(35, 134, 54, 0.3);
}

.run-btn:hover {
  background: linear-gradient(135deg, #2ea043 0%, #238636 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(35, 134, 54, 0.4);
}

.btn-icon {
  font-size: 1.2rem;
}

.projects-container {
  min-height: 100vh;
  padding: 3rem 2rem;
  background: #010409;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-container.visible {
  transform: translateY(0);
  opacity: 1;
}

.projects-header {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.projects-header h2 {
  font-size: 1.5rem;
  color: #7ee787;
  font-weight: 700;
}

.file-count {
  color: #8b949e;
  font-size: 0.9rem;
  font-weight: 400;
}

.view-toggle .active {
  color: #79c0ff;
  font-size: 0.9rem;
}

.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.project-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateY(-8px);
  border-color: #58a6ff;
  box-shadow: 0 12px 32px rgba(88, 166, 255, 0.15);
}

.file-header {
  background: #21262d;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #30363d;
}

.file-icon {
  font-size: 1.2rem;
}

.file-name {
  font-weight: 500;
  color: #c9d1d9;
  flex: 1;
}

.file-size {
  font-size: 0.8rem;
  color: #8b949e;
}

.file-content {
  padding: 1rem;
  background: #0d1117;
}

.code-preview {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  min-height: 120px;
}

.code-line {
  color: #c9d1d9;
  padding: 0.1rem 0;
}

.code-line:nth-child(1) { color: #ff7b72; }
.code-line:nth-child(2) { color: #79c0ff; }
.code-line:nth-child(3) { color: #a5a5a5; }
.code-line:nth-child(4) { color: #7ee787; }
.code-line:nth-child(5) { color: #ff7b72; }

.tech-stack {
  padding: 1rem;
  background: #161b22;
  border-top: 1px solid #30363d;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.project-card:hover .tech-stack {
  opacity: 1;
  transform: translateY(0);
}

.tech-tag {
  background: rgba(121, 192, 255, 0.1);
  color: #79c0ff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  border: 1px solid rgba(121, 192, 255, 0.3);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .terminal-container {
    padding: 1rem;
  }
  
  .terminal-body {
    padding: 1rem;
    min-height: 300px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .project-card {
    min-width: 0;
  }
  
  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .file-list {
    grid-template-columns: 1fr;
  }
  
  .run-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .terminal-window {
    border-radius: 0;
  }
  
  .projects-container {
    padding: 2rem 1rem;
  }
  
  .projects-grid {
    gap: 0.75rem;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #161b22;
}

::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}
