/* 1) Make padding count toward width (prevents overflow from 100% + padding) */
*, *::before, *::after { box-sizing: border-box; }

/* 2) Reset + stop horizontal scrolling (good safety net) */
html, body { margin: 0; padding: 0; overflow-x: hidden; }

/* 4) Media should never exceed the container width */
img, canvas, iframe, embed, object, video {
  max-width: 100%;
  height: auto;
  display: block;      /* avoids inline whitespace quirks */
}

/* Reset margins */
body, h1, h2, p {
  margin: 0;
  padding: 0;
}

/* Base styles */
body {
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #171616;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #ddd;
  background-color: #171616; 
  margin: 0; /* remove default whitespace */
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #171616;
  border-bottom: 1px solid #ddd;
  color: #ddd;
}

.left-header {
  display: flex;
  align-items: center;
}

.logo-box {
  width: 50px;
  height: 50px;
  background: #ccc; /* placeholder */
  margin-right: 15px;
}

.site-name {
  font-size: 1.5rem;
  font-weight: bold;
}

.site-name a { 
  text-decoration: none;
  color: inherit;   /* use the same color as h1 */
}

.site-name a:hover {
  color: #0077b5;   /* optional: subtle hover effect */
}

.right-header a {
  margin-left: 20px;
  text-decoration: none;
  color: #ddd;
  font-weight: bold;
  font-size: 1.3rem;
}

.right-header a:hover {
  color: #0077b5; /* LinkedIn blue for hover */
}

/* Main content split */
main {
  flex: 1;
  padding: 20px;
}

/* Only pages that need a two-column layout get flex */
main.split {
  display: flex;
  gap: 20px;
}

main.split .text-block,
main.split .image-block {
  flex: 1;
}

.text-block {
  flex: 1;
  max-width: 400px;        /* keep text narrower */
  display: flex;
  flex-direction: column;  /* stack heading + text */
  justify-content: center; /* vertically center content */
  font-size: 1.15rem;
  align-items: center;
}

.image-block {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-main {
  width: 80%;
  background: #171616;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-block;        /* Makes it behave like a button */
  background-color: lightgray;    /* Button color (blue) */
  color: black;                 /* Text color */
  padding: 12px 24px;           /* Vertical & horizontal spacing */
  text-align: center;           /* Center text */
  text-decoration: none;        /* Remove underline */
  font-size: 18px;              /* Font size */
  border-radius: 6px;           /* Rounded corners */
  border: none;                 /* No border */
  transition: background-color 0.3s ease; /* Smooth hover effect */
  margin-top: 35px; /* ← adds space above the button */
  width: 40%;
  font-weight: 600;
}

.btn:hover {
  background-color: white;    /* Darker blue on hover */
  color: #0077b5;
  transform: translateY(-2px) translateX(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background:  #171616;
  border-top: 1px solid #ddd;
}

footer a {
  text-decoration: none;
  color: #ddd;
}

footer a:hover {
  color: #0077b5;
}

/* Container to bound content */
.container {
  width: 100%;          /* let it shrink on small screens */
  max-width: 1200px;    /* hard limit so it’s not super wide */
  margin: 0 auto;      /* centers it horizontally */
  background:  #171616;    /* optional: white background */
  box-shadow: 0 0 10px rgba(0,0,0,0.1); /* subtle shadow */ 
  padding: 0 20px;     /* side padding so text isn’t flush */
}

.pdf-container {
  width: 100%;   /* span the page */
  /* height: 90vh;  /* 90% of viewport height */
  
}

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .project-tile {
    background: lightgray;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .project-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    background: white;
  }
  .project-thumb {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }
  .project-content {
    padding: 16px;
  }
  .project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .project-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
  }


/* Responsive behavior: stack blocks on small screens */
@media (max-width: 768px) {
  main.split {
    flex-direction: column;   /* stack vertically */
  }
  /* Make each section full width when stacked */
  main.split .text-block,
  main.split .image-block {
    flex: 0 0 auto;             /* stop them from trying to share a row */
    max-width: 100%;
    width: 100%;
    text-align: center;
  }

  .image-main {
    height: 200px;            /* shrink placeholder for phones (optional) */
  }

  .site-name {
    font-size: 0.9rem;   /* smaller than desktop’s 1.5rem */
  }

 header {
  padding: 5px 10px;
 }

  .right-header a {
    font-size: 0.7rem;
  }

  .projects-grid {
      grid-template-columns: 1fr;
    }

}