/*********************************
  CSS1 VERSION (Original)
*********************************/

/*********************************
  RESET + GLOBAL BASICS
**********************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/*********************************
  HEADER / TOP MENU
**********************************/
header,
#top-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 20px 0;
}

.top-menu-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  position: relative;
  width: 100%;
}

/* Menu UL + LI */
.top-menu-container ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 20px;    /* vertical gap */
  column-gap: 35px; /* horizontal gap */
}

.top-menu-container li {
  margin: 0;
}

.menu-link {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: color 0.5s, transform 0.5s; /* Include transform transition */
  display: inline-block; /* Ensure scaling and background apply properly */
  padding: 1px 1px; /* Add padding for spacing around the text */
}

/* Remove ::before hover background effect */
.menu-link::before {
  /* Removed styles that created the background effect */
}

.menu-link:hover {
  transform: scale(1.2); /* Keep the scaling effect on hover */
  z-index: 1; /* Ensure it stays on top */
}

/* Keep the underline effect */
.menu-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #1D87F8, #E100FF);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s;
}

.menu-link:hover::after {
  transform: scaleX(1); /* Animate underline */
}





/*********************************
  CORNER LOGOS
**********************************/
.corner-logos {
  position: absolute;     /* relative to the header */
  top: 70px;              /* just below the fixed header */
  width: 100%;
  pointer-events: none;   /* so container doesn't block clicks */
  z-index: 1000;
}
.corner-logo {
  position: absolute;
  pointer-events: auto;   /* clickable links */
}
.left-logo {
  top: 10px;
  left: 30px;
}
.right-logo {
  top: 10px;
  right: 30px;
}
.corner-logo img {
  display: block;
  max-width: 200px;  /* or set max-height if you prefer */
  max-height: 70px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.corner-logo img:hover {
  opacity: 1;
}

/*********************************
  MAIN CONTENT
**********************************/
main {
  margin-top: 0px; /* If header is fixed, adjust as needed */
}

/*********************************
  HERO SECTIONS (Generic)
**********************************/

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;

  /* Ensure hero section always accommodates content */
  min-height: fit-content;

  z-index: 1;

  /* For flex-based layout to center content */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px; /* Ensure consistent padding */
}





/*********************************
  HERO VIDEO BACKGROUND
**********************************/
.hero-video {
  position: relative;
  min-height: 80vh; /* Adjust as needed for your layout */
  overflow: hidden; /* Prevents content from spilling out */
  display: flex;
  justify-content: center;
  align-items: center; /* Centers content inside the hero section */
}

.hero-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video scales proportionally and covers the section */
  z-index: -1; /* Sends the video to the background */
}

.hero-video .hero-content {
  position: relative;
  z-index: 2; /* Places the content above the video */
  background-color: rgba(0, 0, 0, 0.8); /* Optional: Add a semi-transparent background to improve text readability */
  padding: 30px;
  border-radius: 3px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Adds a subtle shadow for better contrast */
}

/* Force model-viewer to fill the .hero-video container exactly like <video> */
.hero-video model-viewer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;         /* behind any text overlay */
  object-fit: cover;   /* may help with scaling, but not always required */
}





/*********************************
  HERO-CONTENT BLOCK
**********************************/

.hero-content {
  width: fit-content; /* Adjusts to content size */
  max-width: min(calc(50% + 200px), 90vw);
  min-width: 200px; /* Optional: Set a minimum width */
  background-color: rgba(0, 0, 0, 0.8); /* Transparent background */
  padding: 30px; /* Comfortable padding */
  border-radius: 3px; /* Rounded corners */
  text-align: center; /* Align text */
  box-sizing: border-box; /* Include padding in width */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Subtle shadow */
  
  opacity: 0; /* Initially hidden */
  transform: scale(0.95); /* Slightly scaled down for effect */
  transition: opacity 0.5s, transform 0.5s; /* Smooth fade and scale transitions */
}

.hero-content.visible {
  opacity: 1; /* Fully visible */
  transform: scale(1); /* Restore original scale */
}

