/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;   /* black background */
  color: #eee;              /* off‑white default text */
}


.intro h1 {
  color: #eee;              /* specifically make your name off‑white */
  font-family: "Stack Sans Headline", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 4rem;
  font-style: normal;
  text-align: center;
  margin: 20px 0 10px 0;
}


.intro h2 {
  font-family: "Stack Sans Headline", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: 1.5rem;
  font-style: normal;
  text-align: center;
  color: #068882;
  margin: 10px 0 30px 0;
}


.projects {
  display: flex;
  flex-direction: column;
  gap: 4rem; /* controls the space between each .project-gallery block */
  width: 50%;
  margin: 0 auto; /* centers the gallery horizontally */
}


/* old */
.project-gallery {
  position: relative; /* allows absolute positioning inside */
  display: inline-block;
}

.project-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}




.project-gallery img {
  display: block;
  margin: 0 auto;
  height: auto;
  max-height: 600px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, border 0.3s ease;
  border: 1px solid #fff;          /* adds a white border */
}

.project-gallery img:hover {
  border: 6px solid #fff;   
  transform: scale(1.05);          /* makes the image slightly bigger */
}



/* old
.project-gallery a {
  text-decoration: none;
  color: inherit;
  display: block;
}
*/

.project-gallery a {
  display: flex;
  align-items: center;
  position: relative;
}

.project-description {
  position: absolute;
  left: 60%; /* place to the right of the image */
  top: 50%;
  transform: translateY(-50%) translateX(20px); /* slight offset */
  background: rgba(6, 136, 130, 0.9);
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  min-width: 20rem;
  opacity: 0;
  pointer-events: none; /* don’t block clicks */
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
}

.project-gallery:hover .project-description {
  opacity: 1;
  transform: translateY(-50%) translateX(0); /* slide in */
}

.about {
  font-family: "Stack Sans Headline", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  width: 70%;
  margin: 0 auto;
}

.about h2 {
  margin-top: 4rem; /* or try 6rem for more space */
}

.about p {
  margin-bottom: 1rem; /* or try 3rem for more breathing room */
}

.about a {
  color: #068882;
}

.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 960px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  animation: zoomIn 0.3s ease;
}

.modal-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.close {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

