/* 
#####################################################
Site-level variables
#####################################################
*/
* {
  box-sizing: border-box;
}

:root {
  background-color: var(--subtle-white);
  --ooh-red-hot: rgb(226, 13, 13);
  --midnight-red: rgb(153, 10, 10);
  --muted-red: rgb(224, 120, 120);
  --subtle-tan: rgb(211, 203, 201);
  --subtle-white: rgb(235, 235, 235);
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  flex-direction: column;
  font-family: "Montserrat";
}
p {
  font-size: 12pt;
  margin: 0;
  padding: 0;
}
p[data-attribute="highlight"] {
  font-weight: 500;
  color: var(--ooh-red-hot);
  display: inline;
}
p[data-attribute="research-preface"] {
  font-size: 10pt;
  font-weight: 400;
  font-style: italic;
  color: rgb(120, 120, 120);
  display: inline;
}
p[data-attribute="research-footnote"] {
  font-size: 10pt;
  font-weight: 400;
  font-style: italic;
  color: rgb(80, 80, 80);
  display: inline;
}
h2 {
  font-size: 14pt;
  font-weight: 500;
  color: var(--muted-red);
  display: inline;
}
hr {
  border: none;
  height: 1px;
  width: 100%;
  background-color: #d3d3d3;
  margin-top: 5px;
  margin-bottom: 5px;
}
.meat {
  margin-top: 30px;
  padding: 2.8vw 20px;
}
p[data-attribute="heading"] {
  font-size: 18pt;
  font-weight: 600;
  color: var(--midnight-red);
  margin-top: 10pt;
  margin-bottom: 6pt;
  padding-bottom: 2pt;
  border-bottom: 1.5px solid #d3d3d3;
}


