/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-bottom: 60px; /* Prevents footer overlap */
}

/* Watermark */
.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: 110px;
  font-family: 'Times New Roman', Times, serif;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background-color: #1e3c72;
  z-index: 1;
  padding: 1rem 0;
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

.navbar li {
  margin: 0 15px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.navbar a:hover, .navbar .active {
  color: #ff9f00;
}

/* Scroll Progress Indicator */
#progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #fff;
  z-index: 1;
}

#progress-bar {
  width: 0;
  height: 100%;
  background-color: #ff9f00;
  transition: width 0.25s ease-out;
}

/* Main Container */
.container {
  background-color: #1e3c72;
  max-width: 800px;
  width: 90%;
  margin: 4rem auto 4rem; /* Adjusted margin for better alignment */
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Heading */
.container h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

/* Sections */
.section {
  padding: 6rem 2rem;
  margin: 2rem 0;
  border-radius: 12px;
  background-color: #274b8a;
}

.section h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.section p {
  font-size: 1.1rem;
  color: #fff;
}

/* Modal */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.custom-modal.show {
  display: flex;
}

.custom-modal-content {
  background: #ffffff;
  color: #1e3c72;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.modal-actions button {
  background-color: #1e3c72;
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-actions button:hover {
  background-color: #274b8a;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: bold;
  color: orangered;
  background-color: rgba(0, 0, 0, 0.6);
  border-top-left-radius: 10px;
  text-align: center;
  z-index: 3;
}

.footer a {
  color: orangered;
  text-decoration: none;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    padding: 2rem 1rem;
  }

  .container h1 {
    font-size: 2.1rem;
  }

  .section {
    padding: 4rem 1rem;
  }
}

@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    align-items: center;
  }

  .container {
    margin: 4rem auto;
  }

  .container h1 {
    font-size: 2rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .watermark {
    font-size: 70px;
  }
}

@media (max-width: 480px) {
  .watermark {
    font-size: 50px;
  }

  .container h1 {
    font-size: 1.6rem;
  }

  .custom-modal-content {
    padding: 1.5rem;
  }

  .footer {
    font-size: 0.9rem;
    padding: 0.6rem;
  }
}
