* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  font-style: italic;
/*  color: #D0D0D0;*/
  color: white;
  scroll-padding-top: 120px;
}

/*Prevent rubberband effect with trackpad scroll*/
html {
  overscroll-behavior: none;
}

:root {
/*  --content-width: min(60%, 1200px);*/
  --content-width: min(70%, 1200px);
/*  --content-width: min(80%, 1600px);*/
}

body {
/*  min-height: 100vh;*/
  min-height: 100lvh;
  display: flex;
  flex-direction: column;
  background: #000000;
}

h1 {
/*  font-size: 2em;*/
}

.introduction {
  width: 100%;
  position: relative;
  z-index: 100;
  margin-bottom: 50px;
}

.introduction h1 {
  font-size: 4em;
  text-align: center;
  font-family: 'Racing Sans One';
  font-style: normal;
  font-weight: 400;
}

.large-emphasis {
  font-family: 'Racing Sans One';
  font-style: normal;
  letter-spacing: 1.5px
}

.statement {
  width: 100%;
  position: relative;
  z-index: 100;
  margin-bottom: 100px;
/*  background: blue;*/
}

.title {
  position: relative;
  z-index: 100;
}

.title h1 {
  text-align: center
}

.bullet {
/*  font-size: 1.25em;*/
/*  font-size: 2em;*/
  font-size: 1.5em;
  text-wrap: pretty;
  text-align: center;
  color: #aaa;
}

.large-bullet {
  font-size: 2em;
  font-weight: bold;
}

.rainbow-glow {
  color: white;
  font-weight: 600;
  text-shadow:
    0 0 5px hsl(var(--hue) 100% 70% / 0.3),
    0 0 10px hsl(var(--hue) 100% 70% / 0.2);
  animation: hueShift 15s linear infinite;
}

.chrome .rainbow-glow,
.firefox .rainbow-glow {
  text-shadow:
    0 0 5px hsl(var(--hue) 100% 70% / 0.8),
    0 0 10px hsl(var(--hue) 100% 70% / 0.6);
}

@property --hue {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@keyframes hueShift {
  from { --hue: 0; }
  to   { --hue: 360; }
}

/* Navbar */
.navbar-wrapper {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 200;
  background: black;
}

.navbar {
  width: var(--content-width);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0px;
/*  background: blue;*/
}

.brand {
  display: flex;
  align-items: center;
  font-weight: bold;
}

.brand img {
  height: 70px;
  width: auto;
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  transition: background 0.1s ease
}

.hamburger:hover span {
/*  background: #C00000;*/
  background: #888;
}

.nav-links {
  display: flex;
  align-items: flex-end;
  text-align: right;
  font-size: 1.1em;
}

.nav-links a {
  text-decoration: none;
  font-weight: bold;
  font-size: 1.25em;
  padding: 12px 18px;
  margin-left: 10px;
  transition: color 0.1s ease
}

.nav-links a:hover {
/*  color: #C00000;*/
  color: #888;
}

/* Content */
.content {
  width: var(--content-width);
  margin: 150px auto 0px auto;
  /* padding: 20px; */
  flex: 1;
}

.sub_content {
  margin-top: 0px;
  display: flex;
  flex-direction: column;
}

.chip {
  width: 100%;
/*  background: green;*/
}

#top_chip {
  position: sticky;
/*  top: 50vh;*/
  top: 55lvh;
/*  background: red;*/
}

.firefox #top_chip {
  position: relative;
  top: 15vh;
}

.chrome #top_chip,
.safari #top_chip {
    position: sticky;
}

/*@media (max-height: 750px) {
  #top_chip {
    top: 60vh;
  }
}*/

#bottom_chip {
  width: 100%;
  margin-top: 60vh;
/*  background: yellow;*/
}

/*.contact {
  position: relative;
  z-index: 100;
}*/

