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

    html,
    body {
      font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      width: 100%;
      height: 100%;
    }

    /* ===== PAGE SYSTEM — DESKTOP: fixed, no scroll for home; scrollable for others ===== */
    @media (min-width: 769px) {

      html,
      body {
        overflow: hidden;
      }

      .page {
        display: none;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.35s ease, transform 0.35s ease;
        overflow: hidden;
      }

      .page.active {
        display: flex;
        flex-direction: column;
      }

      .page.visible {
        opacity: 1;
        transform: translateY(0);
      }

      /* Home page: no scroll */
      #page-home {
        overflow: hidden;
      }

      /* All other pages: scrollable */
      .page:not(#page-home) {
        overflow-y: auto;
        overflow-x: hidden;
      }

      /* Inner wrappers must NOT clip on scrollable pages */
      .page:not(#page-home) .page-inner,
      .page:not(#page-home) .page-inner-fill {
        overflow: visible;
        height: auto;
        min-height: 100%;
      }

      .page-inner {
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }

      .page-inner-fill {
        width: 100%;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
      }
    }

    /* ===== PAGE SYSTEM — MOBILE: normal flow, scrollable ===== */
    @media (max-width: 768px) {

      html,
      body {
        overflow-x: hidden;
        overflow-y: auto;
      }

      .page {
        display: none;
        position: relative;
        width: 100%;
        min-height: 100vh;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.35s ease, transform 0.35s ease;
      }

      .page.active {
        display: block;
      }

      .page.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .page-inner,
      .page-inner-fill {
        width: 100%;
        display: block;
      }
    }

    /* ===== LUMA BAR ===== */
    .luma-bar-wrapper {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 9999;
    }

    .luma-bar {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(40px);
      -webkit-backdrop-filter: blur(40px);
      border-radius: 999px;
      padding: 10px 20px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.5);
      overflow: hidden;
    }

    /* .active-indicator {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
  transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateX(-50%);
  opacity: 0.7;
} */

    .luma-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      cursor: pointer;
    }

    .luma-logo img {
      width: 80px;
      height: 50px;
      object-fit: contain;
      border-radius: 50%;
      transition: transform 0.2s ease;
      transform: scale(1.2);
      margin: 0px 12px 0px 12px;
    }

