/*Global*/

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: black;
}

/*Header */
header {
  background-color: #0b0b0c;
  padding: 1rem 2rem;
  top: 0;
  position: sticky;
  z-index: 2000;
}
nav ul a {
  display: block;
  background-color: #1f2023;
  padding: 0.3rem 1.5rem;
  border-radius: 10px;
  border: 0.0625rem solid #2f3136;
  text-decoration: none;
  color: grey;
  text-align: center;
}

nav ul {
  display: flex;
  gap: 5%;
  list-style-type: none;
  justify-content: center;
}
/* Adding mobile header */
nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  font-size: 1.8rem;
  color: grey;
  cursor: pointer;
}

/* if screen size is smaller */

@media (max-width: 860px) {
  nav {
    justify-content: flex-end;
  }

  .menu-button {
    display: block;
    z-index: 3001;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: 0;
    min-height: 10vh;
    width: min(75%, 20rem);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 2rem 2rem;
    gap: 1rem;
    background-color: #0b0b0c;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 3000;
  }

  nav ul a {
    width: 100%;
    padding: 0.8rem 1.5rem;
  }

  .menu-toggle:checked ~ ul {
    transform: translateX(0);
    overflow: hidden;
  }

  body:has(.menu-toggle:checked) {
    overflow: hidden;
  }
}
#home {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(2rem, 2vw, 5rem) clamp(1rem, 4vw, 3rem);
}
/*Profile*/

.profile-image-container {
  /* background-color: #2b2b2b; */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 0;
  color: grey;
  text-align: center;
}

.profile-image {
  width: clamp(150px, 25vw, 300px);
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.profile-role {
  padding: 0;
  margin-top: 0;
  margin-bottom: 3rem;
}

.paragraph-text {
  max-width: 85%;
  background-color: #2b2b2b;
  padding: 1rem 1rem;
  border-radius: 20px;
  color: white;
}

/*Main content*/
main {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  flex-direction: column;
  align-content: center;
}

/* Project preview */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.project-list img {
  width: 100%;
  height: 90%;
  object-fit: cover;
  border-radius: 12%;
  display: block;
  filter: blur(1px);
}
.project-list img:hover {
  filter: blur(0);
  cursor: pointer;
}

#project-display {
  /* background-color: grey; */
  /* padding: 5rem; */
  text-align: center;
  color: white;
}

.project-list p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1.5;
}

footer {
  /* background-color: #0c0c0c;
  color: white;
  margin: 0; */
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
  background-color: #2b2b2b;
  color: white;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

#contact {
  max-width: 50rem;
  margin-inline: auto;
}

#contact h2 {
  margin-top: 0;
}

.contact-cards ul {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-card {
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(3rem, 6vw, 4rem);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-color: #eeeeee;
  color: #222222;
  text-decoration: none;
}

.contact-icon {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

footer > p {
  margin-top: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0;
  font-size: 0.9rem;
}

#project-display {
  padding: clamp(1rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 3vw, 4rem);
}

/* skills sections */
#skills {
  color: white;
  text-align: center;
  padding: 1rem;
}

#skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

#skills-list img {
  width: 100%;
  height: 90%;
  object-fit: cover;
  border-radius: 12%;
  display: block;
  /* filter: blur(1px); */
}

/* .project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
} */

/* Live trades section */

#trades {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 2rem;
}

#trades-now {
  font-family: "Roboto Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #d8d8d8;
  text-align: center;
  margin-top: 4rem;
}

/* section transitions */
.reveal {
  opacity: 0;
  transform: translateY(3rem);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

:root {
  --header-offset: 5rem;
}

section {
  scroll-margin-top: var(--header-offset);
}
