/* BDXMVP — Custom styles (cPanel / shared hosting) */
:root {
  --background: #030303;
  --foreground: #fafafa;
  --primary: #6366f1;
  --muted-foreground: #a1a1aa;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 0.75rem;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Fira Code", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.font-georgian {
  font-family: var(--font-mono), "Fira Code", "Noto Sans Georgian", sans-serif;
}

a { color: inherit; text-decoration: none; }

/* Background orbs & glow */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.orb-indigo {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
  opacity: 0.15;
  top: -300px;
  right: -200px;
  animation: float-orb 25s ease-in-out infinite;
}

.orb-wine {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #4c0519 0%, transparent 70%);
  opacity: 0.12;
  bottom: -200px;
  left: -150px;
  animation: float-orb 30s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

.glow-radial {
  position: fixed;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 120vh;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 25%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.glow-radial-secondary {
  position: fixed;
  bottom: -30%;
  right: -20%;
  width: 80vw;
  height: 80vh;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Animated background layer */
.animated-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -10;
}

.animated-bg-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, #0a0a0f, #0f0f1a, #0a0a12);
}

.nebula-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: nebula-float 20s ease-in-out infinite;
}

.nebula-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 40%, transparent 70%);
  top: 10%;
  left: -10%;
}

.nebula-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(76, 5, 25, 0.12) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 70%);
  bottom: -5%;
  right: -5%;
  animation-duration: 25s;
  animation-delay: 5s;
}

.nebula-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  top: 40%;
  right: 20%;
  animation-duration: 18s;
  animation-delay: 3s;
}

@keyframes nebula-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  animation: particle-float 12s ease-in-out infinite;
}

@keyframes particle-float {
  0%, 100% { transform: translateY(0); opacity: 0.2; }
  50% { transform: translateY(-30px); opacity: 0.5; }
}

/* Glass & bento */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.bento-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-card:hover {
  transform: translateY(-6px) scale(1.01);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.glow-indigo {
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.25), 0 0 80px rgba(99, 102, 241, 0.1);
}

.glow-violet { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
.glow-emerald { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
.glow-amber { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }

@keyframes pulse-slow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.02); }
}

.animate-pulse-slow { animation: pulse-slow 3s ease-in-out infinite; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #4f46e5;
  color: #fff;
  font-weight: 500;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover { background: #6366f1; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-lg { padding: 1.25rem 2.5rem; font-size: 1.125rem; }

/* Language switcher */
.lang-flag {
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
}

#lang-switcher-desktop .lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s;
}

#lang-switcher-desktop .lang-switch-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}

#lang-switcher-desktop .lang-switch-btn.active {
  background-color: #2a2b36;
  color: #fff;
}

.lang-separator {
  margin: 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.28);
  user-select: none;
}

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 140px;
  padding: 0.5rem 0;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.lang-dropdown.open { display: block; }

/* Portfolio showcase */
.portfolio-card:hover {
  transform: translateY(-2px);
}

.portfolio-mockup img {
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
}

.portfolio-quote {
  margin: 0;
}

.portfolio-logo {
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.project-gallery-trigger {
  position: absolute;
  inset: 0;
}

.project-gallery-trigger:focus-visible {
  outline: 2px solid #00f0ff;
  outline-offset: -2px;
}

/* Portfolio fullscreen lightbox portal */
#bdx-lightbox-modal.bdx-lightbox-portal {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  z-index: 2147483646 !important;
  display: none !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}

#bdx-lightbox-modal.bdx-lightbox-portal.is-open {
  display: flex !important;
  pointer-events: auto;
}

#bdx-lightbox-modal.bdx-lightbox-portal[hidden] {
  display: none !important;
  pointer-events: none;
}

.bdx-lightbox-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  padding: 4.5rem 4rem 3.5rem;
  box-sizing: border-box;
}

.bdx-lightbox-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  max-width: 85vw;
  max-height: 80vh;
  pointer-events: none;
}

.bdx-lightbox-image {
  display: block;
  max-width: 85vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.bdx-lightbox-image--changing {
  opacity: 0.65;
  transform: scale(0.98);
}

.bdx-lightbox-btn {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 9999px;
  background: rgba(3, 3, 3, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #00f0ff;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bdx-lightbox-btn:hover,
.bdx-lightbox-btn:focus-visible {
  border-color: rgba(0, 240, 255, 0.7);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35), 0 0 40px rgba(0, 240, 255, 0.12);
  outline: none;
}

.bdx-lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
}

.bdx-lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.bdx-lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

#bdx-lightbox-modal .bdx-lightbox-btn,
#bdx-lightbox-modal .bdx-lightbox-counter {
  position: absolute;
}