.luma-logo:hover img {
      transform: scale(1.1);
    } 

    .nav-section {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .nav-item {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .nav-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: auto;
      min-width: 56px;
      padding: 0 8px;
      font-weight: 700;
      font-size: 14px;
      height: 44px;
      color: #111827;
      background: none;
      border: none;
      cursor: pointer;
      transition: color 0.2s, transform 0.2s;
      position: relative;
      z-index: 10;
      font-family: inherit;
      white-space: nowrap;
    }

    .nav-btn:hover {
      color: #111827;
    }

    .nav-btn.active {
      color: #111827;
      transform: scale(1.15);
      font-size: 14px;
    }

    .tooltip {
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%);
      padding: 4px 8px;
      font-size: 11px;
      font-weight: 500;
      color: #ffffff;
      background: #6b7280;
      border-radius: 6px;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s;
    }

    .nav-item:hover .tooltip {
      opacity: 1;
    }

    /* ===== LUMA BAR RESPONSIVE ===== */
    @media (max-width: 680px) {
      .luma-bar {
        gap: 10px;
        padding: 8px 14px;
      }

      .nav-section {
        gap: 6px;
      }

      .nav-btn {
        min-width: 44px;
        height: 38px;
        font-size: 11px;
        padding: 0 4px;
      }

      .luma-logo img {
        width: 38px;
        height: 38px;
      }

      /* .active-indicator { width: 50px; height: 50px; } */
    }

    @media (max-width: 480px) {
      .luma-bar {
        gap: 6px;
        padding: 6px 10px;
        border-radius: 24px;
      }

      .nav-section {
        gap: 2px;
      }

      .nav-btn {
        min-width: 36px;
        height: 32px;
        font-size: 10px;
        padding: 0 5px;
      }
      .nav-btn.active {
      color: #111827;
      transform: scale(1.15);
      font-size: 11px;
    }

      .luma-logo img {
        width: 32px;
        height: 32px;
      }

      /* .active-indicator { width: 40px; height: 40px; filter: blur(16px); } */
    }

    @media (max-width: 360px) {
      .luma-bar {
        gap: 4px;
        padding: 5px 8px;
      }

      .nav-btn {
        min-width: 32px;
        height: 28px;
        font-size: 9px;
      }

      .luma-logo img {
        width: 28px;
        height: 28px;
      }
    }

    /* =========================================
   PAGE 1 — HOME (hero2)
   ========================================= */
    #page-home {
      background: #ffffff;
      color: #111827;
      align-items: stretch;
      justify-content: stretch;
    }

    .arc-hero {
      position: relative;
      overflow: hidden;
      background: #ffffff;
      color: #111827;
      width: 100%;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    @media (min-width: 769px) {
      .arc-hero {
        min-height: unset;
        height: 100%;
      }
    }

    .arc-ring {
      position: relative;
      margin: 20px auto;
      width: 100%;
    }

    .arc-pivot {
      position: absolute;
      left: 50%;
      bottom: 0;
      transform: translateX(-50%);
      border: 2px solid white;
    }

    .arc-card {
      position: absolute;
      opacity: 0;
      animation: arc-fade-in-up 0.8s ease-out forwards;
      will-change: transform, opacity;
      cursor: pointer;
    }

    .arc-card-inner {
      border-radius: 16px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
      overflow: hidden;
      background: #ffffff;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      width: 100%;
      height: 100%;
      will-change: transform;
      border: 2px solid white;
    }

    .arc-card-inner:hover {
      transform: scale(1.05);
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), 0 6px 16px rgba(0, 0, 0, 0.12);
      z-index: 100;
    }

    .arc-card-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position:top;
  pointer-events: none;
  user-select: none;
}

    .arc-card-inner:hover img {
      transform: scale(1.05);
      transition: transform 0.3s ease ease-in-out;
    }

    .arc-content {
      position: relative;
      z-index: 10;
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 24px;
      margin-top: -160px;
    }

    .arc-content-inner {
      text-align: center;
      max-width: 640px;
      opacity: 0;
      animation: arc-fade-in 0.8s ease-out 0.8s forwards;
    }

    .arc-content h1 {
      font-size: clamp(32px, 5vw, 56px);
      font-weight: 700;
      letter-spacing: -0.025em;
      line-height: 1.1;
      color: #111827;
      margin-top: -180px;
    }

    .arc-content p {
      margin-top: 16px;
      font-size: clamp(16px, 2vw, 18px);
      color: #6b7280;
      line-height: 1.6;
      max-width: 520px;
      margin-left: auto;
      margin-right: auto;
    }

    .preloader-section {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px 0;
      margin-top: 185px;
    }

    .preloader-section img {
      width: 250px;
      height: auto;
      max-width: 55vw;
      object-fit: contain;
    }

    /* Home Popup / Lightbox */
    .popup-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.4s ease, visibility 0.4s ease;
      padding: 24px;
    }

    .popup-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .popup-card {
      position: relative;
      max-width: 520px;
      width: 100%;
      background: #ffffff;
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
      transform: scale(0.85) translateY(30px);
      transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .popup-overlay.active .popup-card {
      transform: scale(1) translateY(0);
    }

    .popup-img-wrapper {
      width: 100%;
      height: 600px;
      overflow: hidden;
      position: relative;
    }

    .popup-img-wrapper img {
      width: 100%;
      height: 100%;
      object-fit:cover;
      display: block;
    }

    .popup-body {
      padding: 28px 32px 32px;
      display: none;
    }

    .popup-tag {
      display: inline-block;
      padding: 4px 12px;
      background: #eef2ff;
      color: #4f46e5;
      font-size: 12px;
      font-weight: 600;
      border-radius: 999px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 12px;
    }

    .popup-title {
      font-size: 24px;
      font-weight: 700;
      color: #111827;
      line-height: 1.3;
      margin-bottom: 10px;
    }

    .popup-desc {
      font-size: 15px;
      color: #6b7280;
      line-height: 1.7;
      margin-bottom: 20px;
    }

    .popup-meta {
      display: flex;
      align-items: center;
      gap: 16px;
      padding-top: 16px;
      border-top: 1px solid #e5e7eb;
    }

    .popup-meta-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: #9ca3af;
    }

    .popup-meta-item svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .popup-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.9);
      border: none;
      color: #374151;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, transform 0.2s;
      z-index: 10;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .popup-close:hover {
      background: #ffffff;
      transform: rotate(90deg);
    }

    @keyframes arc-fade-in-up {
      from {
        opacity: 0;
        transform: translate(-50%, 60%);
      }

      to {
        opacity: 1;
        transform: translate(-50%, 50%);
      }
    }

    @keyframes arc-fade-in {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

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

    @media (min-width: 640px) {
      .arc-content {
        margin-top: -120px;
      }
    }

    @media (max-width: 639px) {
      .arc-content {
        margin-top: -80px;
        padding-bottom: 40px;
      }

      .arc-content h1 {
        font-size: 28px;
        margin-top: 100px;
      }

      .popup-card {
        border-radius: 16px;
      }

      .popup-img-wrapper {
        height: 220px;
      }

      .popup-body {
        padding: 20px 22px 24px;
      }

      .popup-title {
        font-size: 20px;
      }

      .popup-desc {
        font-size: 14px;
      }
    }

    @media (max-width: 400px) {
      .popup-img-wrapper {
        height: 180px;
      }

      .popup-body {
        padding: 16px 18px 20px;
      }
    }

    /* =========================================
   PAGE 2 — PORTFOLIO (category grid)
   ========================================= */
    #page-portfolio {
      background: #ffffff;
      color: #000000;
    }

    .portfolio-section {
      width: 100%;
      background: #ffffff;
      padding: 48px 16px 120px;
    }

    @media (min-width: 769px) {
      .portfolio-section {
        height: auto;
        min-height: 100%;
        overflow: visible;
        padding: 48px 16px 120px;
      }
    }

    .portfolio-container {
      max-width: 1280px;
      margin: 0 auto;
      width: 100%;
    }

    .portfolio-header {
      text-align: center;
      margin-bottom: 48px;
      opacity: 0;
      transform: translateY(-20px);
      animation: fade-in-down 0.6s ease forwards;
    }

    .portfolio-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 12px;
      background: #27272a;
      color: #a1a1aa;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 500;
      margin-bottom: 16px;
      border: 1px solid #3f3f46;
    }

    .portfolio-badge svg {
      width: 12px;
      height: 12px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .portfolio-title {
      font-size: clamp(28px, 4vw, 40px);
      font-weight: 700;
      letter-spacing: -0.025em;
      margin-bottom: 16px;
      color: #181818;
    }

    .portfolio-desc {
      max-width: 672px;
      margin: 0 auto;
      font-size: 16px;
      color: #4e4e4e;
      line-height: 1.6;
    }

    /* ===== CATEGORY GRID ===== */
    .category-grid {
      display: grid;
      gap: 16px;
      grid-template-columns: 1fr;
      padding-bottom: 100px;
    }

    @media (min-width: 640px) {
      .category-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1024px) {
      .category-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .category-card {
      position: relative;
      cursor: pointer;
      overflow: hidden;
      border-radius: 12px;
      box-shadow: 0px 1px 3px rgb(0, 0, 0);
      background: #fdfdfd;
      transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
      opacity: 0;
      transform: scale(0.9);
      animation: pop-in 0.4s ease forwards;
    }

    .category-card:hover {
      border-color: #5e5e5e;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
      transform: translateY(-4px);
    }

    .category-card-image-wrapper {
      position: relative;
      aspect-ratio: 4 / 3;
      overflow: hidden;
    }

    .category-card-image-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
      display: block;
    }

    .category-card:hover .category-card-image-wrapper img {
      transform: scale(1.08);
    }

    .category-card-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.5);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

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

    .category-card-overlay svg {
      width: 28px;
      height: 28px;
      stroke: #a1a1aa;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
      margin-bottom: 8px;
    }

    .category-card-info {
      padding: 16px 20px;
      background: #ffffff;
      border-top: 1px solid #27272a;
    }

    .category-card-title {
      font-size: 16px;
      font-weight: 600;
      color: #181818;
      margin-bottom: 4px;
      line-height: 1.3;
    }

    .category-card-date {
      font-size: 13px;
      color: #71717a;
      font-weight: 400;
    }

    .category-card-count {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      background: #27272a;
      color: #ffffff;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 500;
      margin-top: 8px;
    }

    /* ===== GALLERY PAGE ===== */
    .gallery-page-section {
      width: 100%;
      background: #ffffff;
      padding: 48px 16px 120px;
      display: none;
    }

    .gallery-page-section.active {
      display: block;
    }

    @media (min-width: 769px) {
      .gallery-page-section {
        height: auto;
        min-height: 100%;
        overflow: visible;
        padding: 48px 16px 120px;
      }
    }

    .gallery-page-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 1280px;
      margin: 0 auto 32px;
      padding: 0 8px;
    }

    .gallery-page-back {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      background: #27272a;
      color: #ffffff;
      border: 1px solid #3f3f46;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.2s ease;
      text-decoration: none;
    }

    .gallery-page-back:hover {
      background: #3f3f46;
      color: #fafafa;
    }

    .gallery-page-back svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .gallery-page-title {
      font-size: clamp(24px, 3vw, 32px);
      font-weight: 700;
      color: #131313;
      text-align: center;
      flex: 1;
    }

    .gallery-page-grid {
      display: grid;
      gap: 12px;
      grid-template-columns: 1fr;
      max-width: 1280px;
      margin: 0 auto;
    }

    @media (min-width: 640px) {
      .gallery-page-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1024px) {
      .gallery-page-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .gallery-page-card {
      position: relative;
      cursor: pointer;
      overflow: hidden;
      border-radius: 10px;
      border: 1px solid #27272a;
      background: #18181b;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
      opacity: 0;
      transform: scale(0.95);
      animation: pop-in 0.3s ease forwards;
    }

    .gallery-page-card:hover {
      border-color: #3a3a3a;
      box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    }

    .gallery-page-card img {
      width: 100%;
      aspect-ratio: 3 / 2;
      object-fit: cover;
      display: block;
      transition: transform 0.4s ease;
    }

    .gallery-page-card:hover img {
      transform: scale(1.05);
    }

    /* ===== LIGHTBOX ===== */
    .lightbox-overlay {
      position: fixed;
      inset: 0;
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.92);
      padding: 16px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .lightbox-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .lightbox-content {
      position: relative;
      max-height: 90vh;
      max-width: 1280px;
      width: 100%;
      transform: scale(0.85);
      opacity: 0;
      transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    }

    .lightbox-overlay.active .lightbox-content {
      transform: scale(1);
      opacity: 1;
    }

    .lightbox-close {
      position: absolute;
      top: -48px;
      right: 0;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      border: none;
      color: #ffffff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, color 0.2s;
      z-index: 10;
    }

    .lightbox-close:hover {
      background: rgba(255, 255, 255, 0.2);
      color: #fafafa;
    }

    .lightbox-close svg {
      width: 24px;
      height: 24px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .lightbox-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      border: none;
      color: #fafafa;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, color 0.2s, transform 0.2s;
      z-index: 10;
    }

    .lightbox-nav:hover {
      background: rgba(255, 255, 255, 0.2);
      color: #fafafa;
      transform: translateY(-50%) scale(1.1);
    }

    .lightbox-nav svg {
      width: 32px;
      height: 32px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .lightbox-prev { left: 16px; }
    .lightbox-next { right: 16px; }

    .lightbox-img {
      max-height: 80vh;
      width: auto;
      max-width: 100%;
      border-radius: 8px;
      display: block;
      margin: 0 auto;
      opacity: 0;
      transition: opacity 0.2s ease;
    }

    .lightbox-img.loaded { opacity: 1; }

    .lightbox-info {
      text-align: center;
      margin-top: 16px;
      color: #a1a1aa;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    }

    .lightbox-overlay.active .lightbox-info {
      opacity: 1;
      transform: translateY(0);
    }

    .lightbox-info-title {
      font-size: 20px;
      font-weight: 600;
      color: #fafafa;
      margin-bottom: 8px;
    }

    .lightbox-info-badge {
      display: inline-flex;
      padding: 4px 12px;
      background: #27272a;
      color: #a1a1aa;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 500;
      border: 1px solid #3f3f46;
    }

    @keyframes fade-in-down {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes pop-in {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    }

    /* ===== MOBILE RESPONSIVE ===== */
    @media (max-width: 768px) {
      .portfolio-section {
        padding: 32px 12px 100px;
      }

      .category-card-image-wrapper {
        aspect-ratio: 3 / 2;
      }

      .category-card-info {
        padding: 12px 14px;
      }

      .category-card-title {
        font-size: 14px;
      }

      .category-card-date {
        font-size: 12px;
      }

      .gallery-page-section {
        padding: 24px 12px 100px;
      }

      .gallery-page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        margin-bottom: 24px;
      }

      .gallery-page-title {
        text-align: left;
        font-size: 20px;
      }

      .gallery-page-grid {
        gap: 8px;
      }

      .lightbox-nav { display: none; }
      .lightbox-close { top: -40px; right: 0; }
    }

    @media (max-width: 480px) {
      .portfolio-title { font-size: 24px; }
      .portfolio-desc { font-size: 14px; }
      .category-grid { gap: 10px; }
      .gallery-page-grid { grid-template-columns: 1fr; }
    }

    @media (hover: none) {
      .category-card:hover,
      .gallery-page-card:hover {
        transform: none !important;
      }
      .category-card:active,
      .gallery-page-card:active {
        transform: scale(0.98) !important;
      }
    }

    /* =========================================
   PAGE 3 — CARDS
   ========================================= */
    #page-cards {
      background: #ffffff;
      color: #0f172a;
      align-items: center;
      justify-content: center;
    }


    .card-price {
      font-size: 20px;
      font-weight: 700;
      color: #111827;
      /* gold */
      margin: 10px 0 14px;
      letter-spacing: 1px;
    }

    .packages-header {
      text-align: center;
      margin-top: 20px;
      margin-bottom: 20px;
    }

    .packages-title {
      font-size: 2.25rem;
      font-weight: 700;
      letter-spacing: -0.025em;
      color: rgb(26, 26, 26);
      margin-bottom: 0.75rem;
      margin-top: 1.5rem;
    }

  .packages-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
    margin-bottom: 40px;
}

    .cards-page-body {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding: 0px 20px 120px;
    }

    @media (min-width: 769px) {
      .cards-page-body {
        height: auto;
        min-height: 100%;
        overflow: visible;
        padding: 0px 20px 120px;
      }
    }

    .project-card {
      position: relative;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border-radius: 16px;
      border: 1px solid #e2e8f0;
      background: #ffffff;
      color: #0f172a;
      box-shadow: 0px 1px 3px rgb(0, 0, 0);
      cursor: pointer;
      transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
      max-width: 400px;
      width: 100%;
    }

    .project-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    }

    .card-image-wrapper {
      aspect-ratio: 16 / 9;
      overflow: hidden;
      position: relative;
    }

    .card-image-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.7s ease-in-out;
      display: block;
    }

    .project-card:hover .card-image-wrapper img {
      transform: scale(1.1);
    }

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

    .card-title {
      font-size: 20px;
      font-weight: 600;
      color: #0f172a;
      transition: color 0.3s ease;
      line-height: 1.3;
    }

    .project-card:hover .card-title {
      color:#1b1b1b;
    }

    .card-desc {
      margin-top: 12px;
      flex: 1;
      font-size: 15px;
      color: #64748b;
      line-height: 1.6;
    }

    .card-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 16px;
      font-size: 14px;
      font-weight: 500;
      margin-left: 80px;
      color: black;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .card-link-2 {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 16px;
      font-size: 14px;
      font-weight: 500;
      margin-left: 150px;
      color: black;
      text-decoration: none;
      transition: all 0.3s ease;
    }
