/* ───────────────────────────────────────────────────────────────
   Universal Section Headers
   ─────────────────────────────────────────────────────────────── */
   .text-center h2 {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
  }
  .text-center h2::after {
    content: '';
    position: absolute;
    width: 0; height: 4px;
    background: linear-gradient(90deg, #6C5CE7, #00B894);
    bottom: -8px; left: 50%;
    transform: translateX(-50%);
    transition: width 0.4s ease;
  }
  .text-center h2:hover::after {
    width: 100%;
  }
  .text-center p {
    color: #4a5568;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
  }
  
  /* ───────────────────────────────────────────────────────────────
     Section Wrappers
     ─────────────────────────────────────────────────────────────── */
  .process-section,
  .assembly-section,
  .testflight-section,
  .gallery-section {
    padding: 4rem 0;
    background: #f9fafb;
  }
  .process-section:nth-of-type(even),
  .assembly-section:nth-of-type(even),
  .testflight-section:nth-of-type(even),
  .gallery-section:nth-of-type(even) {
    background: #fff;
  }
  
  /* ───────────────────────────────────────────────────────────────
     Process List
     ─────────────────────────────────────────────────────────────── */
/* ─── Process Section ───────────────────────────────── */

/* ──────────────────────────────────────────────────────────────────────────
   Design Process Card
   ────────────────────────────────────────────────────────────────────────── */
   .process-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 4rem;
  }
  
  /* Layout */
  .process-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  @media (min-width: 768px) {
    .process-row {
      flex-direction: row;
      align-items: flex-start;
    }
  }
  
  /* Image */
  .process-image {
    flex: 0 0 auto;
    text-align: center;
  }
  .process-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 1rem;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  .process-image img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
  }
  
  /* Content */
  .process-content {
    flex: 1 1 auto;
  }
  .process-content h2 {
    /* gradient text + underline (same as other sections) */
    position: relative;
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #6C5CE7, #00B894);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
  }
  .process-content h2::after {
    content: '';
    position: absolute;
    width: 0; height: 4px;
    background: linear-gradient(90deg, #6C5CE7, #00B894);
    bottom: -8px; left: 50%;
    transform: translateX(-50%);
    transition: width 0.4s ease;
  }
  .process-content h2:hover::after {
    width: 100%;
  }
  .process-content p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  .process-content .link {
    color: #6C5CE7;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .process-content .link:hover {
    color: #4834d4;
  }
  
  /* Icon + text list */
  .process-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .process-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .process-list .icon {
    flex: 0 0 1.5rem;
    color: #6C5CE7;
    font-size: 1.25rem;
  }
  .process-list .process-text {
    flex: 1 1 auto;
    color: #2d3748;
    line-height: 1.5;
  }
  
  /* Responsive */
  @media (max-width: 767px) {
    .process-card {
      padding: 1.5rem;
    }
    .process-image img {
      max-width: 80%;
    }
  }
  
/* ───────────────────────────────────────────────────────────────
   Assembly Story Card & Stepper
   ─────────────────────────────────────────────────────────────── */
   .assembly-section {
    padding: 4rem 0;
    background: #f9fafb;
  }
  
  /* Card wrapper */
  .assembly-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    padding: 2rem;
  }
  
  /* Stepper */
  .assembly-stepper {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .step {
    text-align: center;
    cursor: pointer;
    flex: 1;
    transition: transform 0.3s ease;
  }
  .step .circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem; height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C5CE7, #00B894);
    color: #fff;
    font-size: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .step:hover .circle {
    transform: scale(1.3) rotate(15deg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
  .step.active .circle {
    transform: scale(1.3);
  }
  .step .label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: #2d3748;
  }
  
  /* Panels */
  .assembly-content {
    position: relative;
  }
  .panel {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: absolute;
    top: 0; left: 0;
    width: 100%;
  }
  .panel.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
  }
  
  /* Panel images */
  .panel-image {
    width: 100%;
    /* max-width: 500px; */
    margin: 0 auto 1.5rem;
    display: block;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    object-fit: cover;
  }
  
  /* Panel headings */
  .assembly-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #6C5CE7, #00B894);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
  }
  .assembly-content p {
    color: #4a5568;
    line-height: 1.6;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .assembly-stepper {
      flex-direction: column;
      align-items: center;
    }
    .step {
      margin-bottom: 1rem;
    }
    .panel {
      position: relative;
    }
  }
  
  
  /* ───────────────────────────────────────────────────────────────
     Test Flight Cards
     ─────────────────────────────────────────────────────────────── */
  .test-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
  }
  .test-cards .card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .test-cards .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  }
  .test-cards .card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #4a5568;
  }
  .test-cards .card p {
    margin: 0.5rem 0 0;
    color: #555;
    line-height: 1.6;
  }
  
 /* ──────────────────────────────────────────────────────────────
   Gallery Grid Mosaic
   ────────────────────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    grid-auto-rows: 140px;
    gap: 0.75rem;
  }
  .gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    grid-row: span 1;
  }
  /* every 5th image a little taller for variety */
  .gallery-grid img:nth-child(5n) {
    grid-row: span 2;
  }
  .gallery-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
  
  /* ──────────────────────────────────────────────────────────────
     Lightbox Overlay
     ────────────────────────────────────────────────────────────── */
  .lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }
  .lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 0.5rem;
    box-shadow: 0 12px 36px rgba(0,0,0,0.3);
  }
  .close,
  .nav {
    position: absolute;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
    padding: 0.25rem;
    transition: color 0.2s ease;
  }
  .close:hover,
  .nav:hover {
    color: #ddd;
  }
  .close {
    top: 1rem; right: 1rem;
  }
  .nav.prev {
    left: 1rem;
    top: 50%; transform: translateY(-50%);
  }
  .nav.next {
    right: 1rem;
    top: 50%; transform: translateY(-50%);
  }
  
  /* Responsive columns for small screens */
  @media (max-width: 640px) {
    .gallery-grid {
      grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
    }
    .gallery-grid img:nth-child(5n) {
      grid-row: span 1; /* no tall tiles on mobile */
    }
  }
  

  /* ──────────────────────────────────────────────────────────────
   Masonry-style Gallery Mosaic + Hover Overlay
   ────────────────────────────────────────────────────────────── */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 150px;
    gap: 0.75rem;
    grid-auto-flow: dense;
  }
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
  }
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  /* random spanning */
  .gallery-item.landscape { grid-column: span 2; }
  .gallery-item.portrait  { grid-row:    span 2; }
  .gallery-item.span2     { grid-column: span 2; grid-row: span 2; }
  /* hover lift & zoom */
  .gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
  }
  /* overlay */
  .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    transition: opacity 0.3s ease;
  }
  .gallery-item:hover .overlay {
    opacity: 1;
  }
  
  /* make every 5th thumbnail taller by default */
  .gallery-grid img:nth-child(5n) {
    /* let JS override this if needed, but gives a little built-in variety */
    grid-row: span 2;
  }
  
  @media (max-width: 640px) {
    .gallery-grid {
      grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
    }
    .gallery-item.landscape,
    .gallery-item.span2,
    .gallery-item.portrait {
      grid-column: span 1 !important;
      grid-row:    span 1 !important;
    }
  }
  



  /* ===== Drone Parts List Styling ===== */
#drone-parts {
  background-color: #ffffff;    /* white background to match your Design Process section */
  padding: 2rem 1rem;           /* vertical and horizontal breathing room */
}

#drone-parts h2 {
  text-align: center;           /* centre your single title */
  margin-bottom: 1.5rem;
}

#drone-parts .overflow-hidden {
  max-width: 1200px;            /* cap its width on large screens */
  margin: 0 auto;               /* centre it in the viewport */
}

#drone-parts .overflow-hidden img {
  width: 100%;                  /* span the full container width */
  height: auto;                 /* keep aspect ratio */
  display: block;               /* remove any inline‐image gaps */
  border-radius: 0.5rem;        /* match your rounded‐corner styling */
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #drone-parts {
    padding: 1rem 0.5rem;
  }
  #drone-parts .overflow-hidden {
    margin: 0.5rem auto;
  }
}
