/* 
########################################
#       Sections Container Styles      #
######################################## 
*/

.sections-container {
  margin-top: 50px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 40px;
  overflow: hidden;
  min-height: 900px;

  /* triangle stays full size */
  background: linear-gradient(
    to bottom left,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgb(0, 0, 0, .05) 50%,
    rgb(0, 0, 0, .05) 100%
  );
}

/* image layer */
.sections-container::before {
  content: "";
  position: absolute;
  inset: 5%;                /* 🔑 makes image smaller */
  background: url("/images/mountains.jpg") center / cover no-repeat;
  z-index: -1;
}


@media (max-width: 1300px) {
  .sections-container {
    min-height: 600px;
    gap: 20px;
    margin-top: 20px;
      display: flex;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
  }
}

/* 
########################################
#  Specific Sections Container Styles  #
######################################## 
*/

.portfolio-container {
    display: flex;
    margin-left: auto;
    background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgb(0, 0, 0, .05) 50%,
    rgb(0, 0, 0, .05) 100%
  );
}

.contact-container {
    background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgb(0, 0, 0, .05) 50%,
    rgb(0, 0, 0, .05) 100%
  );
}

.sections-container::before {
  content: "";
  position: absolute;
  inset: 5%;                /* 🔑 makes image smaller */
  background: url("/images/mountains.jpg") center / cover no-repeat;
  z-index: -1;
}

/* image layer */
.portfolio-container::before {
  background: url("/images/waves.jpg") center / cover no-repeat;
}

.about-container::before {
  background: url("/images/forest.jpg") center / cover no-repeat;
}

.contact-container::before {
  background: url("/images/desert.jpg") center / cover no-repeat;
}

/* 
########################################
#            Sections Styles           #
######################################## 
*/

.section {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  width: 40%;
  height: 200px;
  border: 10px solid rgba(255, 255, 255, 0.5);
  background-color: white;
  background-clip: padding-box;
  box-shadow: rgba(0, 0, 0, 0.553) 0px 5px 15px;
  margin-left: 250px;
  margin-top: 20px;
  width: 570px;
  text-align: center;
}

.section > h2 {
  text-align: center;
}

@media (max-width: 1300px) {
  .section {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 10px;
    padding-bottom: 20px;
    min-height: 150px;
    flex-direction: column;
  }
 }

/* 
########################################
#       Specific Sections Styles       #
######################################## 
*/
.services-section ul {
    list-style: none; 
    padding: 0;
    margin: 0;
}

.services-box {
    margin-top: 10px;
    margin-bottom: 5px;
}

.portfolio-section{
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontal only */
}

.portfolio-section > button{
  margin-top: auto;
  margin-bottom: auto;
}

.portfolio-view-button {
  justify-content: center; /* vertical alignment */
  display: flex;
  margin: 0 auto;  
  color: black;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  border: none;
  background: transparent;
  font-size: 28px;
  font-weight: bold;
}

.portfolio-view-button:hover {
    text-decoration: none;
}

.about-section > p{
  margin-left: 20px;
  margin-right: 20px;
}

.about-section {
  padding-top: 20px;
  height: auto;
}

.contact-container{
  display: flex;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
}

.contact-section{
  display: flex;
  flex-direction: column;
  justify-content: center;  /* vertical centering */
  align-items: center;      /* horizontal centering */
  height: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  border: 10px solid rgba(255, 255, 255, 0.5);
  background-color: white;

  background-clip: padding-box;

  box-shadow: rgba(0, 0, 0, 0.553) 0px 5px 15px;
  width: 700px;
}

.contact-section form {
  width: 100%;
  max-width: 500px;
}

.contact-section label {
  font-weight: 500;
  margin-top: 20px;
  display: block;
}

.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid #ccc;
  padding: 8px 4px;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-section textarea {
  resize: vertical;
  min-height: 100px;
}

/* focus state */
.contact-section input:focus,
.contact-section textarea:focus {
  border-bottom-color: #000;
}

/* submit button polish */
.contact-section input[type="submit"] {
  margin-top: 30px;
  padding: 10px 30px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-section input[type="submit"]:hover {
  background: #333;
}

@media (max-width: 768px) {
  .contact-section{
    width: 90%;
  }
}