/* === About Us Specific Styles === */

/* Five Pillars Section */
.five-pillars-section {
  position: relative;
  padding: 80px 20px;
  background: url("images/au.webp") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* Arrange children vertically */
  align-items: center;
  justify-content: center;
  animation: fadeIn 2s ease-in-out;
}

.five-pillars-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* Overlay to enhance text readability */
  z-index: 1;
}

.pillar-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  z-index: 2; /* Above the overlay */
  display: flex;
  flex-direction: column;
  gap: 40px; /* Space between pillars */
}

.pillar {
  background: rgba(0, 0, 0, 1);
  padding: 20px;
  border: 2px solid #000;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
  animation: slideUp 1s ease-in-out;
}

.pillar-title {
  color: #64d9ff;
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.pillar-description {
  color: #fff;
  font-size: 16px;
  border: 1px solid #000;
  padding: 15px;
  border-radius: 5px;
  background-color: rgba(
    0,
    0,
    0,
    0.1
  ); /* Slightly lighter background for contrast */
}

/* CTA Container (About Us Page) */
.cta-container {
  margin-top: 40px; /* Space above the CTA button */
  z-index: 2; /* Ensure it's above the overlay */
  text-align: center; /* Center the button */
}

.cta-button-about {
  display: inline-block;
  padding: 15px 30px;
  background-color: rgba(
    100,
    217,
    255,
    0.9
  ); /* Semi-transparent to blend with background */
  color: #000;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid #64d9ff;
  border-radius: 5px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cta-button-about:hover,
.cta-button-about:focus {
  box-shadow: 0 0 10px #64d9ff;
  transform: translateY(-3px);
}

.cta-button-about:active {
  box-shadow: 0 0 20px #64d9ff;
  transform: translateY(-1px);
}

/* Modal Styles */
.modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 1);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  position: relative;
  animation: slideUp 0.5s ease-in-out;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #aaa;
  font-size: 30px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: #000;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Styles for About Us Page */
@media (max-width: 768px) {
  /* Five Pillars Section Adjustments */
  .five-pillars-section {
    padding: 60px 15px;
  }

  .pillar-container {
    gap: 30px; /* Reduced space between pillars */
  }

  .pillar {
    padding: 15px;
    max-width: 90%;
  }

  .pillar-title {
    font-size: 20px;
  }

  .pillar-description {
    font-size: 14px;
    padding: 10px;
  }

  /* CTA Button Adjustments */
  .cta-button-about {
    font-size: 16px;
    padding: 12px 25px;
  }

  .cta-container {
    margin-top: 30px; /* Adjust space above the CTA button */
  }
}

@media (max-width: 480px) {
  .five-pillars-section {
    padding: 40px 10px;
  }

  .pillar-container {
    gap: 20px;
  }

  .pillar {
    padding: 10px;
    max-width: 100%;
  }

  .pillar-title {
    font-size: 18px;
  }

  .pillar-description {
    font-size: 12px;
    padding: 8px;
  }

  /* CTA Button Adjustments */
  .cta-button-about {
    font-size: 14px;
    padding: 10px 20px;
  }

  .cta-container {
    margin-top: 20px;
  }
}

/* Prevent scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}
