/* =============================================
   SUBLIMATION NEPAL — PREMIUM CSS SYSTEM
   ============================================= */

/* -- TOKENS -- */
:root {
  --bg-base: #050505;
  --bg-section: #0A0A0C;
  --brand-indigo: #333366;
  --accent-red: #CC0000;
  --text-primary: #E8E8EC;
  --text-secondary: #8A8A9A;
  --text-muted: #4A4A5A;
  --border-subtle: rgba(255,255,255,0.06);
  --border-indigo: rgba(51,51,102,0.4);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --easing-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --easing-out: cubic-bezier(0.22, 1, 0.36, 1);

  --nav-h: 60px;
  --section-pad: clamp(72px, 10vw, 120px);
}

/* -- RESET -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.5s var(--easing-smooth),
              border-color 0.5s var(--easing-smooth);
  border-bottom: 1px solid var(--border-subtle);
}
#navbar.scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
}
.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  flex: 0 0 auto;
  margin-right: auto;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo {
  height: 32px;
  width: auto;
  display: block;
}
.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-red);
  padding: 8px 20px;
  border-radius: 2px;
  transition: opacity 0.2s ease, box-shadow 0.3s ease;
}
.nav-cta:hover {
  opacity: 0.9;
  box-shadow: 0 0 16px rgba(204, 0, 0, 0.35);
}
.nav-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-mobile-menu {
  display: none;
  background: rgba(5,5,5,0.98);
  border-top: 1px solid var(--border-subtle);
  padding: 24px clamp(20px, 4vw, 48px) 32px;
}
.nav-mobile-menu ul { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.nav-mobile-menu a {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}
.mobile-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-red);
  padding: 12px 28px;
  border-radius: 2px;
}

/* =============================================
   SCROLL SCENE
   ============================================= */
#scroll-scene {
  position: relative;
  /* Total scroll height: 6x viewport */
  height: 600vh;
}
.sticky-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
#scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* -- SCROLL COPY LAYERS -- */
.scroll-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 80px));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--easing-smooth);
}
.scroll-copy.active {
  opacity: 1;
  pointer-events: auto;
}
.copy-inner {
  max-width: 680px;
  padding: 0 clamp(24px, 5vw, 60px);
  width: 100%;
}
.copy-inner.left-aligned { margin-left: 0; margin-right: auto; }
.copy-inner.right-aligned { margin-left: auto; margin-right: 0; }
.copy-inner.centered { text-align: center; margin: 0 auto; }

/* -- HERO COPY -- */
.hero-copy .copy-inner {
  max-width: 760px;
  margin-left: 0;
}
.overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-indigo);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: rgba(232, 232, 236, 0.55);
}
.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  right: clamp(24px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--brand-indigo));
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.9; transform: scaleY(1.2); }
}

/* -- SECTION COPY BLOCKS -- */
.precision-copy,
.reliability-copy {
  justify-content: flex-end;
}
.precision-copy .copy-inner,
.reliability-copy .copy-inner {
  text-align: right;
}
.precision-copy .feature-list li,
.reliability-copy .feature-list li {
  padding-left: 0;
  padding-right: 16px;
}
.precision-copy .feature-list li::before,
.reliability-copy .feature-list li::before {
  left: auto;
  right: 0;
}
.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-indigo);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-list li {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 1px;
  background: var(--brand-indigo);
}
.feature-list.centered li {
  padding-left: 0;
  text-align: center;
}
.feature-list.centered li::before { display: none; }

/* -- FINAL COPY -- */
.final-copy .copy-inner.left-aligned .cta-block,
.final-copy .copy-inner.left-aligned .contact-details {
  justify-content: flex-start;
}
.final-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.final-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-indigo);
  margin-bottom: 40px;
}
.cta-block {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.contact-details {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.contact-details .divider { opacity: 0.4; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-red);
  padding: 12px 28px;
  border-radius: 2px;
  border: 1px solid var(--accent-red);
  transition: box-shadow 0.3s ease, opacity 0.2s ease;
  cursor: pointer;
}
.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 0 20px rgba(204, 0, 0, 0.3);
}
.btn-primary.large { padding: 14px 32px; font-size: 13px; }
.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  padding: 11px 28px;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.3s ease, color 0.2s ease;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.18);
  color: var(--text-primary);
}
.btn-ghost.large { padding: 13px 32px; font-size: 13px; }
.btn-ghost.full-width { width: 100%; justify-content: center; margin-top: 12px; }
.btn-icon { font-size: 14px; }

