html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}
body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #1f1f1f;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  box-sizing: border-box;
  padding: 0px 40px;
  background-color: #1f1f1f;
}
header h1 {
  margin: 0;
  font-size: 1.5em;
  color: #f5f5f5;
}
.top-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-nav a.contact-button {
  color: white;
}

.contact-button {
  display: inline-block;
  background-color: transparent;
  padding: 8px 15px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  border: 2px solid #ffffff;
}
.project-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: auto;
}
.project-links-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}
.card-overlay-text {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  font-weight: bold;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}
.project-card {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border: 2px solid transparent;
  background-color: transparent;
}
.intro-container {
  display: flex;
  justify-content: space-between;
  padding: 40px;
  height: calc(100vh - 120px);
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  min-height: 0;
}
.stretch-page .intro-container {
  align-items: stretch;
}
.stretch-page .profile-photo-placeholder {
  height: auto;
}

.text-content {
  max-width: 700px;
  flex: 0 0 60%;
  text-align: left;
  margin: 0;
  font-size: 1.2em;
  line-height: 1.7;
}
.text-content1 {
  max-width: 700px;
  flex: 0 0 80%;
  text-align: left;
  margin: 0;
  font-size: 0.9em;
  line-height: 1.7;
}
.text-content h2 {
  margin-top: 0;
  color: #333333;
}
.text-content1 h2 {
  margin-top: 0;
  color: #333333;
}
.cv-button {
  display: inline-block;
  background-color: #1f1f1f;
  padding: 8px 15px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.profile-photo-placeholder {
  flex: 0 0 30%;
  max-width: 300px;
  height: 300px;
  background-color: transparent;
  border: 2px solid transparent;
  overflow: hidden;
}
.profile-photo-placeholders {
  flex: 0 0 40%;
  max-width: 450px;
  height: 400px;
  margin-left: 40px;
  margin-top: 20px;
  background-color: transparent;
  border: 2px solid transparent;
  overflow: hidden;
}
.profile-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-photo-placeholders img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.carousel-container h2 {
  margin: 0;
}
.arrow {
  background: none;
  border: none;
  font-size: 2em;
  font-weight: bold;
  color: #1f1f1f;
  cursor: pointer;
  padding: 10px;
  transition: color 0.2s;
}
.arrow:hover {
  color: #007f7f;
}
.project-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.project-item {
  position: relative;
  display: block;
  width: 250px;
  height: 180px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, opacity 0.3s;
  text-decoration: none;
}
.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 40, 31, 0.8);
  color: white;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 10px;
  box-sizing: border-box;
}
.project-item.active {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
.project-item.active .overlay-text {
  opacity: 1;
}
.project-item:not(.active) {
  opacity: 0.7;
}
main.project-detail-main {
  padding: 0;

  display: flex;
  justify-content: center;
  align-items: center;
}

main.project-detail-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.project-image-wrapper h2,
.project-image-wrapper p {
  position: absolute;
  left: 30px;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 5px;
  margin: 0;
  z-index: 10;
  max-width: 80%;
}
.project-image-wrapper h2 {
  bottom: 165px;
  font-size: 1.8em;
}

.project-image-wrapper p {
  bottom: 30px;
  font-size: 1.1em;
}
.back-button {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 20;

  color: white;
  background-color: #1f1f1f;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: rgba(3, 115, 103, 1);
}
.contact-main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.contact-container {
  max-width: 600px;
  width: 100%;
  padding: 30px;
  background-color: #f0f8f7;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 40, 31, 0.2);
  text-align: center;
}

.contact-container h2 {
  color: #333333;
  margin-bottom: 10px;
}

.contact-intro {
  margin-bottom: 30px;
  font-size: 1.1em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #1f1f1f;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #007f7f;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1em;
  background-color: white;
}

.form-group textarea {
  resize: vertical;
}

.form-submit-button {
  margin-top: 10px;
  align-self: flex-start;
  padding: 10px 25px;
  cursor: pointer;
  border: none;
}
nav a {
  text-decoration: none;
  font-weight: bold;
  color: #007f7f;
  text-transform: uppercase;
}
.form-submit-button {
  background-color: black;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  box-sizing: border-box;
  overflow: hidden;
}

footer {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #1f1f1f;
  color: white;
  box-sizing: border-box;
}
footer a {
  color: #f5f5f5;
  text-decoration: none;
}
