/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@100;200;300;400;500;600;700&family=Averia+Libre&display=swap');

.highlight {
  color: #fca095;
  font-weight: bold;
}

.about-flex {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.about-text {
  flex: 1 1 300px;
  text-align: left;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-container {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 1.5rem;
}

.about-message {
  font-size: 1rem;
  font-weight: 300;
  color: #ffffff;
  font-family: 'Public Sans', sans-serif;
  margin-bottom: 2rem;
}

.contact-section {
  padding: 4rem 1.5rem;
}
.navbar {
  width: 100%;
  padding: 1.5rem 2rem 0.5rem 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: transparent;
}

.nav-link {
  margin: 0 1rem;
  font-size: 1.125rem;
  color: #fca095;
  text-decoration: none;
  font-family: 'Averia Libre', sans-serif;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover {
  color: #e1968e;
}

.contact-container {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.contact-message {
  font-size: 1rem;
  font-weight: 300;
  color: #ffffff;
  font-family: 'Public Sans', sans-serif;
  margin-bottom: 2rem;
}

.contact-button {
  display: inline-block;
  background: #e1968e;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-family: 'Averia Libre', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2rem;
  text-decoration: none;
  transition: background 0.2s;
}
.contact-button:hover {
  background: #ff9889;
}
h1.main-title {
  font-family: 'Averia Libre', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: #fca095;
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.main-subtitle {
  font-family: 'Averia Libre', sans-serif;
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 2rem;
}

.section-header {
  font-family: 'Public Sans', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #fca095;
  text-align: center;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}
/* Style for gallery caption links */

.caption a,
.about-text a {
  color: #fca095;
  text-decoration: underline;
  font-family: 'Public Sans', sans-serif;
  font-weight: 300;
  transition: color 0.2s;
}

.caption a:hover,
.about-text a:hover {
  color: #e1968e;
}

/* Page styling */
body {
  margin: 0;
  background-color: #00291e;
  background-image:
    linear-gradient(to right, #effff410 1px, transparent 1px),
    linear-gradient(to bottom, #effff410 1px, transparent 1px);
  background-size: 70px 70px;
  color: #ffffff;
  font-family: 'Public Sans', sans-serif;
  font-weight: 200
}

/* Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.02);
}

.caption {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 200;
  color: #ffffff;
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.4; /* or a value smaller than the default */
}

.caption-title {
  font-family: 'Public Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
}

.caption-meta {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 200;
  color: #ffffff;
  text-align: center;
  margin-left: 0.5em;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

#lightbox.show {
  display: flex;
} 

#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 0.5rem;
}

/* Controls */
#closeLightbox,
#prevProject,
#nextProject {
  position: absolute;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

#closeLightbox { top: 20px; right: 30px; }
#prevProject { left: 30px; top: 50%; transform: translateY(-50%); }
#nextProject { right: 30px; top: 50%; transform: translateY(-50%); }

#closeLightbox:hover,
#prevProject:hover,
#nextProject:hover {
  color: #e1968e;
}

#typewriter::after {
  content: '|';
  animation: blink 0.9s infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}