/* =============================================
   SECTION RULE
   ============================================= */
.section-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-indigo) 30%, var(--border-indigo) 70%, transparent);
}

/* =============================================
   TRUST SECTION
   ============================================= */
.trust-section {
  padding: 48px 0;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-subtle);
}
.trust-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
  text-align: center;
}
.trust-line {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

/* =============================================
   SECTION CONTAINERS
   ============================================= */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--section-pad) clamp(24px, 5vw, 60px);
}
.section-header {
  margin-bottom: clamp(48px, 7vw, 80px);
}
.section-h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-top: 16px;
}

/* =============================================
   SERVICES
   ============================================= */
.services-section {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}
.service-card {
  background: var(--bg-base);
  padding: clamp(36px, 4vw, 52px) clamp(28px, 3vw, 40px);
  transition: background 0.3s ease;
}
.service-card:hover { background: var(--bg-section); }
.service-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand-indigo);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* =============================================
   QUALITY
   ============================================= */
.quality-section {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-subtle);
}
.quality-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}
.quality-body {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 48px;
  margin-top: 24px;
  max-width: 440px;
}
.quality-stats {
  display: flex;
  gap: 40px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Quality visual mock */
.quality-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.quality-card-mock {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  position: relative;
}
.quality-card-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(51,51,102,0.12) 0%, transparent 70%);
}
.mock-card {
  width: 180px;
  height: 116px;
  background: #0F0F14;
  border-radius: 6px;
  border: 1px solid rgba(51,51,102,0.3);
  padding: 12px;
  display: flex;
  gap: 12px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.mock-card-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-indigo);
  border-radius: 6px 6px 0 0;
}
.mock-card-photo {
  width: 40px;
  height: 52px;
  background: rgba(51,51,102,0.25);
  border-radius: 2px;
  margin-top: 8px;
  flex-shrink: 0;
}
.mock-card-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.mock-line {
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}
.mock-line.long { width: 100%; }
.mock-line.medium { width: 70%; }
.mock-line.short { width: 45%; }

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio-section {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.portfolio-item { display: flex; flex-direction: column; gap: 12px; }
.portfolio-img-wrap {
  overflow: hidden;
  background: var(--bg-section);
  aspect-ratio: 4/3;
}
.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.85);
  transition: transform 0.6s var(--easing-smooth), filter 0.4s ease;
}
.portfolio-item:hover .portfolio-img-wrap img {
  transform: scale(1.03);
  filter: saturate(1) brightness(0.95);
}
.portfolio-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0 2px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-section {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-subtle);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}
.contact-body {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 24px;
  margin-bottom: 40px;
  max-width: 400px;
}
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  transition: border-color 0.3s ease, background 0.3s ease;
  text-decoration: none;
  color: inherit;
}
a.contact-info-item:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
}
.info-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.contact-info-item div { display: flex; flex-direction: column; gap: 4px; }
.info-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.info-val { font-size: 14px; color: var(--text-secondary); }

.contact-map-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}
.map-card {
  width: 100%;
}
.map-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.map-inner {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-base);
}
.map-inner iframe {
  display: block;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--bg-base);
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: auto;
}
.footer-tagline {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--text-secondary); }

/* =============================================
   SCROLL COPY POSITIONING (sections)
   ============================================= */
.system-copy .copy-inner,
.reliability-copy .copy-inner {
  padding-left: clamp(24px, 8vw, 120px);
}
.precision-copy .copy-inner {
  padding-right: clamp(24px, 8vw, 120px);
}

/* =============================================
   PROGRESS BAR
   ============================================= */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 0%;
  background: var(--brand-indigo);
  z-index: 2000;
  transition: width 0.1s linear;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu-toggle { display: flex; }
  .nav-mobile-menu.open { display: block; }

  .quality-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .quality-visual { display: none; }
  .contact-cta-panel { order: -1; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-copy { padding-top: calc(var(--nav-h) + 40px); }
  .scroll-indicator { display: none; }
}
@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .cta-block { flex-direction: column; align-items: center; }
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .quality-stats { flex-wrap: wrap; gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
}
