:root {
  --primary-color: #ffffff;
  --background-color: #000000;
  --secondary-color: #ffffff;
  --border-radius: 8px;
}

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

body {
  font-family: "JetBrains Mono";
  font-size: 16px;
  background-color: var(--background-color);
  line-height: 1.2;
}

/* Main content styling */
main {
  margin-left: 20px;
}

main div {
  margin-bottom: 1.5rem;
}

main {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

main ul {
  list-style-type: disc;
  margin-left: 1.5rem;
}

main li {
  margin-bottom: 0.25rem;
}

main a {
  color: lime;
  text-decoration: none;
  transition: color 0.2s ease;
}

main a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Header styling */
header {
  text-align: center;
}

header pre {
  color: var(--primary-color);
  display: inline-block;
  text-align: left;
}

#boids-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: -1;
}

/* Container for all text content - overlay on top of boids */
.text-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  z-index: 1;
  padding: 2em;
  box-sizing: border-box;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Content box wrapper */
.content-box {
  background-color: rgba(0, 0, 0, 0.9);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 1000px;
  width: 90%;
  pointer-events: auto;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Make text content not interfere with canvas mouse events */
main,
header {
  pointer-events: none;
}

/* Allow content-box and its children to be clickable */
.content-box,
.content-box * {
  pointer-events: auto;
}

/* Remove individual backgrounds since content-box handles it */
main div {
  padding: 0;
  margin-bottom: 1rem;
}

header {
  padding: 0;
  margin-bottom: 1rem;
}

h3 {
  padding: 0;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: normal;
}

.whoami-section {
  margin-bottom: 2rem;
}

.experience-group {
  margin-bottom: 1.5rem;
}

/* Reference links styling */
main p:first-child {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

main p:first-child a {
  text-align: center;
}

/* Employer links styling */
.employer-link {
  color: #00ffff !important;
}

.employer-link:hover {
  color: #00ffff !important;
}

/* Project links styling */
.project-link {
  color: lime !important;
}

.project-link:hover {
  color: lime !important;
}

/* Reference links styling */
.reference-link {
  color: lime !important;
}

.reference-link:hover {
  color: lime !important;
}

/* Blog page styling */
.blog-content {
  text-align: center;
}

.coming-soon {
  margin: 2rem 0;
}

.coming-soon p {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.navigation {
  margin-top: 2rem;
}

/* Blog post listing */
.blog-posts {
  text-align: left;
  margin: 2rem 0;
}

.blog-post-preview {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
}

.blog-post-preview h4 {
  margin-bottom: 0.5rem;
}

.blog-post-preview h4 a {
  color: lime;
  text-decoration: none;
}

.blog-post-preview h4 a:hover {
  text-decoration: underline;
}

.post-date {
  color: #888;
  font-size: 0.9em;
  margin-bottom: 0.5rem;
}

.post-excerpt {
  color: var(--primary-color);
  line-height: 1.4;
}

/* Individual blog post styling */
.blog-post {
  text-align: left;
}

.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-header h1 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.8em;
  line-height: 1.2;
}

.post-meta {
  color: #888;
  font-size: 0.9em;
}

.post-content {
  line-height: 1.6;
  margin-bottom: 2rem;
}

.post-content h2 {
  color: var(--primary-color);
  margin: 2rem 0 1rem 0;
  font-size: 1.4em;
}

.post-content p {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.post-content ul {
  margin: 1rem 0 1rem 2rem;
}

.post-content li {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.post-content code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  color: lime;
  font-family: "JetBrains Mono", monospace;
}

.post-content pre {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--primary-color);
}

/* Python syntax highlighting */
.post-content .codehilite .n {
  color: var(--primary-color);
} /* Names */
.post-content .codehilite .p {
  color: var(--primary-color);
} /* Punctuation */
.post-content .codehilite .c1 {
  color: #6a9955;
} /* Comments */
.post-content .codehilite .s2 {
  color: #ce9178;
} /* Strings */
.post-content .codehilite .nt {
  color: #4fc1ff;
} /* Name.Tag (JSON keys) */
.post-content .codehilite .w {
  color: var(--primary-color);
} /* Whitespace */
.post-content .codehilite .k {
  color: #569cd6;
} /* Keywords */
.post-content .codehilite .kn {
  color: #569cd6;
} /* Keyword.Namespace */
.post-content .codehilite .o {
  color: var(--primary-color);
} /* Operators */
.post-content .codehilite .nb {
  color: #4ec9b0;
} /* Name.Builtin */
.post-content .codehilite .nf {
  color: #dcdcaa;
} /* Name.Function */

.post-content a {
  color: lime;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

.screenshot {
  text-align: center;
  margin: 2rem 0;
}

.screenshot img {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
}

/* General image styling for blog posts */
.post-content img {
  max-width: 100%;
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  display: block;
  margin: 1.5rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navigation a {
  margin-right: 1rem;
}

/* Mobile responsive styling */
@media (max-width: 768px) {
  header pre {
    font-size: 0.6em;
  }
}

@media (max-width: 480px) {
  header pre {
    font-size: 0.4em;
  }

  .content-box {
    padding: 1rem;
    width: 95%;
  }
}

/* Email popup styling */
.email-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.95);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  display: none;
  text-align: center;
}

.email-popup p {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: "JetBrains Mono";
}

.email-popup .email-address {
  color: lime;
  font-weight: bold;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.email-popup .copy-btn {
  background: none;
  border: 1px solid lime;
  color: lime;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.email-popup .copy-btn:hover {
  background-color: lime;
  color: var(--background-color);
}

.copy-feedback {
  color: lime;
  font-size: 0.9em;
  margin-bottom: 1rem;
  display: none;
}

.email-popup .close-btn {
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: "JetBrains Mono";
  transition: all 0.2s ease;
}

.email-popup .close-btn:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}
