body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Rubik', system-ui, sans-serif;
    font-weight: 400;
    margin: 0;
    line-height: 1.6;
    text-align: justify;
}

header {
    text-align: center;
    position: relative;
}

header a {
  text-decoration: none;
}

header h1 {
    margin-bottom: 0.3rem;
    font-size: 2.2rem;
    letter-spacing: 1px;
    font-weight: 900;
}

header p {
    margin: 0.3rem 0;
}

.email {
    font-size: 0.90rem;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.5);
    margin-top: -0.3rem;
}

.header-nav {
    margin-top: 1.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0;
}

.header-nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-nav a {
    text-decoration: none;
    font-weight: 500;
}

.header-nav a:hover {
    text-decoration: underline;
}

main {
    flex: 1;
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.pfp {
    float: left;
    width: 160px;
    height: auto;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 25px;
}

.about::after {
    content: "";
    display: block;
    clear: both;
}

.projects h2 {
  margin-bottom: 0;
}

.project-date {
  margin-top: 0; 
  font-size: smaller;
}

.project-card {
  display: flow-root;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  margin-bottom: 0;
}

.project-card a, 
.project-card h3 {
  margin: 0;
  padding: 0;
}

.project-card a {
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

.project-card img {
  float: left;
  width: 200px;
  height: auto;
  margin: 1rem 1rem 0.5rem 0;
  border-radius: 8px;
  display: block;
}

.project-card:nth-child(even) img {
  float: right;
  margin: 1rem 0 0.5rem 1rem;
}

.project-card:last-child {
  border-bottom: none;  
}

.links {
    text-align: center;
}

.link-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
  min-width: 120px;
  justify-content: center;
}

.card img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

.card:hover {
  background-color: rgba(128, 128, 255, 0.3);
  transform: translateY(-2px);
}

footer {
    text-align: center;
    font-size: 0.9rem;
}
