/* ==========================================================================
   VENUX STUDIO — STANDALONE STYLESHEET (MULTI-PAGE & VIDEO BG SUPPORT)
   Strict 3-Color Standard: White (#ffffff), Silver/Muted (#a3a3a8), Deep Gold (#f59e0b)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@500;600;700;800&display=swap');

:root {
  --bg-primary: #060608;
  --text-white: #ffffff;
  --text-silver: #a3a3a8;
  --text-muted: #73737c;
  --gold-primary: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.35);
  --glass-bg: rgba(14, 15, 22, 0.72);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(245, 158, 11, 0.5);
  --glass-blur: blur(16px);
  --font-syne: 'Syne', sans-serif;
  --font-space: 'Space Grotesk', monospace, sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

::selection {
  background-color: var(--gold-primary);
  color: #000000;
}

/* ================= BACKGROUND VIDEO & OVERLAY ================= */
.video-bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.video-bg-media {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* 20% Black Overlay as requested */
.video-bg-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.20);
  z-index: 1;
}

.noise-layer {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
}

/* Typography Utility Classes */
.font-syne { font-family: var(--font-syne); }
.font-space { font-family: var(--font-space); }
.font-sans { font-family: var(--font-sans); }

/* Glass Panel Styling */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.12);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.875rem 1.25rem;
  background: rgba(6, 6, 8, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Orbit Canvas & Interactive Showcase (Home) */
.orbit-showcase-container {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  touch-action: pan-y;
}

.orbit-card {
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(12, 13, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: transform, opacity;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.orbit-card img {
  transition: opacity 0.4s ease-in-out, transform 0.4s ease;
}

.orbit-card:hover {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 35px var(--gold-glow), 0 20px 50px rgba(0, 0, 0, 0.9) !important;
  z-index: 100 !important;
}

.orbit-card:hover img {
  transform: scale(1.04);
}

/* Glitch Animation */
@keyframes glitch-anim {
  0% { transform: translate(0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(-1px, -1px); }
  60% { transform: translate(1px, 1px); }
  80% { transform: translate(1px, -1px); }
  100% { transform: translate(0); }
}

.animate-glitch {
  animation: glitch-anim 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

/* ================= CIRCULAR ARC NAVIGATION (FIXED & SHIFTED INWARD) ================= */
.arc-nav-desktop {
  position: fixed;
  right: 28px; /* Shifted left from the edge so it never crops! */
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  user-select: none;
}

.arc-nav-wrapper {
  position: relative;
  width: 280px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.arc-trigger-btn {
  width: 52px;
  height: 84px;
  background: rgba(13, 14, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 42px 0 0 42px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.6);
}

.arc-trigger-btn:hover {
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(22, 24, 34, 0.98);
}

.arc-nodes-group {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.arc-nodes-group.collapsed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.85);
}

.arc-node-item {
  position: absolute;
  transform: translate(50%, -50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  text-decoration: none;
}

.arc-node-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 19, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-silver);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 15px;
}

.arc-node-btn.active {
  background: var(--gold-primary);
  color: #000000;
  box-shadow: 0 0 25px var(--gold-glow);
  transform: scale(1.12);
  font-weight: 700;
  border-color: var(--gold-primary);
}

.arc-node-btn:hover:not(.active) {
  border-color: var(--gold-primary);
  color: #ffffff;
  transform: scale(1.08);
}

.arc-node-pill {
  margin-right: 10px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(8, 9, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-space);
  font-size: 11px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-silver);
  transition: all 0.25s ease;
}

.arc-node-item:hover .arc-node-pill {
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.4);
}

.arc-node-item.active .arc-node-pill {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fef08a;
  font-weight: 600;
}

/* ================= MOBILE & TABLET FLOATING DOCK ================= */
.mobile-bottom-dock {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 45;
  display: none;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}

.mobile-dock-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(12, 13, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
  max-width: calc(100vw - 24px);
  overflow-x: auto;
}

.mobile-dock-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: var(--text-silver);
  font-family: var(--font-space);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 38px;
  white-space: nowrap;
}

.mobile-dock-btn.active {
  background: var(--gold-primary);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 0 15px var(--gold-glow);
}

/* ================= RESPONSIVENESS & MOBILE LAYOUT FIXES ================= */
@media (max-width: 1024px) {
  .arc-nav-desktop {
    display: none !important;
  }
  .mobile-bottom-dock {
    display: flex !important;
  }
}

@media (max-width: 640px) {
  .header-container {
    padding: 0 4px;
  }
  .site-header {
    padding: 0.625rem 0.875rem;
  }
}

/* ================= CONTINUOUS CURVED ORBIT FERRIS-WHEEL PORTFOLIO ================= */
.portfolio-hero-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 0;
}

/* Portfolio Header Layout */
.portfolio-top-bar {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2px;
  padding: 0 4px;
}

.portfolio-title-group {
  max-width: 650px;
}

