:root {
  --accent-color: #a773c1;
  --accent-gradient: linear-gradient(135deg, #818cf8 0%, #b388ff 100%);
  --accent-color-dim: rgba(129, 140, 248, 0.75);
}

html {
  font-size: 14px;
}

body {
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  background-color: #121212;
  color: #fff;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

* {
  box-sizing: border-box;
}

ul {
  list-style: none;
}

.container {
  max-width: 56.25rem;
  display: flex;
  justify-content: center;
  margin: 4rem 2rem;
}

.center {
  display: flex;
  justify-content: center;
}

.main {
  min-height: 100vh;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1 {
  line-height: 1.5;
}

.imageWrapper {
  border-radius: 50%;
  overflow: hidden;
  height: 100px;
  width: 100px;
  min-height: 100px;
  min-width: 100px;
}

.leftPad {
  padding-left: 1em;
}

.code {
  background: #fafafa;
  border-radius: 5px;
  padding: 0.75rem;
  font-size: 1.1rem;
  font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
    Bitstream Vera Sans Mono, Courier New, monospace;
}

.card {
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
  margin-left: 0;
  text-align: left;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
}

.cardTop {
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  transition: transform 0.5s;
}

.clipImg {
  transition: transform 0.5s;
}

.clipImg:hover {
  transform: scale(1.2);
}

.aboutSection {
  width: 100%;
}

.eduSection h4 {
  color: var(--accent-color-dim);
}

.eduSection .degree {
  margin: 0.5rem 0 1rem 0;
  color: #ffffff99;
}

.eduSection p {
  margin: 0;
  line-height: 1.5;
}

.interestsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.workSection {
  display: flex;
}

.workSection ul {
  list-style: square;
  /* padding-left: 10px; */
}

.workSection ul li {
  line-height: 1.5;
}

.workButtons {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  flex-shrink: 0;
  margin-right: 3em;
}

button.workButton {
  text-align: left;
  border: none;
  background: none;
  color: white;
  cursor: pointer;
  border-left: 4px solid #848486;
  padding: 20px 10px;
  font-size: large;
  font-weight: 600;
}

button.workButtonActive {
  text-align: left;
  border: none;
  background: none;
  color: hsla(196, 61%, 58%, 0.75);
  cursor: pointer;
  border-left: 4px solid hsla(196, 61%, 58%, 0.75);
  padding: 20px 10px;
  font-size: large;
  font-weight: 600;
}

.skillCategory h5 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.skillGrid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 1.2em;
}

.skill {
  padding-bottom: 0.25em;
  font-weight: 500;
  border-bottom: 2px solid var(--accent-color);
}

.container h1 {
  border-bottom: 3px solid var(--accent-color);
}

.headerFlex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.headerLeft {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.headerLeft h1 {
  margin-top: 5px;
  margin-bottom: 0;
}

.headerRight {
  text-align: right;
  display: flex;
  flex-direction: column;
  /* gap: 0.5rem; */
}

.socialLinks {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.socialLinks a {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.socialLinks a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .headerFlex {
    flex-direction: column;
    align-items: start;
    gap: 2rem;
  }

  .headerLeft {
    align-items: start;
  }

  .headerRight {
    text-align: start;
    align-items: start;
  }
}

.headerRight h4 {
  margin: 0;
  font-size: 1rem;
}

.headerRight h4:not(:last-of-type) {
  margin-bottom: 0.5rem;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.work-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.work-title {
  font-size: 1rem;
  font-weight: 500;
}
.company {
  color: #848486;
  font-weight: 400;
  font-size: 1rem;
}

.dates {
  color: #848486;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-item {
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-title-group h3 {
  margin: 0;
  /* color: var(--accent-color-dim); */
}

.project-link {
  cursor: pointer;
}

.project-item p {
  margin: 0;
  line-height: 1.5;
  color: #ffffffcc;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.edu-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.school {
  font-weight: 600;
}

.degree {
  font-weight: normal;
}

.gpa {
  color: #848486;
}

.project-header a {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.project-header a:hover {
  opacity: 1;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background-image: var(--accent-gradient);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #848486 transparent;
}

@media (max-width: 768px) {
  .work-header {
    flex-direction: column;
  }

  .work-header .dates {
    color: #848486;
    font-size: 0.9rem;
  }

  .work-title-group {
    display: flex;
    flex-direction: row;
    align-items: baseline;
  }

  .edu-title-group {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
}

/* Audio Player Styles */
.audio-player {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: transparent;
}

.audio-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: flex-end;
}

.audio-btn {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s ease;
  padding: 0;
}

.audio-btn:hover {
  background: rgba(129, 140, 248, 0.1);
  transform: scale(1.03);
}

.audio-btn:active,
.audio-btn.playing {
  transform: scale(0.97);
  background: rgba(129, 140, 248, 0.15);
}

.waveform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Audio Controls Styling */
.audio-controls {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  background: rgba(20, 20, 30, 0.8);
  border-radius: 8px;
  border: 1px solid var(--accent-color);
  width: 300px;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  align-self: flex-end;
}

.audio-controls.active {
  display: block;
}

.slider-group {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
}

.slider-group label {
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: var(--accent-color);
}

.audio-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #333340;
  outline: none;
}

.audio-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  transition: all 0.2s;
}

.audio-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.audio-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background-image: var(--accent-gradient);
}

.audio-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background-image: var(--accent-gradient);
}

.knob-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ff0000;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.youtube-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.track-link {
  text-decoration: none;
}

/* Style for the info link (external link button) */
.info-link {
  display: inline-flex; /* Align icon vertically */
  align-items: center;
  justify-content: center;
  width: 28px; /* Match other audio buttons */
  height: 28px; /* Match other audio buttons */
  border: 1px solid var(--accent-color); /* Match other audio buttons */
  border-radius: 50%; /* Make it circular */
  padding: 0; /* Reset padding */
  margin-left: 5px; /* Space from other buttons */
  font-size: 1.1em; /* Emoji size */
  line-height: 1; /* Ensure vertical centering */
  text-decoration: none;
  color: inherit; /* Use default text color */
  opacity: 0.8; /* Slightly less opaque */
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  position: relative; /* Needed for pseudo-element positioning */
}

.info-link::after {
  content: "↗"; /* Unicode external link arrow */
  position: absolute;
  top: -2px; /* Adjust position */
  right: -2px; /* Adjust position */
  font-size: 0.6em;
  color: var(--accent-color); /* Match border color */
  background-color: rgba(
    255,
    255,
    255,
    0.9
  ); /* Slight background for visibility */
  border-radius: 50%;
  padding: 1px 2px;
  line-height: 1;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.2s ease;
}

.info-link:hover {
  background-color: rgba(129, 140, 248, 0.1); /* Match audio-btn hover */
  opacity: 1;
  transform: scale(1.1); /* Slightly larger scale effect */
  /* box-shadow removed */
}

.info-link:hover::after {
  opacity: 1; /* Show arrow on hover */
}
