/* ================================
   Basic reset / base typography
   ================================ */
html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  box-sizing: border-box;
}

/* ================================
   NAV BAR (kept from your original)
   ================================ */
#nav-bar {
  overflow: hidden;
  background-color: #333;
}

#nav-bar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#nav-bar ul.left > li {
  float: left;
}

#nav-bar ul.right {
  float: right;
}

#nav-bar ul.right > li {
  float: left;
}

#nav-bar li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* hover behavior preserved */
#nav-bar li a:hover {
  background-color: #111;
}

#nav-bar .right svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  display: block;
  fill: white;
}

/* preserve small-screen nav sizing (kept from your CSS) */
@media (max-width: 600px) {
  #nav-bar li a { padding: 10px 8px; }
  #nav-bar .right svg { width: 18px; height: 18px; }
}

/* ======================================
   Page container and two-column header
   ====================================== */
.site-container {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 20px;
  box-sizing: border-box;
  clear: both; /* ensure nav floats don't overlap */
}

/* Two-column header layout: image left, meta right */
.profile {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 18px;
}

/* image container styling */
.profile-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ddd;
  box-shadow: 0 2px 0 rgba(0,0,0,0.03);
  object-fit: cover;
}

/* right column header (name) */
.profile-right .blog-header h1 {
  margin: 0 0 10px 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* CV and contact blocks */
.profile-meta {
  margin-top: 8px;
}

.profile-meta h2 {
  margin: 12px 0 8px 0;
  font-size: 18px;
}

.profile-meta p {
  margin: 6px 0 0 0;
  font-size: 16px;
}

/* subtle link underline style for download / email */
.download-link, .email-link {
  display: inline-block;
  color: #222;
  text-decoration: none;
  border-bottom: 1px dotted #bbb;
  padding-bottom: 2px;
}

/* ensure nav icons/links remain white (keeps your behavior consistent) */
#nav-bar li a { color: white; }

/* ======================================
   Separator and blog post (typewriter)
   ====================================== */
.fancy-hr {
  border: none;
  border-top: 1px solid #cfcfcf;
  margin: 28px auto;
  width: 95%;
}

.blog-post {
  max-width: 900px;
  margin: 18px auto 60px auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  color: #222;
  line-height: 1.85;
  letter-spacing: 1.6px;
  padding: 8px 12px;
  box-sizing: border-box;
}

.blog-post p {
  margin: 18px 0;
}

/* ======================================
   Responsive behavior
   ====================================== */
/* stack profile sections on smaller screens */
@media (max-width: 900px) {
  .profile {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-image {
    max-width: 280px;
    margin: 0 auto;
  }

  .profile-right .blog-header h1 {
    text-align: center;
    font-size: 26px;
  }

  .profile-meta {
    text-align: center;
  }
}

/* extra small screens: reduce letter-spacing and font-size */
@media (max-width: 420px) {
  .blog-post {
    font-size: 15px;
    letter-spacing: 0.8px;
    padding: 6px;
  }
}

/* ======================================
   Your original center-container (kept)
   ====================================== */
.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  text-align: center;
}

@media (max-width: 600px) {
  .center-container p {
    font-size: 1rem;
  }
}


/* Full-bleed container (unchanged) */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;   /* one card per row */
  gap: 28px;
  margin-top: 28px;

  /* full-bleed trick */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 28px 20px;
  box-sizing: border-box;
  /* center content inside the full-bleed area */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Constrain card width so it's large but not edge-to-edge */
.project-card {
  width: 100%;
  max-width: 1200px;      /* <- controls how wide each rectangle gets */
  display: flex;
  flex-direction: column;
  min-height: 300px;
  border: 1px solid #e9e9e9;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(10,10,10,0.04);
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

/* Top row layout */
.project-top { display:flex; gap:20px; align-items:flex-start; }

/* Thumbnail when using background-image */
.project-thumb {
  width: 360px;
  height: 200px;
  flex: 0 0 360px;
  border-radius: 6px;
  border: 1px solid #f3f3f3;
  box-shadow: 0 2px 6px rgba(10,10,10,0.03);

  /* show the whole image — no cropping */
  background-size: contain;       /* <-- key change */
  background-position: center;    /* center it both axes */
  background-repeat: no-repeat;
  background-color: #000000;      /* neutral background for letterbox areas */
}

/* text column */
.project-body { display:flex; flex-direction:column; gap:8px; min-width:0; }

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .projects-grid { padding: 20px; }
  .project-top { flex-direction: column; }
  .project-thumb { width: 100%; height: 160px; flex: none; }
  .project-card { max-width: 100%; border-radius: 6px; }
}

.site-container > h1 {
  text-align: center;
  margin: 18px auto 22px;   /* vertical spacing: top 18px, bottom 22px */
  max-width: 1200px;        /* match this to .project-card's max-width */
  width: calc(100% - 40px); /* keep a little breathing room on tiny screens */
  font-size: 2rem;          /* tweak size if desired */
  font-weight: 700;
  line-height: 1.1;
}

.site-container > p {
  text-align: center;
  margin: 18px auto 22px;   /* vertical spacing: top 18px, bottom 22px */
  max-width: 1200px;        /* match this to .project-card's max-width */
  width: calc(100% - 40px); /* keep a little breathing room on tiny screens */
  font-size: 2rem;          /* tweak size if desired */
  font-weight: 700;
  line-height: 1.1;
}

