/* =========================
   Base & Resets
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body, table, h1, h2, p, a {
  font-family: 'Lucida Sans Typewriter', 'Lucida Console', Monaco, monospace;
}

/* =========================
   Page Border
========================= */
.border {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 30px solid #42f5aa;
  border-left: 30px solid #42f5aa;
  border-right: 30px solid #42f5aa;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 768px) {
  .border {
    border-top: 10px solid #42f5aa;
    border-left: 10px solid #42f5aa;
    border-right: 10px solid #42f5aa;
  }
}

/* =========================
   Sidebar
========================= */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: #fff;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: left 0.3s ease;
  z-index: 9999;
}

.sidebar.active { left: 0; }

.sidebar a {
  color: #111;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar a:hover {
  background: #f1f1f1;
  color: #42f5aa;
}

/* =========================
   Overlay
========================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================
   Hamburger
========================= */
.hamburger {
  position: fixed;
  top: 40px;
  left: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  background: #111;
  border: 2px solid #42f5aa;
  z-index: 10000;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #42f5aa;
  border-radius: 2px;
}

/* =========================
   Intro Section
========================= */
.content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  padding: 5vw;
  text-align: center;
}

.profile-photo {
  display: block;
  margin: 20px auto;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #42f5aa;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.scroll-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #42f5aa;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.scroll-btn:hover { background: #36c58a; }

/* =========================
   Sections
========================= */
.more-info {
  padding: 5vw;
  background: #fff;
  text-align: center;
}

/* =========================
   Tables
========================= */
table {
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  border-collapse: collapse;
  font-size: 16px;
  background: #fafafa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background: #42f5aa;
  font-weight: bold;
}

tr:hover { background: #f1f1f1; }

/* =========================
   Bold divider for Resume sections
========================= */
.role-divider {
  border: none;
  height: 4px;
  background-color: #42f5aa;
  margin: 20px 0;
  border-radius: 2px;
}

/* =========================
   Grid container & project cards
========================= */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-item {
  background-color: #f9f9f9;
  border: 3px solid #42f5aa;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.grid-item > img,
.grid-item > h3,
.grid-item > p,
.grid-item > ul {
  flex-shrink: 0;
}

.grid-item .project-btn {
  margin-top: auto;
  align-self: center;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.grid-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.grid-item h3 { margin-bottom: 10px; }

.grid-item p, .grid-item ul {
  text-align: left;
  width: 100%;
  margin-bottom: 10px;
}

.grid-item ul { margin-left: 20px; }

.project-btn {
  display: inline-block;
  padding: 8px 15px;
  font-size: 14px;
  color: white;
  background-color: #42f5aa;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.project-btn:hover { background-color: #36c58a; }

/* =========================
   Spacing for sections & buttons
========================= */
#projects h2 { margin-bottom: 40px; }

.button-container {
  margin-top: 40px;
  text-align: center;
}

.button-container .scroll-btn,
.footer-buttons .scroll-btn {
  padding: 12px 24px;
  font-size: 18px;
}

/* Footer buttons container */
.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  /* Tables stack vertically and scroll if needed */
  table {
    width: 100%;
    font-size: 14px;
    margin: 15px 0;
    display: block;
    overflow-x: auto;
  }

  th, td {
    display: block;
    text-align: left;
    padding: 8px 12px;
  }

  tr {
    margin-bottom: 15px;
    display: block;
    border-bottom: 1px solid #ddd;
  }

  tr:last-child { border-bottom: none; }

  .role-divider {
    height: 3px;
    margin: 15px 0;
  }

  /* Adjust more-info padding */
  .more-info { padding: 5vw 4vw; }

  /* Stack buttons vertically on mobile */
  .button-row,
  .footer-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .button-row .scroll-btn,
  .footer-buttons .scroll-btn {
    width: 80%;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
  }

  /* Reduce top-right link spacing if any */
  .top-right { gap: 10px; }
}
