/**
 * Gallery 2027 - Hybrid Glassmorphism + 3D Design
 * Mesmerizing campaign gallery for Hon. Solomon Saigut Cherogony
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* UDA Brand Colors */
  --uda-green: #009639;
  --uda-green-light: rgba(0, 150, 57, 0.6);
  --uda-green-glow: rgba(0, 150, 57, 0.3);
  --uda-gold: #FFCD00;
  --uda-gold-light: rgba(255, 205, 0, 0.6);
  --uda-dark: #0b1a0e;
  
  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-border-light: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;
  --glass-blur-strong: 30px;
  --glass-uda: rgba(0, 150, 57, 0.2);
  
  /* 3D & Depth */
  --perspective: 1200px;
  --shadow-glow: 0 0 40px rgba(0, 150, 57, 0.3);
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 48px rgba(0, 150, 57, 0.25),
                      0 20px 60px rgba(0, 0, 0, 0.4);
  
  /* Background */
  --bg-dark: #0a0f0d;
  --bg-gradient: radial-gradient(ellipse at 20% 50%, 
              rgba(0, 150, 57, 0.15) 0%, 
              transparent 50%),
             radial-gradient(ellipse at 80% 20%, 
              rgba(255, 205, 0, 0.1) 0%, 
              transparent 50%),
             var(--bg-dark);
  
  /* Typography */
  --font-display: 'Clash Display', 'Syne', 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', 'Outfit', system-ui, sans-serif;
  
  /* Spacing */
  --gallery-gap: 24px;
  --card-radius: 20px;
  --pill-radius: 50px;
}

/* ============================================
   IMPORT GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   DARK TOPBAR FOR GALLERY - COMPACT
   ============================================ */
body .topbar {
  background: rgba(10, 15, 13, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body .topbar .nav {
  padding: 6px 0 !important;
  gap: 0.5rem !important;
  min-height: 40px !important;
  align-items: center !important;
}

body .topbar .logo {
  width: 32px !important;
  height: 32px !important;
  font-size: 0.8rem !important;
  border-radius: 8px !important;
}

body .topbar .menu {
  gap: 0.4rem !important;
}

body .topbar .menu {
  gap: 0.5rem !important;
}

body .topbar .logo {
  width: 36px !important;
  height: 36px !important;
  font-size: 0.9rem !important;
}

body .topbar .nav a,
body .topbar .menu a {
  color: rgba(255, 255, 255, 0.8) !important;
  min-height: 32px !important;
  padding: 6px 10px !important;
  font-size: 0.9rem !important;
}

body .topbar .nav a:hover,
body .topbar .menu a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

body .topbar .nav a.active,
body .topbar .menu a.active {
  background: var(--glass-uda) !important;
  color: #ffffff !important;
}

body .topbar .brand {
  gap: 8px !important;
  align-items: center !important;
}

body .topbar .brand .title {
  line-height: 1.1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

body .topbar .brand .title b {
  color: #ffffff !important;
  font-size: 0.85rem !important;
  line-height: 1.1 !important;
}

body .topbar .brand .title span {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 8px !important;
  line-height: 1 !important;
}

body .topbar .brand .title span {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 9px !important;
  line-height: 1.1 !important;
}

body .topbar .btn.primary {
  background: var(--uda-green) !important;
  color: #ffffff !important;
}

/* Reduce container padding on gallery page */
body .container {
  padding: 0 12px !important;
}

/* ============================================
   3D HERO SECTION
   ============================================ */
.hero-3d {
  position: relative;
  height: 40vh;
  min-height: 300px;
  max-height: 450px;
  perspective: var(--perspective);
  overflow: hidden;
  background: var(--bg-gradient);
  display: block;
}

/* Breathing room below hero */
main.container {
  margin-top: 40px;
}

.gallery-grid-3d {
  padding: 20px 24px 60px;
}

/* Animated gradient orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float-orb 20s ease-in-out infinite;
  pointer-events: none;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--uda-green) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--uda-gold) 0%, transparent 70%);
  bottom: -50px;
  right: -50px;
  animation-delay: -7s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 150, 57, 0.5) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  25% { transform: translate(30px, -30px) scale(1.1); opacity: 0.8; }
  50% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.7; }
  75% { transform: translate(20px, 10px) scale(1.05); opacity: 0.9; }
}

/* Floating 3D cards in hero - MIDDLE portion (glow bubble zone) */
.hero-perspective {
  position: absolute;
  top: auto;
  bottom: 15%;
  left: 0;
  right: 0;
  height: 50%;
  transform-style: preserve-3d;
  z-index: 2;
  pointer-events: none;
}

.float-card {
  position: absolute;
  width: 140px;  /* Was 160px - smaller */
  height: 100px;  /* Was 110px - smaller */
  border-radius: 50%; /* Circular bubble! */
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: var(--shadow-deep), 0 0 30px rgba(0, 150, 57, 0.4); /* Green glow! */
  border: 2px solid rgba(0, 150, 57, 0.6); /* Green border glow */
  pointer-events: auto;
  /* Center cards horizontally */
  left: 50%;
  margin-left: -70px; /* Half of 140px width */
}

.float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(20px);
  transition: transform 0.6s ease;
  filter: brightness(0.9) contrast(1.1);
}

.float-card:hover {
  box-shadow: var(--shadow-deep), 0 0 50px rgba(0, 150, 57, 0.8);
  border-color: rgba(0, 150, 57, 0.9);
}

.float-card:hover img {
  transform: translateZ(40px) scale(1.1);
  filter: brightness(1.1) contrast(1.2);
}

/* Hero text overlay - positioned at very bottom */
.hero-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateZ(100px);
  z-index: 10;
  text-align: center;
  width: 90%;
  max-width: 600px;
  min-height: 80px; /* Give it height for % children */
}

.hero-text.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0 0 20px rgba(0, 150, 57, 0.2);
  margin-bottom: 0;
}