.card-link-2:hover {
      text-decoration: underline;
    }

    .card-link:hover {
      text-decoration: underline;
    }

    .card-link svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: transform 0.3s ease;
    }
    .card-link-2 svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: transform 0.3s ease;
    }

    .card-link:hover svg {
      transform: translateX(4px);
    }
    
    .card-link-2:hover svg {
      transform: translateX(4px);
    }

    .demo-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
      max-width: 1100px;
      width: 100%;
      padding: 0 16px;
    }
   .demo-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0px;
    max-width: 1100px;
    width: 100%;
    padding: 0 110px;
    padding-bottom: 100px;
}

    @media (min-width: 640px) {
      .demo-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .demo-grid-2 {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1024px) {
      .demo-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      }
      .demo-grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      }
    }

    @media (max-width: 400px) {
      .project-card {
        border-radius: 12px;
      }

      .packages-header {
        text-align: center;
      }

      .packages-title {

        font-size: 1.5rem;

      }

      .card-content {
        padding: 20px;
      }

      .card-title {
        font-size: 18px;
      }

      .card-desc {
        font-size: 14px;
      }
    }

    /* =========================================
   PAGE 4 — FAQ
   ========================================= */
    #page-faq {
      background: #ffffff;
      color: #fafafa;
      align-items: stretch;
      justify-content: stretch;
    }

    .faq-section {
      position: relative;
      overflow: visible;
      padding: 48px 16px 120px;
      background: #ffffff;
      color: #000000;
      width: 100%;
    }

    @media (min-width: 769px) {
      .faq-section {
        height: auto;
        min-height: 100%;
        padding-bottom: 100px;
      }
    }

    .faq-header {
      position: relative;
      z-index: 10;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .faq-subtitle {
      margin-bottom: 32px;
      font-size: 14px;
      font-weight: 500;
      background-color: #0f172a;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .faq-title {
      margin-bottom: 32px;
      font-size: clamp(32px, 5vw, 48px);
      font-weight: 700;
      color: #141414;
    }

    .faq-glow {
      position: absolute;
      top: -350px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 0;
      width: 600px;
      height: 500px;
      border-radius: 50%;
      background: linear-gradient(to right, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
      filter: blur(100px);
      pointer-events: none;
    }

    .faq-tabs {
      position: relative;
      z-index: 10;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin-top: 8px;
    }

    .faq-tab {
      position: relative;
      overflow: hidden;
      white-space: nowrap;
      border-radius: 6px;
      border: 1px solid #27272a;
      padding: 6px 12px;
      font-size: 14px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: color 0.5s ease, border-color 0.5s ease;
      background: transparent;
      color: #000000;
    }

    .faq-tab:hover {
      color: #0f172a;
    }

    .faq-tab.active {
      border-color: #0f172a;
      color: #ffffff;
    }

    .faq-tab-label {
      position: relative;
      z-index: 10;
    }

    .faq-tab-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      background: #0f172a;
      transform: translateY(100%);
      transition: transform 0.5s cubic-bezier(0.36, 0, 0.66, -0.56);
    }

    .faq-tab.active .faq-tab-bg {
      transform: translateY(0%);
    }

    .faq-list {
      max-width: 768px;
      margin: 48px auto 0;
    }

    .faq-category-group {
      display: none;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s cubic-bezier(0.36, 0, 0.66, -0.56), transform 0.5s cubic-bezier(0.36, 0, 0.66, -0.56);
      padding-bottom: 100px;
    }

    .faq-category-group.active {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }

    .faq-item {
      border-radius: 12px;
      border: 1px solid #27272a;
      margin-bottom: 16px;
      overflow: hidden;
      transition: background-color 0.3s ease;
      background: #ffffff;
    }

    .faq-item.open {
      background-color:rgba(255, 255, 255, 0.5);
    }

    .faq-question-btn {
      display: flex;
      width: 100%;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 16px;
      text-align: left;
      background: none;
      border: none;
      cursor: pointer;
      font-family: inherit;
    }

    .faq-question-text {
      font-size: 18px;
      font-weight: 500;
      transition: color 0.3s ease;
      color: #181818;
    }

    .faq-item.open .faq-question-text {
      color: #0e0e0e;
    }

    .faq-icon {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
      transition: transform 0.2s ease, color 0.3s ease;
      color: #383838;
    }

    .faq-item.open .faq-icon {
      transform: rotate(45deg);
      color: #000000;
    }

    .faq-icon svg {
      width: 100%;
      height: 100%;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .faq-answer-wrapper {
      overflow: hidden;
      height: 0;
      transition: height 0.3s ease-in-out;
    }

    .faq-answer {
      padding: 0 16px 16px;
      font-size: 15px;
      line-height: 1.6;
      color: #000000;
    }

    @media (max-width: 640px) {
      .faq-section {
        padding: 32px 12px;
      }

      .faq-title {
        font-size: 28px;
      }

      .faq-question-text {
        font-size: 16px;
      }

      .faq-tabs {
        gap: 8px;
      }

      .faq-tab {
        padding: 5px 10px;
        font-size: 13px;
      }

      .faq-glow {
        width: 400px;
        height: 350px;
      }
    }

    @media (max-width: 400px) {
      .faq-title {
        font-size: 24px;
      }

      .faq-question-text {
        font-size: 15px;
      }
    }


    /* ===== ABOUT SECTION ===== */

    #page-about {
      background: #ffffff;
    }

    .about-section {
      position: relative;
      overflow: visible;
      padding: 100px 16px 140px;
      background: #ffffff;
      color: #464646;
      width: 100%;
    }

    /* Decorative glow behind the section */
    .about-glow {
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      z-index: 0;
      width: 500px;
      height: 500px;
      border-radius: 50%;
      background: linear-gradient(to right, rgba(79, 70, 229, 0.08), rgba(79, 70, 229, 0.02));
      filter: blur(120px);
      pointer-events: none;
    }

    .about-container {
      position: relative;
      z-index: 10;
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 64px;
      align-items: center;
    }

    /* ===== LEFT: IMAGE ===== */
    .about-image-wrapper {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid #27272a;
    }

    .about-image-wrapper::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 2;
      background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, transparent 60%);
      pointer-events: none;
    }

    .about-image-wrapper img {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 4/3;
      object-fit: cover;
      transition: transform 0.6s cubic-bezier(0.36, 0, 0.66, -0.56);
    }

    .about-image-wrapper:hover img {
      transform: scale(1.05);
    }

    /* Floating badge on image */
    .about-badge {
      position: absolute;
      bottom: 20px;
      left: 20px;
      z-index: 3;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      border-radius: 999px;
      background: rgba(24, 24, 27, 0.85);
      backdrop-filter: blur(10px);
      border: 1px solid #27272a;
      font-size: 13px;
      font-weight: 500;
      color: #fafafa;
    }

    .about-badge-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #ffffff;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {

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

      50% {
        opacity: 0.5;
        transform: scale(1.2);
      }
    }

    /* ===== RIGHT: CONTENT ===== */
    .about-content {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .about-subtitle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 500;
      color: #0f172a;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .about-subtitle::before {
      content: '';
      display: block;
      width: 24px;
      height: 2px;
      background: #0f172a;
      border-radius: 2px;
    }

    .about-title {
      font-size: clamp(32px, 4vw, 48px);
      font-weight: 700;
      line-height: 1.15;
      color: #1b1b1b;
    }

    .about-title span {
      background: #0f172a;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .about-description {
      font-size: 16px;
      line-height: 1.7;
      color: #414141;
      max-width: 520px;
    }

    /* Stats row */
    .about-stats {
      display: flex;
      gap: 40px;
      margin-top: 8px;
      padding-top: 24px;
      border-top: 1px solid #27272a;
    }

    .about-stat {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .about-stat-number {
      font-size: 28px;
      font-weight: 700;
      color: #fafafa;
      line-height: 1;
    }

    .about-stat-label {
      font-size: 13px;
      font-weight: 500;
      color: #71717a;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* CTA Button */
    .about-cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 8px;
      padding: 12px 28px;
      border-radius: 8px;
      background: linear-gradient(to right, #4f46e5, #4f46e5cc);
      color: #ffffff;
      font-size: 15px;
      font-weight: 600;
      font-family: inherit;
      border: none;
      cursor: pointer;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      text-decoration: none;
      width: fit-content;
    }

    .about-cta:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(79, 70, 229, 0.3);
    }

    .about-cta svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: transform 0.3s ease;
    }

    .about-cta:hover svg {
      transform: translateX(4px);
    }

    .about-bottom-content {
      max-width: 1100px;
      margin: 0px auto 30px;
      column-count: 2;
      column-gap: 60px;
      padding-bottom: 145px;
    }

    .about-bottom-content .about-description {
      text-align: justify;
      margin-bottom: 10px;
    }

    /* Mobile */
    @media (max-width: 768px) {
      .about-bottom-content {
        column-count: 1;
      }
    }

    /* ===== SCROLL REVEAL ANIMATION ===== */
    .about-reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s ease,
        transform 0.8s ease;
    }

    .about-reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .about-image-wrapper.about-reveal {
      transform: translateY(30px) scale(0.98);
    }

    .about-image-wrapper.about-reveal.visible {
      transform: translateY(0) scale(1);
    }

    /* Stagger delays */
    .about-reveal:nth-child(1) {
      transition-delay: 0s;
    }

    .about-reveal:nth-child(2) {
      transition-delay: 0.15s;
    }

    .about-reveal:nth-child(3) {
      transition-delay: 0.3s;
    }

    .about-reveal:nth-child(4) {
      transition-delay: 0.45s;
    }

    .about-reveal:nth-child(5) {
      transition-delay: 0.6s;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 900px) {
      .about-section {
        padding: 64px 16px;
      }

      .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .about-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
      }

      .about-content {
        text-align: left;
        align-items: left;
      }

      .about-subtitle {
        justify-content: center;
      }

      .about-subtitle::before {
        background: linear-gradient(to right, transparent, #4f46e5, transparent);
        width: 40px;
      }

      .about-stats {
        justify-content: center;
      }
    }

    @media (max-width: 480px) {
      .about-section {
        padding: 48px 12px;
      }

      .about-title {
        font-size: 28px;
      }

      .about-stats {
        gap: 24px;
      }

      .about-stat-number {
        font-size: 22px;
      }
    }

    @media (min-width: 769px) {
      #page-about .about-section {
        min-height: 100vh;
      }
    }

    /* CSS Reset & Base */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      /* Dark theme colors matching 21st.dev dark theme */
      --background: #0a0a0a;
      --foreground: #fafafa;
      --card: #0a0a0a;
      --card-foreground: #fafafa;
      --popover: #0a0a0a;
      --popover-foreground: #fafafa;
      --primary: #fafafa;
      --primary-foreground: #171717;
      --secondary: #262626;
      --secondary-foreground: #fafafa;
      --muted: #262626;
      --muted-foreground: #a3a3a3;
      --accent: #262626;
      --accent-foreground: #fafafa;
      --destructive: #ef4444;
      --destructive-foreground: #fafafa;
      --border: #262626;
      --input: #262626;
      --ring: #d4d4d4;
      --radius: 0.5rem;
    }

    #page-contact {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      background-color: white;
      color: black;
    }

    /* Main Container */
    .contact-section {
      width: 100%;
      max-width: 640px;
      text-align: center;
      padding: 80px 16px 140px;
      margin: 0 auto;
    }

    /* Header */
    .contact-header {
      margin-bottom: 1.5rem;
    }

    .contact-label {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.875rem;
      font-weight: 500;
      color: grey;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-top: 1rem;
    }

    .contact-label::before {
      content: "";
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: #363636;
      box-shadow: 0 0 8px rgba(92, 92, 92, 0.5);
    }

    .contact-title {
      font-size: 2.25rem;
      font-weight: 700;
      letter-spacing: -0.025em;
      color: black;
      margin-bottom: 0.75rem;
    }

    .contact-description {
      font-size: 1rem;
      color: grey;
      max-width: 480px;
      margin: 0 auto;
      line-height: 1.6;
    }

    /* Form */
    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      text-align: left;
    }

    /* Form Row - 2 columns on desktop */
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }

    /* Form Group */
    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .form-label {
      font-size: 0.875rem;
      font-weight: 500;
      color: grey;
    }

    .form-input,
    .form-textarea {
      width: 100%;
      padding: 0.75rem 1rem;
      font-size: 0.875rem;
      color: rgb(0, 0, 0);
      background-color: white;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      outline: none;
      transition: all 0.2s ease;
      font-family: inherit;
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
      color: rgb(0, 0, 0);
      opacity: 0.7;
    }

    .form-input:focus,
    .form-textarea:focus {
      border-color: var(--ring);
      box-shadow: 0 0 0 2px rgba(212, 212, 212, 0.1);
    }

    .form-textarea {
      min-height: 140px;
      resize: vertical;
    }

    /* Submit Button */
    .submit-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      width: 100%;
      padding: 0.875rem 1.5rem;
      font-size: 0.875rem;
      font-weight: 500;
      color: white;
      background-color: #131313;
      border: none;
      border-radius: var(--radius);
      cursor: pointer;
      transition: all 0.2s ease;
      font-family: inherit;
      margin-top: 1.5rem;
    }

    .submit-btn:hover {
      background-color: #ffffff;
      color: #111111;
      border: 2px solid #111111;
      transform: translateY(-1px);
    }

    .submit-btn:active {
      transform: translateY(0);
    }

    .submit-btn svg {
      width: 16px;
      height: 16px;
    }

    /* Footer */
    .contact-footer {
      margin-top: 2rem;
      font-size: 0.875rem;
      color: rgb(87, 87, 87);
    }

    .contact-footer a {
      color: gray;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s ease;
    }

    .contact-footer a:hover {
      text-decoration: underline;
    }

    /* ==================== MOBILE RESPONSIVE ==================== */
    @media (max-width: 640px) {
      /* body {
        padding: 1.5rem 1rem;
      } */

      .contact-section {
        max-width: 100%;
      }

      .contact-title {
        font-size: 1.75rem;
      }

      .contact-description {
        font-size: 0.9375rem;
      }

      /* Stack form fields on mobile */
      .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
      }

      .form-input,
      .form-textarea {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        /* Prevent zoom on iOS */
      }

      .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
      }
    }

    @media (max-width: 380px) {
      .contact-title {
        font-size: 1.5rem;
      }

      .contact-label {
        font-size: 0.8125rem;
      }
    }

    /* Touch device optimizations */
    @media (hover: none) {

      .form-input:focus,
      .form-textarea:focus {
        box-shadow: none;
        border-color: var(--ring);
      }
    }

    /* Reduced motion preference */
    @media (prefers-reduced-motion: reduce) {

      .form-input,
      .form-textarea,
      .submit-btn {
        transition: none;
      }
    }

  
