/* ========================================
   DM Leadz — Global Stylesheet
   ======================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --ink: #0A1930;
  --ink-2: #0F2544;
  --blue: #2F7FF5;
  --blue-2: #5CA0FF;
  --cyan: #00D4FF;
  --sky: #EEF4FF;
  --sky-2: #DCE9FF;
  --slate: #5B6B85;
  --white: #FFFFFF;
  --line: #E3EAF6;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(10, 25, 48, .25);
}

/* ---------- RESET & BASE ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  position: relative;
}

/* ---------- NAV ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 25, 48, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .logo-chip {
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .35);
}

.brand img {
  height: 34px;
  width: auto;
  display: block;
}

.navlinks {
  display: flex;
  gap: 34px;
  align-items: center;
}

.navlinks a {
  color: rgba(255, 255, 255, .75);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s;
}

.navlinks a:hover {
  color: #fff;
}

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 20px -6px rgba(47, 127, 245, .6);
  transition: transform .2s, box-shadow .2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(47, 127, 245, .75);
}

.navtoggle {
  display: none;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  padding: 96px 0 0;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 212, 255, .08);
  border: 1px solid rgba(0, 212, 255, .28);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.04;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 span {
  color: var(--blue-2);
}

.hero p.lead {
  font-size: 17.5px;
  color: rgba(255, 255, 255, .72);
  max-width: 520px;
  margin-bottom: 34px;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  padding: 15px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(47, 127, 245, .65);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(47, 127, 245, .8);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
}

.hero-visual {
  position: relative;
}

.lead-form {
  background: #fff;
  border-radius: 18px;
  padding: 32px 30px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
  position: relative;
}

.lead-form-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--sky-2);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.lead-form h3 {
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 6px;
}

.lead-form>p {
  color: var(--slate);
  font-size: 14px;
  margin-bottom: 24px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--sky);
  transition: border-color .2s, background .2s;
}

.field input::placeholder {
  color: #9AA7BD;
}

.field input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.form-note {
  text-align: center;
  color: var(--slate);
  font-size: 12px;
  margin-top: 14px;
}

.lead-form.sent .field,
.lead-form.sent .form-submit {
  display: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.lead-form.sent .form-success {
  display: block;
}

.lead-form.sent .lead-form-badge,
.lead-form.sent h3,
.lead-form.sent>p {
  display: none;
}

.form-success .tick {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sky-2);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.form-success h4 {
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 6px;
}

.form-success p {
  color: var(--slate);
  font-size: 14px;
}

.stats-strip {
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .02);
  position: relative;
  z-index: 2;
}

.stats-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 34px 28px;
}

.stat {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.stat:last-child {
  border-right: none;
}

.stat .num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--cyan);
}

.stat .label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 6px;
}

/* ---------- SECTION HEADERS ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--sky);
}

.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  display: block;
}

.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  margin-bottom: 18px;
  max-width: 640px;
}

.section>.wrap>p.intro {
  color: var(--slate);
  font-size: 16.5px;
  max-width: 640px;
  margin-bottom: 52px;
}

/* ---------- AFC STRIP ---------- */
.afc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.afc-card {
  background: #fff;
  padding: 34px 30px;
}

.afc-card.active {
  background: var(--ink);
  color: #fff;
}

.afc-card .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--blue);
  letter-spacing: .1em;
}

.afc-card.active .tag {
  color: var(--cyan);
}

.afc-card h3 {
  font-size: 21px;
  margin: 10px 0 8px;
}

.afc-card p {
  color: var(--slate);
  font-size: 14.5px;
}

.afc-card.active p {
  color: rgba(255, 255, 255, .68);
}

