body {
  background: #fff;
  margin: 0;
  min-height: 100vh;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 0 5px 0;
  margin-bottom: 0;
  width: 100%;
  position: relative;
  max-width: 540px;
  background: #fff;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
}



.nav-right {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-button {
  color: #b03a6a;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.nav-button:hover {
  color: #d63384;
}

.nav-button.active {
  color: #b03a6a;
}

.header-image {
  width: 100%;
  height: 160px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  max-width: 540px;
  z-index: 999;
}

.header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.container {
  background: #fff;
  max-width: 540px;
  width: 100%;
  margin: 40px auto;
  padding: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.writing-area {
  padding-top: 0;
  margin-top: 0;
  padding-bottom: 0;
  color: #222;
  font-size: 1.08rem;
  line-height: 1.7;
  text-align: left;
  width: 100%;
}

.highlight-yellow {
  background: #fffbe6;
  color: #b59d3a;
  padding: 0 2px;
}

.highlight-blue {
  background: #eaf1fb;
  color: #3a5a8c;
  padding: 0 2px;
}

.highlight-pink {
  background: #ffeaf4;
  color: #b03a6a;
  padding: 0 2px;
}

.author {
  text-align: right;
  font-size: 0.98rem;
  color: #888;
  margin-top: 18px;
  font-style: italic;
}

.content-section {
  margin-top: 0;
  padding-top: 0;
  display: none;
  width: 100%;
  position: relative;
}

.content-section.active {
  display: block;
}

.project-section:first-child {
  margin-top: 20px;
  padding-top: 0;
}

.project-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.project-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
}

.project-section p {
  margin-bottom: 15px;
}

.project-section p:last-child {
  margin-bottom: 0;
}

.project-link-arrow {
  color: #b03a6a;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 900;
  margin-left: 8px;
  transition: all 0.3s ease;
  display: inline-block;
}

.project-link-arrow:hover {
  color: #d63384;
  transform: translateY(-2px);
}

.ku-links {
  display: flex;
  gap: 20px;
  margin: 16px 0 8px 0;
}

.ku-links a:hover {
  text-decoration: underline;
}

/* Add vertical spacing between links in beasty-links, matching ku-links */
.beasty-links {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.airly-links {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.beasty-links a:hover {
  text-decoration: underline;
}

.airly-links a:hover {
  text-decoration: underline;
}

#thoughts .navbar {
  padding: 10px 0 5px 0;
}

#thoughts .writing-area {
  margin-bottom: 200px;
}

#thoughts.active ~ .navbar,
#thoughts.active .navbar,
body:has(#thoughts.active) .navbar {
  padding: 10px 0 5px 0;
}

/* Target navbar when thoughts section is active */
body.thoughts-active .navbar {
  padding: 5px 0 5px 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 100px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.contact-link {
  color: #b03a6a;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  padding: 2px 0;
}

.contact-link:hover {
  color: #d63384;
  text-decoration: underline;
}

/* Responsive Design for Mobile Devices */
@media screen and (max-width: 768px) {
  .container {
    max-width: 95%;
    margin: 20px auto;
    padding: 0 0 20px 0;
  }
  
  .navbar {
    padding: 20px 0 5px 0;
    max-width: 95%;
  }
  
  .nav-right {
    gap: 20px;
  }
  
  .nav-button {
    font-size: 14px;
  }
  
  .header-image {
    height: 120px;
    max-width: 95%;
  }
  
  .writing-area {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 10px;
  }
  
  .project-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }
  
  .project-section h3 {
    font-size: 1.2rem;
  }
  
  .ku-links,
  .beasty-links,
  .airly-links {
    flex-direction: column;
    gap: 1px;
    align-items: flex-start;
  }
  
  .ku-links a,
  .beasty-links a,
  .airly-links a {
    font-size: 14px;
  }
}

/* Extra small devices (phones, 480px and down) */
@media screen and (max-width: 480px) {
  .container {
    max-width: 98%;
    margin: 10px auto;
  }
  
  .navbar {
    padding: 15px 0 5px 0;
    max-width: 98%;
  }
  
  .nav-right {
    gap: 15px;
  }
  
  .nav-button {
    font-size: 13px;
  }
  
  .header-image {
    height: 100px;
    max-width: 98%;
  }
  
  .writing-area {
    font-size: 0.95rem;
    padding: 0 5px;
  }
  
  .project-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
  }
  
  .project-section h3 {
    font-size: 1.1rem;
  }
  
  .highlight-yellow,
  .highlight-blue,
  .highlight-pink {
    padding: 0 1px;
  }
}



 