/* style.css */
html, body {
  font-family: 'Courier', sans-serif;
  margin: 0;
  height: 100%;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; 
}

footer {
  text-align: center;
  padding: 1em 0;
  background: #f5f5f5;
  border-top: 2px solid #ddd;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1em;
}

/* Header ---------------------------------------*/
header {
  background: #f5f5f5;
  padding: 0.5em 0;
  border-bottom: 2px solid #ddd;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  margin: 0;
}

nav a {
  margin-right: 1em;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

nav a:hover {
  color: #0073e6;
}

.socials a {
  margin-right: 1em;
  padding-bottom: 0em;
  text-decoration: none;
  color: #555;
  font-size: 0.9em;
}

.socials a:hover {
  color: #0073e6;
}

.links {
  display: flex;
  justify-content: space-between;
  gap: 2em; 
}

/* About ----------------------------------------*/

  .about-content {
    display: flex;
    gap: 1em;
    align-items: flex-start; /* text defines height */
  }

  .about-text-wrapper {
    flex: 1;
  }

  .profile-pic {
    width: auto;
    height: auto; /* will be set by JS */
    object-fit: contain;
    display: block;
  }
  
/* Projects -------------------------------------*/
#projects .grid {
  max-height: 300px;      /* height of the box */
  overflow-y: auto;       /* vertical scroll */
  padding: 1em;           /* optional padding inside box */
  border: 1px solid #ddd; /* optional border */
  border-radius: 10px;    /* optional rounded corners */
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
}

.card {
  background: #fafafa;
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.card h3 {
  margin-top: 0;
}

