:root {
  --primary-color: #b9c0d0;
  --primary-dark: #dadee7;
  --secondary-color: #0ea5e9;
  --accent-color: #06b6d4;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #f1f5f9;
  --card-bg: #ffffff;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --gradient-1: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-2: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --terminal-bg: #1e1e1e;
  --terminal-text: #f0f0f0;
  --terminal-green: #00ff00;
  --terminal-blue: #0077ff;
  --terminal-gray: #b0b0b0;
  --terminal-prompt: #00ff00;
  --terminal-header: #333333;
  --terminal-font: 'Fira Code', monospace;
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
  font-family: var(--terminal-font);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--terminal-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
header {
  background-color: var(--dark-bg);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav ul li a {
  color: var(--text-light);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent-color);
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-attachment: fixed;
  padding-top: 60px;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  padding: 2rem;
}

#hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

#hero h1 span {
  color: var(--accent-color);
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--gradient-1);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: var(--box-shadow);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background: var(--gradient-2);
}

/* Projects Section */
#projects {
  padding: 6rem 0;
  background: linear-gradient(to bottom, var(--light-bg), #e2e8f0);
}

#projects .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
  z-index: 1;
}

.project.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.project.featured::before {
  background: var(--gradient-2);
  height: 6px;
}

.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.project:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background: var(--gradient-1);
  color: var(--text-light);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  transform: translateY(-2px);
  background: var(--gradient-2);
}

.project-description {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.7;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.project-btn.github {
  background: var(--dark-bg);
  color: var(--text-light);
}

.project-btn.demo {
  background: var(--gradient-1);
  color: var(--text-light);
}

.project-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

/* Skills Section */
#skills {
  padding: 6rem 0;
  background: var(--dark-bg);
  color: var(--text-light);
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.skill {
  background: var(--gradient-1);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow);
}

.skill:hover {
  transform: translateY(-3px);
  background: var(--gradient-2);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
#contact {
  padding: 6rem 0;
  background: var(--light-bg);
}

#contact form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

#contact input,
#contact textarea {
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#contact input:focus,
#contact textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(71, 122, 223, 0.1);
}

#contact button {
  background: var(--gradient-1);
  color: var(--text-light);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

#contact button:hover {
  background: var(--gradient-2);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 2rem 0;
  text-align: center;
}

.bottom-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
  color: var(--secondary-color);
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-color);
}

/* Media Queries */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .project.featured {
    grid-template-columns: 1fr;
  }

  .project-links {
    flex-direction: column;
  }

  .bottom-container {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 2rem;
  }

  .project-image {
    height: 200px;
  }

  .tech-stack {
    justify-content: center;
  }

  #terminal-input {
    font-size: 14px;
  }
  
  .command {
    padding: 0 2px;
  }
  
  .terminal-window {
    padding: 10px;
  }
}

/* Terminal Portfolio Styles */
.terminal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background-color: #0f0f0f;
}

/* Terminal Container */
.terminal-container {
  width: 100%;
  height: 100vh;
  max-width: none;
  background-color: var(--terminal-bg);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* Terminal Header */
.terminal-header {
  background-color: var(--terminal-header);
  padding: 8px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  width: 100%;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.close {
  background-color: #ff5f56;
}

.minimize {
  background-color: #ffbd2e;
}

.maximize {
  background-color: #27c93f;
}

.terminal-title {
  color: #d0d0d0;
  font-size: 14px;
}

/* Terminal Window */
.terminal-window {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 30px); /* Account for header height */
}

/* Terminal Output */
.terminal-output {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 15px;
  white-space: pre-wrap;
  width: 100%;
  padding-right: 10px;
}

/* ASCII Art */
.ascii-art {
  color: var(--terminal-green);
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 15px;
}

/* Welcome Message */
.welcome-message {
  margin-bottom: 20px;
}

.welcome-message p {
  color: #ffffff;
  margin-bottom: 10px;
}

/* Terminal Input Line */
.terminal-input-line {
  display: flex;
  align-items: center;
  font-family: var(--terminal-font);
  margin-top: auto;
}

.prompt {
  color: var(--terminal-prompt);
  margin-right: 10px;
  font-weight: 500;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--terminal-text);
  font-family: var(--terminal-font);
  font-size: 16px;
  outline: none;
  caret-color: var(--terminal-text);
}

/* Command Highlighting */
.command {
  color: var(--terminal-green);
  font-weight: 500;
  padding: 0 4px;
  background-color: rgba(0, 255, 0, 0.1);
  border-radius: 3px;
}