/* =========================================
   ADDITIONAL MOBILE RESPONSIVE FIXES
========================================= */

/* Cards page mobile fixes */
@media (max-width: 768px) {
  .cards-page-body {
    padding: 80px 12px 80px !important;
  }

  .demo-grid,
  .demo-grid-2 {
    padding: 0 8px !important;
    gap: 16px !important;
  }

  .project-card {
    max-width: 100% !important;
  }

  .packages-header {
    margin-top: 10px !important;
    padding: 0 12px;
  }

  .packages-title {
    font-size: 1.5rem !important;
  }

  .packages-description {
    font-size: 0.875rem !important;
  }

  .card-price {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start !important;
  }

  .card-link {
    margin-left: 0 !important;
  }
}

/* About section mobile fixes */
@media (max-width: 900px) {
  .about-section {
    padding: 60px 16px 80px !important;
  }

  .about-bottom-content {
        padding: 0 10px 60px 0px !important;
        margin-top: 30px !important;
        text-align: left;
  }
}

@media (max-width: 768px) {
  .about-bottom-content {
    column-count: 1 !important;
    column-gap: 0 !important;
  }
}

/* FAQ mobile fixes */
@media (max-width: 640px) {
  .faq-section {
    padding: 32px 12px 80px !important;
  }
}

