/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
}

* {
    image-rendering: pixelated;
  }
  
  body {
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    background: #00095e;
    color: #fff;
    font-family: 'DepartureMono', monospace;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    padding: 25px 25px;
  }

  .header-nav a, .footer a {
    border: none;
    text-decoration: none;
  }
  
  .header-nav a:hover, .footer a:hover {
    border: none;
    background-color: transparent;
    opacity: 0.7;
  }

/* Font Face */
@font-face {
    font-family: 'DepartureMono';
    src: url('../DepartureMono-1.422/DepartureMono-Regular.woff2') format('woff2'),
         url('../DepartureMono-1.422/DepartureMono-Regular.woff') format('woff'),
         url('../DepartureMono-1.422/DepartureMono-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base styles */
body {
    font-size: 16px;
    color: #fff;
    background-color: #00095e;
    padding: 25px 25px;
    max-width: 800px;
    margin: 0 auto;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
    font-size: 1.4rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
    font-family: 'DepartureMono', monospace;
    letter-spacing: 2px;
    position: relative;
    display: block;
    text-transform: lowercase;
    image-rendering: pixelated;
}

h2 {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    font-family: 'DepartureMono', monospace;
    letter-spacing: 1px;
    text-transform: lowercase;
}

h3 {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0.25rem;
    font-family: 'DepartureMono', monospace;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 1.2rem;
    font-size: 0.78rem;
    font-family: 'DepartureMono', monospace;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: none;
    opacity: 0.8;
    border-bottom: 1px solid #fff;
}

/* Portfolio item links */
.portfolio-item a {
    text-decoration: none;
    border-bottom: none;
}

.portfolio-item a:hover {
    opacity: 0.8;
    border-bottom: none;
}

.portfolio-item h3 a {
    text-decoration: none;
    border-bottom: none;
}

.portfolio-item h3 a:hover {
    opacity: 0.8;
    border-bottom: none;
}

/* Navigation */
.navigation {
    margin-bottom: 2rem;
    display: flex;
    gap: 10px;
}

.navigation a {
    text-decoration: none;
    border-bottom: none;
    padding: 0 5px;
}

.navigation a:hover {
    opacity: 0.7;
}

/* Header navigation */
.header-nav {
    display: flex;
    gap: 25px;
    margin-bottom: 15px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    justify-content: flex-end;
}

.header-nav a {
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 2px 0;
    opacity: 0.9;
}

.header-nav a::before {
    content: "[";
    margin-right: 2px;
}

.header-nav a::after {
    content: "]";
    margin-left: 2px;
}

.header-nav a:hover {
    border-color: transparent;
    background-color: transparent;
    opacity: 0.7;
}

/* Content sections */
.content {
    margin-top: 2rem;
    position: relative;
}

.content p {
    max-width: 95%;
}

.content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.content li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.5;
}

.content li::before {
    content: "∙";
    position: absolute;
    left: 0;
    color: #b8c1ec;
}

/* Location */
.location {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
    display: block;
    padding: 2px 5px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 0.5rem;
}

/* Portfolio items */
.portfolio-item {
    margin-bottom: 2rem;
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-left-color 0.3s ease;
}

.portfolio-item:hover {
    border-left-color: rgba(255, 255, 255, 0.4);
}

/* Reset the general paragraph styling for portfolio items */
.portfolio-item p {
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Description paragraphs */
.description {
    color: #8c9fc5;
    font-size: 0.9rem;
}

/* Last paragraph - investment info */
.portfolio-item p:last-child {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Portfolio sections */
.portfolio-section {
    margin-bottom: 3rem;
}

.portfolio-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    letter-spacing: 1px;
}

.portfolio-item h3 {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.portfolio-section h2::before, 
.team-member h2::before {
    content: '// ';
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9em;
}

/* Team members */
.team-member {
    margin-bottom: 2rem;
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-left-color 0.3s ease;
}

.team-member:hover {
    border-left-color: rgba(255, 255, 255, 0.4);
}

.team-member p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.team-member h3 {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.team-member .description {
    color: #8c9fc5;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.team-member .socials {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.team-member .socials a {
    display: inline-block;
    margin-right: 10px;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.team-member .socials a:hover {
    color: #fff;
    border: none;
}

/* Team sections */
.team-section {
    margin-bottom: 3rem;
}

.team-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    margin-top: 4rem;
    display: flex;
    gap: 15px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.footer a {
    border: none;
    padding: 3px 8px;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    image-rendering: crisp-edges;
}

.footer a:hover {
    border: none;
    background-color: transparent;
    opacity: 0.7;
}

/* Glitch effect base styles */
.title-wrapper {
    position: relative;
    margin-bottom: 1rem;
    width: fit-content;
}

.glitch {
    position: relative;
    display: inline-block;
    margin: 0;
    animation: none; /* Disable automatic animation */
}

/* Only apply glitch animations on hover */
.glitch:hover:before,
.glitch:hover:after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.glitch:hover:before {
    animation: glitch 0.5s cubic-bezier(.25, .46, .45, .94) both infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(4px);
}

.glitch:hover:after {
    animation: glitch 0.5s cubic-bezier(.25, .46, .45, .94) reverse both infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(-4px);
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

section, .container {
    margin-bottom: 2.5rem;
}

/* Bio sections */
h2 {
    font-size: 0.78rem;
    font-weight: normal;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: #b8c1ec;
}

.content p {
    margin-bottom: 0.5rem;
}

.content p br {
    content: "";
    display: block;
    margin-bottom: 0.3rem;
}

.location {
    font-size: 0.75rem;
    color: #b8c1ec;
    margin-bottom: 2rem;
}

/* New portfolio layout styles */
.investment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.investment-list li {
    margin-bottom: 1rem;
    font-size: 0.78rem;
    line-height: 1.5;
}

.investment-list strong {
    font-weight: normal;
}

.portfolio-note {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #b8c1ec;
}

.portfolio-note a {
    color: #b8c1ec;
    border-bottom: 1px solid rgba(184, 193, 236, 0.5);
}

.portfolio-section h2 {
    font-size: 0.78rem;
    font-weight: normal;
    margin: 2rem 0 1rem;
    color: #b8c1ec;
}

/* Path links styling */
.path-link {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    font-family: "DepartureMono", monospace;
    font-size: 0.75rem;
    color: #b8c1ec;
    background: rgba(184, 193, 236, 0.1);
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.path-link:hover {
    background: rgba(184, 193, 236, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .navigation {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 700px) {
  body {
    padding: 25px !important;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .container {
    padding: 20px !important;
    margin: 28px auto 0 auto !important;
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
  }
  .header-nav {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.97rem;
    justify-content: center;
    padding: 4px 0;
  }
  .dropdown-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .favorites-container {
    width: 100px;
    height: 30px;
    margin-left: 4px;
  }
  .favorites-btn {
    width: 100px;
    height: 30px;
    font-size: 0.93rem;
  }
  .book-item {
    font-size: 0.88rem;
    line-height: 1.4;
  }
}

/* === BOOKSHELF PAGE CUSTOM STYLES === */
.books-list {
  margin-top: 16px;
}
.book-item {
  margin-bottom: 4px;
  font-size: 0.78rem;
  line-height: 1.5;
  font-family: 'DepartureMono', monospace;
  color: #fff;
}
.book-item strong {
  font-weight: 700;
}
.book-item em, .book-item .by {
  font-style: normal;
  color: #b8c1ec;
  font-size: 0.93em;
  letter-spacing: 0.2px;
}

.dropdown-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.dropdown-row label {
  margin-right: 6px;
  font-size: 1rem;
  color: #b8c1ec;
  letter-spacing: 1px;
}
select {
  font-family: inherit;
  font-size: 1rem;
  background: #181f4b;
  color: #b8c1ec;
  border: 1px solid #b8c1ec;
  padding: 4px 12px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}
select:focus {
  border-color: #6ee7b7;
}
.favorites-container {
  display: inline-block;
  position: relative;
  margin-left: 8px;
  width: 112px;
  height: 32px;
  vertical-align: middle;
}
.favorites-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  position: absolute;
  left: 0;
  top: 0;
  width: 112px;
  height: 32px;
  background: #181f4b;
  color: #b8c1ec;
  border: 1px solid #b8c1ec;
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.favorites-btn.fav-selected {
  opacity: 1 !important;
  pointer-events: auto;
  background: #1d2766;
  color: #6ee7b7;
  border-color: #6ee7b7;
  cursor: pointer;
}
.favorites-container:hover .favorites-btn:not(.fav-selected) {
  opacity: 1;
  pointer-events: auto;
}
.favorites-btn:not(.fav-selected) {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.favorites-btn .check {
  margin-left: 6px;
  color: #6ee7b7;
  font-weight: bold;
  font-size: 1.1em;
}

.container {
    max-width: 520px;
    margin: 1.5rem auto;
    padding: 0 15px;
    background: rgba(0, 9, 94, 0.4);
    border-radius: 4px;
}

/* Text variations */
.content > p:first-of-type {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.portfolio-item:nth-child(odd) h3 {
    color: rgba(255, 255, 255, 0.95);
}

.portfolio-item:nth-child(even) h3 {
    color: rgba(255, 255, 255, 0.85);
}

.team-member:nth-child(odd) h2 {
    color: rgba(255, 255, 255, 0.95);
}

.team-member:nth-child(even) h2 {
    color: rgba(255, 255, 255, 0.85);
}

/* Pixelated text effect for h1 */
@media screen and (min-width: 768px) {
    h1 {
        image-rendering: pixelated;
        text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
    }
}

h1 {
    text-shadow: 0.5px 0.5px 0 rgba(255,255,255,0.3);
}
