:root {
  --primary-dark: #2e3436;
  --secondary-dark: #1c1f21;
  --highlight-blue: #729fcf;
  --text-primary: #d3d7cf;
  --text-secondary: #babdb6;
  --accent-color: #3465a4;
  --danger-color: #cc0000;
  --success-color: #4e9a06;
  --warning-color: #c4a000;
  --terminal-green: #8ae234;
  --terminal-border-color: #555753;
}

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

body {
  font-family: 'Ubuntu Mono', 'DejaVu Sans Mono', monospace;
  background-color: var(--primary-dark);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.terminal-container {
  width: 90%;
  max-width: 1200px;
  background-color: var(--secondary-dark);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.terminal-header {
  background-color: #2d2d2d;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #555;
}

.terminal-buttons {
  display: flex;
  gap: 6px;
  margin-right: 15px;
}

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

.close {
  background-color: #d23934;
}

.minimize {
  background-color: #fea63c;
}

.maximize {
  background-color: #9ece58;
}

.terminal-title {
  font-size: 14px;
  color: var(--text-secondary);
}

.terminal-body {
  padding: 25px;
  min-height: 500px;
}

.main-nav {
  list-style-type: none;
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.main-nav li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
  padding: 5px 0;
  position: relative;
}

.main-nav li a:hover,
.main-nav li.active a {
  color: var(--highlight-blue);
}

.main-nav li a::before {
  content: '$';
  margin-right: 5px;
  color: var(--highlight-blue);
  opacity: 0;
  transition: opacity 0.3s;
}

.main-nav li a:hover::before,
.main-nav li.active a::before {
  opacity: 1;
}

.content {
  margin-top: 40px;
}

.highlight {
  color: var(--highlight-blue);
}

.terminal-text {
  margin-bottom: 15px;
}

.command {
  color: var(--terminal-green);
  font-weight: bold;
}

.typing-effect h1,
.typing-effect h2,
.typing-effect p {
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 15px;
  animation: typing 3.5s steps(40, end);
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

h3 {
  margin: 40px 0 20px;
  color: var(--highlight-blue);
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 10px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.skill-item {
  margin-bottom: 15px;
}

.skill-name {
  margin-bottom: 5px;
  font-size: 14px;
}

.skill-bar {
  height: 10px;
  background-color: #303535;
  border-radius: 3px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background-color: var(--highlight-blue);
  border-radius: 3px;
  transition: width 1s ease-in-out;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background-color: var(--secondary-dark);
  padding: 20px;
  border-radius: 3px;
  border-left: 3px solid var(--highlight-blue);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-card h4 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 15px;
}

.view-project {
  display: inline-block;
  color: var(--highlight-blue);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.view-project:hover {
  color: var(--text-primary);
}

.view-project::after {
  content: ' →';
}

.view-certificate {
  display: inline-block;
  color: var(--highlight-blue);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.view-certificate:hover {
  color: var(--text-primary);
}

.terminal-footer {
  background-color: #2d2d2d;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.protected-info {
  background-color: var(--secondary-dark);
  padding: 8px;
  border-radius: 3px;
  cursor: pointer;
  color: var(--text-secondary);
  user-select: none;
  transition: all 0.3s;
}

.protected-info:hover {
  background-color: var(--highlight-blue);
  color: var(--primary-dark);
}

.protected-info.revealed {
  background-color: var(--primary-dark);
  color: var(--highlight-blue);
}

/* Certifications side-by-side layout */
.certifications-container {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.certifications-column {
  flex: 1;
  max-width: 48%;
}

.cert-divider {
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--highlight-blue), transparent);
  margin: 0 15px;
}

/* Tools and Technologies Grid Layout */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 15px;
}

.tech-category {
  border: 1px solid var(--terminal-border-color);
  padding: 15px;
  border-radius: 3px;
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
}

.tech-category h4 {
  color: var(--highlight-blue);
  margin-top: 0;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--terminal-border-color);
  padding-bottom: 5px;
}

.tech-category ul {
  list-style-type: none;
  padding-left: 10px;
  margin: 0;
}

.tech-category li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.tech-category li:before {
  content: "$";
  position: absolute;
  left: 0;
  color: var(--highlight-blue);
}

/* Timeline for Work Experience */
.timeline {
  position: relative;
  padding-left: 30px;
  margin-top: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, 
                            transparent, 
                            var(--highlight-blue),
                            var(--highlight-blue),
                            transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.timeline-dot {
  position: absolute;
  left: -35px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--highlight-blue);
  box-shadow: 0 0 10px var(--highlight-blue);
}

.timeline-date {
  display: inline-block;
  padding: 3px 10px;
  font-family: monospace;
  font-size: 0.9em;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--terminal-border-color);
  border-radius: 3px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.timeline-content {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--terminal-border-color);
  border-radius: 3px;
  padding: 15px;
  position: relative;
}

.timeline-content h4 {
  margin-top: 0;
  margin-bottom: 5px;
}

.timeline-content .company {
  font-style: italic;
  margin-bottom: 10px;
  color: var(--text-secondary);
  opacity: 0.8;
}

.timeline-content .responsibilities {
  list-style-type: none;
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.timeline-content .responsibilities li {
  position: relative;
  margin-bottom: 5px;
  padding-left: 15px;
}

.timeline-content .responsibilities li:before {
  content: "$";
  position: absolute;
  left: 0;
  color: var(--highlight-blue);
}

/* Responsive adjustments */
@media (min-width: 992px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .certifications-container {
    flex-direction: column;
  }
  
  .certifications-column {
    max-width: 100%;
  }
  
  .cert-divider {
    width: 100%;
    height: 2px;
    margin: 20px 0;
    background: linear-gradient(to right, transparent, var(--text-primary), transparent);
  }
  
  .tech-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .timeline {
    padding-left: 20px;
  }
  
  .timeline-dot {
    left: -25px;
  }
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
}

.modal-content {
  background-color: #333;
  color: var(--text-primary);
  margin: 10% auto; /* Adjusted margin for larger modal */
  padding: 40px; /* Increase padding for a more spacious look */
  border: 1px solid #555;
  width: 100%; /* Increased width to 90% of the screen */
  max-width: 1000px; /* Set a max-width for the modal to avoid making it too wide */
  text-align: center;
  border-radius: 3px;
}

.close {
  color: #888;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
}

img {
  width: 100%; /* Ensure the image scales well */
  height: auto;
}