/* NAVBAR */
#navbar p {
    color: white;
}
#navbar #home {
    filter: brightness(0) invert(1);
}
#navbar #navmenu a {
    color: white;
}
#nav_mobile_options {
    background-color: rgba(96, 96, 96, 0.497);
}
#nav_mobile_options a {
    color: white;
}
#nav_mobile #home {
    filter: brightness(0) invert(1);
}
#nav_mobile_options #home {
    filter: brightness(0) invert(1);
}
#nav_mobile_options #exit {
    filter: brightness(0) invert(1);
}

/* WORK PAGE */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Red Hat Display', sans-serif;
}

.work-container {
  display: flex;
  width: 100vw;
}

/* Default state: equal width */
.work-pane {
  flex: 1;
  position: relative;
  transition: all 0.4s ease;
  background-size: cover;
  background-position: center;
  /*filter: grayscale(100%) brightness(0.5);*/
  filter: brightness(0.5);
  text-decoration: none;
  color: white;
  overflow: hidden;
}

/* Background Images */
.academic {
  background-image: url('../images/pics/academic.jpg'); /* Replace with your actual image path */
}
.personal {
  background-image: url('../images/pics/personal.jpg');
}
.professional {
  background-image: url('../images/pics/professional.jpg');
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 3vw;
  font-weight: normal;
  /*text-shadow: 2px 2px 8px #000;*/
  pointer-events: none; /* so text doesn't block hover on the pane */
  transition: opacity 0.3s ease;
}

/* Scroll Prompt Arrow */
.scroll-arrow {
  position: absolute;
  bottom: 12vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  animation: bounce 2s infinite;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}
.scroll-arrow:hover {
  opacity: 1;
}
@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(3vh);
  }
}

/* DESKTOP */
@media (min-width: 901px) {
    body {
    scroll-snap-type: none;
    }
    .work-container {
      height: 100vh;
    }
    /* When any pane is hovered, reduce size of all siblings */
    .work-pane:hover {
    flex: 3;
    /*filter: grayscale(0%) brightness(1);*/
    filter: brightness(1);
    z-index: 1;
    }

    /* Shrink non-hovered siblings only when a pane is hovered */
    .work-container:hover .work-pane:not(:hover) {
    flex: 1;
    /*filter: grayscale(100%) brightness(0.5);*/
    filter: brightness(0.5);
    }

    /* Position Indicator */
    .work-indicator {
      display: none;
    }

    /* Scroll Arrow */
    .scroll-arrow {
      display: none; /* hide on desktop */
    }
}

/* === MOBILE RESPONSIVE FALLBACK === */
@media (max-width: 900px) {
  body {
    scroll-snap-type: y mandatory;
  }

  .work-container {
    flex-direction: column;
  }

  .work-pane {
    flex: none;
    position: relative;
    scroll-snap-align: start;
    width: 100%;
    height: 100vh;
    background-size: cover;
    filter: brightness(0.9); /* Make brighter on mobile by default */
  }

  /* Disable hover scaling for mobile */
  .work-container:hover .work-pane,
  .work-pane:hover {
    flex: none;
    filter: brightness(0.9);
  }

  .overlay {
    font-size: 6vh;
  }

  /* Position Indicator */
  .work-indicator {
    position: fixed;
    top: 50%;
    left: 4vw;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10;
  }

  .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #888;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
  }

  .dot.active {
    background-color: white;
    opacity: 1;
    transform: scale(1.3);
  }

  .scroll-arrow {
    display: block;
  }
}