.mx-project {
    position: absolute;
}

.project {
    position: absolute
}

.goDown {
    padding-top: 400px;
    padding-left: 20px;
}

.home-words {
    background-color: transparent;
    border-radius: 20px;
    padding: 40px;
    text-align: left;
    max-width: 80em;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 200px;
}

.home-headshot {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid #151515;
    flex-shrink: 0;
}

.home-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Consistent header styling */
header {
    background-color: #151515;
    padding: 15px 0;
    border-bottom: 2px solid #a63d40;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 1000;
}

header .cover-container {
    max-width: 80em;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.nav-masthead {
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

/* Add padding to body to account for fixed header */
body {
    padding-top: 100px;
    background-color: #f5f5f5;
}

.nav-masthead .nav-link {
    color: #999 !important;
    font-size: 1.1rem;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: color 0.3s ease;
    text-decoration: none;
    border-bottom: none !important;
}

.nav-masthead .nav-link span {
    position: relative;
    display: inline-block;
}

.nav-masthead .nav-link span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #a63d40;
    transition: width 0.3s ease;
}

.nav-masthead .nav-link:hover span::after {
    width: 100%;
}

.nav-masthead .nav-link:hover {
    color: #f0f0f0 !important;
}

.nav-masthead .active {
    color: #f0f0f0 !important;
    border-bottom: none !important;
}

.nav-masthead .active span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #a63d40;
}

/* Home page specific - keep content at top */
.home {
    margin: 0 !important;
    padding-top: 100px !important;
}

.home .cover-container {
    max-width: 80em !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.home-hi {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #151515;
}

.home-words .lead {
    font-size: 1.5rem;
    color: #333;
    max-width: 100%;
    margin: 0;
}

.home-about-section {
    text-align: left;
    padding-top: 100px;
    padding-bottom: 100px;
    padding-left: 248px;
}

.home-about {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #151515;
}

.home-about-text {
    font-size: 1.2rem;
    color: #333;
    max-width: 100%;
    margin: 0;
    margin-bottom: 15px;
}

.craic-link {
    color: #666;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.craic-link:hover {
    color: #888;
}

.craic-tooltip {
    visibility: hidden;
    width: 300px;
    background-color: #151515;
    color: #f5f5f5;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    font-weight: normal;
    text-decoration: none;
}

.craic-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #151515 transparent transparent transparent;
}

.craic-link:hover .craic-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Station marker styling from MBTA RROPS */
.station-marker {
  position: relative;
  display: inline-block;
  overflow: visible;
  padding: 0;
  margin: 0;
}

.station-circle {
  position: absolute;
  border-radius: 50%;
  background: white;
  border: 3px solid rgb(128, 39, 108);
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}

.train-icon {
  position: absolute;
  z-index: 2;
  display: block;
  transform: translate(-50%, -50%);
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
  pointer-events: auto;
}

.train-icon img {
  pointer-events: none;
}

/* Match default Leaflet popup styling (used by MBTA RROPS train popups) */
.train-popup {
  position: absolute;
  z-index: 1000;
  display: none;
  pointer-events: none;
  transform: translateX(-50%);
  text-align: left;
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.train-popup.visible {
  display: block;
}

.train-popup-wrapper {
  background: white;
  color: #333;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
  padding: 1px;
  text-align: left;
}

.train-popup-content {
  margin: 13px 24px 13px 20px;
  line-height: 1.3;
  font-size: 13px;
  font-weight: 400;
  color: #333;
  white-space: nowrap;
}

.train-popup-tip-container {
  width: 40px;
  height: 17px;
  position: absolute;
  left: 50%;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}

.train-popup-tip {
  width: 17px;
  height: 17px;
  padding: 1px;
  margin: -10px auto 0 auto;
  transform: rotate(45deg);
  background: white;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

.train-popup-close-button {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 4px 0 0;
  border: none;
  text-align: center;
  width: 24px;
  height: 14px;
  font: 16px/14px "Helvetica Neue", Arial, Helvetica, sans-serif;
  color: #757575;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1001;
}

.train-popup-close-button:hover {
  color: #585858;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.project-external-link {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.project-external-link img {
  width: 16px;
  height: 16px;
}

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  font-weight: 500;
}

.project-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.project-description {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

.project-card-link {
  text-decoration: none;
  color: inherit;
}

.project-card-link:hover .project-card {
  transform: translateY(-4px);
}

.project-card {
  transition: transform 0.2s ease;
}

.experience-item, .education-item {
  margin-bottom: 24px;
}

.experience-title, .education-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #333;
}

.experience-location, .education-location {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
  font-style: italic;
}

.experience-details {
  margin: 0;
  padding-left: 20px;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.experience-details li {
  margin-bottom: 4px;
}

.education-degree {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  margin: 8px 0;
  line-height: 1.5;
}

.education-coursework {
  font-size: 14px;
  color: #555;
  margin: 4px 0;
  line-height: 1.5;
  padding-left: 20px;
}

.education-coursework li {
  margin-bottom: 4px;
}

.contact-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 24px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.contact-link:hover {
  background-color: #f5f5f5;
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  border-radius: 8px;
  color: #333;
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 14px;
  color: #333;
}

.coursework-container {
  margin-top: 24px;
}

.semester-block {
  margin-bottom: 32px;
  text-align: left;
}

.semester-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
}

.course-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.course-item {
  font-size: 1.1rem;
  color: #555;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: baseline;
}

.course-number {
  min-width: 80px;
  font-weight: 600;
  color: #333;
  margin-right: 12px;
}

.course-name {
  flex: 1;
}

.course-item:last-child {
  border-bottom: none;
}

.station-label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #111;
  text-align: left;
  white-space: nowrap;
  margin: 0;
  background: rgba(255, 255, 255, 0.96);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Snaking line container */
.snaking-line-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.snaking-line {
  position: absolute;
  background: rgb(128, 39, 108);
  border-radius: 2px;
}

.snaking-line.horizontal {
  height: 3px;
}

.snaking-line.vertical {
  width: 3px;
}

.snaking-stop {
  position: absolute;
  z-index: 1;
}

.project-container {
    position: absolute;
    padding-right: 40px;
    padding-top: 100px;
    height: 75%;
}

.project-navbar {
    padding-bottom: 40px;
}

.h-35 {
    height: 35%;
}

.project-text {
    color: rgb(38, 38, 38);
}

.contact-buttons {
    padding-bottom: 500px;
}

.coursework-footer {
    background-color: lightgray;
}

.stay {
    position: sticky;
    width: 100%;
}

.footer {
    padding: 30px;
    position: fixed;
    bottom: 0px;
}

.copy {
    padding-bottom: 50px;
    left: 50%;
    right: 50%;
}

.h-10 {
    height: 8%;
}

.white {
    background-color: white;
}