/* Profile Picture */
.pfp {
  display: block;
  margin: 20px auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: cover;
}

.pfp-wrap {
  position: relative;
  width: 100px;
  margin: 20px auto;
  display: block;
}

.pfp[role="button"] {
  cursor: pointer;
  outline: none;
}

.pfp:focus {
  box-shadow: 0 0 0 4px rgba(255, 171, 7, 0.12);
}

/* Sidebar Content */
.name-section {
  margin-bottom: 20px;
}

.name-section h1 {
  width: fit-content;
}

.name-section h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

#age {
  font-size: 14px;
  color: var(--white);
  margin-left: 10px;
}

.divider {
  border: none;
  height: 2px;
  background: var(--white);
  margin: 20px 0;
}

.socials {
  margin-top: 20px;
}

.socials a {
  display: block;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 10px;
  padding: 10px;
  border: 2px solid var(--white);
  text-align: center;
}

.socials a:hover {
  background: var(--white);
  color: var(--black);
}

.socials a.copied {
  background: var(--accent);
  color: var(--black);
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  flex: 1;
}

/* Mobile socials adjustments */
@media (max-width: 768px) {
  .socials .show-more-btn {
    display: block !important;
  }
}

@media (min-width: 769px) {
  .socials .show-more-btn {
    display: none;
  }
}

/* Projects */
.title-container {
  text-align: center;
  margin-bottom: 30px;
}

.title-container .line {
  display: inline-block;
  vertical-align: middle;
  width: 100px;
  height: 2px;
  border: none;
  margin: 0;
  background: var(--white);
}

.title-container h2 {
  display: inline-block;
  vertical-align: middle;
  margin: 0 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center;
}

.project {
  border: 2px solid var(--white);
  padding: 20px;
  background-color: var(--black);
  color: var(--white);
  transition: transform 0.3s ease;
  position: relative;
  cursor: url('../cursors/handpointing.svg') 10 5, pointer;
}

.project:hover {
  box-shadow: 0 0 0 4px var(--black);
  z-index: 10;
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 10px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.project:hover img {
  filter: none;
}

.project-logo {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

.tags {
  margin-top: 10px;
}

.tags span, .tags a {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--white);
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 12px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
}

/* Tech Scroller */
.tech-scroller {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-color: var(--white);
  color: var(--black);
  overflow: hidden;
  display: flex;
  align-items: center;
  font-family: "Special Gothic Condensed One", sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.scroller-content {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.star {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: var(--star-image);
  background-size: contain;
  background-repeat: no-repeat;
  margin: 0 8px;
}

/* Mobile adjustments for tech scroller */
@media (max-width: 800px) {
  .tech-scroller {
    position: static;
    left: auto;
    right: auto;
    height: 32px;
  }
}

/* Mobile project grid */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .project {
    padding: 15px;
  }
}