:root {
  --brand: #1e3a5f;
  --brand-deep: #102033;
  --brand-hover: #2a5280;
  --navy: #0d1b2a;
  --ink: #0f172a;
  --muted: #52677f;
  --paper: #ffffff;
  --mist: #f1f5f9;
  --accent: #d97706;
  --accent-light: #f59e0b;
  --accent-hover: #b45309;
  --line: rgba(30, 58, 95, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Archivo', system-ui, sans-serif;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.05;
}

p {
  margin: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .25s;
}

a:hover {
  color: var(--accent);
}

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

@property --r {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

@property --ca {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes np-iris {
  from { --r: 0%; }
  to { --r: 150%; }
}

@keyframes np-loadfade {
  0%, 55% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes np-markpop {
  0% { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(6px); }
  45% { opacity: 1; transform: none; filter: blur(0); }
  100% { opacity: 0; transform: scale(1.04); filter: blur(2px); }
}

@keyframes np-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes np-floatS {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes np-spin {
  to { transform: rotate(360deg); }
}

@keyframes np-grid {
  to { background-position: 60px 60px; }
}

@keyframes np-ping {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

@keyframes np-sheen {
  0%, 20% { transform: translateX(-120%); }
  50%, 100% { transform: translateX(120%); }
}

@keyframes np-bub {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: .4; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes np-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 28px rgba(255,255,255,.9); }
}

@keyframes np-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -8px); }
}

/* ================= Header & Nav Styles ================= */
#np-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

#np-hamburger span {
  width: 100%;
  height: 2.5px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

#np-hamburger.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

#np-hamburger.open span:nth-child(2) {
  opacity: 0;
}

#np-hamburger.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

#np-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: #ffffff;
  z-index: 999;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

#np-mobile-menu.open {
  right: 0;
}

#np-mobile-menu a {
  font-family: 'Archivo', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  padding: 12px 16px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

#np-mobile-menu a:hover, #np-mobile-menu a.active {
  background: rgba(30, 58, 95, 0.08);
  color: var(--brand);
}

#np-mobile-menu .cta {
  margin-top: 16px;
  background: var(--brand);
  color: #fff !important;
  text-align: center;
  box-shadow: 0 10px 24px -8px rgba(30, 58, 95, 0.6);
}

/* ================= Subpage Hero Section ================= */
.page-hero {
  position: relative;
  min-height: 480px;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 150px clamp(18px, 5vw, 64px) 80px;
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(13, 27, 42, 0.95) 0%, rgba(13, 27, 42, 0.82) 50%, rgba(13, 27, 42, 0.55) 100%);
}

.page-hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.page-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.65);
}

/* ================= Gallery Filters & Grid ================= */
.gallery-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 45px;
}

.gallery-filter-btn {
  padding: 11px 22px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-filter-btn:hover {
  background: var(--mist);
  color: var(--brand);
  border-color: var(--brand);
}

.gallery-filter-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 8px 20px -6px rgba(30, 58, 95, 0.5);
}

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

.gallery-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 15px 35px -15px rgba(15, 23, 42, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -20px rgba(30, 58, 95, 0.25);
  border-color: rgba(30, 58, 95, 0.3);
}

.gallery-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy);
}

.gallery-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-card-img-wrap img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 27, 42, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ================= Project Albums Grid (Portfolio) ================= */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.album-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px -16px rgba(15, 23, 42, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.album-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 60px -24px rgba(30, 58, 95, 0.28);
  border-color: rgba(30, 58, 95, 0.35);
}

.album-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: var(--navy);
}

.album-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-card:hover .album-card-cover img {
  transform: scale(1.07);
}

.album-badge-count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.album-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.album-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.album-cat-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand);
  background: rgba(30, 58, 95, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.album-loc-tag {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.album-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 10px;
}

.album-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.album-thumbs-preview {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow: hidden;
}

.album-thumbs-preview img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.album-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--mist);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 800;
  transition: all 0.25s ease;
}

