html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* pushes footer to bottom */
}

/* Base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fdfdfd;
  color: #333;
}

nav {
  background: #004080;
  padding: 1em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1em;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

main {
  padding: 2em;
  max-width: 1400px;
  margin: auto;
  display: block;
}

/* ---------- Responsive Layout for Larger Screens ---------- */
@media (min-width: 992px) {
  main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2em;
  }
  .left-column {
    display: flex;
    flex-direction: column;
    gap: 2em;
  }
  .right-column {
    display: flex;
    flex-direction: column;
    gap: 3em;
  }
}

/* ---------- Profile Card ---------- */
.profile-card {
  text-align: center;
  background: white;
  padding: 2em;
  border-radius: 12px;
  border: 10px;
}

.profile-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1em;
  border: 4px solid #004080;
}

.profile-card h1 {
  margin: 0.5em 0 0.2em;
  color: #004080;
}

.profile-card p {
  font-size: 1.1em;
  color: #555;
}

/* ---------- Section Titles ---------- */
section h2 {
  color: #004080;
  border-left: 5px solid #004080;
  padding-left: 10px;
  margin-bottom: 1em;
}

/* ---------- Articles & Projects common layout ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 0px solid #0ac90a; /* light green */
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  padding: 16px;
  margin-bottom: 20px;
}

.card:hover {
  border: 0px solid #0ac90a; /* shrink border */
  box-shadow: 0px 0px 0px #204020; /* black only bottom-right */
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 640/427;
  object-fit: cover;
  border-radius: 10px;
}

.card-content {
  padding: 1em;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: black;
}

.card-content h3 {
  margin: 0.5em 0.5em 0.5em;
  font-size: 1.2em;
  color: #004080;
}

.card-content h3 a {
  text-decoration: none;
  color: inherit;
}

.card-content h3 a:hover {
  text-decoration: underline;
}

.card-content p {
  flex-grow: 1;
  color: #555;
  margin-bottom: 1em;
}

.card-content .view-link {
  color: #004080;
  font-weight: bold;
  text-decoration: none;
}

.card-content .view-link:hover {
  text-decoration: underline;
}

/*--------- Read More Button ------- */
.read-more {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: #004080;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.read-more:hover {
  background: #4CAF50;   /* turns green on hover */
  color: #fff;
  box-shadow: 3px 3px 0px black; /* sexy right-bottom shadow */
}


/* ---------- Education & Skills ---------- */
.education, .skills {
  background: white;
  border-radius: 12px;
  padding: 1.5em;
  border: 10px ;
  background: #f5fff6;
  margin-bottom: 20px;

}
.skills .concepts {
  margin-top: 15px;
  padding-left: 20px;
  list-style-type: "✨ ";
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Connections Section ---------- */
.connections {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 1.5em;
}

.connections a {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: white;
  padding: 0.6em 1em;
  border-radius: 8px;
  border: 2px;
  color: #004080;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
}

.connections a:hover {
  border: 2px solid #204020;
  background: #f0f8ff;
}

.connections img {
  width: 24px;
  height: 24px;
}

/* ---- cards margin ---- */
.article-card, .project-card { margin-bottom: 20px; }



/* ---------- Footer ---------- */
.footer {
  background: #004080;
  color: white;
  text-align: center;
  padding: 2em 1em;
  margin-top: auto; /* pushes footer down */
  border-radius: 25px;
}

.footer h2 {
  margin-bottom: 0.5em;
  color: #fff;
}

.footer p {
  margin: 0.5em 0;
  color: #f0f0f0;
}

.footer .connections {
  justify-content: center;
}

.footer .connections a {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.footer .connections a:hover {
  background: white;
  color: #004080;
}

.footer-note {
  margin-top: 1em;
  font-size: 0.9em;
  color: #ddd;
}

