body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'EB Garamond', serif;
}

/* Homepage hero section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%); /* darken image so text is readable */
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  padding: 0 10px;
}

.name {
  font-size: 4rem;
  margin-bottom: 40px;
}

.tabs {
  display: flex;
  justify-content: space-between;
  width: 300px;
  margin: 0 auto;
}

.tab {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 8px;
  transition: background 0.3s ease;
  font-family: Arial, sans-serif; /* modern touch for tabs */
  font-weight: bold;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.5);
}

.tab.left { margin-right: 20px; }
.tab.right { margin-left: 20px; }

/* Content pages (academic/projects) */
header {
  background: #f9f9f9;
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

header h1 {
  font-family: 'EB Garamond', serif;
  font-size: 2.5rem;
  margin: 0;
}

main {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* ============================ */
/* Responsive adjustments */
/* ============================ */
@media (max-width: 768px) {
  .name {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }

  .tabs {
    width: 220px;
  }

  .tab {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 2rem;
  }

  .tabs {
    flex-direction: column;
    gap: 15px;
    width: auto;
  }

  .tab {
    display: block;
    margin: 0 auto;
    width: 150px;
  }
}
