.main {
  color: var(--text-2);
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 54px 0;
}

.article {
  width: 70%;
}
.article h1 {
  color: var(--text);
  font-weight: 600;
  line-height: 1;
  font-size: 32px;
  margin-bottom: 35px;
}
.article p {
  text-align: justify;
  font-size: 17px;

}

.article h3 {
  text-indent: 5%;
  margin-top: 40px;
  margin-bottom: 20px;
}

.h3Lines {
  position: relative;
  background-color: #cfcfcf;
  height: 2px;
  width: 50%;
  margin-left: calc(5% - 15px);
  margin-bottom: 40px;
}
.h3Lines::before {
  position: absolute;
  content: '';
  left: 15px;
  background-color: #292929;
  height: 100%;
  width: 35%;
}



/* CONTACT FORM */
/*  */
/*  */

.contactForm {
  position: relative;
  text-align: center;
  width: 100%;
  margin: 40px auto 0;
  padding: 0;
}

.contactGrid {
  width: 100%;
  margin: 20px 0;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(1, 182, 113, 0.1);
}

.contactGrid table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 15px;
}

.contactGrid table tr td {
  height: 75px;
}
.contactGrid table tr td input, .contactGrid table tr td h2 {
  width: 100%;
  height: 100%;
}

.contactTitle td, .contactProfile td, .contactMessage td {
  box-sizing: border-box;
  width: 100%;
  position: relative;
}
.contactTitle td {
  position: relative;
  width: 50%;
  max-width: 50%;
}
.contactProfile td {
  position: relative;
  width: 33.33%;
  max-width: 33.33%;
}
.contactMessage td {
  position: relative;
  width: 100%;
}

.contactLeftTitle {
  background: var(--primary);
  color: white;
  border-radius: 10px 10px 0 0;
  font-weight: 600;
  padding: 15px;
}
.contactRightTitle {
  background: var(--primary);
  color: white;
  border-radius: 10px 10px 0 0;
  font-weight: 600;
  padding: 15px;
}

.contactForm input, .contactForm textarea {
  text-align: center;
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 16px;
  background: #fff;
}

.contactForm input:focus, .contactForm textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1, 182, 113, 0.1);
  outline: none;
}

.contactForm input::placeholder, .contactForm textarea::placeholder {
  text-align: center;
  color: #999;
  font-style: italic;
}

.contactName, .contactEmail, .contactPhone {
  border-radius: 0 0 10px 10px;
  border-top: none;
}

.contactMsg {
  border-radius: 10px;
  min-height: 120px;
  resize: vertical;
}

.contactForm .messageSubmit {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  background-color: transparent;
}

.contactForm .messageSubmit #submitButton {
  background: linear-gradient(135deg, var(--primary) 0%, #00a261 100%);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(1, 182, 113, 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contactForm .messageSubmit #submitButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(1, 182, 113, 0.4);
  background: linear-gradient(135deg, var(--secondary) 0%, #e6d429 100%);
  color: var(--black);
  letter-spacing: 3px;
}

.contactForm .messageSubmit .gridSpacing {
  background-color: transparent;
}

.submitBtn {
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--primary) 0%, #00a261 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}



/*  */
/*  */
/* Gallery section */
.gallery {
  position: relative;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  background-color: rgba(0, 0, 0, 0.9);
  width: 100%;
  height: auto;
  display: flex;
  font-size: 40px;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.beforeAfterContainer {
  position: relative;
  width: clamp(300px, 80vw, 600px);
  height: clamp(200px, 53.3333333vw, 400px);
  overflow: hidden;
  margin: auto;
  user-select: none;
  webkit-user-select: none;
  cursor: zoom-in;
}
.beforeAfterContainer[switchingIn] {
  animation: displayedImgAppear 1.25s cubic-bezier(0.19, 1.25, 0.22, 1) forwards;
}
.beforeAfterContainer[switchingOut] {
  animation: displayedImgDisappear 0.5s cubic-bezier(0.1, 0.5, 0.1, 0.5) forwards;
}
@keyframes displayedImgDisappear {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}
@keyframes displayedImgAppear {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


.beforeAfterContainer .image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.beforeAfterContainer .before {
  position: relative;
  z-index: 1;
}
.beforeAfterContainer .before::before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.99);
  z-index: 2;
}

.beforeAfterContainer .after {
  z-index: 2;
  clip: rect(0, 0, 400px, 0);
}

.beforeAfterContainer .slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 15px;
  height: 100%;
  background: #fff;
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
}
.beforeAfterContainer .slider:before {
  content: '<|>';
  background: #fff;
  color: #000;
  position: absolute;
  top: 50%; left: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  font-size: 34px;
  transform: translate(-50%, -50%);
}

.galleryImg {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  cursor: pointer;
  object-fit: cover;
  box-sizing: border-box;

  margin: 35px 15px;
}
.galleryImg img {
  width: clamp(40px, 4vw, 100px);
  height: clamp(40px, 4vw, 100px);
  object-fit: cover;
  border: 1px solid #fff;
}