.hero-title-3d {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--uda-gold) 50%, var(--uda-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ============================================
   MOBILE SHOWCASE - TWO-PHASE GLASS CYCLE
   ============================================ */
.showcase-phase {
  position: absolute;
  inset: 0;  /* Fill parent completely */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  text-align: center;
  z-index: 5;
}

.showcase-phase.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.showcase-phase.phase-1 {
  z-index: 12;
}

.showcase-phase.phase-2 {
  z-index: 11;
}

/* Compact title for phase 2 */
.showcase-phase.phase-2 .hero-title-3d.compact {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 8px;
}

/* Glassmorphism transition effect */
.showcase-phase.active {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Container for hero text - no position relative (hero-text handles absolute positioning) */
.hero-text.glass-panel {
  overflow: hidden;
}

/* ============================================
   DESKTOP: Show static text (phase-2 only)
   ============================================ */
@media (min-width: 769px) {
  .showcase-phase {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: block;
  }
  
  .showcase-phase.phase-1 {
    display: none; /* Hide phase-1 on desktop */
  }
  
  /* KEEP COMPACT SIZE - don't restore large! */
  .showcase-phase.phase-2 .hero-title-3d.compact {
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* Compact for desktop too */
    margin-bottom: 8px;
  }
  
  /* Cards smaller on desktop for better arrangement */
  .float-card {
    width: 160px;  /* Keep as-is from Step 4 */
    height: 110px;
    margin-left: -80px; /* Half of 160px */
  }
}
 
/* ============================================
   GLASSMORPHISM FILTER BAR
   ============================================ */

/* ============================================
   GLASSMORPHISM FILTER BAR
   ============================================ */
.filter-glass-container {
  position: sticky;
  top: 80px;
  z-index: 100;
  padding: 12px 0;
  background: rgba(10, 15, 13, 0.9);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
}

.filter-glass {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur-strong));
  -webkit-backdrop-filter: blur(var(--glass-blur-strong));
  border: 1px solid var(--glass-border);
  border-radius: var(--pill-radius);
  padding: 6px 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
               inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-pill {
  background: transparent;
  border: 1px solid var(--glass-border-light);
  border-radius: var(--pill-radius);
  padding: 8px 18px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border);
  color: rgba(255, 255, 255, 0.9);
}

.filter-pill.active {
  background: var(--glass-uda);
  border-color: var(--uda-green);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 150, 57, 0.4);
}

