:root {
    --primary-color: #ffd987;
    --secondary-color: #e7eef2;
    --highlight-color: #5b97bd;
    --bg-color: #152232;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Source Code Pro", monospace;
    transition-duration: 200ms;
}

body {
    background: var(--bg-color);
    color: var(--primary-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 72px;
    padding: 14px;
}

.darkerText {
    color: var(--secondary-color);
}

.hyperlinks {
    color: var(--secondary-color);
    text-decoration: none;
}

.hyperlinks:hover {
  color: var(--primary-color);
}

.projectName {
    color: var(--highlight-color);
    font-family: "Source Code Pro", monospace;
    font-size: x-large;
}

header,
main,
footer {
    max-width: 825px;
    margin: 0 auto;
    width: 100%;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer {
  color: var(--secondary-color);
  font-size: 10.5px;
  text-align: center;
  margin: 0;
}

.highlightFooter {
    color: var(--highlight-color);
    font-family: "Source Code Pro", monospace;
    font-weight: 600;
    font-style: normal;
    font-size: 10px;
}

footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 8px;
}

footer nav p.footer {
  margin: 0;
  align-items: center;
}

footer .darkerText{
  font-size: 24px;
  margin: -25px;
}

p {
    font-size: 1.05em;
}

h1 {
    font-family: "Source Code Pro", monospace;
    font-weight: 400;
    font-style: normal;
    font-size: xx-large;
    color: var(--secondary-color);
    text-decoration: none;
}

h2 {
    font-family: "Source Code Pro", monospace;
    font-weight: 300;
    font-style: normal;
    font-weight: bold;
    font-size: xx-large;
}

.aboutMe {
    color: var(--secondary-color);
    line-height: 1.5em;
    font-weight: 400;
    font-size: 16px;
    max-width: 600px;
}

.note {
  color: var(--primary-color);
  line-height: 1.5em;
  font-size: 13px;
  font-weight: 400;
  max-width: 600px;
}

.highlight {
    color: var(--highlight-color);
    font-family: "Source Code Pro", monospace;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    padding: 0.1em;
    border-radius: 2px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

header a {
    text-decoration: none;
}

nav {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 28px;
}

nav a {
    cursor: pointer;
    text-decoration: none;
}

nav a:hover {
    opacity: 1;
    color: var(--primary-color);
}

main,
section,
.nameContainer {
    display: flex;
    flex-direction: column;
}

main {
    gap: 64px;
    padding-bottom: 64px;
}

section {
    gap: 48px;
}

.nameContainer {
    gap: 10px;
    margin-bottom: 40px;
}

.statsContainer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}

.profilePicContainer {
    border-radius: 100%;
    max-width: 114px;
    overflow: hidden;
}

.profilePicContainer img {
    border-radius: 100%;
    max-width: 75px;
    overflow: hidden;
}

.imgContainer {
    border-radius: 100%;
    max-width: 114px;
    overflow: hidden;
}

.imgContainer img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: fill;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stats>div {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats div i {
    font-size: 1.4em;
}

.stats div div {
    display: grid;
    place-items: center;
    min-width: 40px;
}

.outreach {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    width: fit-content;
    margin-right: auto;
    text-decoration: none;
}

.outreach:hover {
    opacity: 0.7;
}

.outreach i {
    transform: rotate(-45deg);
}

.projectContainer {
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
    margin-bottom: 40px;
}

.projectContainer.visible {
  opacity: 1;
}

.profileCard {
    display: flex;
    flex-direction: column;
    gap: 50px;
    opacity: 0;
}

.headerText {
    margin-bottom: 24px;
}

.projectItem {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1.5s ease;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 24px;
}

.projectItem.visible {
  opacity: 1;
  transform: translateY(0);
}

.projectItem div:first-child {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.projectItem>div:last-child {
    aspect-ratio: 16/9;
    max-width: 30%;
    overflow: hidden;
    border-radius: 8px;
}

.projectItem>div:last-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.linkContainer {
    display: flex;
    align-items: center;
    gap: 24px;
}

.linkContainer a {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 14px !important;
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

.linkItem {
    font-size: 28px;
}

.linkItem:hover {
    color: var(--primary-color);
}

.linkItem p {
    font-size: 0.9em;
}

@media (min-width: 640px) {
    .statsContainer {
        flex-direction: row;
    }

    .stats {
        gap: 0px;
    }

    .aboutMe {
        width: 80%;
        margin-right: auto;
    }
}

.imageContainer {
    position: relative;
    width: fit-content;
    height: fit-content;
    display: inline-block;
    border: 2px solid transparent;
}

.imageContainer img {
    display: block; /* Ensures the image takes the full space of the parent link */
    width: 100%;
    height: 100%;
}

.imageContainer .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--primary-color);
    border: 3px solid var(--highlight-color);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.1s ease-in; /* Smooth transition */
    pointer-events: none; /* Allow clicks to pass through */
}

.imageContainer:hover .overlay {
    opacity: .90; /* Show the overlay on hover */
    pointer-events: auto; /* Enable clicks */
}

.overlayText {
    font-size: 14px;
    text-align: center;
}