/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f7f5f2;
    margin: 0;
  }
  
  header {
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    background: linear-gradient(135deg, #5b4636, #3e2f25, #5b4636);
    color: white;
    padding: 0.5rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

  
  header h1 {
    margin-bottom: 0.5rem;
    font-size: 4.5rem;
  }
  
  header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 5px 0;
    padding: 0;
}

header nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

header nav a:hover {
background-color: #f7f5f2;
    color: #1f2937;
}


  section {
    padding: 2rem;
    background: white;
    margin: 1rem auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
  }
  
  section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3e2f25;
  }
  
  section h3 {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    color:#3e2f25;
  }
  
  blockquote {
    font-size: 1.2rem;
    color: #555;
    margin: 1rem 0;
    border-left: 4px solid #3e2f25;
    padding-left: 1rem;
  }
  
  ul {
    list-style-type: disc;
    padding-left: 1.5rem;
  }
  
  ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
  }
  
  a {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  .image-container img {
    max-width: 900px;
    height: auto;
    margin: 10px;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


  
  .video-link {
    display: inline-block;
    padding: 12px 18px;
    background: linear-gradient(90deg, #0066cc, #33ccff);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.video-link:hover {
    background: linear-gradient(90deg, #004488, #0099cc);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

  
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
  }
  
  table th,
  table td {
    text-align: left;
    padding: 0.8rem;
    border: 1px solid #ddd;
  }
  
  table th {
    background: #3e2f25;
    color: white;
  }
  
  table tr:nth-child(even) {
    background: #f9f9f9;
  }
  
  table tr:hover {
    background: #f1f1f1;
  }
  
  .key-notes {
    background: #f9f9f9;
    padding: 1rem;
    border-left: 4px solid #0073e6;
    margin-top: 1rem;
  }
  
  img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
  }
  
  hr {
    border: none;
    height: 1px;
    background: #ddd;
    margin: 2rem 0;
  }
  
  footer {
    text-align: center;
    padding: 1rem;
    background: #0073e6;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
  }
  
  section#prototype {
    padding: 20px;
    background: white;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    max-width: 1000px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

html {
    scroll-behavior: smooth;
}

section {
    padding: 4rem 2rem; 
    background: white;
    margin: 1rem auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    scroll-margin-top: 80px; 
}

/* Full Team Photo */
.team-photo {
  max-width: 1000px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

.team-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Team Members Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  background: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.team-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #3e2f25;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.team-card h4 {
  margin-bottom: 0.25rem;
  color: #3e2f25;
}

.team-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Mechanical layout */
.mechanical-intro {
  margin-top: 0.5rem;
  color: #555;
  font-size: 1.05rem;
}

.mech-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e6e0d9;
}

.mech-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}

.mech-text p {
  margin-top: 0.75rem;
  color: #555;
}

.mech-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e6e0d9;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.mech-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.mech-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e6e0d9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mech-gallery img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* Responsive: stack on small screens */
@media (max-width: 800px) {
  .mech-main {
    grid-template-columns: 1fr;
  }
  .mech-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .mech-gallery img {
    height: 120px;
  }
}

/* Mechanical section video */
.mech-video {
  margin: 1.5rem 0 2rem 0;
  display: flex;
  justify-content: center;
}

.mech-video video {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.subsection { break-inside: avoid; page-break-inside: avoid; break-inside: avoid-column; }
h4 { break-after: avoid; page-break-after: avoid; }

p {
  margin: 0.75rem 0;
}

h4 {
  margin: 1.25rem 0 0.5rem 0;
  line-height: 1.25;
}

.mech-text p {
  margin: 0.75rem 0;
}


.subsection {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  background: #faf9f7;
  border: 1px solid #e6e0d9;
  border-radius: 10px;
}

.subsection h4 {
  margin: 0 0 0.5rem 0;
  color: #3e2f25;
}

.subsection p {
  margin: 0.6rem 0;
}

.mech-text {
  max-width: 68ch;            
}

.mech-text p,
.subsection p {
  text-wrap: pretty;           
}

/* Software section image gallery */
.software-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}

.software-gallery img {
  width: 100%;
  max-width: 460px; /* makes them significantly bigger */
  height: auto;
  border-radius: 12px;
  border: 1px solid #e6e0d9;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.software-gallery figure {
  margin: 0;
}

.software-gallery figcaption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}

/* Stack images on small screens */
@media (max-width: 800px) {
  .software-gallery {
    grid-template-columns: 1fr;
  }

  .software-gallery img {
    max-width: 100%;
  }
}

.prototype-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.prototype-gallery img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}
