/* === Global Styles === */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f8fa;
  color: #333;
  line-height: 1.6;
}

/* === Header === */
header {
  background-color: #0077b6;
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
}

nav ul li {
  display: inline-block;
  margin: 0 0.8rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* === Main Layout === */
main {
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* === Projects Section wrapper + title === */
.projects-section {
  margin-top: 1.5rem;
}

.projects-title {
  color: #0077b6;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  text-align: center;
}

/* === Projects grid: centered boxed cards === */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  justify-content: center;   /* centers the grid within container */
  gap: 1.5rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Each project card box */
.project-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 1.25rem;
  text-align: left;          /* keep card content left-aligned for readability */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;              /* equal-height columns in the grid */
  max-width: 320px;
  margin: 0 auto;            /* centers card inside its grid cell */
  box-sizing: border-box;
}

/* Project card image */
.project-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

/* Card headings & text */
.project-card h3 {
  color: #0077b6;
  margin: 0.25rem 0 0.25rem 0;
  font-size: 1.05rem;
}

.project-card p {
  color: #444;
  font-size: 0.95rem;
  margin: 0;
  flex-grow: 1; /* pushes the button to bottom if text is short */
}

/* Button inside card */
.btn {
  display: inline-block;
  background-color: #0077b6;
  color: white;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  align-self: flex-start;
}

.btn:hover {
  background-color: #005f8a;
}

/* === About / index shared styles (if you also use these pages) === */
.about h2, .projects-title {
  color: #0077b6;
}

.about, .profile {
  margin: 0 auto;
  max-width: 900px;
}

/* Profile image (index page) */
.profile img {
  width: 150px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto 1rem auto;
}

/* === Footer === */
footer {
  background-color: #0077b6;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* === Responsive tweaks === */
@media (max-width: 900px) {
  .project-card {
    max-width: 92%;
  }

  .projects {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding: 0 1rem;
  }
}

@media (max-width: 520px) {
  header h1 { font-size: 1.3rem; }
  .project-card { padding: 0.9rem; }
  .project-card h3 { font-size: 1rem; }
  .profile img { width: 120px; }
}

/* Center the Professional Projects header */
.projects-header {
  text-align: center;
  color: #0077b6; /* optional blue theme color */
  margin-bottom: 2rem;
}

/* === Card Component === */
.card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 1.25rem;
  margin: 1rem auto;
  max-width: 600px;
  text-align: center;
  box-sizing: border-box;
}

/* Card headings and text */
.card h3 {
  color: #0077b6;
  margin: 0.5rem 0;
}

.card p {
  color: #444;
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

/* Center Professional Projects header */
.projects-header {
  text-align: center;
  color: #0077b6;
  margin-bottom: 2rem;
}