@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;600&display=swap");

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  font-family: "Roboto Mono", monospace;
  box-sizing: border-box;

  --primary-color: black;
  --secondary-color: rgb(238, 238, 238);
  --background-color: white;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Navbar styles */

header {
  display: flex;
  align-items: center;
  justify-content: center;

  max-width: 100vw;
  background-color: var(--background-color);
}

a {
  font-size: 14px;
  text-decoration: none;
}

h1 {
  font-family: "Roboto Mono", monospace;
}

.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 1rem;
  width: 90%;
}

.nav-logo {
  grid-column: 1;
}

.nav-logo > h1 {
  font-size: 30px;
  color: var(--primary-color);
}

.primary-nav {
  display: flex;
  list-style: none;
  gap: 16px;

  grid-column: 2;
  justify-self: end;
}

.mobile-nav-toggle {
  display: none;
  cursor: pointer;
}

.nav-link:link,
.nav-link:visited {
  font-size: 16px;
  color: var(--primary-color);

  transition: 300ms ease-in-out;
}

.nav-link:hover {
  font-weight: 600;
  color: var(--secondary-color);
}

@media only screen and (max-width: 35em) {
  .primary-nav {
    position: fixed;
    inset: 0 0 0 0;
    flex-direction: column;

    padding: min(30vh, 6rem) 2rem;
    background-color: var(--primary-color);

    z-index: 9999;

    transform: translateX(100%);
    transition: transform 350ms ease-out;
  }

  .nav-link:link,
  .nav-link:visited {
    font-size: 20px;
    color: var(--secondary-color);
  }

  .primary-nav[data-visible="true"] {
    transform: translateX(0%);
  }

  .mobile-nav-toggle[aria-expanded="true"] {
    background: url(./assets/icons/mobile-icon-exit.svg) center center no-repeat;
  }

  .mobile-nav-toggle {
    display: block;
    position: absolute;
    background: url(./assets/icons/mobile-icon.svg) center center no-repeat;

    width: 1.25rem;
    aspect-ratio: 1;

    border: none;

    top: 1.4rem;
    right: 2.5rem;
    z-index: 10000;

    transition: 250ms ease-in-out;
  }
}

/* Section styles */

section {
  display: flex;
  align-items: center;
  justify-content: center;

  max-width: 100vw;
  position: relative;
}

/* HERO */
#hero {
  background-color: var(--background-color);
  border-bottom: 4px solid var(--primary-color);
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 2.2rem;
  width: 90%;
  height: 350px;

  animation: fade-in 500ms linear forwards;
}

.hero-text-container > h2 {
  font-size: 32px;
  color: var(--primary-color);
}

.hero-text-container > p {
  font-size: 12px;
  color: var(--primary-color);
}

.hero-button {
  align-self: flex-start;

  font-size: 14px;
  padding: 1em;

  color: var(--primary-color);
  background-color: transparent;

  border: 1px solid var(--primary-color);
  box-shadow: 4px 4px 0px var(--secondary-color);

  transition: 300ms ease-in-out;
}

.hero-button:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
  box-shadow: 6px 6px 0px var(--primary-color);
}

/* ABOUT */

#about {
  padding: 2rem;
  margin-top: 36px;
  animation: fade-in 500ms linear forwards;
}

.wave-asset {
  width: 100%;
  position: absolute;

  top: 0;
  left: 0;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 90%;
  z-index: 999;
}

.about-card,
.apps-card,
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;

  border: 1px solid var(--primary-color);
  background-color: var(--background-color);

  width: 100%;
  padding: 1rem;

  box-shadow: 4px 4px 0px var(--secondary-color);
}

.about-content,
.apps-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-content > h2,
.about-content > h3 {
  color: var(--primary-color);
}

.about-content > p {
  font-size: 12px;
}

.tech-stack-grid {
  width: 65%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  place-items: center;
}

.tech-stack {
  --size: 30px;
  width: var(--size);
  aspect-ratio: 1;
}

/* Apps container */

#apps {
  padding: 2rem;
  animation: fade-in 500ms linear forwards;
}

.apps-container {
  width: 90%;
  z-index: 999;
}

.project-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.apps-content > h2 {
  color: var(--primary-color);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 4px;

  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--primary-color);
}

.project-card > h3 {
  color: var(--primary-color);
}

.project-card > h5 {
  color: var(--primary-color);
  opacity: 0.5;
}