/* 
#####################################################
Carousel Elements
#####################################################
*/
.carousel {
  display: flex;
  overflow-x: auto;
}
.carousel-element {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 400px;
  height: 200px;
  margin: 10px;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: black;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.carousel-element:hover {
  background-color: rgb(225, 225, 225);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.carousel-element:hover h2 {
  color: var(--ooh-red-hot);
}
.carousel-element h2, .carousel-element p {
  margin: 0;
}
.carousel-element hr {
  margin: 10px 0;
}
hr[data-attribute="carousel"] {
  margin-top: 4px;
  margin-bottom: 4px;
  width: 100%;
}
p[data-attribute="carousel"] {
  font-size: 10pt;
  color: black;
}


/* 
#####################################################
List Card (Thumbnail + Title + Summary)
#####################################################
*/
.listline {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 16px;
  border-radius: 0;
  text-decoration: none;
  color: black;
}

.listline:hover {
  /* transparent light red */
  background: rgba(226, 13, 13, 0.07);
  border-radius: 12px;
  cursor: pointer;
}

/* typography changes on hover */
.listline:hover .listline-title {
  color: var(--ooh-red-hot);
}

.listline:hover .listline-summary {
  color: black;
}

/* include line separator between cards */
.listline { position: relative; }
.listline + .listline {
  border-top: none;
}
.listline + .listline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 97%;
  height: 1px;
  background: #d1d1d1;
}

.listline:visited,   /* keep links neutral */
.listline * {
  color: inherit;
  text-decoration: none;
}

.listline-thumb {
  flex: 0 0 auto;
  height: 150px;
  aspect-ratio: 7 / 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.listline-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
  border-radius: 6px;
  box-shadow: none;
  filter:
    drop-shadow(-2px 3px 4px rgba(0,0,0,0.14))
    drop-shadow(-6px 9px 16px rgba(0,0,0,0.18));
}

/* variants */
.listline--research .listline-thumb {
  height: 160px;
  aspect-ratio: 7 / 3; /* wider */
}

.listline--professional .listline-thumb {
  height: 150px;
  aspect-ratio: 5 / 3; /* 5:3 box */
}

.listline-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.listline-title {
  font-weight: 700;
  font-size: 13.5pt;
  line-height: 1.25;
  display: inline-block;
  margin-right: 8px;
  color: black;
}

.listline-summary {
  margin-top: 6px;
  font-size: 11pt;
  line-height: 1.4;
  color: rgb(140, 140, 140);
  overflow: visible;
  display: block;
}

/* 
#####################################################
Research
#####################################################
*/
.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 10pt;
  line-height: 1;
  color: #fff;
  vertical-align: baseline;
  box-shadow:
    0 6px 14px rgba(178, 0, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.badge--neurips {
  background: linear-gradient(135deg, #ff3b3b 0%, #dc1111 45%, #b20000 100%);
}

/* 
#####################################################
Bullet Lists
#####################################################
*/
.custom-list {
  font-size: 12pt;
  list-style: none;
  padding-left: 0;
}

.custom-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 15px;
}

.custom-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7pt;
  transform: translateY(-50%);
  width: 6px;
  height: 1.5px;
  background-color: var(--ooh-red-hot);
}
a[data-attribute="mutedlink"] {
  color: var(--muted-red);
  text-decoration: none;
}
a[data-attribute="mutedlink"]:hover {
  color: var(--ooh-red-hot);
  font-weight: 400;
}


/* 
#####################################################
Container for the ugly mug
#####################################################
*/
.headshot-container{
  display: flex;
  align-items: flex-start;
}
.headshot-text {
  width: 65vw;
  margin-right: 5vw;
}
.headshot {
  width: 20vw;
}
img[data-attribute="headshot"] {
  max-width: 20vw;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}


/* 
#####################################################
Navbar
#####################################################
*/
.topbar {
  position: fixed;
  background-color: var(--subtle-white);
  top: 0;
  left: 0;
  width: 100%; 
  z-index: 2500;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px 20px;
  margin-bottom: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.title {
  font-family: "Kode Mono", monospace;
  text-decoration: none;
  word-break: break-all;
  display: flex;
  color: black;
  padding-right: 3vw;
  font-weight: 400;
  font-size: 1.8vw;
}
.navpointer {
  font-family: "Kode Mono", monospace;
  text-decoration: none;
  word-break: break-all;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-left: 3vw;
  padding-right: 3vw;
  padding-bottom: 2pt;
  color: black;
  font-weight: 280;
  font-size: 1.2vw;
}
.navpointer:hover {
  color: var(--ooh-red-hot);
}
.navpointer[attribute="active_page"] {
  color: var(--ooh-red-hot);
}


/* 
#####################################################
Footer
#####################################################
*/
.footer-container {
  position: fixed;
  display: flex;
  width: 100%; 
  z-index: 2500;
  left: 0;
  bottom: 0;
  background-color: var(--subtle-white);
}
.footer-elements{
  align-items: flex-end;
  width: 98%; 
  border-top: 1.5px solid #d3d3d3;
  padding-top: 10px 0;
  margin-left: 1%;
  margin-right: 1%;
}
.social-icons {
  display: flex;
  margin: 5px;
}
.social-icons svg {
  margin-right: 4px;
  width: 20pt;
  height: 20pt; 
  fill: #cccccc;
}
.social-icons div[data-attribute="linkedin"]:hover svg {
  fill: #0a66c2;
}
.social-icons div[data-attribute="x-twitter"]:hover svg {
  fill: black;
}
.social-icons div[data-attribute="github"]:hover svg {
  fill: black;
}


/* 
#####################################################
Contact Page
#####################################################
*/
.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
  text-align: center;
  font-family: "Kode Mono", monospace;
  color: rgb(150, 150, 150);
}


/* 
#####################################################
Personal Page
#####################################################
*/
a[data-attribute="honk-name"] {
  font-family: "Monoton", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.7vw;
  line-height: 1.2;
}  
a[data-attribute="honk-nav"] {
  font-family: "Monoton", sans-serif;
  color: var(--ooh-red-hot);
  letter-spacing: 0.08em;
  font-size: 1.15vw;
  line-height: 1.15;
}
h1 {
  font-size: 18pt;
  font-family: "Monoton", sans-serif;
  font-weight: 400;
  color: var(--ooh-red-hot);
  letter-spacing: 0.06em;
  line-height: 1.25;
  margin-top: 10pt;
  margin-bottom: 6pt;
  padding-bottom: 2pt;
  border-bottom: 1.5px solid #d3d3d3;
}
.personal-page-heading {
  font-size: 16pt;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.35;
}
#map_container {
  display: flex;
  width: 100%;
  height: 70vh;
  margin-top: 10pt;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
#map_text_container {
  width: 30vw;
  align-items: center;
  justify-content: center;
  margin-left: 10pt;
}
#map_text {
  width: 30vw;
}
#map_text p {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}
#map_text em {
  color: var(--ooh-red-hot);
  font-style: bold;
  font-weight: 600;
}
#map_text .aside {
  margin-top: 6px;
  font-size: 14px;
  color: rgb(140,140,140);
  font-weight: 400;
}
#map_text span[data-attribute="highlight"] {
  color: var(--muted-red);
  font-weight: 500;
}
#map_interactive_container {
  height: 100%;
  width: calc(70vw - 20px);
  align-items: center;
  justify-content: center;
  margin-right: 10pt;
}
#travel_map {
  height: 100%;
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  overflow: hidden;
}
#travel_map .leaflet-tile {
  border: none !important;
  outline: none !important;
}
.map-marker-hitbox {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  line-height: 0;
}
.map-marker-hitbox::before {
  content: "";
  position: absolute;
  inset: 0;
}
.donut-icon::before {
  inset: -4px;
}
.muted-icon::before {
  inset: -2px;
}
.dark-donut-icon::before {
  inset: -5px;
}
.map-marker-hitbox svg {
  display: block;
}
.back-to-map-btn {
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  color: #EF9A9A;
  font-family: "Kode Mono", monospace;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.2s, color 0.2s;
}
.back-to-map-btn:hover {
  background: rgba(50, 50, 50, 0.95);
  color: #fff;
}
.back-button {
  animation: control-slide-in 0.3s ease-out;
}
.popup-content {
  margin: 0px;
}
.popup-title {
  margin-top: 2px;
  margin-bottom: 2px;
  font-size: 14px;
  color: #EF9A9A;
  font-weight: bold;
}
.smart-popup-body .popup-blurb {
  margin: 0px;
  margin-bottom: 10px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
}
#popup-hr {
  border: none;
  height: 1px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.12);
}
.popup-image-container{
  display: flex;
  justify-content: center;
  align-items: center;
}
.popup-image {
  margin: 10px;
  max-height: 25vh;
  max-width: 25vw;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.popup-image:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Smart popup */
.smart-popup {
  position: absolute;
  z-index: 800;
  pointer-events: auto;
  max-width: 280px;
  transition: opacity 0.15s ease;
}
.smart-popup-body {
  background: rgba(22, 22, 28, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  padding: 8px 12px;
}
.smart-popup-caret {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(22, 22, 28, 0.92);
  transform: rotate(45deg);
  pointer-events: none;
}
.smart-popup[data-dir="right"] .smart-popup-caret {
  left: -5px;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-top: none;
  border-right: none;
}
.smart-popup[data-dir="left"] .smart-popup-caret {
  right: -5px;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  border-left: none;
}
.smart-popup[data-dir="top"] .smart-popup-caret {
  bottom: -5px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  border-top: none;
  border-left: none;
}
.smart-popup[data-dir="bottom"] .smart-popup-caret {
  top: -5px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  border-right: none;
}

/* Marker transitions and pulse */
.leaflet-marker-icon {
  transition: opacity 0.4s ease-out;
}
@keyframes marker-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 154, 154, 0.5); }
  100% { box-shadow: 0 0 0 14px rgba(239, 154, 154, 0); }
}
.map-marker-hitbox:hover {
  animation: marker-pulse 1.2s ease-out infinite;
  border-radius: 50%;
}

