:root {
  --primary-color: #e05d38;
  --secondary-color: #1c2433;
  --background-color: oklch(0.22 0.0306 262.6666);
  --foreground-color: #ffffff;
  --card-color: #2a3040;
  --card-foreground-color: #e5e5e5;
  --muted-color: #a3a3a3;
  --border-color: #3d4354;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  height: 100%;
}

body {
  background-color: var(--background-color);
  position: relative;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

a {
    text-decoration: none;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: var(--card-foreground-color);
  padding: 10vh 0 12vh;
}

.about {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  display: flex;

  justify-content: flex-start;
  overflow: hidden;
  background-color: var(--secondary-color);
  box-shadow: 0 0 6px black;
  transition: transform 0.5s ease;
}

.about:hover {
  transform: translate(-50%, -50%) scale(1.02);
}

.about-image {
  flex-shrink: 0.5;
  overflow: hidden;
  border-right: 2px solid var(--border-color);
  max-width: 25rem;
  object-fit: contain;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-text {
  flex-grow: 1;
  box-shadow: inset 0 0 4px black;
  padding: 0.5rem 2rem 1.25rem;
  text-align: left;
  min-width: 15rem;
}

.project {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 500px;
  width: 50%;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  background-color: var(--secondary-color);
  transition: filter 0.15s ease, transform 0.2s ease;
  overflow: hidden;
  display: block;
}

.project img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.project:hover {
  filter: brightness(1.1);
  transform: translate(-50%, calc(-50% - 5px));
}

.project-details {
  padding: 0 20px;
  text-align: center;
}

.project,
.project:visited,
.project:hover,
.project:active {
  text-decoration: none;
  color: inherit;
}

#blog-articles {
  margin: 10px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
}

.article {
  width: 50vw;
  max-width: 500px;
  padding: 0 2rem 1rem 2rem;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  background-color: var(--secondary-color);
  box-shadow: 0 0 6px black;
  color: var(--card-foreground-color);
}

.article-image {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
}

.navbar {
  box-sizing: border-box;
  position: -webkit-sticky;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;

  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;

  background-color: var(--secondary-color);
  color: var(--card-foreground-color);
  padding: 0 0.5rem;

  border-bottom: 1px solid var(--border-color);
}

.nav-list {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  position: relative;
  list-style: none;
}

.navbar a {
  color: var(--card-foreground-color);
  font-weight: bold;
  margin: 0 12px;
  text-decoration: none;
  letter-spacing: 2px;
  transition: transform 0.15s ease, color 0.15s ease;
  display: inline-block;
}

.navbar a:hover {
  transform: scale(1.1);
  color: var(--primary-color);
}

#contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
  max-width: 500px;
}

#contact-form input:not([type="submit"]),
#contact-form textarea {
  margin: 5px 0 20px 0;
  background-color: var(--card-color);
  border: 2px solid var(--border-color);
  width: 100%;
  border-radius: 10px;
  color: var(--card-foreground-color);
}

#name,
#email {
  height: 2rem;
}

#message {
  height: 4rem;
}

#contact-form input[type="submit"],
.article input {
  background-color: var(--primary-color);
  color: var(--card-foreground-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  transition: transform 0.15s ease, filter 0.15s ease;
}

#contact-form input[type="submit"]:hover,
.article input:hover {
  transform: scale(1.04);
  filter: brightness(1.2);
}

.stamped-entry {
  display: flex;
  justify-content: space-between;
}

.bold {
  font-weight: bold;
}

.entry {
  font-size: 0.85rem;
}

.entry * {
  margin-top: 0.1rem;
  margin-bottom: 0.35rem;
}

.section-title {
  margin: 0.75rem 0;
}

.resume hr {
  margin: 1rem 0;
}

.resume {
  max-width: 50rem;
  width: 80vw;
}

.blog-post-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 1rem;
}

.blog-post-date {
    margin-top: -1.5rem;
}

.blog-post-description {
    width: 80vw;
    max-width: 60rem;
    text-align: center;
}

.blog-post-image {
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}

.footer {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-color);
  color: var(--card-foreground-color);
  bottom: 0;
  width: 100%;
  height: 2.5rem;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .logo {
    font-size: 1rem;
  }

  .nav-list {
    font-size: 0.75rem;
  }
}
