/* style.css */
/* Modern Cyber Terminal Theme */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600&display=swap');

:root {
  --primary: #00ff88;
  --secondary: #00ccff;
  --accent: #ff0088;
  --background: #0a0a0f;
  --surface: #151520;
  --text: #e0e0e0;
  --glow: 0 0 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Matrix Background Animation */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #0a0a0f 0%, #151520 50%, #0a0a0f 100%);
  opacity: 0.3;
  z-index: -1;
}

.matrix-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 204, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 0, 136, 0.05) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Terminal Container */
.terminal-container {
  width: 95%;
  max-width: 1200px;
  height: 85vh;
  margin: 5vh auto;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid var(--primary);
  border-radius: 12px;
  box-shadow: 
    var(--glow) rgba(0, 255, 136, 0.3),
    inset 0 0 50px rgba(0, 255, 136, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.terminal-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scanline 2s linear infinite;
}

@keyframes scanline {
  0% { top: 0; }
  100% { top: 100%; }
}

/* Terminal Header */
.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: rgba(21, 21, 32, 0.9);
  border-bottom: 1px solid rgba(0, 255, 136, 0.3);
  position: relative;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

.control:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.terminal-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.header-time {
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 300;
}

/* Terminal Content */
.terminal-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 15, 0.8);
}

/* Scrollbar */
.terminal-content::-webkit-scrollbar {
  width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
  background: rgba(21, 21, 32, 0.5);
}

.terminal-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Output Area */
#output {
  flex: 1;
  margin-bottom: 20px;
}

.output-line {
  margin: 12px 0;
  line-height: 1.6;
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Input Line */
.input-line {
  display: flex;
  align-items: center;
  padding: 10px 0;
  position: relative;
  border-top: 1px solid rgba(0, 255, 136, 0.2);
  margin-top: auto;
  gap: 5px;
}

.prompt {
  color: var(--primary);
  margin-right: 0;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

#commandInput {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  outline: none;
  padding: 5px 0;
  min-width: 50px;
  position: relative;
  caret-color: transparent;
}

.cursor-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.cursor {
  width: 8px;
  height: 18px;
  background: var(--primary);
  animation: blink 1s infinite;
  box-shadow: 0 0 8px var(--primary);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Color Classes */
.color-primary { color: var(--primary); }
.color-secondary { color: var(--secondary); }
.color-accent { color: var(--accent); }
.color-yellow { color: #ffcc00; }
.color-blue { color: #66ccff; }
.color-pink { color: #ff66cc; }
.color-green { color: var(--primary); }
.color-orange { color: #ff9966; }
.color-cyan { color: #00ffff; }

/* Typing Animation */
.typing {
  border-right: 2px solid var(--primary);
  animation: typing 1s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* Links */
a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* Project Cards */
.project-card {
  background: rgba(21, 21, 32, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  transition: left 0.5s ease;
}

.project-card:hover::before {
  left: 100%;
}

.project-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  transform: translateY(-2px);
}

.project-title {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-title::before {
  content: '▶';
  font-size: 0.8rem;
  color: var(--secondary);
}

.project-description {
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.project-link {
  color: var(--secondary);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.project-link::after {
  content: '↗';
  font-size: 0.8rem;
}

/* Command Suggestions */
.command-suggestions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.suggestion {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.8rem;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.suggestion:hover {
  background: rgba(0, 255, 136, 0.2);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .terminal-container {
    width: 98%;
    height: 90vh;
    margin: 2vh auto;
  }
  
  .terminal-header {
    padding: 10px 15px;
  }
  
  .terminal-content {
    padding: 15px;
  }
  
  .input-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  #commandInput {
    width: 100%;
  }
}

/* Modern Cyber Banner */
.cyber-banner {
  text-align: center;
  margin: 30px 0;
  position: relative;
}

.ascii-art pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  line-height: 1.2;
  margin: 0;
  animation: text-glow 3s ease-in-out infinite alternate;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-subtitle {
  font-size: 1.2rem;
  margin: 10px 0;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 204, 255, 0.7);
}

.banner-location {
  font-size: 0.9rem;
  opacity: 0.8;
}

@keyframes text-glow {
  0% { filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.5)); }
  100% { filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.8)) 
                   drop-shadow(0 0 25px rgba(0, 204, 255, 0.4)); }
}