.project-card > p {
  font-size: 12px;
  width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.project-img {
  width: 50%;
}

.project-card-links {
  align-self: flex-end;

  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-legal-links {
  align-self: flex-end;

  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-legal-links a {
  display: flex;
  align-items: center;

  font-size: 10px;
  gap: 4px;
  color: var(--primary-color);
}

.project-legal-links a:hover {
  text-decoration: underline;
}

.project-icons {
  --size: clamp(28px, 3vw, 40px);
  height: var(--size);
}

.project-card-links > a {
  display: flex;
  align-items: center;

  font-size: 10px;
  gap: 4px;
}

.project-card-links > a:link,
.project-card-links > a:visited {
  color: var(--primary-color);
}

/* CONTACT */
#contact {
  padding: 2rem;
  animation: fade-in 500ms linear forwards;
}

.contact-container {
  width: 90%;
  z-index: 999;
}

.contact-card {
  width: 100%;
  gap: 12px;
}
.contact-card > h2 {
  color: var(--primary-color);
}

.contact-card > p {
  font-size: 12px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-links > a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-links > a:link,
.contact-links > a:visited {
  color: var(--primary-color);
}

.contact-icons {
  --size: 20px;
  width: var(--size);
  aspect-ratio: 1;
}

/* extras */
.section-highlight {
  font-size: 4rem;
  font-weight: 600;
  opacity: 0.5;
  color: var(--secondary-color);

  position: absolute;
  top: 0;
  left: 100px;
}

/* footer */
footer {
  display: flex;
  align-items: center;
  justify-content: center;

  max-width: 100vw;
  background-color: var(--secondary-color);
  min-height: 150px;
}

.footer-content {
  text-align: center;
  font-size: 12px;
  width: 90%;

  color: var(--primary-color);
}

.footer-content > a {
  font-size: 10px;
  padding: 8px;
  color: var(--primary-color);
}

.footer-content > a:link,
.footer-content > a:visited {
  color: var(--primary-color);
}

.footer-content > a:hover {
  text-decoration: underline;
}

@media only screen and (min-width: 768px) {
  .project-legal-links a {
    font-size: 12px;
  }
}
/* media queries */

@media only screen and (max-width: 35em) {
  .hero-container {
    padding: 1rem;
    height: 200px;
  }
  .project-container {
    grid-template-columns: 1fr;
  }
  .tech-stack-grid {
    width: 100%;
  }
  .section-highlight {
    font-size: 3.5rem;
    top: -16px;
    left: 6vw;
  }
}

@media only screen and (min-width: 35em) {
  .hero-container {
    height: 250px;
  }
  .about-container,
  .apps-container,
  .contact-container {
    width: 75%;
  }

  .about-card,
  .apps-card {
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
  }

  .section-highlight {
    top: -26px;
    left: 10vw;
  }
}

@media only screen and (min-width: 768px) {
  .nav-logo > h1 {
    font-size: 36px;
  }

  /* hero */
  .hero-container {
    height: 350px;
  }

  .hero-text-container > p {
    font-size: 20px;
  }

  .hero-text-container > h2 {
    font-size: 60px;
  }

  .hero-button {
    font-size: 20px;
  }

  /* about */
  .about-card {
    gap: 40px;
  }

  .about-content > h2 {
    font-size: 32px;
  }

  .about-content > h3 {
    font-size: 24px;
  }

  .about-content > p {
    font-size: 16px;
  }

  .tech-stack-section {
    align-self: flex-start;
    margin-top: 8px;
  }

  .tech-stack {
    --size: 40px;
    width: var(--size);
    aspect-ratio: 1;
  }

  /* apps */
  .apps-content > h2 {
    font-size: 32px;
  }

  .project-card > h3 {
    font-size: 24px;
  }

  .project-card > h5,
  .project-card > p {
    font-size: 16px;
  }

  .project-card-links > a {
    font-size: 16px;
  }

  /* contacts */
  .contact-card > h2 {
    font-size: 32px;
  }

  .contact-card > p {
    font-size: 16px;
  }

  .contact-links > a {
    font-size: 16px;
  }
  .footer-content,
  .footer-content > a {
    font-size: 16px;
  }
}

@media only screen and (min-width: 1024px) {
  .section-highlight {
    top: -26px;
    left: 10vw;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.legal-page {
  min-height: 100vh;
  padding: 64px 24px;
  background-color: var(--background-color);
  color: var(--primary-color);
}

.legal-container {
  width: min(100%, 820px);
  margin: 0 auto;
}

.legal-container h1 {
  margin-bottom: 40px;

  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  line-height: 1.4;
}

.legal-list {
  border-top: 1px solid var(--secondary-color);
}

.legal-list dt,
.legal-list dd {
  margin: 0;
  padding: 18px 0;

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

.legal-list dt {
  padding-bottom: 6px;

  font-size: 13px;
  font-weight: 600;
}

.legal-list dd {
  padding-top: 0;

  font-size: 14px;
  line-height: 1.8;
}

.legal-list a {
  color: var(--primary-color);
}
.legal-list a:hover {
  text-decoration: underline;
}

.legal-back {
  display: inline-block;
  margin-top: 40px;

  color: var(--primary-color);
  font-size: 14px;
}

.legal-back:hover {
  text-decoration: underline;
}
@media only screen and (min-width: 768px) {
  .legal-list {
    display: grid;
    grid-template-columns: 180px 1fr;
  }

  .legal-list dt,
  .legal-list dd {
    padding: 20px 16px;
  }

  .legal-list dt {
    border-bottom: 1px solid var(--secondary-color);
  }

  .legal-list dd {
    border-bottom: 1px solid var(--secondary-color);
  }
}
