/* ============================================================
   HOBLEMERCYTECH PUBLIC GALLERY
   STEP 2A
   Global layout, animated background, header and hero
============================================================ */


/* ============================================================
   ROOT VARIABLES
============================================================ */

:root {
  /* Backgrounds */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-soft: #eef2ff;
  --card-bg: rgba(255, 255, 255, 0.88);

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* HoblemercyTech brand */
  --violet: #8a2be2;
  --purple: #7c3aed;
  --indigo: #6366f1;
  --electric-blue: #3b82f6;
  --fuchsia: #a855f7;
  --green: #22c55e;

  --brand-primary: var(--violet);
  --brand-secondary: var(--electric-blue);
  --brand-support: var(--indigo);
  --brand-accent: var(--fuchsia);

  /* Borders */
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Gradients */
  --brand-gradient:
    linear-gradient(
      135deg,
      var(--violet),
      var(--electric-blue)
    );

  --brand-gradient-alt:
    linear-gradient(
      135deg,
      var(--purple),
      var(--fuchsia)
    );

  --brand-gradient-soft:
    linear-gradient(
      135deg,
      rgba(138, 43, 226, 0.12),
      rgba(59, 130, 246, 0.08)
    );

  /* Shadows */
  --shadow-sm:
    0 3px 12px rgba(15, 23, 42, 0.06);

  --shadow-md:
    0 12px 34px rgba(15, 23, 42, 0.1);

  --shadow-lg:
    0 25px 70px rgba(15, 23, 42, 0.16);

  --shadow-brand:
    0 18px 42px rgba(124, 58, 237, 0.28);

  --glow:
    0 0 30px rgba(138, 43, 226, 0.24);

  --glow-lg:
    0 0 60px rgba(138, 43, 226, 0.34);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --radius-full: 999px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;

  /* Fonts */
  --font-display: "Sora", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Layout */
  --container-width: 1200px;
  --header-height: 72px;
}


/* ============================================================
   DARK MODE
============================================================ */

[data-theme="dark"] {
  --bg-primary: #0a0a0f;
  --bg-secondary: #11111a;
  --bg-muted: #16161f;
  --bg-soft: #171624;
  --card-bg: rgba(17, 17, 26, 0.9);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #7c8799;

  --violet: #9b5cff;
  --purple: #8b5cf6;
  --indigo: #818cf8;
  --electric-blue: #60a5fa;
  --fuchsia: #c084fc;

  --border-color: #252536;
  --border-strong: #343449;

  --shadow-sm:
    0 4px 14px rgba(0, 0, 0, 0.32);

  --shadow-md:
    0 14px 38px rgba(0, 0, 0, 0.45);

  --shadow-lg:
    0 28px 78px rgba(0, 0, 0, 0.6);

  --shadow-brand:
    0 20px 48px rgba(139, 92, 246, 0.32);

  --glow:
    0 0 34px rgba(155, 92, 255, 0.34);

  --glow-lg:
    0 0 68px rgba(155, 92, 255, 0.44);
}


/* ============================================================
   RESET
============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(138, 43, 226, 0.2);
  color: var(--text-primary);
}


/* Custom scrollbar */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-muted);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg-muted);
  border-radius: 999px;
  background: linear-gradient(
    var(--violet),
    var(--electric-blue)
  );
}


/* ============================================================
   ACCESSIBILITY
============================================================ */

:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.45);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}


/* ============================================================
   PAGE BACKGROUND
============================================================ */

.gallery-page-background {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  pointer-events: none;
}

.gallery-background-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(
      rgba(124, 58, 237, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(124, 58, 237, 0.045) 1px,
      transparent 1px
    );
  background-size: 42px 42px;
  mask-image:
    linear-gradient(
      to bottom,
      #000 0%,
      transparent 82%
    );
}

[data-theme="dark"] .gallery-background-grid {
  opacity: 0.32;
}

.gallery-background-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.34;
  will-change: transform;
}

.gallery-background-orb--one {
  top: -160px;
  left: -120px;
  width: 440px;
  height: 440px;
  background: rgba(138, 43, 226, 0.35);
  animation: galleryOrbOne 18s ease-in-out infinite alternate;
}

.gallery-background-orb--two {
  top: 160px;
  right: -170px;
  width: 510px;
  height: 510px;
  background: rgba(59, 130, 246, 0.26);
  animation: galleryOrbTwo 22s ease-in-out infinite alternate;
}

@keyframes galleryOrbOne {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(70px, 70px, 0) scale(1.12);
  }
}

@keyframes galleryOrbTwo {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-80px, 50px, 0) scale(1.08);
  }
}


/* ============================================================
   SHARED BUTTONS
============================================================ */

.gallery-primary-btn,
.gallery-secondary-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 23px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.gallery-primary-btn {
  position: relative;
  overflow: hidden;
  border: none;
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

.gallery-primary-btn::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -50%;
  width: 45%;
  height: 300%;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent
    );
  transform: rotate(24deg);
  transition: left 0.65s ease;
}

.gallery-primary-btn:hover::before {
  left: 130%;
}

.gallery-primary-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 48px rgba(124, 58, 237, 0.35);
}

.gallery-secondary-btn {
  border: 1.5px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.gallery-secondary-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: var(--shadow-md);
}

.gallery-primary-btn i,
.gallery-secondary-btn i {
  flex-shrink: 0;
}


/* ============================================================
   HEADER
============================================================ */

.site-header {
  position: sticky;
  top: 10px;
  z-index: 1000;
  width: calc(100% - 24px);
  max-width: var(--container-width);
  margin: 10px auto 0;
}

.header-inner {
  position: relative;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px 10px 22px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 12px 34px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

[data-theme="dark"] .header-inner {
  border-color: rgba(52, 52, 73, 0.88);
  background: rgba(17, 17, 26, 0.82);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.45);
}

.site-header.scrolled .header-inner {
  box-shadow:
    0 16px 45px rgba(15, 23, 42, 0.14);
}

.logo-block {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.logo-accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.nav-link {
  position: relative;
  padding: 9px 1px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.22s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 2px;
  left: 50%;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-gradient);
  transition:
    right 0.25s ease,
    left 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--violet);
}

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
  left: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.header-icon-btn {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.header-icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.4);
  color: var(--violet);
  box-shadow: var(--shadow-sm);
}

.header-whatsapp-btn {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow:
    0 12px 28px rgba(124, 58, 237, 0.23);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.header-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 17px 36px rgba(124, 58, 237, 0.32);
}

.header-whatsapp-btn i {
  font-size: 1rem;
}

.mobile-menu-btn {
  display: none;
}


/* ============================================================
   HERO
============================================================ */

.gallery-hero {
  position: relative;
  min-height: calc(100vh - 85px);
  display: flex;
  align-items: center;
  padding:
    clamp(70px, 9vw, 125px)
    20px
    clamp(75px, 9vw, 120px);
}

.gallery-hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--container-width);
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(380px, 0.95fr);
  align-items: center;
  gap: clamp(50px, 7vw, 95px);
  margin: 0 auto;
}

.gallery-hero-content {
  position: relative;
  z-index: 3;
  min-width: 0;
  animation: galleryHeroContentIn 0.85s ease both;
}

