body {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
}

/* Header */
h1 {
  font-size: 2.8rem;
  margin-bottom: 0.2em;
  color: #003a8f;
}

p {
  font-size: 1.1rem;
}

/* Links */
a {
  color: #0055cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Section cards */
.section {
  background: #f5f7fa;
  border-left: 4px solid #0055cc;
  padding: 20px 24px;
  margin: 30px 0;
  border-radius: 6px;
}

.section h2 {
  margin-top: 0;
  color: #003a8f;
}

/* Project images */
.project-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 18px auto;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Two-image rows (robot + map, sim + experiment, etc.) */
.image-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0;
}

.image-row img {
  width: 48%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Cropped tall phone photos */
.crop {
  width: 100%;
  max-width: 1000px;
  height: 420px;
  object-fit: cover;
  object-position: 30% 50%;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  display: block;
  margin: 18px auto;
}

/* Rotation + flips */
.rotate90 { transform: rotate(90deg); }
.rotate270 { transform: rotate(-90deg); }
.flipH { transform: scaleX(-1); }
.flipV { transform: scaleY(-1); }

.rotate90,
.rotate270 {
  max-width: 420px;
}
