/****************NECESSARY SETTINGS********************/
@charset "utf-8";

@font-face {
  font-family: "OpenSans";
  /*change from TTF to WOFF cause TTF only support web*/
  /*WOFF2 supports mobile and tablet as well*/
  src: url("../fonts/Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OpenSans";
  /*change from TTF to WOFF cause TTF only support web*/
  /*WOFF2 supports mobile and tablet as well*/
  src: url("../fonts/SemiBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "OpenSans", sans-serif;
  font-weight: 400;
  scroll-behavior: smooth;
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

body {
  background-color: #edf7ff;
  color: #484554;
  line-height: 1.5;
}

::selection {
  background-color: revert; /* revert sets it to use the browser default selection colours */
  color: revert; /* similar for colour, it will use the colour the browser thinks fits best with that highlight */
}

/*changing the highlight colors of elements that are in blue*/
.form-section::selection,
.footer::selection,
.plant-purchase2-section::selection,
.dwdm-section::selection,
.upload-container::selection,
.promo-specs-section::selection,
.promoblue::selection {
  background-color: #501c68;
  color: #e6fdff;
}

.attribute a {
  position: absolute;
  right: 15px;
  bottom: 10px;
  font-size: 12px;
  color: #e6fdff;
  text-decoration: none;
}

/****************NECESSARY SETTINGS END********************/
/****************WEBSITE ANIMATIONS********************/
/*what this css does is it forces every element thats an animate class to be invisible at start and opaque at end*/

.animate {
  opacity: 0;
}

@keyframes subpageheaders {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.service-hero-title.in-view,
.plant-hero-title.in-view,
.resource-hero-title.in-view,
.contact-hero-title.in-view,
.contact-info.in-view,
.PDPA-hero-title.in-view,
.Term-hero-title.in-view,
.promo-hero-title.in-view,
.promo-info.in-view,
.promoblue.in-view {
  animation: subpageheaders 0.6s cubic-bezier(0.5, 1, 0.89, 1) forwards;
}

@keyframes headers {
  from {
    opacity: 0;
    transform: scale(0.6);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.service-title.in-view,
.dwdm-title.in-view,
.service-title2.in-view,
.vision-title.in-view,
.mission-title.in-view,
.hero-text.in-view,
.expertise-title.in-view,
.flexibility-title.in-view,
.stability-title.in-view,
.service-text-header.in-view,
.Thankyou-header.in-view,
.promo-opening-title.in-view,
.promo-content-title.in-view,
.promo-text-header.in-view,
.promo-specs-title.in-view {
  animation: headers 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes lines {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.promo-content-divider.in-view {
  animation: lines 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes leftheaders {
  from {
    opacity: 0;
    transform: scale(0.7);
    transform-origin: left;
  }

  to {
    opacity: 1;
    transform: scale(1);
    transform-origin: left;
  }
}

.plant-title.in-view,
.plant2-title.in-view,
.plant-title-inverse.in-view,
.notes2-title.in-view,
.resource-title.in-view,
.PDPA-title.in-view,
.Terms-title.in-view,
.promo-opening-button.in-view,
.map-description-text.in-view {
  animation: leftheaders 0.6s cubic-bezier(0.5, 1, 0.89, 1) forwards;
}

@keyframes icons {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.vision-icon.in-view,
.mission-icon.in-view,
.expertise-card-icon.in-view,
.flexibility-image.in-view,
.anniversary-badge.in-view,
.connectivity-image.in-view,
.service-card-icon.in-view,
.dwdm-image.in-view,
.notes-content.in-view,
.whistleblow-content.in-view,
.document-cards.in-view,
.form-section.in-view,
.MessageSentIcon.in-view,
.return-hover.in-view,
.upload-container.in-view,
.PPNCE-buttons.in-view,
.promo-opening-image.in-view,
.promo-card-icon.in-view,
.sgmap.in-view,
.promo-specs-divider.in-view,
.explore-services.in-view {
  animation: icons 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes texts {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vision-text.in-view,
.mission-text.in-view,
.expertise-card-text.in-view,
.expertise-description.in-view,
.flexibility-item.in-view,
.stability-description.in-view,
.connectivity-text-content.in-view,
.service-card-text.in-view,
.dwdm-description.in-view,
.infrastructure-details.in-view,
.infrastructure-conclusion.in-view,
.plant-details.in-view,
.howtoapply-card-text.in-view,
.howtoapply-card.in-view,
.resource-details.in-view,
.resource-text-header.in-view,
.PDPA-details.in-view,
.Terms-details.in-view,
.Thankyou-details.in-view,
.promo-opening-description.in-view,
.promo-benefit-details.in-view,
.promo-card-text.in-view,
.map-description.in-view,
.individual-specs-container.in-view,
.promo-contact-details.in-view {
  animation: texts 0.6s cubic-bezier(0.5, 1, 0.89, 1) forwards;
}

/****************WEBSITE ANIMATIONS END********************/
/****************CLICKING ON LINKS********************/

.link-light {
  color: #501c68;
}
.link-light:hover {
  color: #813aa3;
}

.link-dark {
  color: #e6fdff;
}
.link-dark:hover {
  color: #9bdadf;
}

.resource-text-header {
  color: #484554;
  display: inline-block;
}

.resource-text-header:hover {
  color: #73727b;
}

/****************CLICKING ON LINKS END********************/
/****************NAV BAR********************/

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-items {
  float: right;
  display: flex;
  gap: 55px;
}

.nav-items li {
  display: inline;
  transition: transform 0.3s cubic-bezier(0.14, 0.7, 0, 1.1);
}

/* this tells the code that any li that is not nav-promo will execute the hover 1.1 scale effect */
.nav-items li:not(:has(a.clicked)):not(:has(a.nav-promo)):hover {
  transform: scale(1.07);
}
/* and this tells the code that the nav-promo will scale on its own properties, we do not want the hover to be too jarring for the users */
.nav-items li:has(a.nav-promo):hover {
  transform: scale(1.03);
}

.nav-items li a {
  font-size: 20px;
  font-weight: 700;
  color: #0047bb;
  text-decoration: none;
}

.nav-items li a:link,
.nav-items li a:visited {
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.2s;
}

.nav-items li a:hover,
a:active {
  border-bottom: 2px solid #0047bb;
}

.nav-items li a.clicked {
  text-decoration: none;
  border-bottom: 2px solid #0047bb;
}

.checkbtn {
  font-size: 28px;
  color: #0047bb;
  float: right;
  display: none;
  cursor: pointer;
}

#check {
  display: none;
}

.logo {
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1.1);
}

.logo:hover {
  transform: scale(1.1);
}

a:focus,
a:active {
  border-bottom: none; /* prevent flicker before navigating */
  outline: none;
}

/****************NAV BAR END********************/
/****************FOOTER********************/

.footer {
  background-color: #0047bb;
  padding: 35px 16px 30px;
}

.footer-content {
  max-width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
}

.footer-logo {
  height: auto;
  width: 90px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-nav a {
  font-size: 16px;
  font-weight: 700;
  color: #edf7ff;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.3s cubic-bezier(0.13, 1.07, 0, 1);
}

.footer-nav a:hover {
  color: #9bdadf;
  transform: scale(1.1);
}

.footer-nav a.clicked {
  color: #9bdadf;
  transform: none;
}

.footer-links a:hover:not(.clicked) {
  color: #9bdadf;
  transform: scale(1.1);
}

.footer-social {
  font-size: 32px;
  height: auto;
  align-self: flex-end;
  color: #edf7ff;
  transition:
    color 0.2s ease,
    transform 0.3s cubic-bezier(0.13, 1.07, 0, 1);
  vertical-align: top;
}

.footer-social:hover {
  color: #9bdadf;
  transform: scale(1.1);
}

.footer-copyright {
  font-size: 14px;
  color: #edf7ff;
}

.footer-links {
  display: flex;
  font-size: 14px;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-links a {
  color: #edf7ff;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.3s cubic-bezier(0.13, 1.07, 0, 1);
}

.footer-links a:hover {
  color: #9bdadf;
  transform: scale(1.1);
}

.social-icon {
  width: 38px;
  height: 38px;
  margin-top: 16px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: #edf7ff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  text-align: center;
  align-items: center;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: self-end;
  width: 100%;
  gap: 20px;
}

/****************FOOTER END********************/
/****************HOMEPAGE********************/
/*HEADER*/

.header {
  background-color: #edf7ff;
  box-shadow: 0 4px 8px rgba(16, 23, 32, 0.45);
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  line-height: 1;
}

.hero-section {
  background-image:
    radial-gradient(rgba(80, 28, 104, 0.3) 0%, rgba(0, 71, 187, 0.3) 100%),
    url(../img/HomepageLanding.webp);
  background-size: cover;
  height: 94vh;
  background-position: center;
  text-align: center;
  align-content: center;
  padding: 0 30px;
}

.hero-container {
  width: 75%;
  margin: 0 auto;
}

.hero-text {
  font-weight: 700;
  color: #e6fdff;
}

@keyframes heroheader {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/*VISSION MISSION*/
.vision-mission-section {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
  margin: 0 auto;
}

.vision-card,
.mission-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 80%;
  text-align: center;
}

.vision-icon,
.mission-icon {
  width: 115px;
  height: auto;
}

.vision-title,
.mission-title {
  font-weight: 700;
  color: #0047bb;
}

/*EXPERTISE*/
.expertise-section {
  background-image:
    linear-gradient(rgba(0, 71, 187, 0.8), rgba(0, 71, 187, 0.8)), url("../img/ExpertiseBG.webp");
  background-size: cover;
  background-position: center;
  padding: 100px 16px;
}

.expertise-content {
  margin: 0 auto;
}

.expertise-header {
  text-align: center;
}

.expertise-title {
  font-weight: 700;
  color: #e6fdff;
  margin-bottom: 26px;
}

.expertise-description {
  font-size: 16px;
  color: #e6fdff;
  margin: 0 auto;
}

.expertise-cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.expertise-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  text-align: center;
}

.expertise-card-icon {
  height: 110px;
  width: auto;
}

.expertise-card-text {
  font-size: 16px;
  color: #e6fdff;
  text-align: justify;
}

/*FLEXIBILITY*/
.flexibility-section {
  padding: 100px 16px;
  margin: 0 auto;
}

.flexibility-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  margin: 0 auto;
}

.flexibility-image {
  width: 45%;
}

.flexibility-text-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.flexibility-title {
  font-weight: 700;
  color: #0047bb;
}

.flexibility-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.flexibility-item-icon {
  height: 34px;
  width: auto;
}

.flexibility-item-title {
  font-size: 20px;
  font-weight: 700;
}

.flexibility-item-text {
  font-size: 16px;
  text-align: justify;
}

/*STABILITY*/
.stability-section {
  background-image:
    linear-gradient(rgba(0, 71, 187, 0.8), rgba(0, 71, 187, 0.8)), url(../img/StabilityBG.webp);
  background-size: cover;
  background-position: center;
  padding: 100px 16px;
}

.stability-content {
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  align-items: center;
}

.stability-text-content {
  width: 100%;
}

.stability-title {
  font-weight: 700;
  color: #e6fdff;
  margin-bottom: 30px;
}

.stability-description {
  color: #e6fdff;
  text-align: justify;
}

.anniversary-badge {
  position: relative;
  width: 250px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("../img/StabilityIcon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/*CONNECTIVITY*/
.connectivity-section {
  padding: 100px 16px;
  margin: 0 auto;
}

.connectivity-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  margin: 0 auto;
}

.connectivity-image {
  height: auto;
}

.connectivity-text-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.connectivity-title {
  font-weight: 700;
  color: #0047bb;
  /* margin-bottom: 30px; */
}

.connectivity-description {
  text-align: justify;
  /* margin-bottom: 30px; */
}

/****************HOMEPAGE END********************/
/****************SERVICE PAGE********************/
/*SERVICE*/

.service-section {
  padding: 100px 16px;
}

.service-content {
  margin: 0 auto;
}

.service-cards {
  display: flex;
  flex-direction: row;
  gap: 60px;
  justify-content: center;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  text-align: center;
  width: 30%;
}

.service-card-icon {
  height: 110px;
  width: auto;
}

.service-card-text {
  text-align: center;
}

.service-text-header {
  font-weight: 700;
}

.service-title {
  font-weight: 700;
  color: #0047bb;
  margin-bottom: 90px;
  text-align: center;
}

.service-title2 {
  font-weight: 700;
  color: #0047bb;
  margin-bottom: 30px;
  text-align: center;
}

.service-hero-overlay {
  background-image:
    linear-gradient(rgba(0, 71, 187, 0.3), rgba(0, 71, 187, 0.6)), url(../img/ServiceBG.webp);
}

/*DWDM*/
.dwdm-section {
  background-image: linear-gradient(rgba(0, 71, 187, 1), rgba(0, 71, 187, 1));
  background-size: cover;
  background-position: center;
  padding: 100px 16px;
}

.dwdm-content {
  margin: 0 auto;
  display: flex;
  gap: 30px;
  align-items: center;
}

.dwdm-title {
  font-weight: 700;
  color: #e6fdff;
  text-align: center;
}

.dwdm-description {
  color: #e6fdff;
  text-align: center;
}

.dwdm-image {
  width: 80%;
}

/*INFRASTRUCTURE*/
.infrastructure-details {
  margin-bottom: 90px;
  text-align: center;
}

.infrastructure-conclusion {
  margin-top: 90px;
  text-align: center;
}

/****************SERVICE PAGE END********************/
/****************PLANTMAP/NCE PAGE********************/
/*PLANTMAP*/

.purchase-badge,
.NCE-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("../img/PPNCEdownload.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
  aspect-ratio: 1.3;
}

.upload-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("../img/PPNCEupload.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
  aspect-ratio: 1.3;
}

.purchase-badge:hover,
.NCE-badge:hover,
.upload-badge:hover {
  transform: scale(1.1);
}

.PPNCE-buttons {
  display: flex;
  align-self: end;
  gap: 30px;
}

hr {
  border: 0.5px solid #501c68;
}

.plant-item {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 0 auto;
}

.plantmap-content {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.plant-purchase-section {
  padding: 100px 16px;
  margin: 0 auto;
}

.plant-portion1 {
  gap: 80px;
}

.plant-title-inverse {
  font-weight: 700;
  color: #e6fdff;
  margin-bottom: 90px;
}

.plant-hero-overlay {
  background-image:
    linear-gradient(rgba(0, 71, 187, 0.3), rgba(0, 71, 187, 0.6)), url(../img/PlantBG.webp);
}

.plant2-title {
  font-weight: 700;
  color: #0047bb;
  margin-bottom: 30px;
}

.plant-purchase2-section {
  background-image: linear-gradient(rgba(0, 71, 187, 1), rgba(0, 71, 187, 1));
  background-size: cover;
  background-position: center;
  padding: 100px 16px;
}

.plant-content {
  margin: 0 auto;
}

/*NCE*/
.plantmap-text-content,
.NCE-text-content {
  width: 100%;
}

.NCE-content {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: center;
}

/*NOTES AND WHISTLEBLOW*/
.notes-badge {
  position: relative;
  width: 167px;
  height: 161px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("../img/NoteIcon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.notes-content,
.whistleblow-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  background-color: #501c68;
  border-radius: 20px;
  padding: 50px;
}

.whistleblow-text-content,
.notes-text-content {
  width: 100%;
}

.notes-section,
.resource-section,
.PDPA-section,
.Terms-section {
  padding: 100px 16px;
  margin: 0 auto;
}

.notes-title,
.whistleblow-title {
  font-weight: 700;
  color: #e6fdff;
  margin-bottom: 30px;
}

.notes2-title {
  font-weight: 700;
  color: #0047bb;
  margin-top: 20px;
}

.notes-details,
.whistleblow-details {
  color: #e6fdff;
}

/*HOW TO APPLY*/
.howtoapply-cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 50px;
}

.howtoapply-card {
  display: flex;
  align-items: center;
  gap: 35px;
  text-align: center;
}

.howtoapply-number {
  color: #e6fdff;
}

.howtoapply-card-text {
  color: #e6fdff;
  text-align: justify;
}

.howtoapply-card-text i {
  margin-top: 20px;
}

/****************PLANTMAP/NCE PAGE END********************/
/****************CONTACT PAGE********************/

.contact-hero-overlay {
  background-image:
    linear-gradient(rgba(0, 71, 187, 0.3), rgba(0, 71, 187, 0.6)), url(../img/ContactBG.webp);
}

.contact-tag {
  background-color: #0047bb;
  color: #e6fdff;
  font-size: 20px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
}

.contact-section {
  padding: 100px 16px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 100%;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 80%;
}

.contact-header {
  display: flex;
  align-items: center;
}

.contact-icon {
  height: auto;
}

.form-section {
  background-color: #0047bb;
  border-radius: 20px;
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  color: #e6fdff;
  text-align: center;
}

.contact-form,
.upload-form,
.promo-form {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-input {
  font-size: 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e6fdff;
  color: #e6fdff;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input::placeholder {
  color: #e6fdff;
  opacity: 0.8;
}

.readonly {
  color: #e6fdff;
  opacity: 0.5;
}

.form-input:focus {
  border-bottom-color: #e6fdff;
}

.form-textarea {
  font-size: 16px;
  background-color: rgba(230, 253, 255, 0.5);
  border: none;
  border-radius: 8px;
  color: #484554;
  padding: 16px 14px;
  min-height: 120px;
  resize: vertical;
  outline: none;
  margin-top: 10px;
  font-family: "OpenSans";
}

.form-textarea::placeholder,
.upload-textarea::placeholder {
  color: #484554;
  opacity: 0.9;
}

.counter {
  color: #e6fdff;
  font-size: 14px;
  text-align: right;
  margin-top: 5px;
}

.submit-btn {
  font-size: 16px;
  background-color: #501c68;
  color: #e6fdff;
  border-radius: 30px;
  font-weight: 700;
  font-family: "OpenSans";
  padding: 14px 55px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.5, 1, 0.89, 1);
  align-self: flex-start;
  border: none;
}

.explore-services {
  font-size: 16px;
  background-color: #501c68;
  color: #e6fdff;
  border-radius: 30px;
  font-weight: 700;
  font-family: "OpenSans";
  padding: 14px 55px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.5, 1, 0.89, 1);
  align-self: flex-start;
  text-decoration: none;
  text-align: center;
}

.explore-services:hover {
  background-color: #813aa3;
  transform: scale(1.05);
}

.request-btn {
  font-size: 16px;
  background-color: #501c68;
  color: #e6fdff;
  border-radius: 30px;
  font-weight: 700;
  font-family: "OpenSans";
  padding: 14px 40px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.5, 1, 0.89, 1);
  align-self: flex-start;
  border: none;
}

.submit-btn:hover {
  background-color: #813aa3;
  transform: scale(1.05);
}

.request-btn:hover {
  background-color: #813aa3;
  transform: scale(1.05);
}

button[disabled],
.submit-btn:disabled,
.upload-btn:disabled,
.request-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.contact-content {
  margin: 0 auto;
  display: flex;
  align-items: center;
}

/****************CONTACT PAGE END********************/
/****************RESOURCES PAGE********************/

.resource-hero-overlay {
  background-image:
    linear-gradient(rgba(0, 71, 187, 0.3), rgba(0, 71, 187, 0.6)), url(../img/ResourcesBG.webp);
}

.resource-content {
  margin: 0 auto;
}

.whistleblow-badge {
  width: 180px;
  height: 180px;
  background-image: url("../img/WhistleblowIcon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.resource-item {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  margin: 70px 0;
}

.PDPA-item,
.Terms-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 80%;
  margin: 0 auto;
}

.document-cards {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.document-card {
  align-items: center;
  gap: 35px;
  text-align: center;
  width: 30%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  display: flex;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.document-card:hover {
  transform: scale(1.05);
}

.document-title {
  text-align: center;
  color: #e6fdff;
  font-weight: 700;
  width: 75%;
  margin: 0 auto;
}

.doc-icon {
  position: absolute;
  top: 3%;
  right: 3%;
  width: 25px;
  height: 25px;
}

.doc-type {
  position: absolute;
  color: #e6fdff;
  font-size: 14px;
  top: 3%;
  left: 4%;
}

.doc-icon {
  position: absolute;
}

.resource-header2 {
  margin-bottom: 30px;
}

.doc1 {
  background-image: url("../img/Infrastructure_DS.webp");
}

.doc2 {
  background-image: url("../img/DWDM_DS.webp");
}

.doc3 {
  background-image: url("../img/Connectivity_DS.webp");
}

/****************RESOURCES PAGE END*********************/
/****************PDPA & TERMS PAGE*********************/

.PDPA-hero-overlay {
  background-image:
    linear-gradient(rgba(0, 71, 187, 0.3), rgba(0, 71, 187, 0.6)), url(../img/PDPABG.webp);
}

.Term-hero-overlay {
  background-image:
    linear-gradient(rgba(0, 71, 187, 0.3), rgba(0, 71, 187, 0.6)), url(../img/TermsBG.webp);
}

.PDPA-hero-overlay,
.Term-hero-overlay,
.resource-hero-overlay,
.contact-hero-overlay,
.plant-hero-overlay,
.service-hero-overlay,
.promo-hero-overlay {
  background-size: cover;
  background-position: center;
  padding: 70px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.PDPA-pointer,
.Terms-pointer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/****************PDPA & TERMS PAGE END*********************/
/****************THANK YOU PAGE*********************/

.MessageSentIcon {
  width: 84px;
  height: auto;
  position: relative;
  left: 10px;
  top: 10px;
}

.Thankyou-header {
  font-size: 48px;
  color: #0047bb;
  font-weight: 700;
}

.return-btn {
  font-size: 16px;
  background-color: #501c68;
  color: #e6fdff;
  border-radius: 30px;
  font-weight: 700;
  font-family: "OpenSans";
  padding: 14px 55px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
  align-self: flex-start;
  border: none;
  margin-top: 30px;
}

.return-btn:hover {
  background-color: #813aa3;
  transform: scale(1.05);
}

.Thankyou-content {
  display: grid;
  place-items: center;
  gap: 15px;
  text-align: center;
}

.Thankyou-section {
  justify-content: center;
  align-content: center;
  margin: 0 auto;
  height: 93vh;
  width: 75%;
  padding: 100px 16px;
}

/****************THANK YOU PAGE END*********************/
/****************FILES UPLOAD PAGES*********************/

.upload-btn {
  font-size: 16px;
  background-color: #501c68;
  color: #e6fdff;
  border-radius: 30px;
  font-weight: 700;
  font-family: "OpenSans";
  padding: 14px 55px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
  align-self: flex-start;
  border: none;
}

.upload-btn:hover {
  background-color: #813aa3;
  transform: scale(1.05);
}

.upload-section {
  padding: 100px 16px;
  width: 75%;
  margin: 0 auto;
}

.upload-container {
  padding: 38px 50px;
  background-color: #0047bb;
  border-radius: 20px;
}

.format-text {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  gap: 30px;
  font-size: 14px;
}

.upload-textarea {
  font-size: 16px;
  background-color: rgba(230, 253, 255, 0.5);
  border: none;
  border-radius: 8px;
  color: #484554;
  padding: 16px 14px;
  resize: vertical;
  outline: none;
  font-family: "OpenSans";
}

.dropzone-box {
  border: 2px dashed #e6fdff;
  border-radius: 8px;
  background: rgba(230, 253, 255, 0.2);
  cursor: pointer;
  align-content: center;
  min-height: 200px;
  padding: 20px;
}

.dropzone-box:hover .dz-message {
  color: #9bdadf;
}

.dropzone-box:hover {
  border: 2px dashed #9bdadf;
}

/*animations for when the dropzone is full*/
@keyframes maxfileError {
  5% {
    border-color: #c0392b;
  }

  30% {
    border-color: #c0392b;
  }
  100% {
    border-color: #e6fdff; /* back to default colour */
  }
}

.dropzone-box.flash-red {
  animation: maxfileError 4s ease forwards;
}

.dz-message {
  color: #e6fdff;
  text-align: center;
  font-size: 16px;
}

.dz-preview-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  pointer-events: none;
}

.dz-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  width: 80px;
  box-sizing: border-box;
  pointer-events: auto;
}

.dz-remove:hover {
  transform: scale(1.02);
  background-color: rgb(155, 25, 25);
}

.dz-preview img {
  width: auto;
  height: 60px;
  object-fit: cover;
}

.dz-error-mark,
.dz-success-mark {
  display: none;
}

.dz-remove {
  display: block;
  cursor: pointer;
  font-size: 12px;
  color: #e6fdff;
  background: #c0392b;
  border: none;
  text-decoration: none;
  border-radius: 20px;
  padding: 2px 4px;
  margin-top: 2px;
  width: 80px;
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.dz-details,
.dz-filename {
  width: 100%; /* take full width of preview */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* prevents multi-line wrapping */
  font-size: 10px;
  color: #e6fdff;
  font-size: 14px;
}

.upload-filesize {
  color: #e6fdff;
  text-align: right;
}

.upload-format {
  color: #e6fdff;
  text-align: left;
}

.form-error {
  position: absolute;
  bottom: 0; /* Position it at the bottom of the form */
  left: 0;
  right: 0;
  color: #c0392b;
  background-color: #e6fdff;
  border-radius: 8px;
  text-align: center;
  z-index: 10; /* Ensures it sits above other elements if needed */
  opacity: 0;
  padding: 0 12px;
  border: none;
  transform: translateY(100%);
  transition:
    opacity 0.2s ease-out,
    padding 0.2s ease-out,
    border 0.2s ease-out,
    transform 0.2s ease-out; /* Transition the transform property */
}

.form-error.is-visible {
  /* Moves the element back up into view */
  transform: translateY(0);
  opacity: 1;
  padding: 8px 12px;
  border: 1px solid #c0392b;
}

/*simple UX for users to know the progress of uploads*/
.upload-progress-container {
  width: 100%;
  height: 6px;
  background-color: rgba(64, 190, 255, 0.3);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
  display: none; /* hide initially */
}

.upload-progress-bar {
  width: 0%;
  height: 100%;
  background-color: #40beff; /* progress bar*/
  border-radius: 4px;
  transition: width 0.3s ease;
}
/****************FILES UPLOAD PAGES END*********************/

/****************10G/100G PROMO PAGES*********************/

.promo-hero-overlay {
  background-image:
    linear-gradient(rgba(0, 71, 187, 0.3), rgba(0, 71, 187, 0.6)), url(../img/10G-100GBG.webp);
}

.promo-opening-section {
  padding: 100px 16px;
  margin: 0 auto;
}

.promo-opening-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  margin: 0 auto;
}

.promo-opening-image {
  height: auto;
}

.promo-opening-text-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.promo-opening-title {
  font-weight: 700;
  color: #0047bb;
}

.promo-opening-description {
  text-align: justify;
}

.promo-info {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 100%;
}

.quote-btn {
  font-size: 16px;
  background-color: #501c68;
  color: #e6fdff;
  border-radius: 30px;
  font-weight: 700;
  font-family: "OpenSans";
  padding: 14px 40px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.5, 1, 0.89, 1);
  align-self: flex-start;
  border: none;
}

.quote-btn:hover {
  background-color: #813aa3;
  transform: scale(1.05);
}

.promo-content-divider {
  width: 80%;
  justify-self: center;
  margin: 90px 0px;
  border: 1px solid #484554;
  opacity: 20%;
}

.promo-content {
  margin: 0 auto;
  margin-top: -20px;
}

.promo-content-title {
  font-weight: 700;
  color: #0047bb;
  margin-bottom: 30px;
  text-align: center;
}

.promo-benefit-details {
  margin-bottom: 90px;
  text-align: center;
}

.promo-cards {
  display: flex;
  flex-direction: row;
  gap: 60px;
  justify-content: center;
}

.promo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  text-align: center;
  width: 30%;
}

.promo-card-icon {
  height: 110px;
  width: auto;
  aspect-ratio: 1.4;
}

.promo-text-header {
  font-weight: 700;
}

.promo-card-text {
  text-align: center;
}

.promo-specs-section {
  background-image: linear-gradient(rgba(0, 71, 187, 1), rgba(0, 71, 187, 1));
  background-size: cover;
  background-position: center;
  padding: 100px 16px;
  color: #e6fdff;
}

.promo-specs-title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
}

.promo-specs-divider {
  justify-self: center;
  border: 1px solid #e6fdff;
  margin: 0px 50px;
}

.promo-specs-content {
  width: 80%;
  margin: 0 auto;
}

.promo-layout {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.individual-specs-header {
  color: #e6fdff;
  font-weight: 700;
  font-size: 32px;
}

.individual-specs-container {
  /*width: 100%;*/
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.spec-description {
  display: flex;
  gap: 30px;
}

.individual-specs-text {
  font-size: 20px;
}

.individual-specs-icon {
  height: 30px;
  width: auto;
}

.map-content {
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

.sgmap {
  width: 65%;
}

.map-description-text {
  font-weight: 700;
  font-size: 20px;
  line-height: 2;
}

.promo-location-content {
  width: 80%;
  margin: 0 auto;
}

.promoform-content {
  margin: 0 auto;
  display: flex;
  align-items: center;
}

#promoform {
  scroll-margin-top: 150px; /* Adjust based on your header height */
}

.promoblue {
  background-color: #0047bb;
  display: inline-block;
  font-size: 24px;
  color: #e6fdff;
  font-weight: 700;
  padding: 5px 10px;
  text-align: center;
}

.promo-contact-details {
  display: flex;
  gap: 10px;
}

/****************10G/100G PROMO PAGES END*********************/

/****************COMBINED CLASSES********************/

.contact-hero-content,
.plant-hero-content,
.service-hero-content,
.resource-hero-content,
.PDPA-hero-content,
.Term-hero-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  width: 80%;
  align-content: center;
}

.promo-hero-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  width: 80%;
  align-content: center;
}

.contact-hero-section,
.plant-hero-section,
.service-hero-section,
.resource-hero-section,
.PDPA-hero-section,
.Term-hero-section,
.promo-hero-section {
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.contact-hero-title,
.plant-hero-title,
.service-hero-title,
.resource-hero-title,
.PDPA-hero-title,
.Term-hero-title,
.promo-hero-title {
  font-weight: 700;
  color: #e6fdff;
}

.contact-title,
.plant-title,
.resource-title,
.PDPA-title,
.Terms-title {
  font-weight: 700;
  color: #0047bb;
}

strong {
  font-weight: 700;
}

::placeholder {
  font-family: "OpenSans";
}

/****************SCROLL TO TOP********************/

#backToTop {
  position: fixed;
  bottom: 30px;
  left: 40px;
  width: 50px;
  height: 50px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none; /* prevents hover until visible */
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  transform: translateY(30px);
  z-index: 10;
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* enable hover when visible */
}

.backToTopBox {
  width: 100%;
  height: 100%;
  background-color: #501c68;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  padding: 10px;
  transition:
    background-color 0.2s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.2s cubic-bezier(0.13, 1.07, 0, 1);
}

#backToTop:hover .backToTopBox {
  transform: scale(1.07);
  background-color: #813aa3;
}

.backToTop {
  color: #e6fdff;
  font-size: 24px;
}

/****************WHATSAPP WIDGET SIZE********************/

#wa-widget {
  position: fixed;
  bottom: 30px;
  right: 40px;
  height: 50px;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  pointer-events: none; /* prevents hover until visible */
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  transform: translateY(30px);
}

#wa-widget.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* enable hover when visible */
}

#wa-widget a {
  text-decoration: none;
}

#wa-widget:hover .wa-widget {
  transform: scale(1.07);
}

.wa-widget {
  width: 100%;
  height: 100%;
  background-color: #075e54;
  border-radius: 30px;
  display: flex;
  gap: 5px;
  font-size: 16px;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition:
    background-color 0.3s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.4s cubic-bezier(0.13, 1.07, 0, 1);
  color: white;
}
