/* General styles */

nav a {
  text-decoration: none;
  color: inherit;
}

button.small,
[role='button'].small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.mobile {
  display: none;
}

#mobile-menu > summary::after {
  display: none;
}

#mobile-menu > summary {
  border: none;
  color: inherit;
}

.code-wrapper {
  text-decoration: none;
}

.code-wrapper:hover {
  text-decoration: none !important;
}

.code-wrapper::before {
  content: '< ';
  opacity: 0;
  transition: opacity 300ms;
}

.code-wrapper::after {
  content: ' />';
  opacity: 0;
  transition: opacity 300ms;
}

.code-wrapper:hover::before {
  opacity: 1;
  transition: opacity 300ms;
}

.code-wrapper:hover::after {
  opacity: 1;
  transition: opacity 300ms;
}

/* Landing */

#landing {
  text-align: center;
  animation: fadeIn 1s ease-out forwards;
  margin-top: min(10vh, 5rem);
}

#landing .headshot {
  border-radius: 50%;
  margin-bottom: 1rem;
}

#landing h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

#landing .tagline {
  font-size: 1.25rem;
  color: var(--pico-muted-color);
  margin-bottom: 2rem;
}

#landing a[role='button'] {
  font-weight: 600;
  border-radius: 2rem;
  padding: 0.8rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#landing a[role='button']:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.9;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Projects */

#projects hgroup {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#projects hgroup select {
  padding: 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
}

#projects hgroup label {
  font-size: 0.75rem;
}

#projects article {
  position: relative;
  padding-bottom: 3rem;
}

#projects article:hover {
  background-color: var(--pico-secondary-focus);
}

#projects article .actions,
.tech-stack {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
}

#projects article figure {
  margin-bottom: 1rem;
}

#projects article .body {
  margin-bottom: 1.5rem;
}

#projects article h3 {
  text-align: center;
}

#projects article figure img {
  border-radius: 0.5rem;
}

#projects .grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  #projects .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #projects .grid {
    grid-template-columns: 1fr;
  }

  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }
}

.tech-stack {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  bottom: 54px;
}

.tech-stack [data-tooltip]:not(a, button, input, [role='button']) {
  border-bottom: none;
  cursor: unset;
}

/* Resume  */

.bar {
  width: 100%;
  border: 1px solid var(--pico-primary-border);
}

.level {
  height: 1.5rem;
  width: 0;
  transition: 1s !important;
  background-color: var(--pico-primary-background);
}

/* Contact */

#contact {
  max-width: 960px;
  margin: 0 auto;
}

.g-recaptcha {
  margin: 1rem 0;
}

.g-recaptcha-response {
  visibility: hidden;
}
