@import "rose-pine-class.css";

* {
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  color: var(--rp-text);
  scroll-behavior: smooth;
}

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

nav {
  border-bottom: 1px solid var(--rp-love);
  background-color: var(--rp-overlay);
}

body > header {
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  gap: 1rem;
  margin: 0;
}

nav li {
  list-style-type: none;
  padding: 1rem;
  transition: all 0.1s ease-in-out;
}

nav li:hover {
  background-color: var(--rp-highlight-high);
  transition: all 0.1s ease-in-out;
}

nav a {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

.row {
  padding: 1rem;
  display: flex;
  max-width: 1400px;
  margin: auto;
}

.project img {
  width: 100%;
  margin: auto;
  border-radius: 1rem;
}

.project .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h3 {
  margin: 0;
}

.card {
  background-color: var(--rp-overlay);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  box-shadow: 0 0 0.5rem var(--rp-love);
  margin-bottom: 1rem;
  padding: 1rem;
}

#aboutme {
  gap: 1rem;
  padding: 2rem;
}

#aboutme img {
  border-radius: 50%;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  filter: grayscale(50%);
  max-width: 15rem;
  transition: all 0.3s ease-in-out;
  filter: brightness(0.9);
}

#aboutme img:hover {
  scale: 1.05;
  transition: all 0.3s ease-in-out;
}

#aboutme h1 {
  margin: 0;
  font-size: 4rem;
  text-align: center;
}

h2 {
  margin: 0;
  font-size: 3rem;
}

#aboutme p {
  text-align: center;
  max-width: 70%;
  font-size: 1.2rem;
  margin: 0;
}

.skills {
  display: grid;
  grid: repeat(2, 1fr) / auto-flow dense;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.skills img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: all 0.3s ease-in-out;
}

.skills :hover {
  scale: 1.2;
  transition: all 0.1s ease-in-out;
}

a.anchor {
  display: block;
  position: relative;
  top: -100px;
  visibility: hidden;
}

#myprojects {
  text-align: center;
  margin: auto;
  font-size: 3rem;
}

#arrow {
  text-align: center;
  margin: auto;
  cursor: pointer;
}

.proj-desc {
  padding: 2rem;
  margin-right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.proj-desc h3 {
  font-size: 2rem;
}

.proj-desc p {
  font-size: 1.2rem;
}

footer {
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid var(--rp-love);
}

@media screen and (max-width: 768px) {
  .row {
    flex-direction: column;
  }

  .proj-desc {
    order: 2;
  }
}