.portfolio-main-title {
  font-family: var(--font-syne);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 0.95;
  margin-bottom: 3px;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
}

.portfolio-sub-caption {
  font-family: var(--font-space);
  font-size: clamp(8.5px, 1.1vw, 10.5px);
  color: var(--text-silver);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
}

.portfolio-top-counter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portfolio-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(10, 12, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-space);
  font-size: 11px;
  letter-spacing: 0.14em;
  backdrop-filter: blur(10px);
}

/* ================= 3D CURVED ORBIT ARCH STAGE ================= */
.portfolio-stage-container {
  position: relative;
  width: 100%;
  flex: 1;
  height: 100%;
  min-height: 380px;
  max-height: 480px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
  margin: auto 0;
  overflow: visible;
}

.portfolio-stage-container:active {
  cursor: grabbing;
}

@media (max-width: 640px) {
  .portfolio-stage-container {
    min-height: 300px;
    max-height: 380px;
    perspective: 800px;
  }
}

.portfolio-cards-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Curved Orbit Card (4:5 / 4:5.2 Smooth Rounded Card) */
.portfolio-flow-card {
  position: absolute;
  top: 46%;
  left: 50%;
  width: clamp(210px, 17.5vw, 270px);
  height: calc(clamp(210px, 17.5vw, 270px) * 1.28); /* 4:5.12 Aspect Ratio */
  border-radius: 22px;
  overflow: hidden;
  background: #08090c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (min-width: 1280px) {
  .portfolio-flow-card {
    width: clamp(220px, 18vw, 280px);
    height: calc(clamp(220px, 18vw, 280px) * 1.28);
    border-radius: 24px;
  }
}

@media (max-width: 960px) {
  .portfolio-flow-card {
    width: 185px;
    height: 236px;
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  /* Mobile 9:16 optimized curved card */
  .portfolio-flow-card {
    width: 145px;
    height: 188px;
    border-radius: 16px;
  }
}

.portfolio-flow-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  filter: brightness(0.97);
  transition: transform 0.35s ease;
}

.portfolio-flow-card:hover img {
  transform: scale(1.04);
}

/* Hover pop & golden glow */
.portfolio-flow-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95), 0 0 25px rgba(245, 158, 11, 0.45);
}

/* Focus Dimming for Sibling Cards on Hover */
.portfolio-cards-wrap.has-hover .portfolio-flow-card:not(:hover) {
  opacity: 0.35 !important;
  filter: grayscale(35%) blur(1px) !important;
}

/* Navigation Chevrons (< and >) */
.portfolio-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 12, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.portfolio-nav-arrow:hover {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #000000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
}

.portfolio-nav-arrow.prev {
  left: 8px;
}

.portfolio-nav-arrow.next {
  right: 8px;
}

@media (max-width: 640px) {
  .portfolio-nav-arrow {
    width: 36px;
    height: 36px;
  }
}

/* ================= CATEGORY FILTERS ARRANGED BELOW THE CARDS ANIMATION ================= */
.portfolio-bottom-filters-wrapper {
  position: relative;
  z-index: 30;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 6px 0 2px;
}

.portfolio-bottom-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(10, 12, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.portfolio-filter-pill {
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-space);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.portfolio-filter-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.portfolio-filter-pill.active {
  color: #000000;
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.portfolio-filter-pill .portfolio-filter-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #000000;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.portfolio-filter-pill.active .portfolio-filter-indicator {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 860px) {
  .portfolio-bottom-filters {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 10px;
    border-radius: 16px;
    max-width: 100%;
  }

  .portfolio-bottom-filters::-webkit-scrollbar {
    display: none;
  }

  .portfolio-filter-pill {
    font-size: 9.5px;
    padding: 5px 11px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 640px) {
  .portfolio-nav-arrow {
    width: 38px;
    height: 38px;
  }
  .portfolio-nav-arrow.prev {
    left: 4px;
  }
  .portfolio-nav-arrow.next {
    right: 4px;
  }
}

/* Bottom Active Meta & Counter Bar */
.portfolio-bottom-bar {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(10, 11, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  backdrop-filter: blur(14px);
  margin-top: 10px;
}

.portfolio-active-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portfolio-category-badge {
  font-family: var(--font-space);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.portfolio-dots-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.portfolio-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}

.portfolio-dot.active {
  width: 18px;
  border-radius: 9999px;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
}

/* ================= EXTENDED PDF VIEW PANEL ================= */
.extended-pdf-container {
  position: relative;
  z-index: 20;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.extended-pdf-card {
  width: 100%;
  max-width: 920px;
  background: rgba(12, 14, 20, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 860px) {
  .extended-pdf-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}

.pdf-preview-mockup {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 380px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.95), 0 0 25px rgba(245, 158, 11, 0.2);
}

.pdf-preview-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom Lightbox Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}


.modal-card {
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  background: rgba(14, 15, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
}
