html {
  scroll-behavior: smooth;
}

section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

#work {
  padding-bottom: 50px; /* Adjust as needed */
}

#intro, #work {
  position: relative;
  text-align: center;
}

/* Keep overlays only on intro and work, no overlay on contact to avoid blocking */
#intro::after,
#work::after {
  content: '';
  background-color: rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Important so overlay doesn't block interaction */
}

#intro {
  margin-top: 42px;
}

/* No overlay on contact and no overflow:hidden that may cut off content */
#contact {
  position: relative;
  text-align: left;
  /* Removed overflow: hidden; */
}

/* This makes sure form content sits above the image and is clickable */
#contact .container {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6); /* optional: makes form area easier to read */
  padding: 20px;
  border-radius: 10px;
}

#me {
  font-weight: bolder;
  font-size: 4.7rem;
  color: whitesmoke;
  padding-top: 22%; /* Adjust as needed */
  text-shadow: 
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     5px  1px 0 #000;
}

#mt { 
  color: #008080;
  left: -1.5%;
  text-shadow: 
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     5px  1px 0 #000;
}

.work-link {
  width: 100%;
  padding: 20px;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.work-link:hover {
  transform: scale(1.1);
}

.box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.box img {
  max-width: 150%;
  height: auto;
  margin-left: 20px;
  padding: 4%;
}

#work .container {
  padding-left: 15px;
  padding-right: 150px;
}

#email a {
  position: relative;
  color: #41aa61; 
  text-decoration: none;
  cursor: pointer;
  z-index: 3;
}

#email a:hover {
  color: #008080; 
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
}

/* This image is positioned behind form and does not block clicks */
.full-body-container {
  position: absolute;
  width: 55%;
  top: 5%;
  left: 20%;
  z-index: 1;
  pointer-events: none; /* Allows clicks to pass through */
}

#jack {
  position: relative;
  display: inline-block;
  bottom: -390px;
  max-width: 55%;
  max-height: 100%;
  margin-left: -10%;
  opacity: 0.95;
}

footer {
  display: inline-block;
  position: relative;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1px;
}

/* ---------------- Mobile --------------- */
@media (max-width: 576px) {
  .full-body-container {
    position: relative;
    width: 95%;
    top: 10%;
    left: 10%;
  }

  #jack {
    position: relative;
    display: inline-block;
    bottom: 50px;
    max-width: 85%;
    max-height: 100%;
    margin-left: 9%;
    opacity: 0.95;
  }
}

/* ---------------- Contact Form Fade In --------------- */
#contact-form {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
  animation-delay: 0.5s;
  transition: opacity 1s ease-in-out;
  /* display block is default for form */
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
