::selection {
  background-color: rgba(43, 43, 43, 0.6);
  color: rgb(248, 248, 248);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: Inter, sans-serif;
  background-color: #eeeeee;
}
header {
  height: 53px;
  display: flex;
  align-items: center;
  width: 600px;
}
.header-title h2 {
  font-size: 1.2rem;
  font-weight: 600;
}
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 600px;
  background-color: #fff;
  border-radius: 8px;
  height: 100%;
  box-shadow: 0px 4px 11px #0b0f1f0a;
}
a {
  text-decoration: none;
}
footer {
  height: 3rem;
}
footer p {
  font-size: 0.9rem;
}


.root {
  height: 100vh;
}
.App {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  padding-bottom: 0;
  padding-top: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 98%;
}
a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.16s ease, opacity 0.16s ease;
}
a:focus {
  outline: none;
  box-shadow: 0 0 0 3px #3b82f61f;
}
.repo-card h3 a {
  color: #0f172a;
  font-weight: 700;
}
.repo-card h3 a:hover {
  color: inherit;
  text-decoration: none;
}
.repo-card p a,
.profile-text a {
  color: #0f172a;
}
.repo-card p a:hover,
.profile-text a:hover,
a:hover {
  color: inherit;
  text-decoration: none;
}
@keyframes logo-spin {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}
.card {
  padding: 2em;
}
.read-the-docs {
  color: #888;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-image img {
  width: 100px;
  height: auto;
  box-shadow: 5px 4px 12px 1px #0003;
  border-radius: 50%;
}
.profile-text {
  margin-left: 30px;
  text-align: left;
}
.profile-text span {
  font-weight: 700;
}
.profile-text p {
  margin: 10px 0 0;
}
.profile {
  width: 90%;
  margin: 50px 0 0;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  padding: 18px 0;
  box-shadow: 0 6px 18px #0b0f1f0a;
}
.hero-header {
  width: 600px;
  background: transparent;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-banner {
  height: 120px;
  width: 100%;
  margin: 0 auto;
  border-radius: 8px 8px 0 0;
  background-image: linear-gradient(90deg, #de24f2, #5d92f7);
  background-size: cover;
  background-position: center;
}
.hero-profile-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0 18px 12px;
  margin-top: -32px;
  width: 100%;
  box-sizing: border-box;
}
.hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
  box-shadow: 0 4px 12px #0206171f;
  background: #d6d6d6;
  margin-left: 20px;
}
.hero-meta {
  margin-top: 50px;
  margin-left: 10px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: #0f172a;
  margin-right: 8px;
}
.hero-handle {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 4px;
  text-align: left;
}
.hero-bio {
  margin-top: 8px;
  color: #374151;
}
.profile-links ul,
.profile-skills ul {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  padding: 0;
  max-width: 95%;
  margin: 18px auto;
}
.profile-links ul li,
.profile-skills ul li {
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0;
  text-align: center;
  background-color: #efefef;
  color: #474747;
  border-radius: 10px;
  /* padding moved to the anchor so the whole li becomes clickable */
  padding: 0;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  box-shadow: 0 3px 6px #10182833;
  cursor: pointer;
}
.profile-links ul li:hover,
.profile-skills ul li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 10px #10182833;
  background-color: #f5f5f5;
}
.profile-links ul li,
.profile-skills ul li {
  cursor: pointer;
}
.profile-links ul li i,
.profile-skills ul li i {
  padding-right: 0.5rem;
}
.profile-links ul li a {
  color: #474747;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* make the anchor fill the li */
  width: 100%;
  height: 100%;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  border-radius: inherit;
}

/* Skills items are not anchors — ensure they keep the same padding so pills render correctly */
.profile-skills ul li {
  padding: 8px 12px;
}
.profile-links-title h2,
.profile-skills-title h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #0f172a;
}
.profile-skills-title {
  margin-top: 40px;
}
.fa-x-twitter,
.fa-instagram,
.fa-github,
.fa-html5,
.fa-css3-alt,
.fa-square-js,
.fa-php {
  transition: all 0.2s;
}
.github,
.contact {
  margin-top: 120px;
  width: 90%;
}

.contact {
  margin-bottom: 30px;
}
.repo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}
.repo-card {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 8px 24px #0b0f1f0a;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 18px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.repo-card:hover {
  box-shadow: 0 8px 20px #0b0f1f14;
}
.repo-desc {
  font-size: 0.9em;
  color: #666;
}
.repo-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.repo-desc {
  margin: 0 0 12px;
  flex: 0 0 auto;
}
.repo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  color: #6b7280;
}
.github-all-button,
.contact-text a {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 20px;
  background: #efefef;
  color: #474747;
  box-shadow: 0 2px 4px #0003;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s;
}
.github-all-button:hover,
.contact-text a:hover {
  background-color: #f5f5f5;
}
.github-projects-title h2 {
  position: relative;
  display: inline-block;
}
@media (max-width: 640px) {
  .repo-list {
    grid-template-columns: 1fr;
  }
}
.email-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #0f172a0a;
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.email-icon {
  color: #374151;
}
.email-link {
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}
.email-link:hover {
  text-decoration: underline;
}
.copy-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: black;
  background: #fdfdfd;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.copy-btn:hover {
  background: #f5f5f5;
  border-color: #0f172a17;
}