/* Chip components */
.scene {
  height: 30vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.prism {
  position: relative;
  /* Visually prefer lines below */
  width: 250px;
  height: 15px;
  /*width: var(--prism-width);
  height: var(--prism-height);*/
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
}

.face {
  overflow: hidden;
  position: absolute;
  border: 1px solid rgba(200,200,200,0.4);
  background: rgba(50, 50, 50, 0.75);
  box-shadow:
    inset 0 0 30px rgba(255,255,255,0.15),
    0 0 20px rgba(100,100,100,0.4);

  transition: box-shadow 0.3s ease;
}

.face.merge-glow {
  box-shadow:
    inset 0 0 30px rgba(255,255,255,0.2),
    0 0 20px rgba(255,255,255,0.7);
    /*inset 0 0 30px rgba(255,255,255,0.15),
    0 0 20px rgba(100,100,100,0.4);*/

    background: rgba(50, 50, 50, 0.8);
}

:root {
  /* For proper image scale: depth / width = 0.7 */
  --prism-width: 400px;
  --prism-height: 15px;
  --prism-depth: 280px;

  /* Half values */
  --half-width: calc(var(--prism-width) / 2);
  --half-height: calc(var(--prism-height) / 2);
  --half-depth: calc(var(--prism-depth) / 2);
}

/* Front */
.front {
  width: var(--prism-width);
  height: var(--prism-height);
  transform: rotateY(0deg) translateZ(var(--half-depth));
}

/* Back */
.back {
  width: var(--prism-width);
  height: var(--prism-height);
  transform: rotateY(180deg) translateZ(var(--half-depth));
}

/* Top */
.top {
  width: var(--prism-width);
  height: var(--prism-depth);
  transform: rotateX(90deg) translateZ(var(--half-depth));
}

/* Bottom */
.bottom {
  width: var(--prism-width);
  height: var(--prism-depth);
  transform: rotateX(-90deg) translateZ(calc(var(--prism-height) - var(--half-depth)));
}

/* Right */
.right {
  width: var(--prism-depth);
  height: var(--prism-height);
  left: calc((var(--prism-width) - var(--prism-depth)) / 2);
  transform: rotateY(90deg) translateZ(var(--half-width));
}

/* Left */
.left {
  width: var(--prism-depth);
  height: var(--prism-height);
  left: calc((var(--prism-width) - var(--prism-depth)) / 2);
  transform: rotateY(-90deg) translateZ(var(--half-width));
}

/* The shader stuff */
.shader {
  overflow: hidden;
  backface-visibility: hidden; /* Forces GPU */
}

.shader-layer {
  position: absolute;
  background: black;
  mix-blend-mode: multiply;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
}

.specular {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
/*  min-height: 100lvh;*/
  min-height: 100%;
  max-width: 2048px;
  margin: 0 auto;
  mix-blend-mode: color-dodge;
  background-attachment: fixed;
  pointer-events: none;
  overflow: hidden;
}

.mask {
  mix-blend-mode: multiply;
}

/* Gradient definitions */
.gradient-one {
    background-image: linear-gradient(
      120deg,
      hsl(0, 0%, 0%) 0%,
      hsl(0, 0%, 0%) 20%,
      hsl(104, 26%, 83%) 50%,
      hsl(273, 22%, 25%) 80%,
      hsl(0, 0%, 0%) 100%
    );
  }

.gradient-two {
  background-image: linear-gradient(
    10deg,
    hsl(359, 60%, 40%) 10%,
    hsl(16, 60%, 45%) 25%,
    hsl(33, 60%, 50%) 30%,
    hsl(45, 60%, 55%) 35%,
    hsl(58, 60%, 60%) 40%,
    hsl(58, 60%, 65%) 45%,
    hsl(58, 60%, 70%) 50%,
    hsl(96, 60%, 65%) 55%,
    hsl(146, 60%, 60%) 60%,
    hsl(183, 60%, 55%) 65%,
    hsl(225, 60%, 50%) 70%,
    hsl(265, 60%, 45%) 75%,
    hsl(303, 60%, 40%) 80%
  );
}

/* Info cards */
.info-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 100px;
  padding: 20px;

  /*background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);*/
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
}

.tech-image {
  display: block;
  width: 100%;
  max-height: 200px;
  margin: 0 auto 20px;
  opacity: 1;
}

/* Grid */
.info-grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch; /* ensures equal height rows */
}

.info-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch; /* ensures equal height rows */
}

.info-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch; /* ensures equal height rows */
}

/* Cards */
.info-box {
  width: 100%;
  height: 100%; /* key for equal stretching */
  min-width: 0;

  padding: 32px;
  /*background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);*/
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;

  display: flex;
  flex-direction: column;
}

.info-header {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
/*  background: blue;*/
/*  gap: 10px;*/
}

.label {
  color: #888;
  margin-bottom: 10px;
  font-size: 1.25em;
/*  margin-bottom: 24px;*/
}

.icon {
  margin-left: auto;
  max-height: 50px;
  aspect-ratio: 1/1;
}

.headshot {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 20px;
  object-fit: cover;
}

.info-details {
  position: relative;
/*  background: red;*/
  z-index: 100;

  display: flex;
  flex-direction: column;
  flex: 1;
}

.info-box h2 {
  margin: 0 0 16px;
  color: #fff;
}

/* For button */
.info-box .button {
  margin-top: 20px;
  align-self: flex-start;
}

/* Links for linkedIn and Google Scholar */
.info-box h2 a {
  text-decoration: none;
}

.info-box h2 a i {
  transition: color 0.1s ease;
}

.info-box h2 a i:hover {
  color: #aaa;
}

.info-box h3 {
  margin: 0 0 16px;
  color: #fff;
}

.info-box p {
  margin: 0;
  color: #aaa;
  line-height: 1.5;
  font-size: 1.2em;
}