@keyframes galleryHeroContentIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-hero-eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 15px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.07);
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.gallery-hero-eyebrow i {
  animation: gallerySparkle 2.3s ease-in-out infinite;
}

@keyframes gallerySparkle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(16deg) scale(1.16);
  }
}

.gallery-hero-title {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size:
    clamp(
      2.65rem,
      6.5vw,
      5.25rem
    );
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.065em;
  color: var(--text-primary);
}

.gallery-hero-title span {
  position: relative;
  display: inline-block;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gallery-hero-title span::after {
  content: "";
  position: absolute;
  right: 1%;
  bottom: -7px;
  left: 1%;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(138, 43, 226, 0),
      rgba(138, 43, 226, 0.52),
      rgba(59, 130, 246, 0)
    );
  filter: blur(1px);
  transform: scaleX(0);
  transform-origin: left;
  animation: galleryHeroUnderline 1s 0.5s ease forwards;
}

@keyframes galleryHeroUnderline {
  to {
    transform: scaleX(1);
  }
}

.gallery-hero-description {
  max-width: 660px;
  margin-bottom: 31px;
  color: var(--text-secondary);
  font-size:
    clamp(
      1rem,
      1.6vw,
      1.12rem
    );
  line-height: 1.82;
}

.gallery-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 29px;
}

.gallery-service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.gallery-service-pills span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 0.69rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.gallery-service-pills span:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.35);
  color: var(--violet);
}

.gallery-service-pills i {
  color: var(--violet);
}


/* ============================================================
   HERO VISUAL
============================================================ */

.gallery-hero-visual {
  position: relative;
  min-height: 520px;
  animation: galleryHeroVisualIn 1s 0.1s ease both;
}

@keyframes galleryHeroVisualIn {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.gallery-hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(138, 43, 226, 0.23),
      rgba(59, 130, 246, 0.08) 44%,
      transparent 70%
    );
  filter: blur(18px);
  animation: galleryVisualGlow 5s ease-in-out infinite alternate;
}

@keyframes galleryVisualGlow {
  from {
    transform: scale(0.92);
    opacity: 0.72;
  }

  to {
    transform: scale(1.1);
    opacity: 1;
  }
}

.gallery-visual-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 245px;
  min-height: 245px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 30px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 34%;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(241, 245, 249, 0.88)
    );
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.16),
    var(--glow);
  text-align: center;
  transform: translate(-50%, -50%) rotate(-3deg);
  backdrop-filter: blur(18px);
  animation: galleryCenterFloat 5s ease-in-out infinite;
}

[data-theme="dark"] .gallery-visual-center {
  background:
    linear-gradient(
      145deg,
      rgba(22, 22, 31, 0.96),
      rgba(17, 17, 26, 0.9)
    );
}

@keyframes galleryCenterFloat {
  0%,
  100% {
    transform:
      translate(-50%, -50%)
      rotate(-3deg)
      translateY(0);
  }

  50% {
    transform:
      translate(-50%, -50%)
      rotate(1deg)
      translateY(-12px);
  }
}

.gallery-visual-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  border-radius: 23px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: var(--shadow-brand);
}

.gallery-visual-center strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1rem;
}

.gallery-visual-center small {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.gallery-visual-card {
  position: absolute;
  z-index: 4;
  min-width: 225px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  animation:
    galleryFloatingCard
    5s
    ease-in-out
    infinite;
}

[data-theme="dark"] .gallery-visual-card {
  border-color: rgba(52, 52, 73, 0.86);
  background: rgba(17, 17, 26, 0.88);
}

.gallery-visual-card > i {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.11);
  color: var(--violet);
  font-size: 1rem;
}

.gallery-visual-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-primary);
  font-size: 0.76rem;
}

.gallery-visual-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.64rem;
}

.gallery-visual-card--one {
  top: 3%;
  left: 1%;
  animation-delay: -0.5s;
}

.gallery-visual-card--two {
  top: 26%;
  right: -3%;
  animation-delay: -2.2s;
}

.gallery-visual-card--three {
  right: 7%;
  bottom: 5%;
  animation-delay: -3.4s;
}

@keyframes galleryFloatingCard {
  0%,
  100% {
    transform:
      translateY(0)
      rotate(0deg);
  }

  50% {
    transform:
      translateY(-13px)
      rotate(1.5deg);
  }
}


/* Decorative orbit */

.gallery-hero-visual::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 390px;
  height: 390px;
  border: 1px dashed rgba(124, 58, 237, 0.19);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: galleryOrbitSpin 26s linear infinite;
}

@keyframes galleryOrbitSpin {
  to {
    transform:
      translate(-50%, -50%)
      rotate(360deg);
  }
}


/* ============================================================
   GENERAL CONTAINER
============================================================ */

.gallery-container {
  width: calc(100% - 32px);
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ============================================================
   PREMIUM PROJECT SHOWCASE HERO
============================================================ */

.premium-gallery-hero {
  position: relative;
  overflow: hidden;
}

.premium-gallery-hero .gallery-hero-inner {
  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(460px, 1.05fr);
  gap: clamp(45px, 6vw, 85px);
}


/* ============================================================
   TRUST NOTES
============================================================ */

.gallery-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 17px;
  margin-bottom: 25px;
}

.gallery-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
}

.gallery-hero-trust i {
  color: var(--violet);
}


/* ============================================================
   HERO STATISTICS
============================================================ */

.gallery-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  max-width: 650px;
}

.gallery-hero-stat {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery-hero-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: var(--shadow-md);
}

.gallery-hero-stat-icon {
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--violet);
  font-size: 0.85rem;
}

.gallery-hero-stat strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
}

.gallery-hero-stat div span {
  display: block;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ============================================================
   SHOWCASE CONTAINER
============================================================ */

.premium-gallery-showcase {
  position: relative;
  min-height: 625px;
  isolation: isolate;
  perspective: 1300px;
}

.premium-gallery-showcase::before {
  content: "";
  position: absolute;
  inset: 9% 6%;
  z-index: -4;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(138, 43, 226, 0.21),
      rgba(59, 130, 246, 0.1) 42%,
      transparent 70%
    );
  filter: blur(22px);
  animation: premiumShowcasePulse 5s ease-in-out infinite alternate;
}

@keyframes premiumShowcasePulse {
  from {
    opacity: 0.7;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1.08);
  }
}


/* ============================================================
   GLOWING ORBS
============================================================ */

.premium-showcase-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.38;
  pointer-events: none;
}

.premium-showcase-glow--one {
  top: 3%;
  right: 8%;
  width: 190px;
  height: 190px;
  background: rgba(59, 130, 246, 0.45);
  animation: premiumGlowOne 9s ease-in-out infinite alternate;
}

.premium-showcase-glow--two {
  bottom: 5%;
  left: 4%;
  width: 220px;
  height: 220px;
  background: rgba(138, 43, 226, 0.4);
  animation: premiumGlowTwo 11s ease-in-out infinite alternate;
}

@keyframes premiumGlowOne {
  to {
    transform: translate(-45px, 60px) scale(1.2);
  }
}

@keyframes premiumGlowTwo {
  to {
    transform: translate(55px, -40px) scale(0.85);
  }
}


