:root {
  --main-bg-color: #212438;
  --main-text-color: #C6D3F9;
  --user-text-color: #C18539;
  --path-text-color: #54B387;
  --terminal-bg-color: rgb(36, 36, 36);
  --terminal-header-color: rgb(44, 44, 44);
}

@font-face {
  font-family: 'JetBrainsNerdFont';
  src: url('../fonts/JetBrainsMonoNLNerdFont-Regular.ttf');
}

/* Base styles */
body {
  background-color: var(--main-bg-color);
  color: var(--main-text-color);
  font-family: 'JetBrainsNerdFont';
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
}

.main-content {
  width: 100%;
  max-width: 95vw;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
}

/* TERMINAL */
.terminal-container {
  width: 100%;
  max-width: 100%;
  height: 50vh;
  background-color: #242424;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-container.focused {
  border-left: 2px solid var(--user-text-color);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background: #2c2c2c;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.terminal-header .buttons {
  display: flex;
  gap: 0.4rem;
}

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

.terminal-header .red {
  background: #ff5f57;
}

.terminal-header .yellow {
  background: #ffbd2e;
}

.terminal-header .green {
  background: #28c840;
}

#terminal {
  height: 100%;
  padding: 1rem;
  overflow-y: auto;
  color: #ddd;
  font-family: monospace;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-me {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.output {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.projects-list {
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 0.5rem;
}

/* Side content */
.side-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  text-align: left;
}

.side-content .title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--user-text-color);
}

/* Navigation menu */
.nav-menu {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
  width: 100%;
}

.nav-menu li {
  display: inline-block;
}

.nav-menu button {
  text-decoration: underline;
  color: var(--main-text-color);
  font-size: 1.1rem;
  transition: color 0.3s ease-in-out;
  cursor: pointer;
}

.nav-menu button:hover {
  color: var(--user-text-color);
}

/* Space between menu and content */
.side-body {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--main-text-color);
}

.highlight {
  color: var(--user-text-color);
  font-weight: bold;
}

.command-list {
  list-style: none;
  padding: 0;
}

.command-list li {
  margin-bottom: 0.5rem;
}

.command {
  color: var(--user-text-color);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: monospace;
}

.project-card {
  background: #242424;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.project-card h3 {
  margin: 0;
  color: var(--main-text-color);
}

.project-card p {
  color: #665;
  font-size: 14px;
}

.project-card a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

.project-card:hover {
  transform: scale(1.03);
  transition: 0.3s;
}

.page-header {
  font-size: 1.5rem;
}

a,
a:visited,
a:hover,
a:active {
  color: inherit;
}

/* Tablets (portrait) */
@media (min-width: 481px) and (max-width: 767px) {
  .main-content {
    gap: 1.25rem;
    padding: 0.75rem;
  }

  .terminal-container {
    height: 48vh;
  }

  #terminal {
    height: 38vh;
    font-size: 13px;
  }
}

/* Tablets (landscape) and smaller desktops */
@media (min-width: 768px) {
  .main-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    height: 90vh;
    gap: 1.5rem;
    padding: 1rem;
  }

  .terminal-container {
    flex: 1;
    max-width: 600px;
    min-width: 300px;
    height: 80vh;
  }

  #terminal {
    height: 100%;
    font-size: 14px;
  }

  .side-content {
    flex: 1;
    height: 80vh;
    padding-left: 2rem;
  }
}

/* Large desktops */
@media (min-width: 1200px) {
  .main-content {
    max-width: 90vw;
  }

  .terminal-container {
    max-width: 650px;
  }

  .side-content {
    padding-left: 3rem;
  }

  #terminal {
    font-size: 16px;
  }
}

