.project-header-img {
    max-height: 8rem;
    max-width: 100%;
    height: auto;
    padding-bottom: 30px;
}

.project-p {
    margin-bottom: 20px;
    margin-top: 10px;
    text-align: left;
}

.container-fluid {
    background-color: white;/*rgba(69, 172, 243, 0.7);*/
    margin: 0;
    padding: 0;
}

.project-desc {
    margin: 20px 40px;
    color: black;/*white;*/
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .project-desc {
        font-size: 1rem;  /* Slightly smaller on mobile */
    }
}

/* Button styles — pill toggles in the page's theme colour (var --theme) */
.button-row .btn-highlight {
    background-color: var(--theme, #3fa9f5); /* page theme colour */
    opacity: 0.5;                            /* inactive = faded */
    border: none;
    color: white;
    font-weight: bold;
    padding: 8px 18px;
    border-radius: 999px;                    /* pill */
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: opacity 0.2s ease-in-out;
    box-shadow: none;
}

.button-row button {
    flex: 1; /* Let buttons grow and take equal width */
    min-width: 100px; /* Ensure a minimum width for buttons */
}

.button-row .btn-highlight:hover {
    opacity: 0.8;
}

.button-row button.active {
    opacity: 1;                 /* active = solid theme colour */
}

/* Adjust margins and padding for the button row */
.button-row {
    margin-top: 20px;
    margin-bottom: 20px;
}

.project-vis-img {
    min-width: 40vw;
    display: flex;
    padding:5%;
    
    transition: background-color 1.3s ease-in-out; /* Smooth transition on hover */

    background-color: rgba(63, 169, 245, 1.0); 
    /* Apply hexagonal clipping to the image */
    -webkit-clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.project-vis-img:hover {
    background-color: rgba(45,45,45, 1.0); 
}

.cd-text-highlight {
    color: rgba(63, 169, 245, 1.0);
}

.acer-text-highlight {
    color: rgba(28, 75, 155, 1.0);
}

.acer-text-highlight-2 {
    color: rgba(255, 203, 41, 1.0);
}

a > .acer-text-highlight-2:hover {
    color: rgba(28, 75, 155, 1.0);
}


a > .acer-text-highlight:hover {
    color: rgba(255, 203, 41, 1.0);
}

#projectCanvas {
    cursor: none; /* Hide the mouse pointer when hovering over the canvas */
    display: block;
    margin: auto;
    width: 100%; /* Make sure canvas takes up full width of its parent */
    height: auto; /* Keep aspect ratio */
    background-color: transparent;

    /* Apply hexagonal clipping to the image */
    -webkit-clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

/* FADE INs */
/* Base styles for gradual reveal elements */
.gradual-reveal {
  opacity: 0;
  transform: translateY(20px); /* Slightly shifted down */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth, quick transition */
}

/* When 'animate' class is added, the element will fade in and move up */
.gradual-reveal.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Section headings get a short accent bar in the page's theme colour */
.project-desc h2 {
  margin-top: 34px;
}
.project-desc h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--theme, #492ae8);
}

/* Copernicus PCA globe (and any hero gif) — keep it contained */
.main-gif {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Wildcard placeholder — centred logo + "coming soon" */
.coming-soon {
  width: 100%;
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  padding: 60px 20px;
}
.coming-soon img {
  max-width: min(440px, 82%);
  height: auto;
}
.coming-soon p {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
}