/* ============================================================
   ORBIT
============================================================ */

.premium-showcase-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 475px;
  height: 475px;
  border: 1px dashed rgba(124, 58, 237, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: premiumOrbitSpin 30s linear infinite;
}

.premium-showcase-orbit::before,
.premium-showcase-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: var(--glow);
}

.premium-showcase-orbit::before {
  top: 36px;
  left: 37px;
  width: 10px;
  height: 10px;
}

.premium-showcase-orbit::after {
  right: 47px;
  bottom: 25px;
  width: 7px;
  height: 7px;
}

@keyframes premiumOrbitSpin {
  to {
    transform:
      translate(-50%, -50%)
      rotate(360deg);
  }
}


/* ============================================================
   PROJECT CARDS
============================================================ */

.premium-project-card {
  position: absolute;
  z-index: 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 19px;
  background: var(--card-bg);
  box-shadow:
    0 26px 65px rgba(15, 23, 42, 0.2);
  transform-style: preserve-3d;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  will-change: transform;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

[data-theme="dark"] .premium-project-card {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55);
}

.premium-project-card:hover {
  z-index: 20;
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow:
    0 38px 85px rgba(15, 23, 42, 0.28),
    0 0 35px rgba(124, 58, 237, 0.15);
}


/* Main Card */

.premium-project-card--main {
  top: 50%;
  left: 50%;
  width: 315px;
  transform:
    translate(-50%, -50%)
    rotate(-2deg);
  animation: premiumMainCardFloat 5.5s ease-in-out infinite;
}

@keyframes premiumMainCardFloat {
  0%,
  100% {
    transform:
      translate(-50%, -50%)
      rotate(-2deg)
      translateY(0);
  }

  50% {
    transform:
      translate(-50%, -50%)
      rotate(1deg)
      translateY(-12px);
  }
}


/* Photo Card */

.premium-project-card--photo {
  top: 1%;
  left: 1%;
  width: 205px;
  transform: rotate(-7deg);
  animation: premiumPhotoFloat 6.2s ease-in-out infinite;
}

@keyframes premiumPhotoFloat {
  0%,
  100% {
    transform:
      rotate(-7deg)
      translateY(0);
  }

  50% {
    transform:
      rotate(-3deg)
      translateY(-13px);
  }
}


/* Website Card */

.premium-project-card--website {
  top: 8%;
  right: -2%;
  width: 235px;
  transform: rotate(6deg);
  animation: premiumWebsiteFloat 5.8s -2s ease-in-out infinite;
}

@keyframes premiumWebsiteFloat {
  0%,
  100% {
    transform:
      rotate(6deg)
      translateY(0);
  }

  50% {
    transform:
      rotate(3deg)
      translateY(-14px);
  }
}


/* Branding Card */

.premium-project-card--branding {
  bottom: 1%;
  left: 3%;
  width: 215px;
  transform: rotate(5deg);
  animation: premiumBrandingFloat 6.6s -3s ease-in-out infinite;
}

@keyframes premiumBrandingFloat {
  0%,
  100% {
    transform:
      rotate(5deg)
      translateY(0);
  }

  50% {
    transform:
      rotate(1deg)
      translateY(-11px);
  }
}


/* Flyer Card */

.premium-project-card--flyer {
  right: 1%;
  bottom: 5%;
  width: 190px;
  transform: rotate(-6deg);
  animation: premiumFlyerFloat 5.9s -1s ease-in-out infinite;
}

@keyframes premiumFlyerFloat {
  0%,
  100% {
    transform:
      rotate(-6deg)
      translateY(0);
  }

  50% {
    transform:
      rotate(-2deg)
      translateY(-14px);
  }
}


/* ============================================================
   CARD IMAGES
============================================================ */

.premium-project-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-muted);
}

.premium-project-card--photo .premium-project-image,
.premium-project-card--flyer .premium-project-image {
  aspect-ratio: 4 / 5;
}

.premium-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition:
    transform 0.55s ease,
    filter 0.4s ease;
}

.premium-project-card:hover .premium-project-image img {
  transform: scale(1.08);
}

.premium-project-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      transparent 48%,
      rgba(15, 23, 42, 0.62)
    );
  pointer-events: none;
}

.premium-project-category {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}


/* ============================================================
   CARD INFORMATION
============================================================ */

.premium-project-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
}

.premium-project-info span {
  display: block;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 0.51rem;
  font-weight: 700;
  text-transform: uppercase;
}

.premium-project-info h3 {
  margin: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.7rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-project-card--main .premium-project-info h3 {
  font-size: 0.83rem;
}

.premium-project-info > i {
  color: var(--violet);
  font-size: 0.72rem;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.premium-project-card:hover .premium-project-info > i {
  opacity: 1;
  transform: translate(0, 0);
}


/* ============================================================
   CUSTOM BADGE
============================================================ */

.premium-showcase-badge {
  position: absolute;
  bottom: 20%;
  left: 39%;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(17px);
  animation: premiumBadgeFloat 4.8s ease-in-out infinite;
}

.premium-showcase-badge > span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.78rem;
}

.premium-showcase-badge strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.65rem;
}

.premium-showcase-badge small {
  display: block;
  color: var(--text-muted);
  font-size: 0.53rem;
}

@keyframes premiumBadgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}


/* ============================================================
   BOTTOM FADE
============================================================ */

.gallery-hero-bottom-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 130px;
  background:
    linear-gradient(
      to bottom,
      transparent,
      var(--bg-primary)
    );
  pointer-events: none;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1100px) {
  .premium-gallery-hero .gallery-hero-inner {
    grid-template-columns: 1fr;
  }

  .premium-gallery-showcase {
    width: min(650px, 100%);
    margin: 0 auto;
  }

  .gallery-hero-stats {
    margin: 0 auto;
  }

  .gallery-hero-trust {
    justify-content: center;
  }
}


/* ============================================================
   MOBILE FIX:
   Responsive stats + larger showcase images
============================================================ */