/* Portfolio gallery mobile */
@media (max-width: 768px) {
  .gallery-section {
    padding: 40px 12px 80px !important;
  }
}

/* Contact page mobile */
@media (max-width: 640px) {
  .contact-section {
    padding: 60px 16px 100px !important;
  }
}

/* Luma bar mobile z-index fix */
@media (max-width: 768px) {
  .luma-bar-wrapper {
    bottom: 12px !important;
  }

  .luma-bar {
    padding: 8px 12px !important;
  }
}

/* Home page mobile arc fixes */
@media (max-width: 639px) {
  .arc-content h1 {
    margin-top: 60px !important;
  }

  .preloader-section {
    margin-top: 100px !important;
  }

  .preloader-section img {
    max-width: 70vw !important;
  }
}

/* General mobile touch improvements */
@media (hover: none) {
  .project-card:hover,
  .gallery-card:hover,
  .arc-card-inner:hover {
    transform: none !important;
  }

  .project-card:active,
  .gallery-card:active {
    transform: scale(0.98) !important;
  }
}

/* Prevent horizontal scroll on all pages */
html, body {
  overflow-x: hidden;
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }

  .page {
    overflow-x: hidden;
  }
}

/* =========================================
   PACKAGE POPUP — CENTERED & ELEGANT
========================================= */