/* ---------- MISSION/VISION ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px 0;
}

.mv-card {
  background: var(--ink);
  color: #fff;
  padding: 34px 32px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(47, 127, 245, .35), transparent 70%);
}

.mv-card h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--cyan);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.mv-card p {
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.value {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  transition: border-color .2s, transform .2s;
}

.value:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.value .star {
  color: var(--blue);
  font-size: 18px;
  margin-bottom: 10px;
  display: block;
}

.value h4 {
  font-size: 15.5px;
  margin-bottom: 6px;
}

.value p {
  font-size: 13.8px;
  color: var(--slate);
}

.quote {
  border-left: 3px solid var(--blue);
  padding: 26px 30px;
  background: var(--sky);
  border-radius: 0 12px 12px 0;
  font-family: 'Space Grotesk', sans-serif;
}

.quote p {
  font-size: 19px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 10px;
}

.quote cite {
  font-size: 13px;
  color: var(--blue);
  font-style: normal;
  font-weight: 600;
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.svc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.svc .icn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--sky-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--blue);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
}

.svc h4 {
  font-size: 15.5px;
  margin-bottom: 8px;
}

.svc p {
  font-size: 13.6px;
  color: var(--slate);
}

.subhead {
  font-size: 20px;
  font-weight: 700;
  margin: 56px 0 22px;
  font-family: 'Space Grotesk', sans-serif;
}

.subhead:first-of-type {
  margin-top: 0;
}

/* ---------- TECH STACK ---------- */
.stack-table {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.stack-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--line);
}

.stack-row:last-child {
  border-bottom: none;
}

.stack-row:nth-child(even) {
  background: var(--sky);
}

.stack-label {
  background: var(--ink);
  color: #fff;
  padding: 16px 22px;
  font-weight: 600;
  font-size: 13.8px;
  display: flex;
  align-items: center;
}

.stack-vals {
  padding: 16px 22px;
  color: var(--slate);
  font-size: 14px;
  display: flex;
  align-items: center;
}

.integration-note {
  margin-top: 22px;
  background: var(--blue);
  color: #fff;
  padding: 22px 26px;
  border-radius: 12px;
  font-size: 14.5px;
}

.integration-note b {
  font-weight: 700;
}

/* ---------- PROCESS ---------- */
.process {
  position: relative;
}

.process-line {
  position: absolute;
  left: 29px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  opacity: .35;
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 22px 0;
  position: relative;
}

.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step-body h4 {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.step-body p {
  color: var(--slate);
  font-size: 14.3px;
  max-width: 640px;
}

/* ---------- INDUSTRIES ---------- */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all .2s;
}

.chip:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- WHY CHOOSE ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.why-item {
  background: #fff;
  padding: 28px 30px;
}

.why-item h4 {
  font-size: 15.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.why-item h4::before {
  content: '→';
  color: var(--blue);
  font-weight: 700;
}

.why-item p {
  font-size: 13.8px;
  color: var(--slate);
}

/* ---------- PACKAGES ---------- */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pkg {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.pkg.feat {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  position: relative;
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.pkg-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.pkg.feat .pkg-tag {
  color: var(--cyan);
}

.pkg h3 {
  font-size: 22px;
  margin-bottom: 18px;
}

.pkg ul {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.pkg li {
  font-size: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pkg.feat li {
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .78);
}

.pkg li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
}

.pkg.feat li::before {
  color: var(--cyan);
}

.pkg .btn {
  justify-content: center;
  width: 100%;
}

.badge {
  position: absolute;
  top: -13px;
  right: 28px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- CTA / FOOTER ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, #123061 100%);
  color: #fff;
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 16px;
}

.cta-final p {
  color: rgba(255, 255, 255, .7);
  font-size: 16.5px;
  margin-bottom: 38px;
}

.contact-row {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  margin-top: 44px;
  font-size: 14.5px;
}

.contact-row div {
  color: rgba(255, 255, 255, .72);
}

.contact-row b {
  display: block;
  color: #fff;
  font-size: 15.5px;
  margin-bottom: 4px;
}

footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 28px 0;
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- PAGE INTRO (inner pages) ---------- */
.page-intro {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  padding: 64px 0 56px;
}

.page-intro .kicker {
  color: var(--cyan);
}

.page-intro h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  margin-bottom: 14px;
}

.page-intro p {
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  max-width: 600px;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--blue-2);
}

/* ---------- FOOTER LINKS ---------- */
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, .55);
  transition: color .2s;
  font-size: 13px;
}

.footer-links a:hover {
  color: #fff;
}

/* ---------- LEGAL PAGES ---------- */
.legal {
  max-width: 760px;
}

.legal .updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--slate);
  margin-bottom: 36px;
  display: block;
}