@media (max-width: 700px) {
  
  /* Keep stats compact and responsive */
  .gallery-hero-stats {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  
  .gallery-hero-stat {
    min-width: 0;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    padding: 12px 7px;
    border-radius: 17px;
    text-align: center;
  }
  
  .gallery-hero-stat-icon {
    width: 37px;
    height: 37px;
    border-radius: 12px;
    font-size: 0.82rem;
  }
  
  .gallery-hero-stat strong {
    margin-bottom: 3px;
    font-size: 0.9rem;
  }
  
  .gallery-hero-stat div {
    min-width: 0;
  }
  
  .gallery-hero-stat div span {
    display: block;
    white-space: normal;
    overflow: visible;
    font-size: 0.52rem;
    line-height: 1.3;
    text-overflow: unset;
  }
  
  
  /* Give showcase more room */
  .premium-gallery-showcase {
    width: 100%;
    min-height: 590px;
    margin-top: 22px;
    transform: none;
  }
  
  .premium-showcase-orbit {
    width: 420px;
    height: 420px;
  }
  
  
  /* Main AI card */
  .premium-project-card--main {
    top: 50%;
    left: 50%;
    width: 285px;
  }
  
  .premium-project-card--main .premium-project-image {
    aspect-ratio: 4 / 4.7;
  }
  
  .premium-project-card--main .premium-project-image img {
    object-fit: cover;
    object-position: center top;
  }
  
  
  /* Other showcase cards */
  .premium-project-card--photo {
    top: 1%;
    left: 0;
    width: 185px;
  }
  
  .premium-project-card--website {
    top: 7%;
    right: 0;
    width: 205px;
  }
  
  .premium-project-card--branding {
    bottom: 0;
    left: 1%;
    width: 180px;
  }
  
  .premium-project-card--flyer {
    right: 0;
    bottom: 2%;
    width: 165px;
  }
  
  
  /* Make card images easier to see */
  .premium-project-card--photo .premium-project-image,
  .premium-project-card--branding .premium-project-image,
  .premium-project-card--flyer .premium-project-image {
    aspect-ratio: 4 / 4.8;
  }
  
  .premium-project-card--website .premium-project-image {
    aspect-ratio: 4 / 3.2;
  }
  
  .premium-project-image img {
    object-position: center;
  }
  
  
  /* Move custom badge away from the AI card */
  .premium-showcase-badge {
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
}



@media (max-width: 480px) {
  .gallery-hero-trust {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
  }
  /* Stats remain in one row on normal phones */
  .gallery-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  
  .gallery-hero-stat {
    min-height: 88px;
    padding: 10px 5px;
  }
  
  .gallery-hero-stat-icon {
    width: 34px;
    height: 34px;
  }
  
  .gallery-hero-stat strong {
    font-size: 0.82rem;
  }
  
  .gallery-hero-stat div span {
    font-size: 0.47rem;
  }
  
  
  /* Larger mobile showcase */
  .premium-gallery-showcase {
    min-height: 550px;
    margin-top: 20px;
    transform: none;
  }
  
  .premium-showcase-orbit {
    width: 340px;
    height: 340px;
  }
  
  
  /* AI card is larger and shows more of the poster */
  .premium-project-card--main {
    top: 50%;
    width: 245px;
  }
  
  .premium-project-card--main .premium-project-image {
    aspect-ratio: 4 / 5;
  }
  
  .premium-project-card--main .premium-project-image img {
    object-fit: cover;
    object-position: center top;
  }
  
  
  /* Supporting cards */
  .premium-project-card--photo {
    top: 0;
    left: -2px;
    width: 150px;
  }
  
  .premium-project-card--website {
    top: 8%;
    right: -2px;
    width: 164px;
  }
  
  .premium-project-card--branding {
    bottom: 0;
    left: 0;
    width: 145px;
  }
  
  .premium-project-card--flyer {
    right: 0;
    bottom: 1%;
    width: 130px;
  }
  
  
  /* Keep labels readable */
  .premium-project-info {
    padding: 9px 10px;
  }
  
  .premium-project-info h3 {
    font-size: 0.61rem;
  }
  
  .premium-project-info span {
    font-size: 0.45rem;
  }
  
  .premium-project-card--main .premium-project-info h3 {
    font-size: 0.72rem;
  }
  
  .premium-project-category {
    top: 7px;
    left: 7px;
    padding: 4px 7px;
    font-size: 0.45rem;
  }
  
  
  /* Badge below the main card */
  .premium-showcase-badge {
    bottom: 13%;
    left: 50%;
    padding: 8px 11px;
    transform: translateX(-50%);
 
}
  .premium-showcase-badge > span {
    width: 30px;
    height: 30px;
  }

  .premium-showcase-badge strong {
    font-size: 0.55rem;
  }

  .premium-showcase-badge small {
    font-size: 0.45rem;
  }
}

.premium-project-card,
.premium-showcase-badge {
  translate:
    var(--parallax-x, 0)
    var(--parallax-y, 0);
}

.premium-project-card:hover {
  rotate:
    var(--tilt-x, 0deg)
    var(--tilt-y, 0deg);
}

/* ============================================================
   RESPONSIVE HEADER AND HERO
============================================================ */

@media (max-width: 1000px) {
  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 21px;
    background: var(--card-bg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
  }

  .main-nav.open {
    display: flex;
    animation: galleryMobileMenuIn 0.25s ease;
  }

  @keyframes galleryMobileMenuIn {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    padding: 11px 12px;
    border-radius: 11px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(124, 58, 237, 0.08);
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .gallery-hero {
    min-height: auto;
  }

  .gallery-hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .gallery-hero-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
  }

  .gallery-hero-eyebrow {
    margin-right: auto;
    margin-left: auto;
  }

  .gallery-hero-title {
    margin-right: auto;
    margin-left: auto;
  }

  .gallery-hero-description {
    margin-right: auto;
    margin-left: auto;
  }

  .gallery-hero-actions,
  .gallery-service-pills {
    justify-content: center;
  }

  .gallery-hero-visual {
    width: 100%;
    max-width: 620px;
    min-height: 500px;
    margin: 0 auto;
  }
}


@media (max-width: 700px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    top: 6px;
    width: calc(100% - 16px);
    margin-top: 6px;
  }

  .header-inner {
    min-height: 64px;
    padding: 8px 9px 8px 16px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .header-whatsapp-btn {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
  }

  .header-whatsapp-btn span {
    display: none;
  }

  .header-icon-btn {
    width: 42px;
    height: 42px;
  }

  .gallery-hero {
    padding:
      76px
      17px
      80px;
  }

  .gallery-hero-title {
    font-size:
      clamp(
        2.4rem,
        12vw,
        3.65rem
      );
    letter-spacing: -0.06em;
  }

  .gallery-hero-description {
    font-size: 0.94rem;
  }

  .gallery-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .gallery-hero-actions a {
    width: 100%;
  }

  .gallery-service-pills {
    gap: 7px;
  }

  .gallery-service-pills span {
    padding: 7px 10px;
    font-size: 0.63rem;
  }

  .gallery-hero-visual {
    min-height: 430px;
  }

  .gallery-visual-center {
    width: 210px;
    min-height: 210px;
    padding: 24px;
  }

  .gallery-visual-icon {
    width: 64px;
    height: 64px;
    font-size: 1.45rem;
  }

  .gallery-visual-card {
    min-width: 185px;
    max-width: 205px;
    gap: 9px;
    padding: 12px;
  }

  .gallery-visual-card > i {
    width: 40px;
    height: 40px;
  }

  .gallery-visual-card strong {
    font-size: 0.68rem;
  }

  .gallery-visual-card span {
    font-size: 0.58rem;
  }

  .gallery-visual-card--one {
    left: 0;
  }

  .gallery-visual-card--two {
    right: 0;
  }

  .gallery-visual-card--three {
    right: 3%;
  }

  .gallery-hero-visual::after {
    width: 325px;
    height: 325px;
  }
}


@media (max-width: 430px) {
  .gallery-hero-eyebrow {
    padding: 7px 11px;
    font-size: 0.62rem;
  }

  .gallery-service-pills span {
    flex: 1 1 calc(50% - 7px);
    justify-content: center;
  }

  .gallery-hero-visual {
    min-height: 385px;
  }

  .gallery-visual-center {
    width: 185px;
    min-height: 185px;
    border-radius: 32%;
  }

  .gallery-visual-center strong {
    font-size: 0.84rem;
  }

  .gallery-visual-card {
    min-width: 154px;
    max-width: 168px;
    padding: 10px;
  }

  .gallery-visual-card > i {
    width: 35px;
    height: 35px;
    border-radius: 11px;
    font-size: 0.82rem;
  }

  .gallery-visual-card strong {
    font-size: 0.6rem;
  }

  .gallery-visual-card span {
    font-size: 0.51rem;
  }

  .gallery-visual-card--one {
    top: 0;
  }

  .gallery-visual-card--two {
    top: 30%;
  }

  .gallery-visual-card--three {
    right: 0;
    bottom: 1%;
  }

  .gallery-hero-visual::after {
    width: 275px;
    height: 275px;
  }
}


/* ============================================================
   HOBLEMERCYTECH PUBLIC GALLERY
   STEP 2B
   Gallery section, filters, featured project and project cards
============================================================ */


/* ============================================================
   GALLERY PROJECTS SECTION
============================================================ */

.gallery-projects-section {
  position: relative;
  padding:
    clamp(80px, 10vw, 130px)
    0
    clamp(90px, 11vw, 145px);
  border-top: 1px solid var(--border-color);
  background:
    linear-gradient(
      180deg,
      rgba(124, 58, 237, 0.025),
      transparent 14%
    );
}

[data-theme="dark"] .gallery-projects-section {
  background:
    linear-gradient(
      180deg,
      rgba(139, 92, 246, 0.06),
      transparent 14%
    );
}


/* ============================================================
   SECTION HEADER
============================================================ */

.gallery-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 38px;
}

.gallery-section-header > div:first-child {
  max-width: 760px;
}

.gallery-section-eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  padding: 7px 13px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.065);
  color: var(--violet);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-section-header h2 {
  margin-bottom: 13px;
  font-family: var(--font-display);
  font-size:
    clamp(
      2rem,
      5vw,
      3.45rem
    );
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.gallery-section-header p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.8;
}

