/* ================================================================
   PORTFOLIO.CSS — Pranav Sahu | Digital Systems Portfolio
   Theme: Ultra-clean Premium Editorial Minimal
   ================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global reset for images and icons */
img,
svg {
  display: block;
  flex-shrink: 0;
}
svg {
  pointer-events: none;
}

/* ── ARCHITECTURAL POLISH (Avistash Sync) ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02; /* Lowered opacity */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Lenis Support */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

.background-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-size: 80px 80px;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

/* ── TOKENS ── */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #fcfdfe;
  --border: #eef2f6;
  --border-2: #e2e8f0;
  --text: #000000;
  --text-2: #2d3748;
  --text-3: #718096;
  --accent: #1a202c;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --max: 1360px; /* Increased for better screen utilization */
  --hh: 72px;
  --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sh: 0 1px 2px rgba(0, 0, 0, 0.03);
  --sh-md: 0 20px 40px rgba(0, 0, 0, 0.04);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-bricolage {
  font-family: "Bricolage Grotesque", sans-serif !important;
}

/* ── WRAP ── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 60px; /* Increased slightly for wide displays */
}
@media (max-width: 1024px) {
  .wrap {
    padding: 0 40px;
  }
}
@media (max-width: 768px) {
  .wrap {
    padding: 0 24px;
  }
}

/* ── REVEAL ── */
.reveal {
  opacity: 1; /* Default to visible to prevent 'not shown' errors */
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.rvd1 {
  transition-delay: 0.1s;
}
.rvd2 {
  transition-delay: 0.2s;
}
.rvd3 {
  transition-delay: 0.3s;
}

/* ── HEADER (Floating Pill) ── */
.site-header {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 240px); /* Smaller default width */
  max-width: 900px;
  height: 48px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s var(--t);
}
.site-header:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.15);
}

.header-inner {
  height: 100%;
  padding: 0 8px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo-ico {
  width: 24px;
  height: 24px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
@media (max-width: 960px) {
  .site-header {
    width: calc(100% - 40px);
    max-width: 700px;
  }
  .header-inner {
    padding: 0 8px 0 16px;
  }
  .nav-links {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .site-header {
    width: calc(100% - 20px);
    height: 44px;
    top: 5px;
    border-radius: 16px;
  }
  .nav-links {
    display: none;
  }
  .header-logo {
    gap: 6px;
  }
}

.nav-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: var(--t);
}
.nav-link:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: var(--t);
  cursor: pointer;
}
.nav-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

/* ── HERO ── */
.hero {
  padding: calc(var(--hh) + 80px) 0 80px;
  position: relative;
}
.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.hero-bg-icon {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  opacity: 0.02;
  pointer-events: none;
  z-index: 1;
  color: var(--text);
}
.hero-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  box-shadow: var(--sh-md);
  flex-shrink: 0;
}
.hero-text {
  flex: 1;
}
.hero-eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--border-2);
}
.hero-meta {
  color: #888;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.hero-name {
  font-size: clamp(48px, 11vw, 110px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-subtitle {
  font-size: 15px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 32px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 40px;
  color: var(--text-3);
}
.hero-line {
  margin: 60px 0 0;
  border: 0;
  height: 1px;
  background: var(--border);
}

.hero-stats {
  display: flex;
  gap: 80px;
  padding-top: 48px;
}
.stat-box {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 6px;
}

/* Hero Sketch Card */
.hero-card {
  flex: 1;
  max-width: 320px;
  align-self: center;
  margin-left: auto;
  perspective: 1000px;
}
.hero-card-inner {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-card:hover .hero-card-inner {
  transform: rotateY(-5deg) rotateX(2deg) translateY(-8px);
}
.hero-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.card-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
  animation: pulse 2s infinite;
}
.card-status-text {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}
.card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 400;
}
.card-line {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-3);
}
.card-meta {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .hero-card {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
  }
  .hero-stats {
    gap: 30px;
  }
}

/* ── MARQUEE ── */
.marquee-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  padding: 16px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
}
.marquee-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-2);
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── SECTIONS ── */
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.section-label-text {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label-text::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--border-2);
}
.section-label-right {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── METHODOLOGY ── */
.process-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-step {
  background: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: var(--t);
}
.process-step:hover {
  background: var(--surface-2);
}
.proc-num {
  font-size: 14px;
  font-weight: 900;
  color: var(--border-2);
  letter-spacing: 0.1em;
}
.proc-title {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.proc-text {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ── CATEGORIES (2X2) ── */
.systems-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
}

.cat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  cursor: pointer;
  transition: var(--t);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cat-box:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.cat-box.active {
  border-color: var(--text);
  background: var(--surface);
}

.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke: var(--text);
  stroke-width: 1.5;
  fill: none;
}
.cat-toggle svg {
  width: 14px !important;
  height: 14px !important;
  stroke: var(--text-3);
  stroke-width: 2.5;
  fill: none;
  transition: var(--t);
}

.cat-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.cat-blurb {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  font-weight: 400;
}
.cat-badge {
  font-size: 9px;
  font-weight: 800;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-3);
  align-self: flex-start;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── PANELS & TILES ── */
.projects-panel {
  grid-column: 1 / -1;
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: none; /* Controlled by JS and GSAP */
  opacity: 0;
}
.projects-panel.open {
  margin-bottom: 20px;
}
.panel-bar {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-cat-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.panel-cat-name svg {
  width: 16px;
  height: 16px;
  stroke: var(--text);
  fill: none;
}
.panel-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: transparent;
  padding: 32px;
}
@media (max-width: 1024px) {
  .tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .tiles-grid {
    grid-template-columns: 1fr;
  }
}

.tile {
  background: #fff;
  padding: 32px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--t);
}
.tile:hover {
  background: var(--surface-2);
}
.tile-num {
  font-size: 9px;
  font-weight: 800;
  color: var(--border-2);
  letter-spacing: 0.1em;
}
.tile-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tile-desc {
  font-size: 12px;
  color: var(--text-3);
  flex: 1;
  line-height: 1.6;
}
.tile-open {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  letter-spacing: 0.1em;
}
.tile-open svg {
  width: 11px !important;
  height: 11px !important;
}

