body {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 500;
  margin: 0;
  padding: 0;
  max-width: 1000px;
  margin: 0 auto;
  position: relative; /* so we can position the cat relative to body */
  background-color: #000000;
  color: #ffffff;
}

/* Theme colors */
:root {
  --primary-green: #00f900;
  --accent-green: #00cc00;
  --dark-green: #008800;
  --white: #ffffff;
  --black: #000000;
  --gray: #333333;
  --light-gray: #666666;
}

.header {
  display: flex;
  align-items: flex-end; /* align bottom of elements */
  justify-content: space-between;
  margin: 20px;
  flex-wrap: nowrap; /* prevent wrapping */
}

.header h1 {
  white-space: nowrap; /* keep name on one line */
  margin: 0;
}

.first-name {
  font-family: 'Goldman', sans-serif;
  font-size: 60px;
  text-transform: lowercase;
  color: var(--primary-green);
}

.last-name {
  font-family: 'Audiowide', cursive;
  font-size: 24px;
  text-transform: lowercase;
  color: var(--white);
}

.ascii-bar {
  font-family: monospace;
  font-size: 12px;
  color: var(--light-gray);
  /* pre tag is used, so whitespace is preserved by default */
  margin-right: 20px;
  line-height: 1.2; 
  overflow-x: hidden;
  display: block;
  max-width: 100%;
}

.ascii-bar a {
  text-decoration: none;
  color: var(--light-gray) !important;
  border-bottom: none !important;
  transition: color 0.3s ease;
}

.ascii-bar a:hover {
  color: var(--primary-green) !important;
  text-decoration: underline !important;
}

.section {
  margin: 80px 0;
}

.section-title {
  font-family: 'Goldman', sans-serif;
  font-size: 30px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-green);
}

p a {
  color: var(--primary-green);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-green);
  transition: all 0.3s ease;
}

p a:hover {
  color: var(--accent-green);
  border-bottom: 1px solid var(--accent-green);
  font-weight: bold;
}

.profile-image {
  width: 400px;
  height: 350px;
  border: 2px dashed var(--primary-green);
  margin-left: 20px;
}

#about-me {
  display: flex;
  width: 90%;
  text-align: justify;
  margin-top: 0;
  margin-bottom: 0;
}

#about-me .text {
  font-size: 14px;
  font-weight: 500;
  padding: 12px;
  padding-left: 60px;
}

.indented-quote {
  margin: 5px 0;
  padding: 0;
  font-size: 13px;
  color: var(--primary-green);
  font-style: italic;
}

/* Explorations page styles */
.explorations-intro {
  text-align: center;
  margin-bottom: 40px;
}

.exploration-subtitle {
  font-size: 18px;
  color: var(--light-gray);
  font-style: italic;
  margin: 0;
}

.exploration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin: 40px 20px;
}

.exploration-card {
  background: var(--black);
  border: 2px solid var(--gray);
  border-radius: 8px;
  padding: 0;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
  overflow: hidden;
  display: block;
}

.exploration-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 249, 0, 0.1);
}

.exploration-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--gray);
}

.exploration-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.exploration-card:hover .exploration-image img {
  transform: scale(1.05);
}

.exploration-content {
  padding: 20px;
}

.exploration-title {
  font-family: 'Goldman', sans-serif;
  font-size: 20px;
  margin: 0 0 10px 0;
  color: var(--primary-green);
}

.exploration-desc {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 15px 0;
  color: var(--white);
}

.exploration-tag {
  display: inline-block;
  background: var(--dark-green);
  color: var(--white);
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  margin-right: 8px;
  margin-bottom: 8px;
  text-transform: lowercase;
}

.coming-soon {
  text-align: center;
  margin-top: 60px;
}

.coming-soon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.coming-soon-list p {
  margin: 0;
  padding: 10px;
  border: 1px dashed var(--gray);
  border-radius: 4px;
  font-size: 14px;
  color: var(--light-gray);
}

/* Contact Links */
.contact-links {
  display: flex;
  justify-content: space-around;
  width: 50%;
  margin: auto;
}

.contact-links a {
  text-decoration: none;
  color: #333;
  border-bottom: 1px dotted #333;
}

.contact-links a:hover {
  font-weight: bold;
}