.path {
  color: var(--terminal-blue);
}

.error {
  color: #ff5f56;
}

.success {
  color: var(--terminal-green);
}

/* Hidden Content Containers */
#hidden-content {
  display: none;
}

/* Content Styling */
h2 {
  color: var(--terminal-blue);
  margin-bottom: 15px;
  border-bottom: 1px solid var(--terminal-gray);
  padding-bottom: 5px;
  font-size: 1.5rem;
}

h3 {
  color: var(--terminal-green);
  margin: 15px 0 10px;
  font-size: 1.2rem;
}

p {
  margin-bottom: 10px;
  color: #98FB98;
}

ul, ol {
  padding-left: 20px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 5px;
  color: #87CEFA;
}

a {
  color: #40a9ff;
  text-decoration: none;
  border-bottom: 1px dotted #40a9ff;
}

a:hover {
  color: #00ff00;
  border-bottom: 1px solid #00ff00;
}

/* Projects */
.project {
  margin-bottom: 30px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  border-left: 3px solid var(--terminal-green);
}

/* Skills */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.skill {
  background-color: rgba(0, 119, 255, 0.2);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

/* Commands Table */
.commands-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.commands-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.commands-table tr:last-child td {
  border-bottom: none;
}

/* Add special styling for adventure-related content */
.commands-table td:last-child {
  font-weight: 500;
}

/* Special styling for text about adventure game */
[class*="adventure"], 
.terminal-output div:contains("adventure"), 
div:contains("Play an interactive text adventure"), 
div:contains("adventure") {
  color: #ffff80 !important;
}

/* Make all terminal content brighter by default */
.terminal-output div {
  color: #ffffff;
}

/* Make sure all terminal content is visible enough */
.terminal-body div {
  color: #ffffff;
}

/* Enhance visibility of all terminal text */
.terminal-window * {
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Special styling for the game command */
.command[class*="game"], 
.command:contains("game"), 
.command:contains("adventure") {
  color: #ffff00 !important;
  background-color: rgba(255, 255, 0, 0.1);
  font-weight: 600;
}

/* Terminal content about game or adventure */
#game-content p {
  color: #ffff80;
}

/* Resume */
.resume-item {
  margin-bottom: 20px;
}

.resume-item h4 {
  color: var(--terminal-text);
  margin-bottom: 5px;
}

.resume-item p {
  font-style: italic;
  color: #E0E0E0;
  margin-bottom: 10px;
}

.resume-item li {
  color: #FFB6C1;
}

/* Terminal Footer */
.terminal-footer {
  text-align: center;
  margin-top: 20px;
  color: #d0d0d0;
  font-size: 14px;
}

/* Animations */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 16px;
  background-color: var(--terminal-text);
  animation: blink 1s infinite;
  margin-left: 2px;
  vertical-align: middle;
}

/* Matrix Effect */
.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  z-index: 999;
  overflow: hidden;
  display: flex;
  justify-content: space-around;
}

.matrix-column {
  color: #0f0;
  font-family: monospace;
  font-size: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Media Queries */
@media (max-width: 768px) {
  .terminal-container {
    width: 100%;
    height: 100vh;
  }
  
  .terminal-window {
    padding: 10px;
  }
  
  .terminal-header {
    padding: 5px 10px;
  }
  
  .ascii-art {
    font-size: 8px;
  }
  
  .skill-list {
    gap: 5px;
  }
  
  .skill {
    font-size: 12px;
  }
}

/* Preserve some of your original styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.body {
  font-family: var(--terminal-font);
  background-color: var(--terminal-bg);
}

/* Add the skip link styles that were commented out before */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #fff;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Mobile Command Buttons */
.mobile-commands {
  display: none;
  width: 100%;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-commands-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0 10px;
}

.mobile-cmd-btn {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid var(--terminal-green);
  color: var(--terminal-green);
  padding: 8px 12px;
  border-radius: 5px;
  font-family: var(--terminal-font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-cmd-btn:hover, .mobile-cmd-btn:active {
  background: rgba(0, 255, 0, 0.2);
  transform: translateY(-2px);
}

/* Show mobile commands on touch devices */
@media (pointer: coarse) {
  .mobile-commands {
    display: block;
  }
  
  .terminal-window {
    height: calc(100vh - 80px); /* Account for header and command buttons */
  }
}

/* Improve scrolling on mobile */
@media (max-width: 768px) {
  .terminal-output {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Make buttons bigger on small screens */
  .mobile-cmd-btn {
    padding: 10px 15px;
    font-size: 16px;
  }
}
