/* Base Styles */
@import url("https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap");

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

body {
  font-family: "Ubuntu Mono", monospace;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("images/background.jpg");
  background-size: cover;
  color: #33ff33;
  line-height: 1.6;
  padding: 20px;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Terminal Styles */
.terminal {
  width: 90%;
  max-width: 1000px;
  height: 85vh;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.home-link:hover {
  text-decoration: underline;
}

.terminal-header {
  background-color: #333;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  position: relative; 
}

.terminal-buttons {
  display: flex;
  gap: 8px;
  margin-right: 0; 
  margin-left: auto; 
  z-index: 2; 
}

.terminal-title {
  color: #ddd;
  font-size: 14px;
  position: absolute; 
  left: 0;
  right: 0;
  text-align: center; 
  z-index: 1; 
  width: 100%; 
}

.terminal-button {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background-size: 50%; 
  background-position: center; 
  background-repeat: no-repeat; 
  cursor: pointer;
}

.left-buttons {
  width: 17px;
  height: 17px;
  margin-left: 0px;
  display: flex;
}

.extra {
  background-color: #656565;
  background-image: url("images/tabExtra.png");
  border-radius: 10%;
  background-size: 60%;
}

.close {
  background-color: #656565;
  background-image: url("images/close.png");
}

.minimize {
  background-color: #656565;
  background-image: url("images/minus.png");
}

.maximize {
  background-color: #656565;
  background-image: url("images/rectangle.png");
}

.close:hover, .minimize:hover, .maximize:hover, .extra:hover {
  background-color: #f05922;
}

.terminal-content {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#output {
  flex-grow: 1;
  margin-bottom: 15px;
}

.line {
  margin-bottom: 15px;
  position: relative; 
}

.prompt-line {
  display: flex;
  align-items: center;
}

.prompt {
  color: #33ff33;
  margin-right: 8px;
}

#command-input {
  background: transparent;
  border: none;
  color: #33ff33;
  font-family: "Ubuntu Mono", monospace;
  font-size: 16px;
  outline: none;
  flex-grow: 1;
  caret-color: #33ff33;
}

h2 {
  color: #ffbd2e;
  margin-bottom: 10px;
  font-size: 1.2em;
}

h3 {
  color: #27c93f;
  margin-bottom: 8px;
  font-size: 1.1em;
}

p {
  margin-bottom: 8px;
}

ul {
  list-style-type: none;
  margin-left: 15px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 5px;
}

.ascii-art {
  color: #ffbd2e;
  margin-bottom: 15px;
  font-size: 0.8em;
  line-height: 1.2;
}

.section-content {
  margin-left: 15px;
  width: 90%; 
}

.skills-list li,
.command-list li {
  display: flex;
  flex-wrap: wrap;
}

.skill-category {
  color: #ff5f56;
  margin-right: 8px;
  min-width: 100px;
}

.command {
  color: #27c93f;
  background-color: rgba(39, 201, 63, 0.1);
  padding: 2px 5px;
  border-radius: 3px;
  margin-right: 8px;
  cursor: pointer;
}

.command:hover {
  background-color: rgba(39, 201, 63, 0.2);
}


.file-list,
.folder-list,
.project-list {
  margin-left: 15px;
  margin-bottom: 15px;
  width: 60%; 
}

.file,
.folder,
.project {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: rgba(51, 51, 51, 0.3);
  position: relative; 
}

.file-icon,
.folder-icon,
.project-icon {
  margin-right: 8px;
}

.file-name,
.folder-name,
.project-name {
  color: #ffbd2e;
  font-weight: bold;
  margin-right: 10px;
}

.file-content,
.folder-content,
.project-content {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #333;
}

.folder-list.full-width,
.file-list.full-width {
  width: 95%; 
}

.full-width .terminal-image {
  margin-left: 20px;
  margin-right: 10px;
}

.project-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.project-award {
  color: #ff5f56;
  font-size: 0.9em;
  margin-left: auto;
}

.link {
  color: #3498db;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.terminal-image {
  border: 2px solid #333;
  border-radius: 5px;
  padding: 5px;
  background-color: #111;
  position: sticky;
  top: 15px;
  float: right;
  width: 35%;
  max-width: 300px;
  margin-left: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 10;
  overflow: hidden;;
}

.terminal-image::before {
  content: none; 
}

.profile-image::before {
  content: "profile_pic.jpg";
  position: absolute;
  top: -20px;
  left: 10px;
  background-color: #000;
  padding: 2px 8px;
  border: 1px solid #333;
  border-radius: 3px;
  color: #ffbd2e;
  font-size: 12px;
}

.terminal-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #444;
}

.terminal-image-caption {
  padding: 5px;
  background-color: #111;
  color: #33ff33;
  font-size: 14px;
  text-align: center;
  border-top: 1px dashed #333;
  margin-top: 5px;
}

.with-image {
  display: flow-root;
  min-height: 100px;
}

.terminal-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
}

.terminal-image:hover {
  border-color: #33ff33;
  box-shadow: 0 0 15px rgba(51, 255, 51, 0.3);
}

.terminal-image:hover::before {
  color: #33ff33;
}

.terminal-link {
  color: #33ff33; 
  text-decoration: none;
  border-bottom: 1px dotted #33ff33;
  transition: color 0.2s, border-bottom 0.2s;
}

.terminal-link:hover {
  color: #ffbd2e; 
  border-bottom: 1px solid #ffbd2e;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .terminal {
    width: 100%;
    height: 90vh;
  }

  .ascii-art {
    display: none;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-award {
    margin-left: 0;
    margin-top: 5px;
  }

  .terminal-image {
    position: relative;
    width: 100%;
    max-width: none;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .with-image {
    padding-right: 0;
    min-height: auto;
  }

  .section-content,
  .file-list,
  .folder-list,
  .project-list {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .terminal-content {
    padding: 10px;
  }

  h2 {
    font-size: 1.1em;
  }

  h3 {
    font-size: 1em;
  }

  .file,
  .folder,
  .project {
    padding: 8px;
  }
}
