/* Basic Reset & Body Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f0f0f0; 
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Splash Container - Main Content Area (Scrollable if needed) */
.splash-container {
  position: relative;
  width: 100vw;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding-bottom: 70px;
  padding-top: 20px;
}

/* Image Slider (Fixed in background) */
.image-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out, filter 0.3s ease-in-out;
  position: absolute;
  opacity: 0;
}

.slide.active {
  opacity: 1;
}

/* Hubs Container - This is the central block of cards */
.hubs-container {
  display: flex;
  flex-wrap: nowrap; 
  gap: 30px; /* Space between cards */
  z-index: 10;
  position: relative;
  padding: 20px 0; /* Vertical padding for content */
  max-width: 1400px; /* Max width for 1x4 layout */
  width: 90%; /* Responsive width */
}

/* Individual Hub */
.hub {
  position: relative;
  flex: 1 1 25%; 
  min-width: 200px; /* Prevent shrinking too much */
  max-width: 320px; 

  height: auto;
  aspect-ratio: 1 / 1; 
  max-height: 320px;

  border-radius: 15px;
  overflow: hidden; 
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease,
    opacity 0.3s ease, background-color 0.3s ease, border 0.3s ease;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hub a {
  text-decoration: none;
  color: inherit;
  display: block; /
  position: relative; 
  width: 100%;
  height: 100%; 
  overflow: hidden; 
}

/* Hub Visual - Container for the icon */
.hub-visual {
  display: flex; 
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%; 
  position: absolute; 
  top: 0;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease; /* For smooth icon shrink/move */
  z-index: 1; 
}

.hub-icon {
  width: 90%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  filter: grayscale(0%);
  transition: filter 0.3s ease-in-out, transform 0.3s ease; 
}

.hub-text {
  position: absolute; /* Revert to absolute positioning for pop-down */
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  transform: translateY(100%); /* Hidden by default */
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  text-align: center;
  opacity: 0; /* Hidden by default */
  z-index: 3; /* Above icon */
}

.hub-text h3 {
  font-size: 1.2em;
  margin-bottom: 5px;
  font-weight: 700;
}

.hub-text p {
  font-size: 0.85em;
  line-height: 1.4;
  font-weight: 400;
}

/* --- DEFAULT STATES (Non-Hovered) --- */
#hub-packed-planet {
  background-color: rgba(229, 0, 0, 0.1);
  border: 1px solid rgba(229, 0, 0, 0.2);
}

#hub-packed-planet .hub-icon {
  filter: grayscale(0%);
  opacity: 0.9;
}

#hub-noa-plus {
  background-color: rgba(0, 119, 215, 0.1);
  border: 1px solid rgba(0, 119, 215, 0.2);
}

#hub-noa-plus .hub-icon {
  filter: grayscale(0%);
  opacity: 0.9;
}

#hub-locked-loaded {
  background-color:rgba(0,88,254,255);
  border: 1px solid rgba(18, 72, 255, 0.2);
}

#hub-locked-loaded .hub-icon {
  filter: grayscale(0%);
  opacity: 0.9;
}

#hub-tnc {
  background-color: rgba(198, 164, 106, 0.1);
  border: 1px solid rgba(198, 164, 106, 0.2);
}

#hub-tnc .hub-icon {
  filter: grayscale(0%);
  opacity: 0.9;
}

/* --- HOVER EFFECTS --- */
.hubs-container:hover .hub {
  filter: grayscale(100%);
  opacity: 0.5;
  transform: scale(0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hubs-container:hover .hub .hub-icon {
  filter: grayscale(100%);
  opacity: 0.5;
  transform: scale(1) translateY(0px);
}

/* Specific hover effect for the individual hovered hub */
.hubs-container .hub:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 11;
}

.hubs-container .hub:hover .hub-visual {
  transform: translateY(-20%) scale(0.8); /* Move up by 20% and scale down to 80% */
  opacity: 1; /* Keep visible and clear */
}

.hubs-container .hub:hover .hub
-icon {
  filter: grayscale(0%);
  opacity: 1;
}

.hubs-container .hub:hover .hub-text {
  transform: translateY(0); /* Text slides up */
  opacity: 1; /* Text becomes visible */
}

/* --- FOOTER STYLES --- */
.main-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  z-index: 20;
  font-size: 0.9em;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  height: 70px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 90%;
  margin: 0 auto;
}

.main-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: #c6a46a;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
  color: #f0e8d7;
  text-decoration: underline;
}

.footer-links span {
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hubs-container {
    flex-wrap: wrap;
    gap: 20px;
    max-width: 680px;
    width: 90%;
  }

  .hub {
    flex: 1 1 calc(50% - 10px);
    /* height: auto and aspect-ratio from general .hub apply */
  }
}

@media (max-width: 600px) {
  .splash-container {
    padding-bottom: 70px;
    padding-top: 20px;
  }

  .hubs-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    padding: 20px;
  }

  .hub {
    width: 85%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 320px;
    max-height: 320px;
    min-width: unset;
  }

  /* Adjust icon hover on mobile if needed, or let desktop values apply */
  .hubs-container .hub:hover .hub-visual {
    transform: translateY(-20%) scale(0.8); /* Slightly less shrink/move on mobile */
  }
}