@font-face {
  font-family: 'Evans Narrow';
  src: url('src/fonts/EvansNarrow-Book.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  unicode-range: U+0000-002F, U+003A-FFFF;
}

:root {
  --bg-color: #000000;
  --text-color: rgba(255, 255, 255, 0.65);
  --highlight-color: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.5);
  --font-main: "Evans Narrow", "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 500px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-color);
}

body {
  background-color: transparent;
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 2rem;
  font-size: 15px;
  letter-spacing: -0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-x: hidden;
}

#dot-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Profile Header */
.profile {
  margin-bottom: 2rem;
}

.profile h1 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--highlight-color);
}

.profile .title {
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  padding-right: 0.2em;
  
  /* Shimmer Effect */
  background: linear-gradient(
    to left, 
    rgba(255, 255, 255, 0.65) 45%, 
    #fff 50%, 
    rgba(255, 255, 255, 0.65) 55%
  );
  background-size: 250% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 5s linear infinite;
  display: inline-block;
}

@keyframes shine {
  0% {
    background-position: 100% center;
  }
  60% { 
    background-position: 0% center;
  }
  100% { 
    background-position: 0% center;
  }
}

/* Bio Section */
.bio {
  margin-bottom: 3rem;
}

.bio p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

.bio a {
  color: var(--highlight-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.bio strong a {
  text-decoration: none;
  font-style: italic;
  font-weight: normal;
  position: relative;
  display: inline-block;
}

.bio strong a::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--highlight-color);
  transition: width 0.15s ease;
}

.bio strong a:hover::after {
  width: 100%;
}

.bio a:hover {
  opacity: 0.8;
}

.bio strong, .bio strong a {
  font-weight: normal;
  color: var(--highlight-color);
}

/* Experience Section */
.experience {
  margin-bottom: 3rem;
}

.experience ul {
  list-style: none;
  padding: 0;
}

.experience-heading {
  margin-bottom: 0.8rem;
}

.experience-heading span {
  color: var(--text-color);
  font-weight: 600;
}

.experience-item {
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-color);
  transition: opacity 0.3s ease, padding-left 0.3s ease;
}

/* Diamond added to items */
.experience-item::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: -0.1em;
  color: var(--text-color);
  font-size: 1.2em;
  opacity: 0.8;
  transition: transform 0.3s ease, left 0.3s ease;
  display: inline-block;
  transform: rotate(0deg);
  transform-origin: center;
}

.experience-item:hover::before {
  transform: rotate(45deg);
  left: 0.2rem;
}

.experience-item:hover {
  padding-left: 1.7rem;
}

/* Link styling within experience items */
.experience-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.experience-item a:hover {
  color: var(--highlight-color);
}

.experience-item strong {
  font-style: italic;
  font-weight: normal;
  color: var(--highlight-color);
  margin-right: 0.2em;
}

.experience-item strong span[style*="font-style: normal"] {
  font-weight: 500;
}

/* Hover Effect */
.experience ul:has(li:hover) li:not(:hover) {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

/* Footer */
.footer {
  margin-top: 3rem;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-date {
  margin-bottom: 0.2rem;
  color: var(--text-muted);
}

.footer p {
  line-height: 1.5;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff;
}

.footer-social-link {
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-social-link:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

.footer-date a,
.footer-links a[href^="mailto:"] {
  transition: color 0.2s ease;
}

.footer-date a:hover,
.footer-links a[href^="mailto:"]:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

.footer-text {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1.5rem;
    justify-content: flex-start;
    padding-top: 3rem;
  }
  
  .container {
    padding-top: 0;
  }
  
  .bio p {
    text-align: left;
  }
  
  .footer-date,
  .footer-links {
    flex-direction: column !important;
    gap: 0.3rem;
  }
  
  .footer-date span:last-child,
  .footer-links span:last-child {
    margin-top: 0.2rem;
  }
}