.legal h2 {
  font-size: 20px;
  margin: 36px 0 12px;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p {
  color: var(--slate);
  font-size: 15px;
  margin-bottom: 14px;
}

.legal ul {
  margin: 0 0 14px 20px;
  color: var(--slate);
  font-size: 15px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a.inline {
  color: var(--blue);
  font-weight: 600;
}

.legal strong {
  color: var(--ink);
}

/* ---------- FLOATING WIDGET ---------- */
.floating-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.fw-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(10, 25, 48, .5);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}

.fw-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px -6px rgba(10, 25, 48, .6);
}

.fw-btn svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  position: relative;
  z-index: 1;
}

.fw-whatsapp {
  background: #25D366;
}

.fw-call {
  background: var(--blue);
}

.fw-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: fw-pulse-anim 2.2s ease-out infinite;
}

@keyframes fw-pulse-anim {
  0% {
    transform: scale(1);
    opacity: .55;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.fw-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, right .2s;
}

.fw-btn:hover .fw-tooltip {
  opacity: 1;
  right: 66px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .navlinks {
    display: none;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 260px;
    order: -1;
  }

  .stats-strip .wrap {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding-bottom: 16px;
  }

  .afc {
    grid-template-columns: 1fr;
  }

  .mv-grid,
  .values-grid,
  .services-grid,
  .why-grid,
  .pkg-grid {
    grid-template-columns: 1fr;
  }

  .pkg.feat {
    transform: none;
  }

  .stack-row {
    grid-template-columns: 1fr;
  }

  .contact-row {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .floating-widget {
    right: 16px;
    bottom: 16px;
    gap: 12px;
  }

  .fw-btn {
    width: 50px;
    height: 50px;
  }

  .fw-btn svg {
    width: 23px;
    height: 23px;
  }

  .fw-tooltip {
    display: none;
  }
}

/* ---------- GALLERY SECTION ---------- */
.gallery-section {
  padding: 80px 0;
  background: var(--white);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  background: var(--sky);
  border: 1px solid var(--line);
  color: var(--slate);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Space Grotesk', sans-serif;
}

.filter-btn:hover {
  background: var(--sky-2);
  color: var(--ink);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(47, 127, 245, 0.5);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Gallery Card */
.gallery-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px -15px rgba(10, 25, 48, 0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.gallery-visual-wrapper {
  position: relative;
  width: 100%;
  padding-top: 62%; /* 16:10 Aspect Ratio */
  overflow: hidden;
  background: var(--sky);
  border-bottom: 1px solid var(--line);
}

.gallery-visual-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-visual-wrapper img {
  transform: scale(1.06);
}

.gallery-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(10, 25, 48, 0.85);
  backdrop-filter: blur(8px);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  z-index: 10;
}

.gallery-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-info .category-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.gallery-info h3 {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}

.gallery-info p {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.5;
  margin-bottom: 20px;
}

.gallery-action {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.gallery-card:hover .gallery-action {
  gap: 12px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 48, 0.75);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  background: var(--white);
  width: 100%;
  max-width: 1020px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(10, 25, 48, 0.4);
  overflow-y: auto;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  background: rgba(10, 25, 48, 0.7);
  backdrop-filter: blur(4px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: var(--blue);
  transform: scale(1.08);
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.lightbox-visual {
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding: 40px;
  position: relative;
}

.lightbox-visual img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(10, 25, 48, 0.12);
}

.lightbox-details {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lightbox-details .category-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.lightbox-details h2 {
  font-size: 32px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 24px;
}

.lightbox-section {
  margin-bottom: 24px;
}

.lightbox-section h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--slate);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.lightbox-section p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}

.lightbox-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.lightbox-stat-box {
  background: var(--sky);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 12px;
}

.lightbox-stat-box .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
}

.lightbox-stat-box .label {
  font-size: 12px;
  color: var(--slate);
  margin-top: 4px;
}

/* Responsive details */
@media (max-width: 900px) {
  .lightbox-content {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
  .lightbox-visual {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 32px;
  }
  .lightbox-details {
    padding: 32px;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-details h2 {
    font-size: 26px;
  }
}