body {
  --color-pale-purple: #f2d7eeff;
  --color-thistle: #d3bcc0ff;
  --color-chinese-violet: #a5668bff;
  --color-finn: #69306dff;
  --color-penn-blue: #0e103dff;
  --color-white: #ffffff;
  --color-light-gray: #f5f5f5;
  --color-dark-gray: #333;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--color-light-gray);
  color: var(--color-dark-gray);
}

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Navigation Bar */

header {
  background-color: var(--color-penn-blue);
  color: var(--color-white);
  padding: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.profile__name {
  font-size: 1.8rem;
  margin: 0 0 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.profile__contact {
  display: flex;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  color: var(--color-white);
}

.contact-item a {
  color: var(--color-white);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.contact-item img {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

.nav-menu {
  display: flex;
  gap: 1rem;
}

.nav-menu a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 1rem;
}

.nav-menu a:hover {
  text-decoration: underline;
}

/* Main Content */

main {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.about {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.about > img {
  width: 200px;
  height: 200px;
  border: 5px solid var(--color-penn-blue);
  border-radius: 50%;
}

.about__content h2 {
  font-size: 2rem;
  margin: 0;
}

h2 > img {
  width: 40px;
  height: auto;
}

.about__content p {
  font-size: 1rem;
  line-height: 1.5;
}

.skills, .projects, .brands {
  margin-bottom: 2rem;
}

.skills h2, .projects h2, .brands h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.skills ul, .projects-grid, .brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skills ul {
  list-style: none;
  padding: 0;
}

.skills li {
  background-color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-card, .brands-grid figure {
  background-color: var(--color-white);
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(33.333% - 1rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
}

.project-card p {
  flex-grow: 1;
}

.project-card a {
  color: var(--color-penn-blue);
  text-decoration: none;
  font-weight: bold;
}

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

.brands-grid figure {
  background-color: var(--color-white);
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(33.333% - 1rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.brands-grid img {
  max-width: 220px;
  width: auto;
  height: 65px;
  margin: 0 auto;
  display: block;
}

/* Footer */

footer {
  background-color: var(--color-penn-blue);
  color: var(--color-white);
  text-align: center;
  padding: 2rem 0;
  width: 100%;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

footer a {
  color: var(--color-white);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

footer a:hover {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
}

footer img {
  width: auto;
  height: 28px;
  margin-right: 8px;
  vertical-align: middle;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
}

footer p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.scroll-top {
  width: 48px;
  height: 48px;
  border-radius: 100%;
  background-color: var(--color-penn-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 3%;
  bottom: 15%;
  cursor: pointer;
}

/* Responsive Design */

@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
  }

  .nav-menu {
    display: none; /* Hide navigation menu on mobile */
  }

  .profile__contact {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start; /* Left align the contact items */
  }
  
  .main-nav {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
  
  .profile__name {
    margin-bottom: 0.75rem;
  }

  .skills ul, .projects-grid, .brands-grid {
    flex-direction: column;
  }

  .project-card, .brands-grid figure {
    flex: 1 1 100%;
  }
  
  .scroll-top {
    display: none;
  }
}

@media (max-width: 480px) {
  .profile__contact {
    width: 100%;
  }
  
  .contact-item {
    justify-content: flex-start; /* Left align contact items on smallest screens */
  }
}