/* Terminal download animation */
.terminal-loader {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 10px 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.loader-animation {
  position: relative;
  width: 100%;
  height: 4px;
  background-color: #2c2c2c;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.loader-animation::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background-color: var(--path-text-color);
  animation: loading 1.5s infinite;
  border-radius: 2px;
}

@keyframes loading {
  0% {
    left: -30%;
  }

  100% {
    left: 100%;
  }
}

.success-message {
  color: var(--path-text-color);
  font-weight: bold;
}

/* CV Download button */
.cv-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 20px;
  padding: 15px;
  background: rgba(36, 36, 36, 0.5);
  border-radius: 8px;
}

.cv-download h3 {
  margin-bottom: 10px;
  color: var(--main-text-color);
}

.cv-download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--path-text-color);
  color: #242424;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cv-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cv-extra-info {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #aaa;
}

.cancelled-message {
  color: #888;
  font-style: italic;
  font-size: 0.9em;
}

#cv-progress-container {
  font-family: monospace;
  white-space: pre;
  padding: 4px 0;
  color: var(--path-text-color);
}

.cv-download-progress {
  margin: 8px 0;
}

.progress-bar {
  height: 8px;
  background-color: #333;
  border-radius: 4px;
  margin: 5px 0;
  overflow: hidden;
  width: 100%;
  max-width: 300px;
}

.progress-fill {
  height: 100%;
  background-color: var(--path-text-color);
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Add these styles to your CSS file */

.education-entry {
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--path-text-color);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.education-title {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--main-text-color);
}

.education-period {
  font-style: italic;
  color: #888;
  font-size: 0.9rem;
}

.education-description {
  margin-top: 0.3rem;
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.4;
}


/* Add these styles to your CSS file */

.experience-entry {
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--user-text-color);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.experience-title {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--main-text-color);
}

.experience-period {
  font-style: italic;
  color: #888;
  font-size: 0.9rem;
}

.experience-description {
  margin-top: 0.3rem;
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.4;
}

.experience-description p {
  margin-bottom: 0.5rem;
}

.experience-skills {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background-color: rgba(84, 179, 135, 0.2);
  color: var(--path-text-color);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: monospace;
}


/* Add these styles to your CSS file */

.output {
  font-family: monospace;
  white-space: pre-wrap;
  padding: 0.5rem 0;
  line-height: 1.4;
}

/* For the skills bars */
[class^="["] {
  color: var(--path-text-color);
  font-weight: normal;
}

/* Section headers */
.output strong {
  color: var(--user-text-color);
}

/* Make links stand out but keep terminal feel */
.output a {
  color: #5bc0de;
  text-decoration: none;
  border-bottom: 1px dashed #5bc0de;
}

.output a:hover {
  border-bottom-style: solid;
}

/* Command list presentation */
.command-list {
  padding: 0;
  list-style-type: none;
}

.command-list li {
  margin-bottom: 0.3rem;
  font-family: monospace;
}

/* Terminal dividers */
.output hr {
  border: 0;
  border-top: 1px dashed #444;
  margin: 0.5rem 0;
}


/* Certificate styles */
.certificates-container {
  padding: 1rem 0;
}


.certificate-category h3 {
  margin-bottom: 1rem;
  color: var(--user-text-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.certificate-card {
  background-color: var(--terminal-bg-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.certificate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.certificate-thumb {
  height: 120px;
  overflow: hidden;
  background-color: #333;
}

.certificate-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificate-info {
  padding: 0.75rem;
}

.certificate-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--main-text-color);
}

.certificate-year {
  font-size: 0.8rem;
  color: #888;
  padding: 1rem;
}

/* Certificate viewer */
.certificate-viewer {
  padding: 1rem 0;
}

.certificate-header {
  margin-bottom: 1.5rem;
}

.certificate-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.certificate-category {
  background-color: var(--terminal-header-color);
  color: var(--path-text-color);
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.certificate-display {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.certificate-actions {
  display: flex;
  gap: 1rem;
}

.certificate-actions button {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--main-text-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.certificate-actions button:first-child {
  background-color: rgba(84, 179, 135, 0.2);
  color: var(--path-text-color);
}

.certificate-actions button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
