#home {
  position: relative;
  top: -90px;
}

a:visited, a:active {
  text-decoration: none;
  color: rgb(17, 14, 63);
}

html {
    scroll-behavior: smooth;
}

figcaption {
  margin-top: 8px;
  font-family: monospace;
  font-size: 14px;
  color: rgba(59,83,179,0.7);
}

.about {
  max-width: 800px; 
  margin: 0 auto; 
  font-family: monospace; 
  color: rgba(59,83,179,0.9); 
  line-height: 1.6;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    width: 100%;
    padding-top: 36px;
    padding-bottom: 10px;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-link {
  font-family: monospace;
  font-size: 18px;
  color: rgba(59, 83, 179, 0.9);
}

.left-link a {
  text-decoration: none;
  color: rgba(59, 83, 179, 0.9);
}

.left-link a:hover {
  text-decoration: underline;
}


.nav-links {
    margin-left: auto;
}

.nav-links a {
  margin-left: 32px;
  font-family: monospace;
  font-size: 18px;
  color: rgba(59, 83, 179, 0.9);
  text-decoration: none;
}

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

.main {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: center;
    max-width: 1100px;
    margin: 100px auto;
    margin-top: 200px;
    padding-bottom: 81px;
}

.vert-container {
    display: flex;
    flex-direction: column;
}

.name {
    width: 22ch;
    color: rgba(59, 83, 179);
    font-size: 60px;
    font-family: monospace;
    white-space: pre;
    margin-bottom: 16px;
}

.name span {
  display: inline-block;
}

.name .blink {
  background-color: rgba(59, 83, 179, 0.500);
  color: transparent;
}

.other-print {
  color: rgba(59, 83, 179);
  font-size: 18px;
  font-family: monospace;
  white-space: pre;
  padding-left: 0px;
  display: flex;
  align-items: left;
  gap: 10px;
}

.bio {
    margin-top: 0px;
    font-size: 18px;
   font-family: monospace;
   color: rgba(59, 83, 179, 0.900);
   width: 500px; 
   text-wrap: balance;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    transition: transform 0.1s linear;
    transform-style: preserve-3d;
}

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 0;
}

.sec-title {
    padding-top: 80px;
    margin-bottom: 10px;
    font-family: monospace;
    font-size: 36px;
    color: rgba(59,83,179);
    text-align: center;
}

.projects {
  max-width: 1400px;
  padding-bottom: 30px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px; 
}

.project-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 32px;
  
}

.project-modal {
  border: 1px solid rgba(59, 83, 179, 0.3);
  min-height: 360px;
  padding: 32px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-modal:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.popup-content h1 {
  font-family: monospace;
  font-size: 26px;
  color: rgba(59, 83, 179);
  margin-bottom: 5px;
}

.popup-content h2 {
  margin-top: 0px;
  font-style: italic;
  font-weight: 0px;
}

.popup-content p {
  text-align: left;
  text-wrap: wrap;
  width: 400px;
}

.popup-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-family: monospace;
  border: 1px solid rgba(59,83,179,0.35);
}

.btn:hover {
  text-decoration: underline;
}

.btn-outline {
  background: transparent;
}

.btn img {
  width: 100px;
  height: 100px;
}

.btn p {
  font-family: monospace;
  font-size: 18px;
  color: rgba(59, 83, 179);
  padding: 0 auto;
}

.btn-subtext {
  display: block;
  font-size: 11px;
  margin-top: 2px;
  opacity: 0.7;
}

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

.project-title, .popup-content h2 {
  font-family: monospace;
  font-weight: bold;
  font-size: 18px;
  color: rgba(59, 83, 179);
}

.project-desc, .languages, .popup-content p {
  font-family: monospace;
  font-size: 14px;
  color: rgba(59, 83, 179, 0.9);
}

.project-desc {
  margin-bottom: 2px;
  height: 52px;
}

.languages {
  margin-top: 0px;
  font-style: italic;
}

.learn-button {
  margin-left: 112px;
  cursor: pointer;
  font-family: monospace;
  color: rgba(59, 83, 179, 0.9);
  padding: 12px 12px;
  width: 140px;
  border-radius: 10px;
  border-style: none;
}

.learn-button:hover {
  animation: pulse 0.3s ease-in-out;
  background-color: rgba(59, 83, 179, 0.9);
  color: white;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.project-modal img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  z-index: 9999;
}

.overlay.open-popup {
  visibility: visible
}

.popup {
  width: 600px;
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: translate(-50%,-50%) scale(0.1);
  transform: transform 0.4s, top 0.4s;
  /*
  transform: scale(0.9);
  transition: transform 0.3s ease;
  */
}

.overlay.open-popup .popup {
  transform: scale(1);
}

.popup-content {
  display: none;
}

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

.chips {
  margin-top: 25px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59,83,179,0.25);
  font-family: monospace;
  font-size: 12px;
}

.chip:hover {
  cursor: pointer;
  background: grey;
  color: white;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-family: monospace;
    font-size: 16px;
    color: rgba(59, 83, 179, 0.9);
    padding-bottom: 40px;
}

.contact-info p {
  margin: 0;
}

.contact-info a {
  color: rgba(59, 83, 179);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
  .main {
    flex-direction: column;
    align-items: flex-start;
  }
}