/* FORCE ALL POPUP TEXT TO BE LIGHT ON DARK BG */
.package-popup-content,
.package-popup-content * {
  color: #e4e4e7;
}

.package-popup-content h2,
.package-popup-content h3,
.package-popup-content h4,
.package-popup-content strong,
.package-popup-content b {
  color: #fafafa !important;
}

.package-popup-content p,
.package-popup-content li,
.package-popup-content span:not(.package-popup-badge) {
  color: #d4d4d8 !important;
}

.package-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.package-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.package-popup-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  background: #0a0a0a;
  border: 1px solid #27272a;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.package-popup-overlay.active .package-popup-card {
  transform: translateY(0) scale(1);
}

.package-popup-image {
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.package-popup-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, #0a0a0a 100%);
  pointer-events: none;
}

.package-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.package-popup-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 36px 36px;
  scrollbar-width: thin;
  scrollbar-color: #27272a transparent;
}

.package-popup-content::-webkit-scrollbar {
  width: 6px;
}

.package-popup-content::-webkit-scrollbar-track {
  background: transparent;
}

.package-popup-content::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}

.package-popup-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #d4af37;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.package-popup-title {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.package-popup-price {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.package-popup-description {
  font-size: 15px;
  line-height: 1.7;
  color: #ffffff;
  margin-bottom: 24px;
}