.album-card:hover .album-footer-btn {
  background: var(--brand);
  color: #fff;
}

/* ================= Interactive Album Popup Gallery Modal ================= */
#np-album-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

#np-album-modal.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

#np-album-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 30, 0.94);
  backdrop-filter: blur(14px);
}

#np-album-modal-box {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 92vh;
  max-height: 840px;
  background: #111d2e;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.85);
  overflow: hidden;
  z-index: 2;
  transform: scale(0.96) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#np-album-modal.open #np-album-modal-box {
  transform: scale(1) translateY(0);
}

.album-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #0d1724;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  flex-shrink: 0;
}

.album-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.album-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.album-modal-close:hover {
  background: rgba(255,255,255,0.22);
  transform: rotate(90deg);
}

.album-modal-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #090f18;
  overflow: hidden;
}

.album-modal-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  transition: opacity 0.25s ease;
}

.album-modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 27, 42, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.album-modal-nav-btn:hover {
  background: var(--brand);
  transform: translateY(-50%) scale(1.1);
}

.album-modal-prev {
  left: 20px;
}

.album-modal-next {
  right: 20px;
}

.album-modal-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #0d1724;
  color: #dbe6f8;
  font-size: 13.5px;
  font-weight: 600;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.album-modal-thumbs-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #080d14;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) #080d14;
}

.album-thumb-item {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.album-thumb-item:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.album-thumb-item.active {
  border-color: var(--accent);
  opacity: 1;
  transform: scale(1.06);
}

.album-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= Single Lightbox Modal ================= */
#np-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

#np-lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

#np-lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 30, 0.94);
  backdrop-filter: blur(14px);
}

#np-lightbox-box {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#np-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

#np-lightbox-caption {
  margin-top: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  background: rgba(13, 27, 42, 0.85);
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
}

#np-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ================= Before / After Slider Styles ================= */
.ba-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 30px 60px -25px rgba(10, 20, 45, 0.4);
  background: var(--navy);
}

.ba-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-clip {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.ba-clip img {
  filter: grayscale(0.8) brightness(0.65) contrast(0.95);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  z-index: 5;
  pointer-events: none;
  will-change: left;
}

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.ba-button {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* ================= Responsive Media Queries ================= */
@media (max-width: 1020px) {
  #np-hero-content {
    grid-template-columns: 1fr !important;
    gap: 46px !important;
  }
  #np-hero-form {
    justify-self: stretch !important;
    max-width: 560px !important;
    margin: 0 auto !important;
  }
  #np-services-grid, .gallery-grid, .album-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #np-about-grid, #np-why-grid, #np-contact-grid, #np-faq-grid, .portfolio-item-grid {
    grid-template-columns: 1fr !important;
  }
  #np-why-card {
    position: static !important;
  }
  #np-process {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #np-proc-track {
    display: none !important;
  }
  #np-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #np-gallery [data-col]:nth-child(3) {
    display: none !important;
  }
  #np-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #np-footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  #np-album-modal-box {
    height: 96vh;
    max-height: none;
  }
}

@media (max-width: 880px) {
  #np-links {
    display: none !important;
  }
  #np-hamburger {
    display: flex;
  }
  #np-toast {
    display: none !important;
  }
  #np-hero-cta-buttons {
    display: none !important;
  }
  .album-modal-nav-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 700px) {
  #np-services-grid, #np-process, #np-gallery, .gallery-grid, .album-grid {
    grid-template-columns: 1fr !important;
  }
  #np-gallery [data-col]:nth-child(2) {
    display: none !important;
  }
  #np-footer-grid {
    grid-template-columns: 1fr !important;
  }
  #np-topbar {
    display: none !important;
  }
  #np-scrollhint {
    display: none !important;
  }
  .album-modal-title {
    font-size: 15px;
  }
}