.gallery-project-count {
  min-width: 180px;
  flex-shrink: 0;
  padding: 20px 22px;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  backdrop-filter: blur(12px);
}

.gallery-project-count strong {
  display: block;
  margin-bottom: 5px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
}

.gallery-project-count span {
  color: var(--text-muted);
  font-size: 0.69rem;
  font-weight: 700;
}


/* ============================================================
   TOOLBAR
============================================================ */

.public-gallery-toolbar {
  position: sticky;
  top: 95px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
  padding: 13px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

[data-theme="dark"] .public-gallery-toolbar {
  border-color: rgba(52, 52, 73, 0.9);
  background: rgba(17, 17, 26, 0.88);
}

.public-gallery-filters {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.public-gallery-filters::-webkit-scrollbar {
  display: none;
}

.public-gallery-filter {
  flex-shrink: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.public-gallery-filter:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.38);
  color: var(--violet);
}

.public-gallery-filter.active {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow:
    0 10px 25px rgba(124, 58, 237, 0.25);
}

.public-gallery-filter i {
  font-size: 0.72rem;
}

.public-gallery-search {
  position: relative;
  width: min(250px, 100%);
  flex-shrink: 0;
}

.public-gallery-search > i {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 2;
  color: var(--text-muted);
  font-size: 0.78rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.public-gallery-search input {
  width: 100%;
  min-height: 43px;
  padding: 10px 14px 10px 39px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.public-gallery-search input::placeholder {
  color: var(--text-muted);
}

.public-gallery-search input:focus {
  border-color: var(--violet);
  background: var(--bg-secondary);
  box-shadow:
    0 0 0 4px rgba(124, 58, 237, 0.1);
}


/* ============================================================
   FEATURED PROJECT
============================================================ */

.public-featured-project {
  position: relative;
  margin-bottom: 40px;
}

.featured-project-label {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 18px;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.13),
    rgba(124, 58, 237, 0.1)
  );
  color: #d97706;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-theme="dark"] .featured-project-label {
  color: #fbbf24;
}

.featured-project-label i {
  animation: galleryFeaturedStar 2.4s ease-in-out infinite;
}

@keyframes galleryFeaturedStar {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.15) rotate(12deg);
  }
}

.featured-project-content {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, 1.16fr)
    minmax(320px, 0.84fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  background: var(--card-bg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.featured-project-content::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  filter: blur(20px);
  pointer-events: none;
}

.featured-project-image {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--bg-muted);
}

.featured-project-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.featured-project-content:hover .featured-project-image img {
  transform: scale(1.045);
}

.featured-project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(15, 23, 42, 0.44),
      transparent 56%
    );
  pointer-events: none;
}

.featured-project-image-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.74);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.featured-project-image-count {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.featured-project-details {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding:
    clamp(30px, 5vw, 55px);
}

.featured-project-category {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  color: var(--violet);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.featured-project-details h3 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size:
    clamp(
      1.75rem,
      3vw,
      2.65rem
    );
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.featured-project-details p {
  margin-bottom: 22px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
}

.featured-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 17px;
  margin-bottom: 25px;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.featured-project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.featured-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}


/* ============================================================
   PUBLIC GALLERY GRID
============================================================ */

.public-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}


/* ============================================================
   PROJECT CARD
============================================================ */

.public-gallery-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition:
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.32s ease,
    box-shadow 0.32s ease;
  animation: galleryCardReveal 0.65s both;
}

.public-gallery-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.32);
  box-shadow:
    0 24px 55px rgba(15, 23, 42, 0.14),
    0 0 34px rgba(124, 58, 237, 0.08);
}

@keyframes galleryCardReveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.public-gallery-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      var(--bg-muted),
      var(--bg-soft)
    );
}

.public-gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.58s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.35s ease;
}

.public-gallery-card:hover .public-gallery-card-image img {
  transform: scale(1.075);
}

.public-gallery-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      transparent 45%,
      rgba(15, 23, 42, 0.62)
    );
  opacity: 0.75;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.public-gallery-card:hover .public-gallery-card-image::after {
  opacity: 0.92;
}

.public-gallery-card-category {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  max-width: calc(100% - 100px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.73);
  color: #fff;
  font-size: 0.61rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.public-gallery-card-featured {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      #f59e0b,
      #f97316
    );
  color: #fff;
  box-shadow:
    0 10px 24px rgba(245, 158, 11, 0.3);
}

