/* ========================================
   ENOCH STUDIO — Portfolio Styles
   ======================================== */

:root {
  --bg: #09090b;
  --bg-elevated: #18181b;
  --bg-card: #1c1c20;
  --border: rgba(255, 255, 255, 0.06);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #52525b;
  --accent-1: #818cf8;
  --accent-2: #c084fc;
  --accent-3: #38bdf8;
  --gradient: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
  --gradient-subtle: linear-gradient(135deg, rgba(129,140,248,0.15), rgba(192,132,252,0.15));
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html.lang-ko {
  --font: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Noto Sans KR', 'Inter', sans-serif;
}

html.lang-ko p,
html.lang-ko .section-desc,
html.lang-ko .card-desc,
html.lang-ko .cap-content p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: rgba(129, 140, 248, 0.3);
  color: #fff;
}

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

/* ---- Cursor Glow ---- */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129,140,248,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(129, 140, 248, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 8px 40px rgba(129, 140, 248, 0.5);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.btn--large {
  padding: 18px 36px;
  font-size: 1rem;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.lang-switch__btn {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--text-dim);
  transition: var(--transition);
}

.lang-switch__btn:hover {
  color: var(--text-muted);
}

.lang-switch__btn--active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.nav-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--cta {
  color: #fff;
  background: var(--gradient);
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-link--cta::after { display: none; }

.nav-link--cta:hover {
  box-shadow: 0 4px 20px rgba(129, 140, 248, 0.4);
  transform: translateY(-1px);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

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

.hero-orb--1 {
  width: 500px; height: 500px;
  top: -10%; left: -5%;
  background: rgba(129, 140, 248, 0.3);
  animation-delay: 0s;
}

.hero-orb--2 {
  width: 400px; height: 400px;
  top: 40%; right: -10%;
  background: rgba(192, 132, 252, 0.25);
  animation-delay: -7s;
}

.hero-orb--3 {
  width: 350px; height: 350px;
  bottom: -5%; left: 30%;
  background: rgba(56, 189, 248, 0.2);
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
  animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Sections ---- */
.section {
  padding: 120px 24px;
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Project Cards (Apps) ---- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.project-card:hover {
  border-color: rgba(129, 140, 248, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

a.project-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.erp-dashboard--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.erp-dashboard--link:hover {
  border-color: rgba(129, 140, 248, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.card-visual {
  padding: 40px 20px 20px;
  display: flex;
  justify-content: center;
}

.card-info {
  padding: 24px;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tech span {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---- Phone Mockup ---- */
.phone-frame {
  width: 180px;
  height: 360px;
  border-radius: 28px;
  background: #1a1a1a;
  padding: 8px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* App UI Elements */
.app-ui {
  padding: 32px 12px 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-header-bar {
  height: 12px;
  width: 50%;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  margin-bottom: 16px;
}

.app-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  margin-bottom: 12px;
}

.app-title-bar {
  height: 10px;
  width: 70%;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  margin-bottom: 16px;
}

.app-search-bar {
  height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  margin-bottom: 16px;
}

.app-card-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.app-mini-card {
  flex: 1;
  height: 60px;
  border-radius: 10px;
}

.app-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-list-item {
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}

.app-tab-bar {
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px 12px 0 0;
  margin-top: auto;
  margin-left: -12px;
  margin-right: -12px;
}

.app-grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  flex: 1;
}

.app-grid-item {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  min-height: 60px;
}

.app-map-area {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.app-map-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
    linear-gradient(135deg, rgba(255,255,255,0.05) 25%, transparent 25%);
  background-size: 30px 30px;
}

.app-bottom-sheet {
  background: rgba(255,255,255,0.12);
  border-radius: 12px 12px 0 0;
  padding: 8px 12px;
  margin-left: -12px;
  margin-right: -12px;
}

.app-sheet-handle {
  width: 32px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  margin: 0 auto 10px;
}

/* ---- VR/AR Showcase ---- */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.showcase-card:hover {
  border-color: rgba(129, 140, 248, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.showcase-card--large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.showcase-visual {
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.showcase-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========== VR Scene — V2 ========== */
.vr-scene {
  background: linear-gradient(160deg, #07071a 0%, #0d0b2e 40%, #14103d 100%);
}

.vr-env-v2 {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}

.vr-terrain {
  position: absolute;
  bottom: 0;
  left: -20%;
  right: -20%;
  height: 55%;
  transform: perspective(400px) rotateX(65deg);
  transform-origin: bottom;
  background-image:
    linear-gradient(rgba(129,140,248,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129,140,248,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to top, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 40%, transparent 100%);
  animation: terrain-scroll 12s linear infinite;
}

@keyframes terrain-scroll {
  from { background-position: 0 0; }
  to { background-position: 0 28px; }
}

.vr-headset-float {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  animation: headset-bob 5s ease-in-out infinite;
}

.vr-headset-svg {
  width: 160px;
  height: 80px;
  filter: drop-shadow(0 0 24px rgba(129,140,248,0.35));
}

@keyframes headset-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}

.vr-label {
  position: absolute;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(129,140,248,0.55);
  padding: 3px 10px;
  border: 1px solid rgba(129,140,248,0.15);
  border-radius: 4px;
  background: rgba(129,140,248,0.05);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  animation: label-fade 4s ease-in-out infinite;
}

.vr-label--1 { top: 52%; left: 8%; animation-delay: 0s; }
.vr-label--2 { top: 30%; right: 8%; animation-delay: 1.2s; }
.vr-label--3 { bottom: 28%; left: 18%; animation-delay: 2.4s; }

@keyframes label-fade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.vr-particles-v2 span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-1);
  border-radius: 50%;
  opacity: 0;
  animation: spark 3.5s infinite ease-in-out;
}

.vr-particles-v2 span:nth-child(1)  { top:12%; left:15%; animation-delay:0s; }
.vr-particles-v2 span:nth-child(2)  { top:22%; left:55%; animation-delay:.3s; }
.vr-particles-v2 span:nth-child(3)  { top:35%; left:78%; animation-delay:.7s; }
.vr-particles-v2 span:nth-child(4)  { top:48%; left:30%; animation-delay:1s; }
.vr-particles-v2 span:nth-child(5)  { top:60%; left:65%; animation-delay:1.4s; }
.vr-particles-v2 span:nth-child(6)  { top:70%; left:20%; animation-delay:1.8s; }
.vr-particles-v2 span:nth-child(7)  { top:18%; left:85%; animation-delay:.5s; }
.vr-particles-v2 span:nth-child(8)  { top:42%; left:10%; animation-delay:2.1s; }
.vr-particles-v2 span:nth-child(9)  { top:55%; left:88%; animation-delay:2.5s; }
.vr-particles-v2 span:nth-child(10) { top:78%; left:45%; animation-delay:2.8s; }
.vr-particles-v2 span:nth-child(11) { top:8%;  left:40%; animation-delay:.2s; }
.vr-particles-v2 span:nth-child(12) { top:65%; left:50%; animation-delay:1.6s; }
.vr-particles-v2 span:nth-child(13) { top:30%; left:25%; animation-delay:.9s; }
.vr-particles-v2 span:nth-child(14) { top:82%; left:72%; animation-delay:3s; }
.vr-particles-v2 span:nth-child(15) { top:45%; left:92%; animation-delay:2s; }

@keyframes spark {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  40%  { opacity: 1; transform: translateY(-14px) scale(1.5); }
  100% { opacity: 0; transform: translateY(-28px) scale(0.5); }
}

.vr-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.vr-glow--1 {
  width: 200px; height: 200px;
  top: 5%; left: 10%;
  background: rgba(129,140,248,0.15);
  animation: glow-drift 10s ease-in-out infinite alternate;
}

.vr-glow--2 {
  width: 160px; height: 160px;
  bottom: 15%; right: 10%;
  background: rgba(192,132,252,0.12);
  animation: glow-drift 14s ease-in-out infinite alternate-reverse;
}

@keyframes glow-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(20px, -15px); }
}

/* ========== AR Scene — V2 ========== */
.ar-scene-v2 {
  background: linear-gradient(160deg, #0c1a2a, #111d30);
}

.ar-env-v2 {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ar-scan-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

.ar-scan-grid::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.5), transparent);
  animation: scan-sweep 3.5s ease-in-out infinite;
}

@keyframes scan-sweep {
  0% { top: 10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

.ar-plane {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%) perspective(300px) rotateX(55deg);
  width: 120px;
  height: 80px;
  border: 1px dashed rgba(56,189,248,0.3);
  border-radius: 4px;
}

.ar-plane-dots span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(56,189,248,0.6);
  border-radius: 50%;
}

.ar-plane-dots span:nth-child(1) { top: 0; left: 0; }
.ar-plane-dots span:nth-child(2) { top: 0; right: 0; }
.ar-plane-dots span:nth-child(3) { bottom: 0; left: 0; }
.ar-plane-dots span:nth-child(4) { bottom: 0; right: 0; }

.ar-bbox {
  position: relative;
  width: 70px;
  height: 70px;
}

.ar-bbox-face {
  position: absolute;
  border: 1px solid rgba(56,189,248,0.35);
}

.ar-bbox-face--front {
  inset: 0;
  background: rgba(56,189,248,0.04);
}

.ar-bbox-face--side {
  top: -8px; right: -8px;
  width: 70px; height: 70px;
  transform: skewY(-8deg);
  border-color: rgba(56,189,248,0.2);
  background: rgba(56,189,248,0.02);
}

.ar-bbox-face--top {
  top: -14px; left: 8px;
  width: 70px; height: 16px;
  transform: skewX(-40deg);
  border-color: rgba(56,189,248,0.18);
  background: rgba(56,189,248,0.03);
}

.ar-bracket {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(56,189,248,0.5);
  border-style: solid;
  border-width: 0;
}

.ar-bracket--tl { top: 16%; left: 16%; border-top-width: 2px; border-left-width: 2px; }
.ar-bracket--tr { top: 16%; right: 16%; border-top-width: 2px; border-right-width: 2px; }
.ar-bracket--bl { bottom: 16%; left: 16%; border-bottom-width: 2px; border-left-width: 2px; }
.ar-bracket--br { bottom: 16%; right: 16%; border-bottom-width: 2px; border-right-width: 2px; }

.ar-status {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(56,189,248,0.65);
  white-space: nowrap;
  animation: status-blink 2.5s infinite;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ========== MR Scene — V2 ========== */
.mr-scene-v2 {
  background: linear-gradient(160deg, #120e28, #1a1342);
}

.mr-env-v2 {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mr-holo-orbit {
  position: absolute;
  border: 1px solid rgba(192,132,252,0.18);
  border-radius: 50%;
  animation: orbit-spin 8s linear infinite;
}

.mr-holo-orbit--1 { width: 160px; height: 160px; animation-duration: 8s; }
.mr-holo-orbit--2 { width: 110px; height: 110px; animation-duration: 6s; animation-direction: reverse; border-color: rgba(129,140,248,0.2); }
.mr-holo-orbit--3 { width: 60px;  height: 60px;  animation-duration: 4s; border-color: rgba(56,189,248,0.22); }

@keyframes orbit-spin {
  from { transform: rotate(0deg) rotateX(65deg); }
  to   { transform: rotate(360deg) rotateX(65deg); }
}

.mr-holo-dot {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.mr-core-sphere {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(192,132,252,0.9), rgba(129,140,248,0.5));
  box-shadow: 0 0 30px rgba(192,132,252,0.45), 0 0 60px rgba(129,140,248,0.2);
  z-index: 2;
}

.mr-data-bars {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 50px;
}

.mr-bar {
  width: 6px;
  height: var(--h);
  background: linear-gradient(to top, rgba(129,140,248,0.6), rgba(192,132,252,0.3));
  border-radius: 2px;
  animation: bar-grow 2.5s ease-in-out infinite alternate;
}

.mr-bar:nth-child(2) { animation-delay: 0.3s; }
.mr-bar:nth-child(3) { animation-delay: 0.6s; }
.mr-bar:nth-child(4) { animation-delay: 0.9s; }
.mr-bar:nth-child(5) { animation-delay: 1.2s; }

@keyframes bar-grow {
  from { transform: scaleY(0.6); }
  to   { transform: scaleY(1); }
}

.mr-hand-dots {
  position: absolute;
  bottom: 10%;
  right: 12%;
}

.mr-hand-dots span {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(56,189,248,0.5);
  margin: 0 3px;
  animation: hand-pulse 1.5s infinite ease-in-out;
}

.mr-hand-dots span:nth-child(2) { animation-delay: 0.15s; }
.mr-hand-dots span:nth-child(3) { animation-delay: 0.3s; }
.mr-hand-dots span:nth-child(4) { animation-delay: 0.45s; }
.mr-hand-dots span:nth-child(5) { animation-delay: 0.6s; }

@keyframes hand-pulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}

/* ---- ERP Section ---- */
.erp-showcase {
  display: grid;
  gap: 48px;
}

.erp-dashboard {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.dashboard-frame {
  overflow: hidden;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.topbar-dots {
  display: flex;
  gap: 6px;
}

.topbar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.topbar-dots span:nth-child(1) { background: #ef4444; }
.topbar-dots span:nth-child(2) { background: #eab308; }
.topbar-dots span:nth-child(3) { background: #22c55e; }

.topbar-url {
  flex: 1;
  height: 28px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  max-width: 400px;
}

.dashboard-body {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

.erp-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

.dash-sidebar {
  width: 200px;
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-logo {
  width: 32px;
  height: 32px;
  background: var(--gradient);
  border-radius: 8px;
  margin-bottom: 16px;
}

.sidebar-item {
  height: 32px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}

.sidebar-item--active {
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.2);
}

.sidebar-spacer {
  flex: 1;
}

.dash-main {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-greeting {
  width: 180px;
  height: 24px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
}

.dash-search {
  width: 200px;
  height: 32px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dash-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.dash-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent, var(--accent-1));
}

.dash-stat-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.dash-stat-val {
  width: 60px;
  height: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.dash-stat-label {
  width: 80px;
  height: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  margin-top: 4px;
}

.dash-stat-chart {
  color: var(--accent, var(--accent-1));
  opacity: 0.5;
}

.dash-stat-chart svg {
  width: 100%;
  height: 40px;
}

.dash-content-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  flex: 1;
}

.dash-chart-area {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.dash-chart-header {
  width: 100px;
  height: 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  margin-bottom: 20px;
}

.dash-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex: 1;
}

.bar {
  flex: 1;
  height: var(--h);
  background: var(--gradient);
  border-radius: 4px 4px 0 0;
  opacity: 0.6;
  transition: var(--transition);
}

.erp-dashboard:hover .bar {
  opacity: 1;
}

.dash-table-area {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-table-header {
  width: 80px;
  height: 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  margin-bottom: 8px;
}

.dash-table-row {
  height: 28px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}

/* ERP Features */
.erp-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.erp-feature {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.erp-feature:hover {
  border-color: rgba(129, 140, 248, 0.2);
  background: rgba(129, 140, 248, 0.05);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(129, 140, 248, 0.1);
  border-radius: 12px;
  color: var(--accent-1);
  margin-bottom: 16px;
}

.erp-feature h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.erp-feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- AI Section ---- */
.ai-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ai-visual {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neural-network {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
}

.nn-layer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
}

.nn-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.5);
  animation: nn-pulse 2s infinite ease-in-out;
}

.nn-layer--hidden .nn-node {
  background: var(--accent-2);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.5);
  animation-delay: 0.3s;
}

.nn-layer--output .nn-node {
  background: var(--accent-3);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  animation-delay: 0.6s;
}

.nn-node:nth-child(2) { animation-delay: 0.2s; }
.nn-node:nth-child(3) { animation-delay: 0.4s; }
.nn-node:nth-child(4) { animation-delay: 0.6s; }
.nn-node:nth-child(5) { animation-delay: 0.8s; }
.nn-node:nth-child(6) { animation-delay: 1s; }

@keyframes nn-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

.nn-connections {
  width: 60px;
  height: 200px;
  position: relative;
}

.ai-pulse-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  border: 1px solid rgba(129, 140, 248, 0.1);
  border-radius: 50%;
  animation: pulse-expand 4s infinite ease-out;
}

.pulse-ring:nth-child(1) { width: 200px; height: 200px; animation-delay: 0s; }
.pulse-ring:nth-child(2) { width: 300px; height: 300px; animation-delay: 1.3s; }
.pulse-ring:nth-child(3) { width: 400px; height: 400px; animation-delay: 2.6s; }

@keyframes pulse-expand {
  0% { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* AI Capabilities */
.ai-capabilities {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ai-cap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  transition: var(--transition);
  cursor: default;
}

.ai-cap:hover {
  background: rgba(129, 140, 248, 0.05);
}

.cap-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 28px;
}

.cap-content {
  flex: 1;
}

.cap-content h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cap-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cap-arrow {
  color: var(--text-dim);
  transition: var(--transition);
}

.ai-cap:hover .cap-arrow {
  color: var(--accent-1);
  transform: translate(4px, -4px);
}

/* ---- VR/AR section — spatial accent ---- */
.section--vrar {
  position: relative;
}

.section--vrar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(129, 140, 248, 0.09), transparent 65%);
  pointer-events: none;
}

/* ---- Contact Section ---- */
.section--contact {
  position: relative;
  padding: 160px 24px;
}

.section--contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.35), rgba(244, 114, 182, 0.25), transparent);
  pointer-events: none;
}

.contact-content {
  text-align: center;
}

.contact-content .section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.contact-content .section-desc {
  max-width: 480px;
  margin: 0 auto 40px;
}

.contact-actions {
  margin-bottom: 48px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.contact-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-muted);
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--text);
}

.contact-link:hover::after {
  width: 100%;
}

/* ---- Footer ---- */
.footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---- Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-card--large {
    grid-template-columns: 1fr;
  }

  .erp-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-showcase {
    grid-template-columns: 1fr;
  }

  .ai-visual {
    min-height: 300px;
  }

  .dash-sidebar {
    width: 60px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 32px;
    gap: 24px;
    transition: var(--transition-slow);
    border-left: 1px solid var(--border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .project-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 32px;
  }

  .erp-features {
    grid-template-columns: 1fr;
  }

  .dash-stats-row {
    grid-template-columns: 1fr;
  }

  .dash-content-row {
    grid-template-columns: 1fr;
  }

  .dashboard-body {
    min-height: auto;
  }

  .section {
    padding: 80px 20px;
  }

  .section--contact {
    padding: 100px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .contact-links {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .phone-frame {
    width: 150px;
    height: 300px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