.filter-search {
  flex: 1;
  min-width: 180px;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--pill-radius);
  padding: 8px 16px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.filter-search::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.filter-search:focus {
  border-color: var(--uda-green);
  background: rgba(0, 150, 57, 0.1);
  box-shadow: 0 0 20px rgba(0, 150, 57, 0.2);
}

/* ============================================
   3D GALLERY GRID
   ============================================ */
.gallery-grid-3d {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gallery-gap);
  padding: 0 24px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================
   GALLERY CARD - 3D + GLASS
   ============================================ */
.gallery-card-3d {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s ease;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  
  /* Start visible, animate in if .revealed class is added */
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.gallery-card-3d.revealed {
  opacity: 1;
  transform: translateY(0) rotateX(0);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-card-3d:hover {
  transform: translateY(-8px) rotateX(2deg) scale(1.02);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 150, 57, 0.3);
}

/* Stagger animation */
.gallery-card-3d:nth-child(1) { transition-delay: 0ms; }
.gallery-card-3d:nth-child(2) { transition-delay: 100ms; }
.gallery-card-3d:nth-child(3) { transition-delay: 200ms; }
.gallery-card-3d:nth-child(4) { transition-delay: 300ms; }
.gallery-card-3d:nth-child(5) { transition-delay: 400ms; }
.gallery-card-3d:nth-child(6) { transition-delay: 500ms; }
.gallery-card-3d:nth-child(7) { transition-delay: 600ms; }
.gallery-card-3d:nth-child(8) { transition-delay: 700ms; }

/* Card image container */
.card-image-3d {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  transform: translateZ(20px);
  transition: transform 0.4s ease;
}

.gallery-card-3d:hover .card-image-3d {
  transform: translateZ(40px) scale(1.05);
}

.card-image-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-card-3d:hover .card-image-3d img {
  transform: scale(1.1);
}

/* Shine effect on hover */
.gallery-card-3d::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 5;
}

.gallery-card-3d:hover::before {
  transform: rotate(45deg) translate(50%, 50%);
}