.hero-content.hidden {
  opacity: 0; /* Fully hidden */
  transform: scale(0.95); /* Slightly scaled down */
}

/* Ensure hero section always fits content */
.hero {
  min-height: fit-content;
}

.hero-content h1 {
  font-size: 2.2em;
  margin-bottom: 15px;
  word-wrap: break-word; /* Ensure long words wrap */
}

.hero-content p {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 15px;
  text-align: justify;
}





/*********************************
  BUTTON
**********************************/
.btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px;
  border: 2px solid #fff; /* Initial solid white border */
  background: none;
  color: #fff;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  transition: 
    transform 1s ease,  /* Smooth scale transition */
    border-image 2s ease,  /* Smooth border-image transition */
    box-shadow 1s ease; /* Smooth shadow transition */
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.7); /* Default shadow */
  text-decoration: none;
}

.btn:hover {
  border-image: linear-gradient(to right, #1D87F8, #E100FF) 1; /* Gradient border on hover */
  transform: scale(1.05);  /* Apply scaling effect */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);  /* Increase shadow on hover */
}





/*********************************
  MODAL
**********************************/

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0; 
  pointer-events: none;
  transition: opacity 1.0s ease;
  z-index: 99999;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  /* Constrain overall size to 90% of viewport */
  max-width: 100%;
  max-height: 100%;
  background: #000;
  border-radius: 4px;
  padding: 10px 15px;
  /* If content is still too big, user can scroll */
  overflow: hidden; 
}

/* Row for <  >  X */
.modal-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.modal-prev,
.modal-next,
.modal-close {
  cursor: pointer;
  user-select: none;
  color: #fff;
}

.modal-prev:hover,
.modal-next:hover,
.modal-close:hover {
  color: #ddd;
}

.modal-inner {
  text-align: center;
  /* Removed max-height: 80vh here */
}

/* Ensure images/videos scale down to fit */
.modal-inner img,
.modal-inner video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto; 
}

.modal-caption {
  margin-top: 0.5rem;
  color: #fff;
  text-align: center;
}


.media-gallery .media-item img {
  transition: transform 0.2s ease;
}
.media-gallery .media-item img:hover {
  transform: scale(1.05);
}

/* Ensure the .media-item is positioned so we can place an absolute corner overlay */
.media-item {
  width: 300px;      /* or 180px, whichever you prefer */
  position: relative;
  cursor: pointer;
  display: inline-block; /* or use flex items in .media-gallery */
}

.media-item img {
  width: 100%;
  height: auto;
  display: block; /* optional, removes inline spacing */
}

.media-item[data-video="true"]::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  z-index: 2;
}

.media-item[data-video="true"]::after {
  content: "";
  position: absolute;

  /* Calculate the center of the circle (5px offset + half of 24 = 17).
     Then subtract half the triangle’s dimension (5) → 12px. */
  top: 12px;
  right: 12px;

  /* White triangle “play” shape, 10px wide, 10px tall (split into two 5px sides) */
  width: 0;
  height: 0;
  border-left: 10px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;

  z-index: 3; /* on top of the circle */
}






/*********************************
  3D Space Model
**********************************/
.model-container {
  display: block;
  position: relative;
}
.mobile-message {
  display: none;
}

/* Style for the Full Screen Button */
.fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10;
}








/*********************************
  FOOTER
**********************************/
footer {
  text-align: center;
  padding: 20px;
  background-color: #111;
  color: #fff;
}

.social-links a {
  margin: 0 8px;
  color: #fff;
  font-size: 1.3rem; /* or whatever size you like */
  transition: transform 0.3s;
}

.social-links a:hover {
  transform: scale(1.3);
  color: #ddd;
}



