/* Global */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  background-color: #003972;
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Section */
.navbar {
  background-color: #0a2d57;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo span {
  font-size: 1.1rem;
  line-height: 1.2;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
}

.nav-links a:hover {
  color: #000;
}
.loginBtn {
  background-color: black;
  color: white;
  border: none;
  padding: 10px 40px;
  font-weight: bold;
  margin-right: 50px;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
}

.loginBtn:hover {
  background-color: #333;
}

hr {
  border: none;
  border-top: 10px solid #003972;
  margin-bottom: 90px;
}

/* Hero Container */
.hero-container {
  display: flex;
}

.text-section {
  flex: 1;
  color: white;
}

.text-section h1 {
  margin-left: 200px;
  font-size: 50px;
}

.text-section .logo {
  width: 40px;
  height: 40px;
  display: inline;
}

.text-section p {
  margin-left: 200px;
  margin-top: 15px;
}

.placeholderBtn,
.placeholder1Btn {
  margin-left: 35px;
  margin-top: 25px;
  padding: 5px 50px;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.placeholder1Btn {
  margin-left: 195px;
  border: solid 2px #071d37;
  background-color: #071d37;
}

.placeholderBtn {
  background-color: #003972;
  border: solid 2px white;
}

.image-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-section {
  position: relative; /* stacking context */
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-section img {
  width: auto;
  height: 500px;
  margin-bottom: -115px; /* keep your original spacing */
  position: absolute; /* allow overlap */
  object-fit: contain;
  left: 40%; /* center horizontally */
  transform: translateX(-50%);
}
.securelogo {
  height: 40px;
}

/* diamond behind */
.image-section img:first-child {
  z-index: -1;
  transform: translate(calc(-50% - 25px), -85px); /* left 50px, up 30px */
}
/* cover in front */
.image-section img:last-child {
  z-index: 0;
  transform: translateX(calc(-50% - 80px));
}

/* Wave Container */
.wave-container {
  --mask: radial-gradient(141.51px at 50% 195px, #000 99%, #0000 101%)
      calc(50% - 150px) 0/300px 100%,
    radial-gradient(141.51px at 50% -120px, #0000 99%, #000 101%) 50% 75px/300px
      100% repeat-x;
  -webkit-mask: var(--mask);
  mask: var(--mask);
  background-color: #dfdfdf;
  padding-bottom: 100px;
}

.wave-content {
  margin-top: 125px;
  padding: 50px 20px;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  padding: 0 50px 50px 20px;
}

.card {
  padding: 20px;
  border: #d5d9df solid 3.5px;
  border-radius: 10px;
}

/* Images sa mga cards */
.phplogo {
  width: 20px;
  height: auto;
}

.accesslogo {
  width: 25px;
  height: auto;
}

.buildinglogo {
  width: 30px;
  height: auto;
}
.peso {
  background: #bfcdde;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.secure {
  background: #c0dcca;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.access {
  background: #d4cbdf;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* Sign Up Container */
main .container {
  background: #f5f1ee;
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.container h2 {
  margin-bottom: 5px;
}

.container p {
  margin-bottom: 2.5rem;
}

#sign-inText {
  font-size: 13px;
}

.userinput {
  margin-top: 15px;
  margin-bottom: 25px;
}

.userinput input {
  width: 100%;
  padding: 10px;
  border: 2px solid black;
  border-radius: 10px;
}

.link {
  font-size: 12px;
}

.link a {
  font-size: 12px;
  color: #004aad;
  text-decoration: none;
}

.sign-inBtn {
  width: 100%;
  margin-top: 20px;
  padding: 15px 15px;
  background-color: #004aad;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

.sign-inBtn:hover {
  background-color: #00357a;
}

/* Footer Section*/
footer {
  background-color: #e6e6e6;
  padding: 20px 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-container p {
  font-size: 14px;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 10px 0 0;
  margin: 0;
}

.footer-links li a {
  color: black;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: darkblue;
  text-decoration: underline;
}

/*Pop up login*/
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #f5f1ee;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.error-message {
  color: red;
  margin-top: 10px;
  font-size: 0.9rem;
  text-align: center;
}
/* Responsive adjustments */
@media (max-width: 600px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    text-align: center;
  }
  .logo {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
  }
  .logo img {
    width: 20px;
    height: 20px;
  }
  .logo span {
    font-size: 10px;
    text-align: start;
  }
  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .nav-links a {
    font-size: 10px;
    font-weight: 500;
  }
  .loginBtn {
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 20px;
    margin: 0 5px 0 5px;
  }
  .text-section {
    margin-bottom: 90px;
  }
  .text-section h1 {
    font-size: 15px;
    margin: -50px 5px 20px 10px;
  }
  .securelogo {
    height: 10px;
  }
  .text-section p {
    margin:-10px 5px 20px 10px;
    font-size: 5px;
    margin-bottom: -10px;
  }
  .placeholderBtn,
  .placeholder1Btn {
    margin-left: 20px;
    padding: 8px 30px;
    font-size: 14px;
  }
  .wave-container {
    margin-top: -100px;
  }
  .image-section img {
    height: 200px;
    left: 50px;

    margin-bottom: 10px;
  }
  .wave-content h2 {
    margin-top: -50px;
    font-size: 15px;
  }
  .wave-content p {
    font-size: 10px;
  }
  .peso,
  .access,
  .secure {
    width: 20px;
    height: 30px;
  }
  .card {
    padding: 10px;
  }
  .cards {
  margin-left: 30px;
}
.card h4{
  font-size: 15px;
}
.card p{
  font-size: 10px;
}
}
@media (min-width: 601px) and (max-width: 800px) {
  .navbar {
    padding: 10px 20px;
  }
  .nav-links a {
    font-size: 12px;
  }
  .loginBtn {
    font-size: 12px;
    padding: 5px 20px;
  }
  .text-section h1 {
    font-size: 2.5vh;
    margin-left: 20px;
    margin-top: -50px;
  }
  .text-section p {
    margin-left: 20px;
    font-size: 1.5vh;
  }
  .placeholder1Btn {
    margin-left: 80px;
    padding: 8px 35px;
  }
  .image-section img {
    height: 300px;
    margin-bottom: -60px;
    left: 20px;
    transform: none;
  }
  .wave-container {
    margin-top: 10px;
  }
  .securelogo {
    height: 15px;
  }
}
@media (min-width: 801px) and (max-width: 1365px) {
  .text-section h1 {
    font-size: 4vh;
    margin-left: 20px;
  }

  .text-section p {
    margin-left: 20px;
    font-size: 2vh;
  }

  .placeholder1Btn {
    margin-left: 195px;
  }

  .image-section img {
    height: 400px;
    margin-bottom: -115px;
    left: 30px;
    transform: translateX(-50%);
  }
  .securelogo {
    height: 25px;
  }
    .wave-container {
    margin-top: 10px;
  }
}
@media (min-width: 1366px) and (max-width: 2150px) {
  .text-section h1 {
    font-size: 6vh;
    margin-left: 120px;
  }

  .text-section p {
    margin-left: 120px;
    font-size: 3vh;
  }
  .securelogo{
    height: 30px;
  }
  .image-section img {
    height: 650px;
    left: 30px;
    transform: translateX(-50%);
  }
    .wave-container {
    margin-top: 10px;
  }
}
@media (min-width: 2151px){
.text-section h1 {
    font-size:6vh;
    margin-left: 180px;
  }

  .text-section p {
    margin-left: 180px;
    font-size: 4vh;
  }
    .securelogo{
    height: 55px;
  }
    .image-section img {
    height: 800px;
  }
    .wave-container {
    margin-top: 10px;
  }
}
@media (min-width: 3345px){
.text-section h1 {
    font-size:6vh;
    margin-left: 180px;
  }

  .text-section p {
    margin-left: 180px;
    font-size: 4vh;
  }
    .securelogo{
    height: 80px;
  }
    .image-section img {
    height: 1200px;
  }
    .wave-container {
    margin-top: 10px;
  }
}
@media (min-width: 4460px){
.text-section h1 {
    font-size:6vh;
    margin-left: 180px;
  }

  .text-section p {
    margin-left: 180px;
    font-size: 4vh;
  }
    .securelogo{
    height: 120px;
  }
    .image-section img {
    height: 1800px;
  }
    .wave-container {
    margin-top: 110px;
  }
}