.public-gallery-card-count {
  position: absolute;
  right: 13px;
  bottom: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.74);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.public-gallery-card-view {
  position: absolute;
  bottom: 13px;
  left: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.public-gallery-card:hover .public-gallery-card-view {
  opacity: 1;
  transform: translateY(0);
}

.public-gallery-card-body {
  padding: 18px;
}

.public-gallery-card-body h3 {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.public-gallery-card-description {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.public-gallery-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.66rem;
}

.public-gallery-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.public-gallery-card-open {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  border: 1px solid var(--border-color);
  border-radius: 13px;
  background: var(--bg-muted);
  color: var(--text-primary);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
}

.public-gallery-card-open:hover {
  transform: translateY(-1px);
  border-color: transparent;
  background: var(--brand-gradient);
  color: #fff;
}


/* ============================================================
   CARD IMAGE PLACEHOLDER
============================================================ */

.public-gallery-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  background:
    linear-gradient(
      135deg,
      rgba(124, 58, 237, 0.08),
      rgba(59, 130, 246, 0.07)
    );
  color: var(--text-muted);
}

.public-gallery-card-placeholder i {
  font-size: 2rem;
}

.public-gallery-card-placeholder span {
  font-size: 0.7rem;
  font-weight: 700;
}


/* ============================================================
   LOAD MORE
============================================================ */

.public-gallery-load-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1050px) {
  .featured-project-content {
    grid-template-columns: 1fr;
  }

  .featured-project-image,
  .featured-project-image img {
    min-height: 390px;
  }

  .public-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 820px) {
  .gallery-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .gallery-project-count {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .gallery-project-count strong {
    margin: 0;
  }

  .public-gallery-toolbar {
    position: relative;
    top: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .public-gallery-search {
    width: 100%;
  }

  .public-gallery-filters {
    order: 2;
  }

  .public-gallery-search {
    order: 1;
  }
}


@media (max-width: 650px) {
  .gallery-projects-section {
    padding:
      75px
      0
      95px;
  }

  .gallery-section-header {
    margin-bottom: 27px;
  }

  .gallery-section-header h2 {
    font-size: 2rem;
  }

  .gallery-section-header p {
    font-size: 0.86rem;
  }

  .public-gallery-toolbar {
    margin-bottom: 27px;
    padding: 10px;
    border-radius: 18px;
  }

  .public-gallery-filter {
    min-height: 39px;
    padding: 8px 12px;
    font-size: 0.67rem;
  }

  .featured-project-label {
    margin-left: 8px;
  }

  .featured-project-content {
    border-radius: 23px;
  }

  .featured-project-image,
  .featured-project-image img {
    min-height: 290px;
  }

  .featured-project-details {
    padding: 25px 20px 27px;
  }

  .featured-project-details h3 {
    font-size: 1.65rem;
  }

  .featured-project-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .featured-project-actions a,
  .featured-project-actions button {
    width: 100%;
  }

  .public-gallery-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .public-gallery-card {
    border-radius: 21px;
  }

  .public-gallery-card-body {
    padding: 16px;
  }
}


@media (max-width: 430px) {
  .gallery-project-count {
    justify-content: flex-start;
    padding: 15px 17px;
    text-align: left;
  }

  .gallery-project-count strong {
    font-size: 1.5rem;
  }

  .gallery-project-count span {
    font-size: 0.64rem;
  }

  .public-gallery-card-category {
    max-width: calc(100% - 95px);
  }

  .public-gallery-card-image {
    aspect-ratio: 1.12 / 1;
  }
}

/* ============================================================
   HOBLEMERCYTECH PUBLIC GALLERY
   STEP 2C
   Loading states, modal viewer, thumbnails and responsive layout
============================================================ */


/* ============================================================
   LOADING STATE
============================================================ */

.public-gallery-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
  padding: 45px 20px;
  text-align: center;
}

.gallery-loader {
  position: relative;
  width: 58px;
  height: 58px;
  margin-bottom: 8px;
}

.gallery-loader::before,
.gallery-loader::after,
.gallery-loader span {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.gallery-loader::before {
  border: 3px solid var(--border-color);
}

.gallery-loader::after {
  border: 3px solid transparent;
  border-top-color: var(--violet);
  border-right-color: var(--electric-blue);
  animation: publicGallerySpin 0.9s linear infinite;
}

.gallery-loader span {
  inset: 12px;
  background: var(--brand-gradient);
  box-shadow: var(--glow);
  animation: publicGalleryLoaderPulse 1.5s ease-in-out infinite alternate;
}

@keyframes publicGallerySpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes publicGalleryLoaderPulse {
  from {
    opacity: 0.55;
    transform: scale(0.78);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.public-gallery-loading h3 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1rem;
}

.public-gallery-loading p {
  color: var(--text-muted);
  font-size: 0.76rem;
}


/* ============================================================
   EMPTY, ERROR AND NO-RESULT STATES
============================================================ */

.public-gallery-state {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 55px 20px;
  text-align: center;
}

.public-gallery-state-icon {
  position: relative;
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  background: var(--card-bg);
  color: var(--violet);
  font-size: 1.55rem;
  box-shadow: var(--shadow-md);
}

.public-gallery-state-icon::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 32px;
  background: var(--brand-gradient-soft);
  filter: blur(10px);
}

.public-gallery-state h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.public-gallery-state p {
  max-width: 430px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.7;
}


/* ============================================================
   PROJECT MODAL
============================================================ */

.public-project-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding:
    18px
    18px
    calc(18px + env(safe-area-inset-bottom));
}

.public-project-modal.open {
  display: flex;
  animation: publicProjectModalFadeIn 0.25s ease;
}

@keyframes publicProjectModalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.public-project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 15, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.public-project-modal-card {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  max-height: calc(
    100dvh - 36px - env(safe-area-inset-bottom)
  );
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: var(--bg-secondary);
  box-shadow:
    0 35px 110px rgba(0, 0, 0, 0.55);
  animation: publicProjectModalCardIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes publicProjectModalCardIn {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ============================================================
   MODAL HEADER
============================================================ */

.public-project-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 23px;
  border-bottom: 1px solid var(--border-color);
  background: var(--card-bg);
  backdrop-filter: blur(18px);
}

.public-project-modal-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--violet);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.public-project-modal-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size:
    clamp(
      1.2rem,
      3vw,
      1.8rem
    );
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.public-project-modal-close {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    background 0.22s ease;
}

.public-project-modal-close:hover {
  transform: rotate(8deg);
  border-color: rgba(124, 58, 237, 0.38);
  background: rgba(124, 58, 237, 0.08);
  color: var(--violet);
}


/* ============================================================
   MODAL BODY
============================================================ */

.public-project-modal-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
}


/* ============================================================
   PROJECT INFORMATION
============================================================ */

.public-project-information {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 25px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--bg-muted);
}

.public-project-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.8;
}

.public-project-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 9px;
  color: var(--text-muted);
  font-size: 0.69rem;
  white-space: nowrap;
}

.public-project-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.public-project-meta i {
  color: var(--violet);
}


/* ============================================================
   MAIN IMAGE VIEWER
============================================================ */

.public-project-viewer {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(124, 58, 237, 0.08),
      transparent 55%
    ),
    #05070d;
}

.public-project-main-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 22px;
}

.public-project-main-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.45);
  animation: publicProjectImageIn 0.32s ease;
}

@keyframes publicProjectImageIn {
  from {
    opacity: 0;
    transform: scale(0.975);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.public-project-main-image-wrap figcaption {
  position: absolute;
  right: 25px;
  bottom: 20px;
  left: 25px;
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.74);
  color: #ffffff;
  font-size: 0.72rem;
  text-align: center;
  backdrop-filter: blur(8px);
}


/* ============================================================
   PREVIOUS AND NEXT BUTTONS
============================================================ */

.public-project-navigation {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.68);
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.public-project-navigation:hover {
  background: var(--violet);
  border-color: transparent;
}

.public-project-navigation:active {
  transform:
    translateY(-50%)
    scale(0.94);
}

.public-project-navigation--previous {
  left: 18px;
}

.public-project-navigation--next {
  right: 18px;
}

.public-project-navigation:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}