.package-popup-features {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 28px;
    padding: 10px;
}

.popup-feature {
  font-size: 14px;
  color: #d4d4d8 !important;
  font-weight: 400;
  padding: 12px 0;
  border-bottom: 1px solid #27272a;
  line-height: 1.6;
}

.popup-feature:first-child {
  border-top: 1px solid #27272a;
}

.popup-feature strong {
  color: #fafafa;
  font-weight: 600;
}

.popup-feature ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
  list-style-type: disc;
}

.popup-feature ul li {
  margin-bottom: 6px;
  color: #d4d4d8 !important;
}

.popup-feature p {
  margin: 8px 0;
  color: #d4d4d8 !important;
}

.popup-feature h3,
.popup-feature h4 {
  color: #fafafa;
  font-weight: 600;
  margin: 16px 0 8px;
}

.popup-feature h3 {
  font-size: 16px;
  color: #fafafa !important;
  font-weight: 600;
}

.popup-feature h4 {
  font-size: 14px;
  color: #e4e4e7 !important;
  font-weight: 600;
}

.popup-feature hr {
  border: none;
  border-top: 1px solid #27272a;
  margin: 16px 0;
}

.package-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 14px 28px;
  border-radius: 10px;
  background: white;
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-right: 12px;
}

.package-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(97, 97, 97, 0.3);
}

.package-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: #fafafa;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.package-popup-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

/* ===== MOBILE PACKAGE POPUP ===== */
@media (max-width: 640px) {
  .package-popup-overlay {
    padding: 8px;
    align-items: flex-start;
    padding-top: 40px;
  }

  .package-popup-card {
    max-width: 100%;
    max-height: calc(100vh - 60px);
    border-radius: 16px;
  }

  .package-popup-image {
    height: 140px;
  }

  .package-popup-content {
    padding: 20px 16px 24px;
  }

  .package-popup-title {
    font-size: 22px;
  }

  .package-popup-price {
    font-size: 20px;
  }

  .package-popup-description {
    font-size: 13px;
    color: #d4d4d8 !important;
  }

  .popup-feature {
    font-size: 12px;
    padding: 8px 0;
    color: #d4d4d8 !important;
  }

  .popup-feature h3 {
    font-size: 14px !important;
  }

  .popup-feature h4 {
    font-size: 13px !important;
  }

  .package-popup-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }

  .package-popup-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .package-popup-overlay {
    padding: 6px;
    padding-top: 35px;
  }

  .package-popup-card {
    max-height: calc(100vh - 50px);
    border-radius: 12px;
  }

  .package-popup-image {
    height: 120px;
  }

  .package-popup-content {
    padding: 16px 12px 20px;
  }

  .package-popup-title {
    font-size: 18px;
  }

  .package-popup-price {
    font-size: 18px;
  }

  .package-popup-badge {
    font-size: 9px;
    padding: 4px 8px;
  }

  .popup-feature {
    font-size: 11px;
    padding: 6px 0;
  }
}

/* =========================================
   MULTI-PAGE RESTRUCTURE — HEADER ON TOP,
   LONG-SCROLL STACKING, FOOTER
========================================= */

/* ---- Long-scroll: show every section stacked in normal flow ---- */
html, body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

.page,
.page.active,
.page.visible {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  overflow: visible !important;
}