/* ── NEW SECTIONS ── */
.caps-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.caps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 900px) {
  .caps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .caps-grid {
    grid-template-columns: 1fr;
  }
}
.cap-card {
  background: #fff;
  padding: 40px;
}
.cap-ico {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.cap-ico svg {
  width: 20px;
  stroke: var(--text);
  stroke-width: 1.5;
  fill: none;
}
.cap-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cap-text {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

.metrics-section {
  padding: 80px 0;
  background: var(--text);
  color: #fff;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.met-num {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.met-unit {
  color: #555;
}
.met-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
}

.tech-strip {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}
.tech-scroll {
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.tech-scroll::-webkit-scrollbar {
  display: none;
}
.tech-list {
  display: flex;
  gap: 12px;
  width: max-content;
}
.tech-item {
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--bg);
}

/* ── SECTORS ── */
.sectors-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 1024px) {
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}
@media (max-width: 480px) {
  .sectors-grid {
    grid-template-columns: 1fr;
  }
}

.sector-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sec-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--border-2);
  letter-spacing: 0.1em;
}
.sec-title {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text);
}
.sec-text {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
}

.approach-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.approach-cols {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
}
@media (max-width: 900px) {
  .approach-cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.app-heading {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.app-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.app-item {
  display: flex;
  gap: 24px;
}
.app-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--border-2);
}
.app-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
}
.app-text {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.7;
}

/* ── STACKED CARDS ── */
.stack-container {
  position: relative;
  width: 100%;
}
.stack-section {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.stack-1 {
  background: #f8fafc;
  z-index: 2;
}
.stack-2 {
  background: #f1f5f9;
  z-index: 3;
}
.stack-3 {
  background: #e2e8f0;
  z-index: 4;
}

.stack-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stack-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.stack-desc {
  font-size: 16px;
  color: var(--text-2);
  max-width: 500px;
  line-height: 1.6;
}
.stack-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 40px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  width: fit-content;
  transition: all 0.4s var(--t);
}
.stack-btn:hover {
  background: var(--text);
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--sh-md);
}

.stack-bg-icons {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  color: var(--text);
}

.stack-meta-grid {
  display: flex;
  gap: 32px;
  margin-bottom: 8px;
  z-index: 1;
}
.stack-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stack-meta-item span {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 0.1em;
}
.stack-meta-item strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

/* ── VIEWER ── */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.viewer.open {
  transform: translateY(0);
}
.viewer-bar {
  height: 56px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  background: #fff;
}
.viewer-back {
  border: 0;
  background: #f0f4f8;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-transform: uppercase;
}
.viewer-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 4px;
}
.viewer-title {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.viewer-ext {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--surface-2);
}
.viewer-ext:hover {
  color: var(--text);
  background: var(--border);
}
.viewer-ext svg {
  width: 12px !important;
  height: 12px !important;
  stroke: currentColor;
  stroke-width: 2.5;
}
.viewer-back svg {
  width: 14px !important;
  height: 14px !important;
}
.viewer-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

.site-footer {
  background: #000;
  color: #fff;
  padding: 140px 0 60px;
  position: relative;
  z-index: 10;
  border-top: 1px solid #111;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 100px;
  border-bottom: 1px solid #111;
  position: relative;
  z-index: 2;
}

/* Custom Footer Styling */
.ft-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #4a5568;
  margin-bottom: 32px;
}
.ft-name {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}
.ft-title {
  color: #718096;
  font-size: 13px;
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 300px;
}
.ft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ft-tag {
  font-size: 9px;
  font-weight: 800;
  border: 1px solid #2d3748;
  padding: 5px 12px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.ft-brands {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ft-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ft-brand:hover {
  opacity: 1;
}
.ft-brand-logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #2d3748;
  object-fit: contain;
  background: #000000; /* Restoring white background for visibility */
  padding: 8px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ft-brand:hover .ft-brand-logo {
  transform: scale(1.15);
  border-color: #141414;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.ft-brand-name {
  font-size: 13px;
  font-weight: 800;
  color: #f7fafc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.ft-brand-sub {
  font-size: 10px;
  color: #4a5568;
  letter-spacing: 0.02em;
}

.ft-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ft-link {
  font-size: 13px;
  color: #718096;
  text-decoration: none;
  transition: 0.25s;
  font-weight: 500;
}
.ft-link:hover {
  color: #fff;
  padding-left: 4px;
}

.ft-social {
  display: flex;
  gap: 12px;
}
.ft-social-btn {
  width: 44px;
  height: 44px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  border-radius: 10px;
  transition: all 0.25s;
}
.ft-social-btn:hover {
  border-color: #2d3748;
  color: #fff;
  background: #111;
  transform: translateY(-2px);
}
.ft-social-btn svg {
  width: 18px !important;
  height: 18px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* Large Background Name */
.ft-bg-name {
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(80px, 20vw, 320px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 0.8;
}
.site-footer:hover .ft-bg-name {
  color: rgba(255, 255, 255, 0.06);
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 48px;
  font-size: 10px;
  color: #2d3748;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
}
.footer-back {
  color: #4a5568;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color 0.2s;
}
.footer-back:hover {
  color: #fff;
}