/* ============================================================
   IMAGE POSITION
============================================================ */

.public-project-image-position {
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px auto;
  padding: 7px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.public-project-image-position span:first-child {
  color: var(--violet);
}


/* ============================================================
   THUMBNAILS
============================================================ */

.public-project-thumbnails {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 3px 8px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.public-project-thumbnail {
  position: relative;
  width: 92px;
  height: 78px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 13px;
  background: var(--bg-muted);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.public-project-thumbnail:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.4);
}

.public-project-thumbnail.active {
  border-color: var(--violet);
  box-shadow:
    0 0 0 3px rgba(124, 58, 237, 0.12);
}

.public-project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-project-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
  opacity: 0.25;
  transition: opacity 0.22s ease;
}

.public-project-thumbnail.active::after,
.public-project-thumbnail:hover::after {
  opacity: 0;
}


/* ============================================================
   MODAL FOOTER
============================================================ */

.public-project-modal-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding:
    15px
    22px
    calc(15px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
  box-shadow:
    0 -12px 30px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(18px);
}

.public-project-modal-footer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.77rem;
  font-weight: 700;
}


/* ============================================================
   CONTACT CTA
============================================================ */

.gallery-contact-section {
  position: relative;
  overflow: hidden;
  padding:
    clamp(80px, 10vw, 130px)
    18px;
  border-top: 1px solid var(--border-color);
}

.gallery-contact-section::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(124, 58, 237, 0.18),
      rgba(59, 130, 246, 0.08) 45%,
      transparent 70%
    );
  filter: blur(10px);
  transform: translateX(-50%);
  pointer-events: none;
}

.gallery-contact-inner {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
  padding:
    clamp(35px, 6vw, 65px);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 32px;
  background:
    linear-gradient(
      145deg,
      var(--card-bg),
      rgba(124, 58, 237, 0.05)
    );
  box-shadow: var(--shadow-lg);
  text-align: center;
  backdrop-filter: blur(18px);
}

.gallery-contact-inner::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  filter: blur(14px);
}

.gallery-contact-icon {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
  border-radius: 21px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 1.45rem;
  box-shadow: var(--shadow-brand);
  animation: galleryContactIconFloat 3.4s ease-in-out infinite;
}

@keyframes galleryContactIconFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(4deg);
  }
}

.gallery-contact-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--violet);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery-contact-inner h2 {
  max-width: 700px;
  margin: 0 auto 15px;
  font-family: var(--font-display);
  font-size:
    clamp(
      1.9rem,
      5vw,
      3rem
    );
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.gallery-contact-inner p {
  max-width: 660px;
  margin: 0 auto 27px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
}

.gallery-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {
  .public-project-information {
    grid-template-columns: 1fr;
  }

  .public-project-meta {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .public-project-viewer,
  .public-project-main-image-wrap {
    min-height: 480px;
  }
}


@media (max-width: 700px) {
  .public-project-modal {
    padding:
      7px
      7px
      calc(7px + env(safe-area-inset-bottom));
  }

  .public-project-modal-card {
    max-height: calc(
      100dvh - 14px - env(safe-area-inset-bottom)
    );
    border-radius: 23px;
  }

  .public-project-modal-header {
    padding: 15px;
  }

  .public-project-modal-close {
    width: 40px;
    height: 40px;
  }

  .public-project-modal-body {
    padding: 14px;
  }

  .public-project-information {
    padding: 14px;
    border-radius: 15px;
  }

  .public-project-viewer {
    min-height: 390px;
    border-radius: 18px;
  }

  .public-project-main-image-wrap {
    min-height: 390px;
    padding: 13px;
  }

  .public-project-main-image-wrap img {
    max-height: 62vh;
  }

  .public-project-navigation {
    width: 42px;
    height: 42px;
  }

  .public-project-navigation--previous {
    left: 9px;
  }

  .public-project-navigation--next {
    right: 9px;
  }

  .public-project-thumbnail {
    width: 78px;
    height: 67px;
  }

  .public-project-modal-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding:
      13px
      14px
      calc(13px + env(safe-area-inset-bottom));
    text-align: center;
  }

  .public-project-modal-footer .gallery-primary-btn {
    width: 100%;
  }

  .gallery-contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gallery-contact-actions a {
    width: 100%;
  }
}


@media (max-width: 480px) {
  .public-project-modal-header h2 {
    font-size: 1.05rem;
  }

  .public-project-information {
    margin-bottom: 14px;
  }

  .public-project-description {
    font-size: 0.75rem;
  }

  .public-project-meta {
    gap: 7px 12px;
    font-size: 0.63rem;
  }

  .public-project-viewer,
  .public-project-main-image-wrap {
    min-height: 330px;
  }

  .public-project-main-image-wrap img {
    max-height: 54vh;
  }

  .public-project-navigation {
    width: 38px;
    height: 38px;
    font-size: 0.78rem;
  }

  .public-project-thumbnail {
    width: 70px;
    height: 60px;
  }

  .gallery-contact-inner {
    padding: 30px 18px;
    border-radius: 24px;
  }
}


/* ============================================================
   HOBLEMERCYTECH PUBLIC GALLERY
   STEP 2D
   Footer, floating actions, toasts and animation polish
============================================================ */


/* ============================================================
   FOOTER
============================================================ */

.gallery-footer {
  position: relative;
  border-top: 1px solid var(--border-color);
  background:
    linear-gradient(
      180deg,
      rgba(124, 58, 237, 0.025),
      transparent 35%
    ),
    var(--bg-secondary);
}

.gallery-footer-grid {
  width: calc(100% - 32px);
  max-width: var(--container-width);
  display: grid;
  grid-template-columns:
    minmax(260px, 1.4fr)
    repeat(3, minmax(145px, 0.7fr));
  gap: 45px;
  margin: 0 auto;
  padding:
    clamp(65px, 8vw, 100px)
    0
    clamp(45px, 6vw, 70px);
}

.gallery-footer-brand {
  max-width: 390px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.footer-logo span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gallery-footer-brand > p {
  margin-bottom: 19px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.8;
}

.gallery-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.gallery-footer-socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-secondary);
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.gallery-footer-socials a:hover {
  transform: translateY(-4px);
  border-color: transparent;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.gallery-footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-footer-column h3 {
  margin-bottom: 6px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.82rem;
}

.gallery-footer-column a,
.gallery-footer-column span {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.74rem;
  line-height: 1.6;
  transition:
    color 0.22s ease,
    transform 0.22s ease;
}

.gallery-footer-column a:hover {
  color: var(--violet);
  transform: translateX(3px);
}

.gallery-footer-column i {
  width: 14px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--violet);
}

.gallery-footer-bottom {
  width: calc(100% - 32px);
  max-width: var(--container-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
}

.gallery-footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.68rem;
}


/* ============================================================
   FLOATING WHATSAPP
============================================================ */

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom:
    calc(
      22px +
      env(safe-area-inset-bottom)
    );
  z-index: 900;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 1.45rem;
  box-shadow:
    0 16px 34px rgba(34, 197, 94, 0.34);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  animation:
    floatingWhatsAppPulse
    2.8s
    ease-in-out
    infinite;
}

