:root {
  --background: #3c3836;
  --foreground: #ebdbb2;
  --terminal-border: #3c3836;
  --terminal-header: #32302f;
  --key-highlight: #ebdbb2;
  --status-bg: #3c3836;
  --section-bg: #504945;
  
  /* Background image customization variables */
  --bg-image: url('./images/background.jpg'); /* Local image path */
  --bg-overlay-color: rgba(60, 56, 54, 0.85); /* Background color with opacity */
  --bg-size: cover; /* Options: cover, contain, auto, or specific dimensions */
  --bg-position: center; /* Options: center, top, right, bottom, left, or specific values */
  --bg-repeat: no-repeat; /* Options: no-repeat, repeat, repeat-x, repeat-y */

  /* Lualine colors - Gruvbox inspired */
  --mode-normal: #83a598;
  --mode-text: #282828;
  --statusline-bg: #32302f;
  --statusline-fg: #ebdbb2;
  --git-color: #b8bb26;
  --diagnostic-color: #fb4934;
}

@font-face {
  font-family: 'JetBrains Mono Nerd Font';
  src: url('./fonts/JetBrainsMonoNerdFont-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'JetBrains Mono Nerd Font', 'JetBrains Mono', 'Fira Code', monospace;
}

body {
  color: var(--foreground);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Background styling with overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image);
  background-size: var(--bg-size);
  background-position: var(--bg-position);
  background-repeat: var(--bg-repeat);
  z-index: -2;
}

/* Overlay to ensure text readability */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-overlay-color);
  z-index: -1;
}

.terminal {
  width: 90%;
  max-width: 800px;
  background-color: rgba(60, 56, 54, 0.6); /* Semi-transparent terminal */
  backdrop-filter: blur(5px); /* Modern blur effect */
  -webkit-backdrop-filter: blur(5px); /* For Safari */
  border: 1px solid var(--terminal-border);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.terminal-header {
  background-color: var(--terminal-header);
  padding: 8px 12px;
  border-bottom: 1px solid var(--terminal-border);
}

.terminal-title {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
}

.terminal-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ascii-art {
  font-family: monospace;
  white-space: pre;
  text-align: center;
  color: #a6e3a1;
  min-height: 180px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin: 0 auto;
  width: 100%;
  padding: 10px 0;
  line-height: 1.1;
}

.dashboard-info {
  text-align: center;
  margin-bottom: 20px;
}

.dashboard-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 4px;
  color: #f9e2af;
}

.keybindings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 80%;
  margin: 0 auto;
  padding: 8px 0;
}

.keybinding-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.2s;
  position: relative;
}

.keybinding-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.key {
  position: absolute;
  right: 16px;
  color: var(--key-highlight);
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

.description {
  font-size: 15px;
  margin-right: 30px; /* Add space between description and key */
}

.content-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background);
  padding: 60px 40px;
  display: none;
  flex-direction: column;
  color: var(--foreground);
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.content-section::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.about-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--terminal-border);
}

.about-header h1 {
  font-size: 3em;
  color: #ebdbb2;
  margin-bottom: 10px;
  font-weight: bold;
}

.about-header .subtitle {
  font-size: 1.2em;
  line-height: 1.8;
  opacity: 0.9;
  max-width: 800px;
  margin: 5px auto;
}

.about-header .location {
  font-size: 1em;
  opacity: 0.8;
  margin: 5px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.location-icon {
  font-size: 1.1em;
}

.section-container {
  max-width: 900px;
  margin: 0 auto 50px auto;
  width: 100%;
}

.section-container h3 {
  color: #ebdbb2;
  font-size: 1.8em;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(235, 219, 178, 0.3);
}

.about-text {
  line-height: 1.8;
  opacity: 0.9;
  font-size: 1.1em;
}

.section-container h4 {
  color: #ebdbb2;
  font-size: 1.1em;
  margin-bottom: 10px;
  margin-top: 20px;
}

.entry {
  margin-bottom: 35px;
  padding-left: 20px;
  border-left: 2px solid var(--terminal-border);
  padding-bottom: 20px;
}

.entry h5 {
  color: #ebdbb2;
  font-size: 1.3em;
  margin-bottom: 8px;
}

.entry h6 {
  color: #ebdbb2;
  font-size: 1.1em;
  margin-bottom: 5px;
  font-weight: normal;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.institution {
  color: #ebdbb2;
  font-size: 1.2em;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.institution-logo {
  height: 30px;
  width: auto;
  vertical-align: middle;
}

.detail {
  color: #ebdbb2;
  font-size: 1em;
}

.entry-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
  gap: 10px;
}

.date {
  color: #ebdbb2;
  font-size: 0.95em;
  font-style: italic;
}

.entry-description {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.entry-description li {
  margin-bottom: 8px;
  line-height: 1.6;
  opacity: 0.9;
}

.entry-paragraph {
  margin-bottom: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.skill-category {
  margin-bottom: 0;
}

.skill-tags {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
  align-items: flex-start;
}

.skill-tag {
  color: #ebdbb2;
  font-size: 1.1em;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.skill-tag::before {
  content: attr(data-icon);
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(0);
  font-size: 2.5em;
  font-family: 'JetBrains Mono Nerd Font', monospace;
  opacity: 0;
  pointer-events: none;
  transition: none;
  color: #ebdbb2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.skill-tag:hover {
  transform: scale(1.1);
}

.skill-tag:hover::before {
  animation: popOut 0.6s ease-out forwards;
}

@keyframes popOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(-40px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-60px) scale(0.8);
  }
}

.project-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.project-links a {
  color: #ebdbb2;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid #ebdbb2;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.9em;
}

.project-links a:hover {
  background-color: rgba(235, 219, 178, 0.2);
  transform: translateY(-2px);
}

.close-hint {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--section-bg);
  padding: 8px 12px;
  border-radius: 4px;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.close-hint:hover {
  opacity: 1;
}

.close-hint-mobile {
  display: none;
}

.close-hint-desktop {
  display: inline;
}

@media (max-width: 768px) {
  .close-hint-mobile {
    display: inline;
  }
  
  .close-hint-desktop {
    display: none;
  }
}