/* Research page styling */
.research-intro-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.research-text {
  width: 50%;
  padding: 20px;
  text-align: justify;
  font-size: 14px;
  font-weight: 500;
}

.research-image-placeholder {
  width: 400px;
  height: 300px;
  border: 2px dashed #666;
  display: block;
  float: right;
  margin-right: 100px; /* aligns right edge with navbar */
  color: #666;
}

.research-item {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  width: 80%;
  margin: 20px auto;
}

.research-item-image {
  width: 200px;
  height: 150px;
  border: 2px dashed #666;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
}

.research-item-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

/* Thoughts page styling */
.cat-container {
  position: absolute;
  bottom: 20px;
  right: 100px; /* Align cat's right edge with navbar */
}

.cat-container a {
  text-decoration: none;
  color: var(--primary-green);
}

.ascii-cat {
  font-family: 'Audiowide', cursive;
  font-size: 10px;
  white-space: pre; /* keeps ASCII formatting intact */
  color: var(--primary-green);
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

/* Projects page styling */
.project-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin: 40px 20px;
}

.project-card {
  background: var(--black);
  border: 2px solid var(--gray);
  border-radius: 8px;
  padding: 0;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
  overflow: hidden;
  display: block;
}

.project-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 249, 0, 0.1);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--gray);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-title {
  font-family: 'Goldman', sans-serif;
  font-size: 18px;
  margin: 15px 20px 10px 20px;
  color: var(--primary-green);
}

.project-description {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 20px 20px 20px;
  color: var(--white);
}

.research-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.project-card {
  text-decoration: none;
  color: inherit;
}

.project-card:hover,
.project-card:focus,
.project-card:active {
  text-decoration: none;
  color: inherit;
}


.project-card-grid a,
.project-card-grid a:visited,
.project-card-grid a:hover,
.project-card-grid a:active {
  text-decoration: none !important;
  color: #333 !important;
}

/* Exploration page specific styles */
.exploration-header {
  text-align: center;
  margin: 40px 20px;
}

.exploration-meta {
  margin-bottom: 20px;
}

.exploration-hero {
  text-align: center;
  margin: 40px 0;
}

.hero-image {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  border: 2px solid var(--primary-green);
  border-radius: 8px;
}

.text-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}

.text-content em {
  color: var(--primary-green);
  font-style: italic;
}

.text-content ul {
  list-style-type: none;
  padding-left: 0;
}

.text-content li {
  margin: 10px 0;
  padding-left: 20px;
}

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

.learning-card {
  background: var(--gray);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.learning-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-2px);
}

.learning-card h3 {
  color: var(--primary-green);
  font-family: 'Goldman', sans-serif;
  font-size: 16px;
  margin: 0 0 10px 0;
}

.learning-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.timeline {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
}

.timeline-item {
  display: flex;
  margin: 30px 0;
  align-items: flex-start;
}

.timeline-marker {
  width: 12px;
  height: 12px;
  background: var(--primary-green);
  border-radius: 50%;
  margin-right: 20px;
  margin-top: 5px;
  flex-shrink: 0;
}

.timeline-content h4 {
  color: var(--primary-green);
  font-family: 'Goldman', sans-serif;
  font-size: 16px;
  margin: 0 0 8px 0;
}

.timeline-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 20px;
}

.resource-card {
  background: var(--gray);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
  display: block;
}

.resource-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-2px);
  text-decoration: none;
}

.resource-card h4 {
  color: var(--primary-green);
  font-family: 'Goldman', sans-serif;
  font-size: 16px;
  margin: 0 0 8px 0;
}

.resource-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.exploration-footer {
  text-align: center;
  margin: 60px 20px 40px 20px;
  padding-top: 40px;
  border-top: 1px dashed var(--gray);
}

.exploration-footer a {
  color: var(--primary-green);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.exploration-footer a:hover {
  color: var(--accent-green);
  text-decoration: underline;
}

/* Image gallery styles for explorations */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 20px;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 2px solid var(--gray);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.gallery-item img:hover {
  border-color: var(--primary-green);
  transform: scale(1.02);
}

.image-caption {
  margin: 10px 0 0 0;
  font-size: 14px;
  color: var(--light-gray);
  font-style: italic;
}
