      /* Mobile & Responsive Enhancements */
      * {
        box-sizing: border-box;
      }
      
      header#header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        position: relative;
        flex-wrap: wrap;
      }

      .logo-container {
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .logo-container h1 {
        font-size: 1.2rem;
        margin: 0;
      }

      #menu-toggle {
        display: none;
      }

      .menu-btn {
        display: none;
        font-size: 1.5rem;
        cursor: pointer;
      }

      /* Mobile Navigation Styles */
      @media (max-width: 768px) {
        .menu-btn {
          display: block;
        }

        nav {
          display: none;
          width: 100%;
        }

        #menu-toggle:checked ~ nav {
          display: block;
        }

        nav ul {
          flex-direction: column;
          padding: 0;
          margin: 1rem 0 0 0;
          list-style: none;
        }

        nav ul li {
          margin: 0.5rem 0;
        }

        /* Hero Adjustments */
        .hero3-content {
          padding: 2rem 1rem;
          text-align: center;
        }

        .hero3-content h1 {
          font-size: 1.5rem;
        }

        /* Filter Buttons Scrollable / Stackable */
        .filter-menu {
          display: flex;
          flex-wrap: wrap;
          gap: 8px;
          justify-content: center;
          margin-bottom: 1.5rem;
        }

        .filter-btn {
          flex: 1 1 calc(50% - 8px);
          min-width: 130px;
          padding: 10px;
          font-size: 0.85rem;
        }

        /* Responsive Gallery Grid */
        .gallery-grid {
          display: grid;
          grid-template-columns: 1fr;
          gap: 1.5rem;
        }

        /* Lightbox Adjustments for Mobile */
        .lightbox-content {
          width: 95%;
          max-height: 90vh;
          overflow-y: auto;
          margin: auto;
        }

        .lightbox-img-wrapper {
          position: relative;
        }

        .nav-btn {
          font-size: 1.5rem;
          padding: 5px 10px;
        }

        /* Footer Adjustments */
        .footer-grid {
          display: flex;
          flex-direction: column;
          gap: 2rem;
        }
      }
/* --- FILTER BUTTONS --- */
.filter-menu {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  color: #475569;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.filter-btn:hover,
.filter-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}

/* --- GALLERY GRID --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

/* --- GALLERY CARD & ANIMATIONS --- */
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.4s ease, 
              box-shadow 0.4s ease;
  opacity: 1;
  transform: scale(1);
}

/* Hide Repository Items by Default */
.gallery-item.is-hidden-repo {
  display: none;
}

/* Reveal Repository Items when active category matches */
.gallery-item.is-hidden-repo.show-repo {
  display: block;
}

/* Filter Animation Hiding Class */
.gallery-item.hide {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.gallery-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

/* --- VIDEO OVERLAY PLAY BADGE --- */
.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55px;
  height: 55px;
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.gallery-item:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.15);
  background: #1d4ed8;
}

/* --- OVERLAY & BADGES --- */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.tag {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.overlay h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.overlay p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.btn-action {
  align-self: flex-start;
  background: #2563eb;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-action:hover {
  background: #1d4ed8;
}

/* --- LIGHTBOX MODAL --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: translateY(0);
}

.lightbox-img-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: #0f172a;
}

.lightbox-img,
.lightbox-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-video {
  object-fit: contain;
  background: #000;
}

/* --- IN-CONTENT NAVIGATION BUTTONS --- */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.5);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  z-index: 10;
  user-select: none;
}

.nav-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-50%) scale(1.08);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.lightbox-body {
  padding: 25px;
}

.lightbox-title {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.lightbox-desc {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.cta-button {
  display: inline-block;
  background: #2563eb;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.cta-button:hover {
  background: #1d4ed8;
}