.page-inner,
.page-inner-fill {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* Home hero keeps a full first screen; clear the floating header */
#page-home { overflow: visible !important; }
.arc-hero {
  min-height: 100vh !important;
  height: auto !important;
}

/* ---- Header at the TOP — logo on the LEFT, nav on the right ---- */
.luma-bar-wrapper.site-header {
  top: 20px;
  bottom: auto;
}

.site-header .luma-bar {
  justify-content: space-between;
  gap: 24px;
}

.site-header .nav-section.site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header .nav-btn {
  text-decoration: none;
}

.site-header .nav-btn.active {
  color: #111827;
  position: relative;
}
.site-header .nav-btn.active::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: #111827;
}

/* logo on the far left, nav on the right */
.site-header .luma-logo { order: 0; }
.site-header .site-nav  { order: 1; }

@media (max-width: 768px) {
  .luma-bar-wrapper.site-header {
    top: 12px !important;
    bottom: auto !important;
    width: calc(100% - 24px);
    max-width: 680px;
  }
  .site-header .luma-bar { justify-content: space-between; width: 100%; }
}

/* ---- Fixed-header clearance so content never hides behind the pill ---- */
.home-page .arc-hero { padding-top: 96px; }

.inner-page .portfolio-section,
.inner-page .faq-section,
.inner-page .about-section,
.inner-page .contact-section { padding-top: 124px; }
.inner-page .cards-page-body { padding-top: 120px; }

@media (max-width: 768px) {
  .home-page .arc-hero { padding-top: 84px; }
  .inner-page .portfolio-section,
  .inner-page .faq-section,
  .inner-page .about-section,
  .inner-page .contact-section { padding-top: 104px; }
  .inner-page .cards-page-body { padding-top: 100px; }
}

/* =========================================
   SECTION CTA BUTTONS (shared)
========================================= */
.section-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}
.section-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.section-cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.section-cta:hover svg { transform: translateX(4px); }

/* Dark CTA (for light sections) */
.section-cta.cta-dark {
  background: #111827;
  color: #ffffff;
}
.section-cta.cta-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.28);
}
/* Light CTA (for dark sections) */
.section-cta.cta-light {
  background: #fafafa;
  color: #0a0a0a;
}
.section-cta.cta-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
/* Outline CTA */
.section-cta.cta-outline {
  background: transparent;
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.4);
}
.section-cta.cta-outline:hover {
  transform: translateY(-2px);
  background: rgba(79, 70, 229, 0.08);
}

/* =========================================
   PORTFOLIO FILTER TABS
========================================= */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 36px;
  max-width: 760px;
}
.pf-tab {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pf-tab:hover {
  border-color: #c7cbd1;
  transform: translateY(-1px);
}
.pf-tab.active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}
.portfolio-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #6b7280;
  padding: 40px 0;
  font-size: 15px;
}

/* ---- Footer ---- */
.site-footer {
  background: #0a0a0a;
  color: #fafafa;
  padding: 64px 24px 32px;
  border-top: 1px solid #1f2937;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer-brand img {
  width: 120px;
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.site-footer-brand p {
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}
.site-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fafafa;
  margin-bottom: 16px;
}
.site-footer-col a {
  display: block;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.site-footer-col a:hover { color: #fafafa; }
.site-footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #71717a;
  font-size: 13px;
}
@media (max-width: 768px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 48px 20px 24px; }
}

/* =========================================
   DESIGN REFINEMENT PASS
   (vertical rhythm, branded contrast, hero CTA)
========================================= */

/* --- Tighter, consistent vertical rhythm on the homepage --- */
.home-page .portfolio-section { padding-top: 32px; padding-bottom: 56px; }
.home-page .about-section     { padding-top: 56px; padding-bottom: 44px; min-height: 0; }
.home-page .cards-page-body   { padding-top: 24px; padding-bottom: 56px; }
.home-page .faq-section       { padding-top: 56px; padding-bottom: 56px; }
.home-page .contact-section   { padding-top: 56px; padding-bottom: 72px; }

/* About teaser must not be forced to full-viewport height on the homepage */
.home-page #page-about .about-section { min-height: 0 !important; }

/* CTA hugs its section content instead of floating away */
.section-cta-wrap { margin-top: 28px; }

/* --- Soft, on-brand section backgrounds for contrast (site-wide) --- */
.about-section   { background: #f6f0e6 !important; }  /* warm ivory */
.faq-section     { background: #f4f3f1 !important; }  /* soft grey  */
.contact-section { background: #f6f0e6 !important; }  /* warm ivory */
/* portfolio & packages stay clean white between the tinted bands */
.portfolio-section { background: #ffffff !important; }
.cards-page-body   { background: #ffffff !important; }

/* --- HERO: clear the nav, size to content (kills dead space) --- */
.home-page #page-home,
.home-page #page-home .page-inner-fill,
.home-page .arc-hero {
  height: auto !important;
  min-height: 0 !important;
}
.home-page .arc-hero {
  padding-top: 150px;
  padding-bottom: 24px;
}
.home-page .arc-content { flex: none; margin-top: -120px; }
.home-page .arc-content h1 { margin-top: -150px; }

.hero-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .home-page .arc-hero { padding-top: 104px; min-height: auto; }
  .arc-content { margin-top: -80px; }
  .arc-content h1 { margin-top: -110px; }
  .home-page .portfolio-section,
  .home-page .about-section,
  .home-page .faq-section,
  .home-page .contact-section { padding-top: 44px; padding-bottom: 44px; }
}

/* Remove leftover bottom padding under the portfolio grid (was spacing for
   the old bottom nav) so the CTA sits close to the cards */
.category-grid { padding-bottom: 0 !important; }
.faq-category-group { padding-bottom: 0 !important; }

/* =========================================
   ROUND 2 REFINEMENTS
========================================= */

/* Kill the purple FAQ glow — it clashed with the grey FAQ band */
.faq-glow { display: none !important; }

/* Hero centre mark: now the static NarBear logo (GIF moved to preloader) */
.preloader-section img {
  width: 190px;
  max-width: 55vw;
  height: auto;
}

/* --- SITE PRELOADER (the drawing GIF) --- */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  animation: preloaderAutoHide 0.6s ease 4s forwards; /* JS-independent safety net */
}
.site-preloader img {
  width: 260px;
  max-width: 60vw;
  height: auto;
}
.site-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes preloaderAutoHide {
  to { opacity: 0; visibility: hidden; }
}
