/*------------------------------
  -------------------------------------------------------------------Web Portfolio Page Styles
------------------------------*/

.web-portfolio .master {
  max-width: 680px;
  padding: 3rem 0 1rem;
  margin: 0 auto;        /* centers the block */
  text-align: left;      /* but keeps text left-aligned inside */
}

.webdev-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #111;
  text-align: left;
}

.webtxt {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 1.1rem;
  max-width: 62ch;
  text-align: left;
}

.webtxt:last-of-type {
  margin-bottom: 0;
}




.web-portfolio {
  /*padding: 4rem 0;*/
  background-color: #fff;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 3rem;
}

.portfolio-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portfolio-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 2rem; /* Added bottom margin for spacing below description */
}


/*-------------------------------- CTA container - horizontally center and spaced */

.portfolio-cta {
  margin: 2.5rem 0 3rem 0;
  display: flex;
  justify-content: flex-start; /* changed from center */
  gap: 2rem;
  flex-wrap: wrap;
}

/*
.portfolio-cta {
  margin: 3rem 0 3rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}*/

/* Primary CTA button */

.btn-primary {
  background-color: #0055aa;
  color: #fff;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 85, 170, 0.25);
  transition: background-color 0.25s ease, box-shadow 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #003f82;
  box-shadow: 0 6px 16px rgba(0, 63, 130, 0.4);
  outline: none;
}

/* Resume link styled as subtle text link */

.resume-link {
  align-self: center;
  font-size: 1rem;
  color: #0055aa;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.resume-link:hover,
.resume-link:focus {
  color: #003f82;
  outline: none;
}

/* ----------------------------------------------Project Grid */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Project Content */

.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.project-title a {
  color: #111;
  text-decoration: none;
}

.project-title a:hover {
  color: #0055aa;
}

.project-description {
  font-size: 1rem;
  color: #444;
  margin: 0 0 1rem;
  flex: 1;
}

/* Tech Stack Badges */

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.project-tech li {
  background: #e0e0e0;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  color: #333;
}

/* Visit Site CTA */

.project-content .read-more {
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0055aa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-content .read-more:hover {
  color: #003f82;
  text-decoration: underline;
}

/* Responsive Tweaks */

@media (max-width: 500px) {
  .portfolio-title {
    font-size: 1.75rem;
  }

  .project-content {
    padding: 1.25rem;
  }

  .portfolio-cta {
    flex-direction: column;
    gap: 1rem;
  }
}