/* Photo lightbox */
.map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.map-lightbox.active {
  opacity: 1;
}
.map-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.3s ease;
  pointer-events: none;
}
.map-lightbox.active img {
  transform: scale(1);
}

/* Stop navigation control */
.stop-nav {
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  animation: control-slide-up 0.3s ease-out;
}
.stop-nav-btn {
  background: none;
  border: none;
  color: #EF9A9A;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.stop-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.stop-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.stop-nav-btn:disabled:hover {
  background: none;
  color: #EF9A9A;
}
.stop-nav-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.stop-nav-name {
  color: #EF9A9A;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stop-nav-counter {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-family: "Kode Mono", monospace;
}

/* Control entrance animations */
@keyframes control-slide-in {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes control-slide-up {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 
-----------------------
Dino Running Animation
-----------------------
*/
.dino-container {
  display: flex;
  width: 98%; 
  border-top: 1.5px solid #d3d3d3;
  padding-top: 10px 0;
  margin-left: 1%;
  margin-right: 1%;
  height: 8vh;
}
.dino-run {
  height: 50px;
  width: 50px;
  display: flex;
  position: relative;

  background: url("/assets/dino/DinoSprite.png");
  filter: drop-shadow(0px 0px 2px rgb(150,150,150));

  animation-name: dinoSprite;
  animation-duration: 1200ms;
  animation-timing-function: steps(12);
  animation-iteration-count: infinite;
}
.meteor {
  height: 35px;
  width: 35px;
  display: flex;
  position: relative;

  background: url("/assets/dino/MeteorSprite.png");
  filter: drop-shadow(0px 0px 4px rgb(150,150,150));

  animation-name: meteorSprite;
  animation-duration: 300ms;
  animation-timing-function: steps(2);
  animation-iteration-count: infinite;
}
/* Running animation */
@keyframes dinoSprite {
  from { background-position: 0px; }
  to { background-position: -600px;}
}
/* Meteor animation */
@keyframes meteorSprite {
  from { background-position: 0px; }
  to { background-position: -70px; }
}
