
/* General Reset */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #333;
}

/* Header Styles */
header {
  background-color: #b4d5f4; /* Blue */
  color: black;
  text-align: center;
  padding: 20px 0;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
}

header p {
  margin: 5px 0 15px;
  font-size: 1.1em;
}

nav a {
  color: blue;
  text-decoration: none;
  margin: 0 10px;
}

nav a:hover {
  text-decoration: underline;
}

/* Main Content */
main {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

/* Section Title */
.gallery-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

/* Project Card */
.project-card {
  display: block;
  text-align: center;
  text-decoration: none;
  background-color: lightblue;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: center;
}

.project-card p {
  margin: 10px 0;
  font-weight: bold;
  color: #333;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-flex {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.profile-image-oval-body {
  width: 180px;
  height: 240px;
  object-fit: cover;
  border-radius: 50% / 40%;
  border: 3px solid #007BFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.about-text {
  flex: 1;
  min-width: 260px;
}

.project-banner {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bubble {
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-bubble {
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 1000px;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.inline-image {
  width: 100%;
  max-width: 240px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inline-image2 {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inline-image3 {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Concept Sections */
.concept-block {
  margin-bottom: 40px;
}

.concept-header {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 10px;
  color: black;
}

.concept-flex {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.concept-flex .concept-image,
.concept-grid > div {
  flex: 1 1 45%;
  text-align: center;
}

.concept-image img,
.concept-grid img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.concept-image p,
.concept-grid p {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 0.95em;
  color: #333;
}

.full-width {
  text-align: center;
  width: 100%;
}

.full-width img {
  width: 100%;
  max-width: 450px;
  justify-content: center;
  margin-bottom: 10px;
}

/* CAD & Electronics Layout */
.cad-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.leg-subsection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.leg-images {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.leg-images img {
  width: 100%;
  max-width: 240px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cad-electronics-image {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cad-electronics-image2 {
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Image Hover and Lightbox */
.hover-zoom {
  transition: transform 0.3s ease;
}

.hover-zoom:hover {
  transform: scale(1.5);
  z-index: 10;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2em;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

.design-bubble {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 10px;
  margin-top: 10px;
  width: 85%; /* CHANGED: from 70% to 85% */
  max-width: 900px; /* CHANGED: from 700px to 900px */
}

.leg-flex {
  display: flex;
  justify-content: center;
  gap: 40px; /* NEW: adds space between the two leg images */
  flex-wrap: wrap;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto; /* center in bubble */
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* optional drop shadow */
}

/* 3x2 Grid */
.image-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  grid-template-rows: auto auto auto;    /* 3 rows */
  gap: 20px;
  justify-items: center;
  align-items: start;
  text-justify: center;
}

.image-grid-3x2 img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
}

.mechanism-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap; /* ✅ ADDED to allow wrapping on smaller screens */
}

.mechanism-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap; /* ✅ ADDED to allow wrapping on smaller screens */
}

.mechanism-grid img {
  width: 200px;
  border-radius: 12px;
}

.mechanism-item {
  flex: 1 1 300px;
  text-align: center;
}

.mechanism-item img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
}


.ux-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
  text-align: center;
  margin-top: 20px;
}
.ux-grid img {
  width: 180px;
  border-radius: 12px;
}

.problem-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.problem-grid div {
  flex: 1 1 30%;
  text-align: center;
}
.problem-grid img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.compostsmart-layout {
  padding: 40px 20px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.plus-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.proto-img {
  text-align: center;
  max-width: 250px;
}

.proto-image {
  width: 100%;
  max-width: 250px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rounded-gif {
  width: 100%;
  max-width: 250px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.caption {
  margin-top: 8px;
  font-size: 0.95em;
  color: #444;
}

/* end of plus grid section for prototype */

/* Prior Art Table Formatting */
.prior-art-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.art-box {
  background-color: #f2f7ee;
  border: 1px solid #aaa;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.art-title {
  font-weight: 700;
  font-size: 1.2em;
  text-align: left;
  margin-bottom: 15px;
  color: #333;
}

.art-image {
  width: 260px;
  height: 150px;
  object-fit: contain;
  margin: 10px auto;
  display: block;
}

.art-desc {
  font-size: 0.95em;
  color: #444;
  text-align: left;
  margin-top: 10px;
}

/* for the last two sections of compostsmar prototype */

.compostsmart-section {
  background-color: #f9f9f9;
  border-radius: 20px;
  padding: 40px;
  margin: 60px auto;
  max-width: 1000px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sub-bubble-section {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  border-radius: 20px;
  background-color: #ffffff;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bubble-card {
  text-align: center;
  max-width: 250px;
  margin: 20px;
}

.bubble-card img,
.bubble-card video {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
}

.bubble-card h4 {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.bubble-card p {
  font-size: 0.95em;
  color: #333;
}

.bubble-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 40px 0;
}

/* vibration motor */

.gif-split-center {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.wide-gif {
  width: 100%;
  max-width: 360px; /* Larger than before */
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vibration-top-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 30px;
}

.vibration-top-image {
  width: 320px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.vibration-bottom-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.vibration-bottom-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.vibration-top-content {
  text-align: center;
}

.vibration-caption {
  margin-top: 10px;
  font-size: 0.95em;
  color: #444;
}

/* adding in the rest of the prortype improvement journey */

.vibration-redesign-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
  /* border: 2px solid #e0e0e0;
  border-radius: 20px; */
  padding: 30px 20px;
  margin-top: 20px;
}

.vibration-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 280px;
  flex: 1;
  text-align: center;
}

.vibration-column h3 {
  font-size: 1.2em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.vibration-redesign-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 15px;
  height: auto;
  object-fit: cover;
}

/* vibration motor cartridge cad images */

.centered-image-pair {
  display: flex;
  justify-content: center;     /* Centers the pair as a group */
  align-items: center;
  gap: 40px;                    /* Space between the two images */
  margin-top: 60px;
  margin-bottom: 30px;
  flex-wrap: wrap;              /* Allow wrapping on smaller screens */
}

.centered-image-pair img {
  width: 420px;
  height: auto;
  border-radius: 12px;          /* Optional beveling */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional light shadow */
}

.centered-image-pair2 {
  display: flex;
  justify-content: center;     /* Centers the pair as a group */
  align-items: center;
  gap: 40px;                    /* Space between the two images */
  margin-top: 60px;
  margin-bottom: 30px;
  flex-wrap: wrap;              /* Allow wrapping on smaller screens */
}

.centered-image-pair2 img {
  width: 300px;
  height: auto;
  border-radius: 12px;          /* Optional beveling */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional light shadow */
}

.image-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-caption.bubble {
  background-color: white;
  border-radius: 12px;
  padding: 8px 16px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 0.95em;
  color: #333;
  white-space: nowrap;
}

/* floating sidebar */

.floating-sidebar {
  position: fixed;
  top: 120px;
  left: 20px;
  width: 180px; /* Reduced width */
  background-color: #f8f9fb;
  border-radius: 12px;
  padding: 12px 10px; /* Reduced padding */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  font-family: sans-serif;
}

.floating-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.floating-sidebar li {
  margin-bottom: 5px;
}

.floating-sidebar a {
  display: block;
  background-color: #ffffff;
  padding: 8px 10px; /* Slightly smaller padding */
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.9em; /* Slightly smaller font */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.floating-sidebar a:hover {
  background-color: #e0ecff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  color: #003087;
}

.sidebar-title {
  font-size: 1em; /* Reduced font size */
  font-weight: bold;
  color: #ffffff;
  background-color: #1e88e5;
  padding: 8px 12px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  text-align: center;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-group {
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 5px;
}

.floating-sidebar a.muted-blue {
  background-color: #dceaf7;
}

.floating-sidebar a.muted-blue:hover {
  background-color: #c8def0;
}

/* trakstar sensors */

.sensor-layout {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.sensor-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sensor-title,
.sensor-caption {
  background-color: #f1f1f1;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 500;
  text-align: center;
  margin: 10px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  min-width: 180px;
}

.sensor-column img {
  max-width: 240px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Conatact webpage styling */

.contact-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: sans-serif;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: sans-serif;
  font-size: 1em;
}

.contact-form button {
  background-color: #1e88e5;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #1565c0;
}


