body {
  font-family: 'Be Vietnam Pro', sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center; /* horizontally centers the container */
  align-items: flex-start;     /* align to top instead of center */
  padding-top: 2rem; /* add some top padding */
}

#main-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* Change from flex-start to center */
  width: 100%; /* Ensure full width utilization */
}

#header-container {
   text-align: left;
   width: fit-content;
}

#intro-container {
    width: 600px;
    font-weight: 200;
}

h1 {
    font-size: 48px;
    margin-bottom: 0px;
}

h2 {
    color: #789DBC;
    margin-top: 0.2rem;
    font-size: 48px;
}

#typed-text {
  font-size: 2rem;
  color: #7397e5;
}

#text{
    font-size: 48px;
}

#cursor {
  display: inline-block;
  width: 0.6em;
  animation: blink 0.7s infinite;
  color: #7397e5;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}


#badge-container {
    display: grid;
    grid-template-columns: 200px 200px 200px;
    column-gap: 10px;
}

.badge {
    border-radius: 20px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

#swe-badge {
    background-color: #D0E8C5;
}

#data-badge {
    background-color: #C5D3E8;
}

#origami-badge {
    background-color: #FFE3E3;
}

#contact-links {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 1.5rem;
}

#contact-links a {
  font-size: 1.5rem;      /* increase icon size */
  color: black;         /* set color to black */
  transition: color 0.2s ease;
}

#contact-links a:hover {
  color: #555; 
}

#navbar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 1.25rem;
  font-weight: 200;
  width: 100%;
  margin-bottom: 30px;
}

#navbar a {
  text-decoration: none;
  color: black;
}

#navbar a.active {
  border-bottom: 2px solid black;
  color: #000;
}

#navbar a:hover {
  color: #555;
  border-bottom: 2px solid #555;
}

#content-container {
  margin-top: 2rem;
  font-weight: 300;
  max-width: 700px;
}

#projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

/* Make cards look like non-underlined links */
.project-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #fdfdfd;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
  display: block;
}

.project-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.project-card .subtitle {
  font-weight: 400;
  font-size: 1rem;
  color: #666;
}

.project-card .tags {
  margin: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-card .tags span {
  background-color: #eee;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-card p {
  font-weight: 300;
  margin-top: 0.5rem;
  line-height: 1.5;
}

#project-filters {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

#project-filters button {
  padding: 0.4rem 1rem;
  border: 1px solid #ccc;
  border-radius: 999px;
  background-color: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

#project-filters button.active {
  background-color: black;
  color: white;
  border-color: black;
}

#gallery-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Be Vietnam Pro', sans-serif;
}

#gallery-page h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.city-section {
  margin-bottom: 3rem;
}

.city-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.masonry-grid {
  column-count: 3;
  column-gap: 1rem;
}

.masonry-grid img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 10px;
  display: block;
  break-inside: avoid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.masonry-grid img:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    column-count: 1;
  }
}

#blog-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

#blog-page h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-list li {
  margin-bottom: 2rem;
}

.blog-list a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 1rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.blog-list a:hover {
  background-color: #f2f2f2;
}

.blog-list h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.blog-list .description {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  color: #555;
}

.blog-placeholder {
  text-align: center;
  color: #999;
  margin-top: 3rem;
  font-weight: 300;
}

#stuff-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

#stuff-page h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.stuff-section {
  margin-bottom: 3rem;
}

.stuff-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.stuff-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  font-weight: 300;
  color: #444;
}

.stuff-section ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
