/* ============================================================================
   PORTFOLIO PAGE STYLES
   ============================================================================ */

/* Page Header */
.page-header {
  padding: calc(60px + var(--space-xl)) 0 var(--space-xl);
  min-height: 40vh;
  display: flex;
  align-items: center;
}

.terminal-header-wrapper {
  margin-bottom: var(--space-md);
}

.terminal-prompt-line {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.prompt {
  color: var(--color-primary);
  font-weight: 700;
}

.separator {
  color: var(--color-text-dim);
}

.path {
  color: var(--color-accent);
}

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

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

/* Typing animation for portfolio */
.typed-portfolio {
  overflow: hidden;
  border-right: 2px solid var(--color-primary);
  white-space: nowrap;
  animation: typing-portfolio 1.5s steps(6) 0.5s forwards, blink-caret 0.75s step-end infinite;
  width: 0;
}

@keyframes typing-portfolio {
  from { width: 0; }
  to { width: 6ch; }
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: var(--glow-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.page-description {
  font-size: 1rem;
  color: var(--color-text-dim);
  line-height: 1.8;
  max-width: 700px;
}

/* Projects Section */
.projects-section {
  padding: var(--space-xl) 0;
}

.project-category {
  margin-bottom: var(--space-2xl);
}

.category-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid rgba(0, 217, 255, 0.3);
}

.category-icon {
  font-size: 1.5rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
}

/* Project Card */
.project-card {
  background: rgba(20, 24, 36, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-4px);
}

.project-card:hover::before {
  opacity: 1;
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.card-status {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-active {
  background: rgba(0, 255, 136, 0.2);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.status-progress {
  background: rgba(255, 184, 0, 0.2);
  color: var(--color-warning);
  border: 1px solid var(--color-warning);
}

.status-complete {
  background: rgba(0, 217, 255, 0.2);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.card-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Card Content */
.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.card-terminal {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  font-size: 0.75rem;
  line-height: 1.6;
}

.terminal-line {
  margin: 0.25rem 0;
}

.terminal-comment {
  color: var(--color-text-muted);
  font-style: italic;
}

.terminal-keyword {
  color: var(--color-accent);
  font-weight: 700;
}

.card-description {
  font-size: 0.875rem;
  color: var(--color-text-dim);
  line-height: 1.7;
  margin: var(--space-md) 0;
}

/* Card Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-md) 0;
}

.card-tags .tag {
  font-size: 0.625rem;
  padding: 0.25rem 0.625rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-weight: 600;
}

/* Card Footer */
.card-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.card-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.type-icon {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

/* Skills Highlight */
.skills-highlight {
  padding: var(--space-2xl) 0;
}

.highlight-card {
  background: rgba(20, 24, 36, 0.8);
  border: 2px solid rgba(0, 217, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.highlight-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  text-shadow: var(--glow-accent);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.tool-item:hover {
  border-color: var(--color-primary);
  background: rgba(0, 255, 136, 0.05);
  transform: translateY(-2px);
}

.tool-icon {
  font-size: 2rem;
}

.tool-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-dim);
}

/* Responsive */
@media (max-width: 968px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .page-header {
    min-height: 30vh;
  }
  
  .project-card {
    padding: var(--space-md);
  }
  
  .highlight-card {
    padding: var(--space-lg);
  }
}