/* Card status badge */
.card-badge-3d {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 3;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card-badge-3d.published {
  background: rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.card-badge-3d.pending {
  background: rgba(245, 158, 11, 0.3);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fcd34d;
}

.card-badge-3d.rejected {
  background: rgba(239, 68, 68, 0.3);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

/* Card body */
.card-body-3d {
  padding: 20px;
  transform: translateZ(30px);
}

.card-title-3d {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #ffffff;
  line-height: 1.3;
}

.card-meta-3d {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.card-meta-3d span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-description-3d {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card tags */
.card-tags-3d {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tag-3d {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border-light);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   3D LIGHTBOX
   ============================================ */
.lightbox-3d {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(var(--glass-blur-strong));
  -webkit-backdrop-filter: blur(var(--glass-blur-strong));
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  perspective: 1500px;
}

.lightbox-3d.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-carousel {
  display: flex;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.lightbox-slide {
  flex: 0 0 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.lightbox-slide img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 80px rgba(0, 150, 57, 0.3);
  transform: translateZ(100px);
  transition: transform 0.4s ease;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-nav:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* Lightbox info panel */
.lightbox-info {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateZ(200px);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 32px;
  min-width: 400px;
  text-align: center;
  z-index: 10;
}

.lightbox-info h3 {
  margin: 0 0 8px 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.lightbox-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ============================================
   STATS ROW
   ============================================ */
.stats-row-3d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 0 24px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.stat-card-3d {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-card-3d:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 150, 57, 0.3);
  box-shadow: var(--shadow-glow);
}

.stat-card-3d .stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-card-3d .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.stat-card-3d .stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, var(--uda-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-3d {
    height: 50vh;
    min-height: 350px;
    max-height: 500px;
  }
  
  .hero-perspective {
    height: 65%;
  }
  
  .hero-text {
    bottom: 15px;
  }
  
  .hero-text.glass-panel {
    padding: 20px 16px;
    margin: 0 12px;
  }
  
  .gallery-grid-3d {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    padding: 0 16px 32px;
  }
  
  .filter-glass {
    padding: 6px;
    gap: 8px;
  }
  
  .filter-pill {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
  
  .filter-search {
    min-width: 150px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .lightbox-info {
    min-width: unset;
    left: 16px;
    right: 16px;
    transform: none;
  }
  
  .float-card {
    width: 160px;
    height: 120px;
  }
  
  /* Compact topbar for mobile */
  body .topbar .nav {
    padding: 6px 0 !important;
    gap: 0.5rem !important;
    flex-wrap: wrap;
  }
  
  body .topbar .menu a {
    min-height: 28px !important;
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
  }
  
  body .topbar .btn.primary {
    min-height: 28px !important;
    padding: 4px 10px !important;
    font-size: 0.85rem !important;
  }
  
  body .topbar .logo {
    width: 32px !important;
    height: 32px !important;
  }
  
  body .topbar .brand .title b {
    font-size: 0.9rem !important;
  }
  
  body .topbar .brand .title span {
    font-size: 9px !important;
  }
  
  body .container {
    padding: 0 8px !important;
  }
}

/* ============================================
   GALLERY FOOTER - COMPACT INLINE STATS
   ============================================ */
.gallery-footer {
  background: rgba(10, 15, 13, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 20px 0;
  margin-top: 60px;
}

.gallery-footer .footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.gallery-footer .footer-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.gallery-footer .footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.gallery-footer .footer-sep {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 4px;
}

.gallery-footer .footer-stat-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.gallery-footer .footer-stat-inline span {
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  font-size: 0.9rem;
}

/* Responsive footer */
@media (max-width: 768px) {
  .gallery-footer .footer-inline {
    gap: 6px;
    font-size: 0.8rem;
  }
  
  .gallery-footer .footer-copyright {
    font-size: 0.75rem;
  }
  
  .gallery-footer .footer-stat-inline span {
    font-size: 0.85rem;
  }
}

/* Responsive hero - additional mobile tweaks */
@media (max-width: 768px) {
  .hero-3d {
    height: 45vh;
    min-height: 300px;
  }
  
  .hero-perspective {
    bottom: 35%;
    height: 65%;
  }
  
  .hero-text {
    bottom: 5px;
  }
  
  .hero-text.glass-panel {
    padding: 12px 20px;
    min-height: 60px;
  }
  
  .hero-3d {
    height: 35vh;
    min-height: 250px;
  }
  
  .hero-perspective {
    bottom: 10%;
    height: 45%;
  }
  
  .float-card {
    width: 120px;
    height: 80px;
    margin-left: -60px; /* Half of 120px */
    border-radius: 50%; /* Circular */
  }
  
  .hero-text {
    bottom: 3px;
  }
  
  .hero-text.glass-panel {
    padding: 6px 12px;
    min-height: 40px;
  }
  
  .hero-3d {
    height: 35vh;
    min-height: 250px;
  }
  
  .hero-perspective {
    bottom: 10%;
    height: 45%;
  }
  
  .float-card {
    width: 100px;  /* Was 120px - smaller for mobile */
    height: 70px;  /* Was 80px */
    margin-left: -50px; /* Half of 100px */
    border-radius: 50%; /* Circular */
  }
  
  .hero-text {
    bottom: 5px;
    min-height: 50px;
  }
  
  .hero-text.glass-panel {
    padding: 8px 12px;  /* Slightly more than 6px */
    min-height: 40px;
  }
  
  .showcase-phase {
    height: 20%;
    padding: 4px;
  }
  
  .showcase-phase.phase-1 .hero-title-3d {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }
  
  .showcase-phase.phase-2 .hero-title-3d.compact {
    font-size: clamp(0.8rem, 3vw, 1.2rem);
  }
  
  .showcase-phase.phase-2 .hero-subtitle {
    font-size: clamp(0.5rem, 1.8vw, 0.6rem);
    line-height: 1.1;
  }
}
  

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
.filter-pill:focus-visible,
.filter-search:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid var(--uda-green);
  outline-offset: 2px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.gallery-empty-3d {
  text-align: center;
  padding: 80px 24px;
  color: rgba(255, 255, 255, 0.6);
}

.gallery-empty-3d .empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.gallery-empty-3d h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 8px 0;
}

.gallery-empty-3d p {
  font-size: 1rem;
  margin: 0;
}