/*********************************
  RESPONSIVE: TABLET (max-width: 768px)
**********************************/
@media (max-width: 768px) {
  header, 
  #top-menu {
    position: static;
    padding: 10px 0;
  }
  header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .corner-logos {
    order: 1;
    position: static;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }
  .top-menu-container {
    order: 2;
  }
  .top-menu-container ul {
    row-gap: 15px;
    column-gap: 40px;
  }
  .corner-logo {
    position: static;
  }
  .corner-logo img {
    max-width: 145px;
    max-height: 55px;
  }

  .hero {
    margin-bottom: -10px; /* Keep fade overlap consistent on tablet */
    /* If you want them shorter or taller here, you can override min-height again */
    /* min-height: 80vh; */
    padding: 20px;
  }
  .hero-content {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
  }
  .hero-content h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
  }
  .hero-content p {
    font-size: 1em;
  }
  
  .media-item {
    width: 200px; /* adjust as needed */
  }
  .media-gallery {
    gap: 0.5rem;  /* smaller gap on tablet */
  }
}




/* Mobile Styles: 3D SPACE MODEL */
@media (max-width: 800px) {
  .model-container {
    display: none;
  }
  .mobile-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 60vh;
    /* Use a background image (e.g., a thumbnail preview) with an overlay color */
    background: 
      linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url('media/Proxima3DstatBackground.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 20px;
  }
  .mobile-message p {
    font-size: 1.2em;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 4px;
  }
  .mobile-message a {
    margin-top: 10px;
    padding: 10px 15px;
    background: linear-gradient(to right, #1D87F8, #E100FF);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
  }
}




/*********************************
  RESPONSIVE: PHONE (max-width: 600px)
**********************************/
@media (max-width: 600px) {
  .hero {
    margin-bottom: 0; /* Remove any overlap issues */
    min-height: 100vh; /* Use full screen height */
    padding: 20px; /* Ensure consistent padding */
  }

  .hero-content {
    width: fit-content;
    max-width: min(calc(50% + 200px), 90vw);
    min-width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 3px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0; /* Initially hidden */
    transform: scale(0.95); /* Slightly scaled down for effect */
    transition: opacity 0.5s, transform 0.5s; /* Smooth fade and scale transitions */
  }

  .hero-content.visible {
    opacity: 1;
    transform: scale(1);
  }

  .hero-content.hidden {
    opacity: 0;
    transform: scale(0.95);
  }


  .hero-content h1 {
    font-size: 1.8em; 
    margin-bottom: 10px;
    word-wrap: break-word;
  }

  .hero-content p {
    font-size: 1.1em;
    line-height: 1.6;
    overflow: visible;
  }

  .btn {
    font-size: 1em;
    padding: 10px 15px;
  }
  
  /* Even smaller thumbnails, smaller gap */
  .media-item {
    width: 160px; 
  }
  .media-gallery {
    gap: 0.3rem;  
  }
        .menu-link {
        font-size: 10px !important; 
        padding: 5 !important;
      }
      .top-menu-container ul {
        row-gap: 10px; /* vertical */
        column-gap: 10px;
      }
}


/*********************************
  TRIPLE-COLUMN HERO (Section #2)
**********************************/
.triple-hero {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  min-height: 600px;
  padding: 0;
}

.triple-hero .column {
  flex: 1 1 33.3333%;
  position: relative;
  overflow: visible;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The .content block in each column */
.triple-hero .column .content {
  position: relative;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  width: 90%;
  box-sizing: border-box;
  border-radius: 3px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-align: center;
}

.triple-hero .column .content.visible {
  opacity: 1;
  transform: scale(1);
}

.triple-hero .column .content.hidden {
  opacity: 0;
  transform: scale(0.95);
}

/* Increase gap between h2 and p */
.triple-hero .column .content h2 {
  margin-bottom: 25px;
}

/* Paragraphs: justified text */
.triple-hero .column .content p {
  margin-bottom: 15px;
  text-align: justify;
}

/* On smaller screens, stack columns vertically */
@media (max-width: 768px) {
  .triple-hero {
    flex-direction: column;
    min-height: auto; 
  }
  .triple-hero .column {
    flex: 1 1 100%;
    min-height: 500px; 
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .triple-hero .column .content {
    width: 90%;
    padding: 20px;
  }
  .triple-hero .column .content p {
    font-size: 1em;
    line-height: 1.3;
    width: 100%;
  }
}