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

:root {
  --bg: #0a0e1a;
  --surface: #131826;
  --border: #242c3d;
  --max-width: 770px;
}

body {
  background-color: #0A0E1AFF;
  color: #E8ECF3FF;
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.6;
  font-size: 15px;
}

main {
  max-width: 770px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 1.25rem 0 2.75rem;
}

#name {
  padding-top: 6rem;
}

h1, h2, h3 {
  font-weight: 500;
  color: #E8ECF3FF;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

p {
  color: #8B93A5FF;
  font-size: 0.95rem;
}

.avatar img, .hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.hero-text h1 {
  font-size: 2.7rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: .95rem;
  max-width: 560px;
}

.hero-avatar {
  flex-shrink: 0;
  position: relative;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background-color: #1BBADCFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0A0E1AFF;
}

.hero-avatar::before {
  content: "";
  position: absolute;
  inset: -1.5rem;
  border-radius: 50%;
}

.entry {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #131826FF
}

.entry:last-child {border-bottom: none;}

.avatar {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #131826FF;
  border: 1px solid #242C3DFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: #E8ECF3FF;
}

.entry-details {flex-grow: 1;}

.entry-details h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.entry-details p {font-size: 0.85rem;}

.entry-date {
  flex-shrink: 0;
  color: #8B93A5FF;
  font-size: 0.8rem;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skills-list li {
  background-color: #131826FF;
  border: 1px solid #242C3DFF;
  color: #8B93A5FF;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.skills-list li:hover {
  transform: scale(1.08);
  background-color: #1BBADCFF;
  color: #0A0E1AFF;
  border-color: #1BBADCFF;
  cursor: default;
}

.skills-group {margin-bottom: 2rem;}

.skills-group:last-child {margin-bottom: 0;}

.skills-group h3 {
  font-size: 0.9rem;
  color: #8B93A5FF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.entry-description {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  max-width: 600px;
}

.project-card {
  background-color: #131826FF;
  border: 1px solid #242C3DFF;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.project-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.project-card p {
  font-size: 0.85rem;
}

.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0;
}

.project-card .tags span {
  background-color: #0A0E1AFF;
  border: 1px solid #242C3DFF;
  color: #8B93A5FF;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.project-link {
  color: #1BBADCFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.private-repo {
  color: lightgrey;
  font-style: italic;
  font-size: 0.85rem;
}

.project-link:hover {text-decoration: underline;}

#contact {text-align: center;}
#contactfr {font-size: 2.5em;}

#personal-email {color: #fb8200}
#school-email {color: #84edf2}
#phone {color: lightgrey}

#personal-email, #school-email {
  text-decoration: none;
  cursor: pointer;
}
#personal-email:hover, #school-email:hover:hover {text-decoration: underline;}

.contact-emails {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.floating-nav {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.8rem;
  padding: 1.1rem 1.8rem;
  background-color: #131826B3;
  border: 1px solid #242C3DFF;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.floating-nav a {
  position: relative;
  color: #8B93A5FF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.floating-nav a:hover {color: #1BBADCFF;}

.floating-nav svg {
  width: 1.4rem;
  height: 1.4rem;
}

.nav-tooltip {
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: #131826FF;
  border: 1px solid #242C3DFF;
  color: #E8ECF3FF;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-nav a:hover .nav-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

footer {
  text-align: center;
  padding: 2.5rem 0 8rem;
  color: #8B93A5FF;
  font-size: 0.8rem;
}