/* Mission page layout styles */

/* Custom scrollbar styling for WebKit browsers */
.content-area::-webkit-scrollbar {
  width: 8px !important;
  display: block !important;
}

.content-area::-webkit-scrollbar-track {
  background: rgba(21, 21, 21, 0.7) !important;
  visibility: visible !important;
  display: block !important;
}

.content-area::-webkit-scrollbar-thumb {
  background-color: #df1f29 !important;
  border-radius: 3px !important;
  visibility: visible !important;
  display: block !important;
  min-height: 40px !important;
}

/* Scroll indicator styling */
.content-scroll-indicator {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 30px;
  height: 50px;
  border: 2px solid #df1f29;
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.content-scroll-indicator.visible {
  opacity: 0.7;
}

.content-scroll-indicator span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background-color: #df1f29;
  border-radius: 50%;
  animation: scroll-indicator 2s infinite;
}

@keyframes scroll-indicator {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(20px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.mission-layout {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding-top: 0em;
}

/* Left column with hero image */
.left-column {
  width: 60%;
  height: 100%;
  position: relative;
}

/* Right column with black background */
.right-column {
  width: 40%;
  height: 100%;
  background-color: #000;
  color: #fff;
  position: relative;
  z-index: 1; /* Lower z-index to ensure menu appears above */
}

.content-area {
  padding: 4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #df1f29 rgba(21, 21, 21, 0.5);
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS devices */
  scroll-behavior: smooth; /* Smooth scrolling for all devices */
}

.content-area h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #fff;
}

.content-area p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #ccc;
}

/* Hero styles */
.static-hero {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-content {
  position: absolute;
  bottom: 20%;
  left: 10%;
  z-index: 3;
  color: #fff;
}

.hero-content h1 {
  font-size: 5rem;
  margin-bottom: 20px;
  color: #fff;
}

/* Fix for any potential white space issues */
body, html {
  overflow-x: hidden;
  max-width: 100%;
}

.ms-container {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Menu adjustments for mission page */
.ms-header {
  z-index: 1000; /* Ensure header is above content */
}

/* Contact button styling */
@keyframes rotate-border {
  0% {
    transform: translate(-50%, 0) rotate(0deg);
  }
  100% {
    transform: translate(-50%, 0) rotate(360deg);
  }
}

.contact-button {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-color: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
}

.contact-button span {
  display: block;
  line-height: 1.2;
}

.contact-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed #ffffff;
  animation: rotate-border 20s linear infinite;
  z-index: -1;
}

.contact-button:hover {
  color: #df1f29;
}

/* Contact Modal Styling */
.contact-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  position: relative;
  background-color: #000000;
  margin: 15% auto;
  padding: 40px;
  width: 80%;
  max-width: 500px;
  border-radius: 5px;
  border: 3px dashed #555555;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.contact-modal.show .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: #fff;
}

.modal-body {
  color: #fff;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
}

.modal-body p {
  margin-bottom: 15px;
}

.modal-email {
  display: block;
  margin-top: 20px;
  color: #df1f29;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-word;
}

.modal-email:hover {
  color: #fff;
}

/* Responsive styles for page layout, contact button and modal */
@media screen and (max-width: 805px) {
  .content-area {
    padding-bottom: 0;
  }
}

@media screen and (max-width: 768px) {
  /* Layout adjustments for tablet */
  .mission-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  
  .left-column {
    width: 100%;
    height: 50vh; /* Half the viewport height */
  }
  
  .right-column {
    width: 100%;
    height: auto;
  }
  
  .content-area {
    padding: 2rem;
    max-height: none;
    overflow-y: visible;
  }
  
  /* Contact button adjustments */
  .contact-button {
    width: 100px;
    height: 100px;
    font-size: 14px;
    bottom: 70px;
    z-index: 20; /* Ensure it's above other elements */
  }
  
  /* Modal adjustments */
  .modal-content {
    padding: 25px;
    margin: 25% auto;
    width: 90%;
  }
  
  .modal-body {
    font-size: 16px;
  }
  
  .modal-email {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  /* Layout adjustments for mobile */
  .left-column {
    height: 40vh; /* Smaller height on mobile */
  }
  
  .content-area {
    padding: 1.5rem;
  }
  
  .content-area h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .content-area p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Contact button adjustments - centered on mobile */
  .contact-button {
    width: 80px;
    height: 80px;
    font-size: 12px;
    bottom: 50px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  
  /* Modal adjustments */
  .modal-content {
    padding: 20px;
    margin: 30% auto;
  }
  
  .close-modal {
    top: 10px;
    right: 15px;
  }
  
  .modal-body {
    font-size: 14px;
  }
  
  .modal-email {
    font-size: 16px;
  }
}

/* Adjust menu transition for mission page */
.ms-navbar.menu-shifted {
  transform: translateX(-40%) !important;
}

.menu-content-placeholder {
  right: 40%;
}
