.contact-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.contact-info p {
  margin: 0;
  font-size: 15px;
  display: flex;
  align-items: center;
}
a {
  text-decoration: none !important;
}
.card-content {
  padding: 18px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.projects-grid .card .btn {
  width: 140px;
  min-width: 0;
  max-width: 100%;
  display: inline-block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* Enhanced card style for projects */
.projects-grid {
  padding-bottom: 40px;
}
.projects-grid .card {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  transition: none;
  border: 1.5px solid #e5e7eb;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 340px;
  /* margin: 0 12px; */
}
.projects-grid .card img {
  margin-bottom: 0;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: none;
  padding: 0;
  transition: box-shadow 0.22s cubic-bezier(.4,2,.6,1), transform 0.22s cubic-bezier(.4,2,.6,1);
}
.projects-grid .card strong {
  font-size: 1.13rem;
  color: #1d2939;
  margin: 0;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: block;
}
.projects-grid .card .desc {
  color: #475569;
  font-size: 0.98rem;
  text-align: left;
  margin: 0;
}
body {
  margin:0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background-color:#fff;
  background-image: radial-gradient(circle, #e5e7eb 1.5px, transparent 1.5px);
  background-size:20px 20px;
  color:#1f2937;
  line-height:1.6;
}
.container {
  max-width:663px;
  margin:0 auto;
  padding:28px;
  background:transparent;
}
header {
  text-align:center;
  margin-bottom:30px;
}
.avatar {
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:28px;
  color:white;
  margin:0 auto 14px auto;
}
h1 { margin:0; font-size:24px; }
.sub {
  color:#6b7280;
  font-size:14px;
  margin-top:6px;
}
nav {
  margin-top:20px;
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.btn {
  background:#3b82f6;
  color:white;
  border:none;
  padding:10px 16px;
  text-decoration:none;
  font-size:14px;
  cursor:pointer;
}
.card {
  padding:20px;
  margin-bottom:20px;
  background:transparent;
}
h2 { margin-top:0; font-size:20px; }
.skills {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
  justify-content: center;
}
.pill {
  font-size:13px;
  padding:6px 10px;
  background:#e5e7eb;
  color:#374151;
}
.timeline {
  display:flex;
  flex-direction:column;
  gap:14px;
}
.timeline {
  position:relative;
  padding-left:26px; /* space for the timeline and badges */
  border-left:2px solid #e6edf3; /* subtle left timeline */
}
.item {
  padding: 16px 16px 16px 4px;
  margin-bottom: 10px;
}
.item { position:relative; }
.when {
  color:#6b7280;
  font-size:13px;
  margin-bottom:4px;
}

.company-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  margin-right:8px;
  margin-left:0;
  background:#e5e7eb;
  color:#1f2937;
  border-radius:50%;
  font-size:11px;
  font-weight:700;
  vertical-align:middle;
}

.company-logo {
  width:28px;
  height:28px;
  margin-right:8px;
  vertical-align:middle;
  border-radius:50%;
  display:inline-block;
  position:absolute;
  left:-49px; /* put the badge centered over the timeline */
  top:5px;
  border: 8px solid #fff;
}
.role {
  font-weight:600;
  margin-bottom:6px;
}
.desc {
  color:#4b5563;
  font-size:14px;
}
.bullets {
  margin:8px 0 0 0;
  padding-left:18px;
  color:#4b5563;
}
.contact-info p {
  margin:8px 0;
  padding:0 12px;
  font-size:15px;
  display:flex;
  align-items:center;
}
.contact-info i {
  color:#3b82f6;
  min-width:18px;
  text-align:center;
  padding-right:4px;
}
footer {
  margin-top:30px;
  text-align:center;
  color:#6b7280;
  font-size:14px;
  padding:10px;
}
.skills-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tag {
  background: #f8fafc;
  color: #60a5fa;
  border-radius: 4px;
  font-size: 0.97rem;
  padding: 3px 6px;
  font-weight: 400;
  box-shadow: 0 0 0 1px #e0e7ef;
  transition: background 0.2s;
  display: inline-block;
  line-height: 1.7;
  font-size: 12px;
}
.section-heading {
  font-size: 1.35em;
  color: #374151;
  font-weight: 700;
  margin-top: 38px;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
  text-align: center;
}

/* Contact form styles */
.contact-form {
  max-width: 720px;
  margin: 12px 0 0 0;
  display: block;
}
.contact-form .form-row {
  margin-bottom: 12px;
  display:flex;
  flex-direction:column;
}
.contact-form label {
  font-size:13px;
  color:#374151;
  margin-bottom:6px;
  font-weight:700;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:0; /* straight corners */
  font-size:14px;
}
.contact-form textarea { resize: vertical; min-height:110px; }
.contact-form .form-actions { display:flex; align-items:center; margin-top:6px; }
.contact-form .btn { background:#10b981; border-radius:0; }
.contact-form #form-status { font-size:14px; }
.card, section {
  margin-bottom: 38px;
}
.card {
  padding-top: 24px;
  padding-bottom: 24px;
}

.github-history {
  min-height: 314px;
  text-align: center;
}
.github-desc {
  margin: 0px;
  font-size: 14px;
  color: #777;
}
.sponsors a {
  font-size: 0px;
  margin: 0 6px;
  display: inline-block;
}
.splide__pagination__page {
  width: 12px;
  height: 12px;
}
.splide__pagination__page.is-active {
  background-color: #4b83f9;
}
.splide__arrow--next {
  right: -40px;
}
.splide__arrow--prev {
  left: -40px;
}
.splide__arrow {
  border-radius: 0%;
  height: 5em;
}

/* Project image placeholder wrapper: keeps layout and shows placeholder while image loads */
.project-img-wrapper {
  width:100%;
  aspect-ratio: 475 / 317; /* reserve space to avoid layout shift */
  background: linear-gradient(90deg, #f3f4f6 0%, #e6eef6 50%, #f3f4f6 100%);
  display:block;
  overflow:hidden;
  position:relative;
}

/* spinner */
.project-img-wrapper .spinner {
  position:absolute;
  left:50%;
  top:50%;
  width:36px;
  height:36px;
  margin-left:-18px;
  margin-top:-18px;
  border-radius:50%;
  border: 4px solid rgb(205 205 205 / 80%);
  border-top-color: #4b83f9;
  animation: spin 1s linear infinite;
}
.project-img-wrapper.loaded .spinner { display:none; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.project-img-wrapper img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:0;
  transform: scale(1.02);
  transition: opacity 300ms ease, transform 400ms ease;
}
.project-img-wrapper img.loaded {
  opacity:1;
  transform: scale(1);
}
img[data-error-replaced="1"] {
  height: 100% !important;
}
@media (max-width: 749px) {
  .splide__arrow--next {
    right: 6px;
  }
  .splide__arrow--prev {
    left: 6px;
  }
}
@media (max-width: 749px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}