@media (max-width: 670px) {
  body {
    background-color: #fff;
    width: 100vw;
  }

  .App {
    padding: 0;
    max-width: 100vw;
  }

  header {
    width: 100%;
  }

  main {
    width: 100vw;
    box-shadow: none;
  }

  .hero-header {
    width: 100vw;
  }

  .header-title h2 {
    padding-left: 18px;
  }

  .hero-banner {
    border-radius: 0px;
  }

  .hero-avatar {
    width: 72px;
    height: 72px;
    margin-left: 0;
  }

  .hero-meta {
    margin-top: 10px;
    margin-left: 0;
  }

  .hero-profile-card {
    flex-direction: column;
    margin-top: -30px;
    align-items: flex-start;
  }
  .hero-top {
    width: 100%;
  }
  .repo-card:hover,
  .contact-submit:hover,
  .profile-links ul li:hover,
  .profile-skills ul li:hover,
  .github-all-button:hover {
    transform: none;
  }
}

@media (max-width: 510px) {
  .profile {
    border: none;
    box-shadow: none;
  }

  .profile-links ul,
  .profile-skills ul {
    flex-direction: column;
    align-items: center;
  }

  /* Make link/skill items pill-like on small screens (match contact styling)
     Container is centered but inner content is left-aligned. */
  .profile-links ul li,
  .profile-skills ul li {
    display: inline-flex;
    align-items: center;
    list-style: none;
    margin: 5px 0;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    background: #0f172a0a; /* same subtle background as email-pill */
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #474747;
    border-radius: 999px;
    /* padding moved to the anchor so it fills the pill without nested padding */
    padding: 0;
    transition: transform 0.14s ease, box-shadow 0.14s ease,
      background 0.14s ease;
    box-shadow: 0 1px 6px rgba(16, 24, 40, 0.08);
    cursor: pointer;
    justify-content: flex-start; /* keep text left-aligned inside the centered pill */
  }

  .profile-links ul li i,
  .profile-skills ul li i {
    padding-right: 0.5rem;
  }

  /* Make internal anchors fill the pill and left-align text */
  .profile-links ul li a,
  .profile-skills ul li a {
    display: block;
    width: 100%;
    text-align: left;
    color: #474747;
    text-decoration: none;
    /* ensure the anchor provides the pill padding and hit area */
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 999px;
    background: transparent; /* let the li background show through */
  }
  /* For skills (no anchor), ensure li provides the pill padding on small screens */
  .profile-skills ul li {
    padding: 10px 12px;
  }
}

@media (max-width: 330px) {
  .email-pill {
    width: 160px;
    max-width: 80%;
    justify-content: flex-start; /* keep content left-aligned inside centered pill */
    padding: 10px 12px;
  }
  /* hide icon and copy button on very small screens, show only the address */
  .email-pill .email-icon,
  .email-pill .copy-btn {
    display: none !important;
  }
  .email-pill .email-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0 8px; /* small left padding so text isn't flush */
    white-space: nowrap; /* prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem; /* slightly smaller to fit on one line */
  }
}

/* Touch-friendly animations
   - desktop (pointer: fine / hover: hover): light hover lift
   - mobile (pointer: coarse / hover: none): :active shrink for immediate feedback
   - respects prefers-reduced-motion
*/
@media (hover: hover) and (pointer: fine) {
  .repo-card,
  .contact-submit,
  .profile-links ul li,
  .profile-skills ul li,
  .email-pill,
  .github-all-button {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease;
    will-change: transform;
  }
  .repo-card:hover,
  .contact-submit:hover,
  .profile-links ul li:hover,
  .profile-skills ul li:hover,
  .github-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 10px rgba(2, 6, 23, 0.08);
  }
}

@media (hover: none), (pointer: coarse) {
  /* Disable active/tap animations on touch devices — provide no transform feedback */
  .repo-card,
  .contact-submit,
  .profile-links ul li,
  .profile-skills ul li,
  .email-pill,
  .github-all-button,
  .copy-btn {
    transition: none !important;
    will-change: auto;
  }
  /* Ensure no :active transform rules apply on touch devices */
  .repo-card:active,
  .contact-submit:active,
  .profile-links ul li:active,
  .profile-skills ul li:active,
  .email-pill:active,
  .github-all-button:active,
  .copy-btn:active {
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .repo-card,
  .contact-submit,
  .profile-links ul li,
  .profile-skills ul li,
  .email-pill,
  .github-all-button,
  .copy-btn {
    transition: none !important;
    transform: none !important;
  }
}

/* Disable hover/active animations on narrow screens (<=670px) */
@media (max-width: 670px) {
  .repo-card,
  .contact-submit,
  .profile-links ul li,
  .profile-skills ul li,
  .email-pill,
  .github-all-button,
  .copy-btn,
  .github-all-button,
  .contact-text a {
    transition: none !important;
    box-shadow: 0 1px 6px rgba(16, 24, 40, 0.08) !important;
    will-change: auto !important;
  }

  /* Override hover visual changes */
  .repo-card:hover,
  .contact-submit:hover,
  .profile-links ul li:hover,
  .profile-skills ul li:hover,
  .email-pill:hover,
  .github-all-button:hover {
    transform: none !important;
    box-shadow: 0 1px 6px rgba(16, 24, 40, 0.08) !important;
    opacity: 1 !important;
  }

  /* Override active/tap visual changes */
  .repo-card:active,
  .contact-submit:active,
  .profile-links ul li:active,
  .profile-skills ul li:active,
  .email-pill:active,
  .github-all-button:active,
  .copy-btn:active {
    transform: none !important;
    box-shadow: 0 1px 6px rgba(16, 24, 40, 0.08) !important;
    opacity: 1 !important;
  }
}