.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border: 1px solid rgba(34, 197, 94, 0.38);
  border-radius: 50%;
  animation:
    floatingWhatsAppRing
    2.8s
    ease-out
    infinite;
}

.floating-whatsapp:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow:
    0 22px 45px rgba(34, 197, 94, 0.43);
}

@keyframes floatingWhatsAppPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes floatingWhatsAppRing {
  0% {
    opacity: 0.8;
    transform: scale(0.78);
  }

  75%,
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}


/* ============================================================
   BACK TO TOP
============================================================ */

.back-to-top {
  position: fixed;
  right: 27px;
  bottom:
    calc(
      91px +
      env(safe-area-inset-bottom)
    );
  z-index: 890;
  width: 43px;
  height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  backdrop-filter: blur(14px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #fff;
}


/* ============================================================
   TOAST NOTIFICATIONS
============================================================ */

.gallery-toast-container {
  position: fixed;
  top:
    calc(
      22px +
      env(safe-area-inset-top)
    );
  right: 20px;
  z-index: 5000;
  width: min(390px, calc(100% - 32px));
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.gallery-toast {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--violet);
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  font-size: 0.77rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateX(24px);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  animation:
    galleryToastIn
    0.32s
    ease
    forwards;
}

.gallery-toast.success {
  border-left-color: #22c55e;
}

.gallery-toast.error {
  border-left-color: #ef4444;
}

.gallery-toast.warning {
  border-left-color: #f59e0b;
}

.gallery-toast i {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--violet);
}

.gallery-toast.success i {
  color: #22c55e;
}

.gallery-toast.error i {
  color: #ef4444;
}

.gallery-toast.warning i {
  color: #f59e0b;
}

.gallery-toast.removing {
  animation:
    galleryToastOut
    0.28s
    ease
    forwards;
}

.gallery-toast::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--brand-gradient);
  transform-origin: left;
  animation:
    galleryToastProgress
    4s
    linear
    forwards;
}

.gallery-toast.success::after {
  background: #22c55e;
}

.gallery-toast.error::after {
  background: #ef4444;
}

.gallery-toast.warning::after {
  background: #f59e0b;
}

@keyframes galleryToastIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes galleryToastOut {
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

@keyframes galleryToastProgress {
  to {
    transform: scaleX(0);
  }
}


/* ============================================================
   SCROLL REVEAL
============================================================ */

.gallery-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.gallery-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-reveal-left.revealed,
.gallery-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}


/* ============================================================
   CARD STAGGER DELAYS
============================================================ */

.public-gallery-card:nth-child(1) {
  animation-delay: 0.03s;
}

.public-gallery-card:nth-child(2) {
  animation-delay: 0.08s;
}

.public-gallery-card:nth-child(3) {
  animation-delay: 0.13s;
}

.public-gallery-card:nth-child(4) {
  animation-delay: 0.18s;
}

.public-gallery-card:nth-child(5) {
  animation-delay: 0.23s;
}

.public-gallery-card:nth-child(6) {
  animation-delay: 0.28s;
}

.public-gallery-card:nth-child(7) {
  animation-delay: 0.33s;
}

.public-gallery-card:nth-child(8) {
  animation-delay: 0.38s;
}

.public-gallery-card:nth-child(9) {
  animation-delay: 0.43s;
}


/* ============================================================
   IMAGE LOADING POLISH
============================================================ */

.gallery-image-loading {
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
}

.gallery-image-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.45),
      transparent
    );
  transform: translateX(-100%);
  animation:
    galleryImageShimmer
    1.45s
    ease-in-out
    infinite;
}

[data-theme="dark"] .gallery-image-loading::before {
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent
    );
}

.gallery-image-loading.image-loaded::before {
  display: none;
}

@keyframes galleryImageShimmer {
  to {
    transform: translateX(100%);
  }
}


/* ============================================================
   HOVER GLOW UTILITY
============================================================ */

.gallery-hover-glow {
  position: relative;
}

.gallery-hover-glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--brand-gradient);
  opacity: 0;
  filter: blur(18px);
  transition: opacity 0.3s ease;
}

.gallery-hover-glow:hover::after {
  opacity: 0.18;
}


/* ============================================================
   HEADER SCROLL POLISH
============================================================ */

.site-header {
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}

.site-header.header-hidden {
  opacity: 0;
  transform: translateY(-120%);
}

.site-header.scrolled .header-inner {
  border-color: rgba(124, 58, 237, 0.18);
}


/* ============================================================
   MODAL IMAGE TRANSITION HELPERS
============================================================ */

.public-project-main-image-wrap.is-changing img {
  opacity: 0;
  transform: scale(0.97);
}

.public-project-main-image-wrap img {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}


/* ============================================================
   BUTTON CLICK FEEDBACK
============================================================ */

.gallery-primary-btn:active,
.gallery-secondary-btn:active,
.public-gallery-filter:active,
.public-gallery-card-open:active,
.header-icon-btn:active,
.header-whatsapp-btn:active {
  transform: scale(0.97);
}


/* ============================================================
   MOBILE POLISH
============================================================ */

@media (max-width: 900px) {
  .gallery-footer-grid {
    grid-template-columns:
      minmax(260px, 1.2fr)
      repeat(2, minmax(140px, 0.8fr));
  }

  .gallery-footer-column:last-child {
    grid-column: 2 / -1;
  }
}


@media (max-width: 680px) {
  .gallery-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 22px;
  }

  .gallery-footer-brand {
    max-width: none;
    grid-column: 1 / -1;
  }

  .gallery-footer-column:last-child {
    grid-column: 1 / -1;
  }

  .gallery-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .floating-whatsapp {
    right: 15px;
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .back-to-top {
    right: 20px;
    bottom:
      calc(
        84px +
        env(safe-area-inset-bottom)
      );
  }

  .gallery-toast-container {
    top:
      calc(
        12px +
        env(safe-area-inset-top)
      );
    right: 12px;
    left: 12px;
    width: auto;
  }
}


@media (max-width: 430px) {
  .gallery-footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-footer-brand,
  .gallery-footer-column:last-child {
    grid-column: auto;
  }

  .gallery-footer-column {
    padding-bottom: 4px;
  }

  .gallery-footer-bottom {
    padding-bottom:
      calc(
        28px +
        env(safe-area-inset-bottom)
      );
  }

  .floating-whatsapp {
    bottom:
      calc(
        16px +
        env(safe-area-inset-bottom)
      );
  }
}


/* ============================================================
   REDUCED MOTION OVERRIDES
============================================================ */

@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp,
  .floating-whatsapp::before,
  .gallery-contact-icon,
  .gallery-hero-eyebrow i,
  .featured-project-label i,
  .gallery-background-orb,
  .gallery-hero-visual::after,
  .gallery-visual-center,
  .gallery-visual-card,
  .gallery-loader::after,
  .gallery-loader span {
    animation: none !important;
  }

  .gallery-reveal,
  .gallery-reveal-left,
  .gallery-reveal-right {
    opacity: 1;
    transform: none;
  }
}