/* ------IMAGE DISPLAY SCREEN------ */
.imageDisplayerWrapper {
  z-index: 9999;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: zoom-out;
  user-select: none;
}

.imageDisplayer {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.imageDisplayer img {
  border: 2px solid #fff;
  max-width: 100%;
  max-height: 100%;
}
.imageDisplayer img[open] {
  animation: modalOpen 1s cubic-bezier(0.19, 1.25, 0.22, 1);
  &::backdrop {  animation: fadeIn 1s cubic-bezier(0.19, 1.25, 0.22, 1);  }
}
.imageDisplayer img[closing] {
  animation: modalClose .5s cubic-bezier(0.1, 0.5, 0.1, 0.5);
  &::backdrop {  animation: fadeOut .5s cubic-bezier(0.1, 0.5, 0.1, 0.5);  }
}
@keyframes modalOpen {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes modalClose {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

@media screen and (max-width: 650px) {
  .main {
    padding: 20px 10px;
  }

  .article {
    width: 100%;
    padding: 0 10px;
  }

  .article h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
  }

  .article p {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 15px;
  }

  .article h3 {
    font-size: 18px;
    text-indent: 0;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .h3Lines {
    width: 80%;
    margin: 0 auto 20px auto;
  }

  .contactForm {
    margin-top: 30px;
    padding: 0 10px;
  }

  .contactGrid {
    padding: 15px;
    margin: 10px 0;
  }

  .contactGrid table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
  }

  .contactGrid table tr {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .contactGrid table tr td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 5px 0;
  }

  .contactLeftTitle, .contactRightTitle {
    background: var(--primary);
    color: white;
    border-radius: 8px;
    padding: 10px;
    margin: 5px 0;
  }

  .contactLeftTitle h2, .contactRightTitle h2 {
    font-size: 16px;
    margin: 0;
  }

  .contactName, .contactEmail, .contactPhone {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px;
    margin: 8px 0;
    font-size: 14px;
    box-sizing: border-box;
  }

  .contactMsg {
    min-height: 100px;
    padding: 12px;
    margin: 8px 0;
    font-size: 14px;
    box-sizing: border-box;
  }

  .contactForm .messageSubmit {
    margin-top: 20px;
    justify-content: center;
  }

  .contactForm .messageSubmit #submitButton {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 16px;
    letter-spacing: 1px;
  }

  .contactForm .messageSubmit #submitButton:hover {
    letter-spacing: 2px;
  }

  .messageSubmit {
    flex-direction: column;
  }

  /* Gallery Section Mobile */
  .gallery {
    padding: 50px 10px;
  }

  .beforeAfterContainer {
    width: 95vw;
    height: 63.333vw;
    max-width: 400px;
    max-height: 267px;
  }

  .galleryImg {
    margin: 20px 10px;
    gap: 10px;
  }

  .galleryImg img {
    width: 60px;
    height: 60px;
  }
}

/* ---------- RESPONSIVENESS ---------- */
@media screen and (max-width: 768px) {
  /* HeaderContent */
  #header .headerContent {
    justify-content: center;
  }
  #header .headerContent .contactInfo span,
  #header .headerContent .contactInfo a {
    & em {
      display: none;
    }
  }
  #header .headerContent .contactInfo i {
    &.fa-map {
      top: 0;
      left: 0;
    }
    &.fa-volume-control-phone {
      top: 0;
      left: 0;
    }
  }
  #header .headerContent .contactInfo .iconBreakLine {
    display: none;
  }

  /* Header */
  #header {
    position: relative;
  }
  #header .headerContent, .contactInfo {
    flex-direction: column;
    gap: 0 !important;
    padding: 10px;
  }
  #header #navbar {
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    top: 0px;
  }
  #header #navbar ul {
    width: 100%;
    border-top: 1px solid #525252;
    display: none;
    flex-direction: column;
    animation: 0.5s cubic-bezier(0.19, 1, 0.22, 1) 0s slideInFromRight;
  }
  .navBarMobileExpand {
    display: flex !important;
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1);
  }
  .navBarMobileExpand li {
    width: 100%;
  }
  .navBarMobileExpand li a {
    display: block;
    text-align: center;
    width: 100%;
    padding: 10px 0 !important;
  }


  #header #navbar #mobileNavbar {  
    display: flex;
  }

  /* Footer */
  #footer .footerContent {
    flex-direction: column;
    gap: 0;
  }
  #footer .footerContent .footerWidget {
    width: 100% !important;
    text-align: center;
    & table {  margin: auto;  }
  }
  #footer .footerContent .footerTitle:before {
    width: 80%;
    transform: translateX(12.5%);
  }

  #footer .footerBottom {
    gap: 45px;
  }
  #footer .footerBottom .footerInfo {
    text-align: center;
  }
}