.bdx-lightbox-counter {
  z-index: 2;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(0, 240, 255, 0.85);
  text-transform: uppercase;
}

body.bdx-lightbox-open {
  overflow: hidden !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 639px) {
  .bdx-lightbox-shell {
    padding: 3.5rem 2.75rem 3rem;
  }

  .bdx-lightbox-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .bdx-lightbox-prev { left: 0.5rem; }
  .bdx-lightbox-next { right: 0.5rem; }
  .bdx-lightbox-close { top: 0.75rem; right: 0.75rem; }
}

/* FAQ */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] .faq-chevron { transform: rotate(90deg); }

/* Terminal */
.terminal-window {
  border-radius: 1rem;
  overflow: hidden;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  padding: 0.75rem 1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  min-height: 320px;
  max-height: 400px;
  overflow-y: auto;
}

/* Planner */
.planner-section textarea {
  width: 100%;
  min-height: 140px;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fafafa;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.planner-section textarea:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.planner-section textarea::placeholder { color: #71717a; }

.roadmap-output {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: none;
}

.roadmap-output.visible { display: block; }

.roadmap-output pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #d4d4d8;
  margin: 0;
}

/* Contact */
.contact-card { cursor: pointer; text-align: left; width: 100%; }
.contact-hidden { display: none !important; }

/* Mobile CTA */
.mobile-cta-wrap { display: none; }
@media (max-width: 639px) {
  .mobile-cta-wrap { display: block; }
}

.mobile-cta-menu {
  position: absolute;
  bottom: 4rem;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-cta-menu.open { display: flex; }

.mobile-cta-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
  position: relative;
}

/* Scroll indicator */
.scroll-indicator-dot {
  animation: scroll-bounce 1.5s ease-in-out infinite;
}

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

/* Fade-in on scroll — GPU-only (opacity + translate3d), zero layout reflow */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.6s ease, transform 0.6s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Frozen horizontal rules — compositor layer, never tied to .reveal transforms */
.section-divider {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  transform: translateZ(0);
  z-index: 10;
}

.section-divider.top {
  top: 0;
}

.section-divider.bottom {
  bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Pricing glow */
.pricing-glow {
  position: absolute;
  inset: -4px;
  background: linear-gradient(to right, #6366f1, #8b5cf6, #ec4899);
  border-radius: 1.5rem;
  filter: blur(8px);
  opacity: 0.3;
}

/* Comparison — Why wait months */
.comparison-section {
  position: relative;
}

.comparison-card--traditional.comparison-card--stress {
  opacity: 0.85;
}

.comparison-card--traditional.comparison-card--stress .comparison-dynamic-num {
  color: #fca5a5;
}

.comparison-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
}

.comparison-icon--bad {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.comparison-icon--good {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.comparison-dynamic-num {
  display: inline-block;
  min-width: 3ch;
  transition: color 0.35s ease;
}

.comparison-cards:hover .comparison-card--traditional {
  opacity: 0.55;
}

.comparison-cards:hover .comparison-card--bdx .comparison-metric-row--fixed > p:first-child {
  filter: drop-shadow(0 0 22px rgba(139, 92, 246, 0.45));
}

.comparison-metric-row--fixed > p:first-child {
  transition: filter 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .comparison-dynamic-num {
    transition: none;
  }

  .comparison-metric-row--fixed > p:first-child {
    transition: none;
  }
}

/* Tech stack infinite marquee */
.tech-stack-section {
  position: relative;
}

.tech-marquee-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.tech-marquee-group:hover .tech-marquee-track {
  animation-play-state: paused;
}

.tech-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.tech-marquee-track {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: max-content;
  padding: 0.35rem 0;
  animation: tech-marquee-scroll 42s linear infinite;
  will-change: transform;
}

.tech-marquee--rtl .tech-marquee-track {
  animation-name: tech-marquee-scroll-reverse;
  animation-duration: 38s;
}

@keyframes tech-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes tech-marquee-scroll-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.tech-badge {
  --tech-color: #00f0ff;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tech-badge:hover {
  transform: scale(1.06);
  border-color: color-mix(in srgb, var(--tech-color) 55%, transparent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--tech-color) 45%, transparent),
    0 0 36px color-mix(in srgb, var(--tech-color) 18%, transparent);
}

.tech-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.tech-badge-icon img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.tech-badge-name {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .tech-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .tech-marquee {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }

  .tech-marquee-group {
    gap: 1.25rem;
  }
}

/* Process timeline */
.process-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.5));
}

@media (max-width: 767px) {
  .process-line { display: none; }
}

/* Do NOT define .hidden here — it breaks Tailwind responsive utilities (hidden md:flex) in the header */