/* Tablet */
@media (max-width: 1400px) {
  .info-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 1100px) {
  .info-grid-2 {
    grid-template-columns: 1fr;
  }

  .info-grid-4 {
    grid-template-columns: 1fr;
  }

  .info-wrapper {
    padding: 20px;
  }
}

/* Email form */
form {
  position: relative;
  max-width: 700px;
  margin: 0 auto 50px;
  padding: 20px;
  background: #0a0a0a;
/*  border: 1px solid rgba(255, 255, 255, 0.08);*/
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px 20px 30px 30px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
/*  z-index: 100;*/

  display: flex;
  flex-direction: column;
  gap: 12px;

  font-family: Arial, sans-serif;
}

form label {
/*  color: #E0E0E0;*/
  color: #fff;
/*  font-size: 18px;*/
  font-size: 1.1em;
  font-weight: 600;
  margin-top: 6px;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 14px 16px;
  background: #111;
  color: #aaa;

/*  border: 1px solid rgba(255, 255, 255, 0.08);*/
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;

  font-size: 16px;
  outline: none;
  box-sizing: border-box;

  appearance: none;
  -webkit-appearance: none;
}

/* Button colors */
:root {
  /*--button-color-1: #7C3AED;
  --button-color-2: #4F46E5;*/
  --button-color-1: rgba(255, 255, 255, 0.2);
  --button-color-2: rgba(255, 255, 255, 0.2);

  --button-shadow-1: rgba(255, 255, 255, 0.1);
  --button-shadow-2: rgba(255, 255, 255, 0.3);
  --button-shadow-3: rgba(255, 255, 255, 0.2);
}

/*form select:focus,*/
form input:focus,
form textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
/*  box-shadow: 0 0 0 4px rgba(255, 255, 255 , 0.1);*/
/*  border-color: #7C3AED;*/
/*  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);*/
  background: #202020;
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

#message {
  margin-bottom: 10px;
}

button,
.button {
/*  margin-top: 10px;*/
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--button-color-1), var(--button-color-2)) border-box;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
  /* Prevent button from highlighting on mobile tap */
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  button:hover,
  .button:hover {
    /*transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);*/

    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
      0 0 0 4px var(--button-shadow-1),
      0 0 25px var(--button-shadow-2);
  }

  button:focus-visible,
  .button:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
      0 0 0 4px var(--button-shadow-1),
      0 0 25px var(--button-shadow-2);
  }
}

button:active,
.button:active {
  transform: scale(0.98);
}

/* Keep autofill styling dark + preserve focus glow */
form input:-webkit-autofill,
form input:-webkit-autofill:hover,
form input:-webkit-autofill:focus,
form textarea:-webkit-autofill,
form textarea:-webkit-autofill:hover,
form textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;

  /* Keep dark background */
  -webkit-box-shadow:
    0 0 0px 1000px #1a1a1a inset,
    0 0 0 4px var(--button-shadow-3);

  border: 1px solid var(--button-color-1);
}

/* Footer */
.footer-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.footer {
  width: var(--content-width);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 100;
}

.footer_left {
  width: 50%;
/*  background: red;*/
}

.footer_right {
  text-align: right;
  width: 50%;
/*  background: blue;*/
}

.footer_right p {
  text-decoration: none;
}

/* Navbar */
/*@media (max-width: 900px) {*/
@media (max-width: 1100px) {

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    margin: 0;
    padding: 15px 20px;
  }
}

/* Scale for medium screens */
@media (max-width: 1300px) {
  :root {
    --content-width: 80%;
  }

  /*.brand {
    width: 100%;
  }*/

  /*.footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer_right {
    width: 100%;
  }*/
}

/* Scale smaller screens */
@media (max-width: 630px) {
  :root {
    --content-width: 90%;
  }

  :root {
    /* 3.5 × viewport width */
    --prism-depth: calc(100vw / 2.25);

    /* preserve proportions from original dimensions */
    --prism-width: calc(var(--prism-depth) * 400 / 280);
    --prism-height: calc(var(--prism-depth) * 15 / 280);

    /* recompute halves */
    --half-width: calc(var(--prism-width) / 2);
    --half-height: calc(var(--prism-height) / 2);
    --half-depth: calc(var(--prism-depth) / 2);
  }
}

/* Change address from Philadelphia to Philly on mobile: */
.desktop-vis {
  display: block;
}

.mobile-vis {
  display: none;
}

/*@media (max-width: 450px), (max-height: 600px) {*/
@media (max-width: 450px) {  
  .desktop-vis {
    display: none;
  }

  .introduction h1 {
    /* Desktop: 4em */
    font-size: 3.5em;
  }

  .bullet {
    /* Desktop: 1.5em */
    font-size: 1.3em;
  }

  .large-bullet {
    /* Desktop: 2em */
    font-size: 1.8em;
  }

  .mobile-vis {
    display: block;
  }
}