﻿/* =====================================================
   MODELINDEN3D — main.css
   ===================================================== */

/* ── Variables ─────────────────────────────── */
:root {
  --bg:          #08080f;
  --bg2:         #0d0d1c;
  --surface:     rgba(255,255,255,0.04);
  --surface2:    rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.09);
  --border2:     rgba(255,255,255,0.15);
  --text:        #eae6f5;
  --muted:       #8a82a0;
  --orange:      #ff6b35;
  --orange-d:    #e8501a;
  --teal:        #00c6cf;
  --purple:      #8b5cf6;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 24px 60px rgba(0,0,0,0.6);
  --glow-o:      0 0 40px rgba(255,107,53,.28);
  --glow-t:      0 0 40px rgba(0,198,207,.22);
  --nav-h:       70px;
  --ease:        cubic-bezier(.4,0,.2,1);
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Container ──────────────────────────────── */
.container { width: min(1120px, 92vw); margin: 0 auto; }

/* ── Scroll progress ────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--teal));
  z-index: 200;
  transition: width .1s linear;
  pointer-events: none;
}

/* ── Floating particles ─────────────────────── */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%; opacity: 0;
  animation: floatP linear infinite;
}
@keyframes floatP {
  0%   { transform: translateY(110vh) scale(0); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .4; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── Utility ────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
}
.gradient-text {
  background: linear-gradient(130deg, var(--orange) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section        { padding: 90px 0; }
.section-dark   { background: var(--bg2); }
.section-head   { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 12px;
}
.section-sub { color: var(--muted); font-size: 1rem; }

/* ── Reveal animation ───────────────────────── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Fade-up (hero elements) ────────────────── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  animation: fadeUp .85s var(--ease) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ── Shared delays ──────────────────────────── */
.delay-1 { animation-delay: .15s; transition-delay: .10s; }
.delay-2 { animation-delay: .30s; transition-delay: .20s; }
.delay-3 { animation-delay: .45s; transition-delay: .30s; }
.delay-4 { animation-delay: .60s; transition-delay: .40s; }
.delay-5 { animation-delay: .80s; transition-delay: .50s; }
.delay-6 { animation-delay: .95s; transition-delay: .60s; }

/* ── Navbar ─────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(8,8,15,.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-wrap {
  display: flex; align-items: center;
  height: var(--nav-h); gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo-box {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,.06);
  overflow: hidden; display: grid; place-items: center;
}
.brand-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-fallback { font-size: .82rem; font-weight: 900; color: var(--orange); letter-spacing: .05em; }
.brand-name { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.brand-accent { color: var(--orange); }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 14px; font-size: .9rem; font-weight: 600;
  color: var(--muted); border-radius: 8px;
  transition: color .3s, background .3s;
}
.nav-link:hover { color: var(--text); background: var(--surface2); }

.btn-nav {
  margin-left: 8px; padding: 9px 18px; border-radius: 999px;
  font-size: .88rem; font-weight: 700;
  border: 1px solid var(--border2);
  color: var(--text); background: var(--surface);
  transition: background .3s, border-color .3s;
  text-decoration: none;
}
.btn-nav:hover { background: var(--surface2); border-color: var(--orange); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 6px;
  padding: 16px 20px;
  background: rgba(8,8,15,.97);
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: 10px 14px; font-weight: 600; border-radius: 10px;
  color: var(--muted); transition: color .3s, background .3s;
}
.mobile-menu a:hover { color: var(--text); background: var(--surface2); }
.mobile-menu.open { display: flex; }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; font-weight: 700; font-size: .95rem;
  padding: 13px 24px; border: none; transition: all .3s var(--ease);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-d));
  color: #fff;
  box-shadow: 0 8px 28px rgba(255,107,53,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,107,53,.5); }
.btn-ghost {
  background: var(--surface); border: 1px solid var(--border2); color: var(--text);
}
.btn-ghost:hover { background: var(--surface2); border-color: var(--teal); }
.btn-full { width: 100%; justify-content: center; }

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: .4;
  animation: orbFloat ease-in-out infinite alternate;
}
.hero-orb-1 { width: 640px; height: 640px; background: radial-gradient(circle, var(--orange), transparent 70%); top: -220px; left: -200px; animation-duration: 7s; }
.hero-orb-2 { width: 540px; height: 540px; background: radial-gradient(circle, var(--teal), transparent 70%); bottom: -200px; right: -180px; animation-duration: 9s; animation-delay: 2s; }
.hero-orb-3 { width: 320px; height: 320px; background: radial-gradient(circle, var(--purple), transparent 70%); top: 38%; left: 54%; animation-duration: 11s; animation-delay: 1s; }
@keyframes orbFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(28px,-22px) scale(1.07); }
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  padding: 80px 0 60px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(0,198,207,.3);
  color: var(--teal); background: rgba(0,198,207,.07);
  margin-bottom: 20px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,198,207,.6); }
  50%      { box-shadow: 0 0 0 7px rgba(0,198,207,0); }
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -.025em; margin-bottom: 18px;
}
.hero-desc {
  color: var(--muted); font-size: 1.05rem;
  max-width: 46ch; margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Visual card */
.hero-visual { perspective: 1200px; }
.visual-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 24px; backdrop-filter: blur(12px);
  box-shadow: var(--shadow), var(--glow-t);
  animation: cardTilt 8s ease-in-out infinite alternate;
}
@keyframes cardTilt {
  from { transform: rotateY(-5deg) rotateX(2deg); }
  to   { transform: rotateY(5deg) rotateX(-2deg); }
}
.visual-header {
  display: flex; align-items: center; gap: 6px; margin-bottom: 18px;
}
.v-dot { width: 10px; height: 10px; border-radius: 50%; }
.v-dot-red    { background: #ff5f57; }
.v-dot-yellow { background: #febc2e; }
.v-dot-green  { background: #28c840; }
.v-label { margin-left: 8px; font-size: .76rem; color: var(--muted); font-family: monospace; }

.visual-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; margin-bottom: 20px;
}
.vstat {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 10px; text-align: center;
}
.vstat-num {
  display: block; font-size: 1.55rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--orange), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.vstat-label { font-size: .68rem; color: var(--muted); display: block; margin-top: 4px; }

.layer-bars { display: flex; flex-direction: column; gap: 10px; }
.layer-bar {
  background: var(--surface); border-radius: 999px;
  height: 28px; position: relative; overflow: hidden;
  border: 1px solid var(--border);
}
.layer-bar::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--w); background: linear-gradient(90deg, var(--orange), var(--teal));
  border-radius: inherit;
  animation: barGrow 1.4s ease forwards;
}
@keyframes barGrow { from { width: 0; } to { width: var(--w); } }
.layer-bar span {
  position: relative; z-index: 1;
  font-size: .74rem; font-weight: 700;
  padding: 0 12px; line-height: 28px;
  color: var(--text); white-space: nowrap;
}

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .73rem; color: var(--muted); letter-spacing: .1em; z-index: 1;
}
.scroll-arrow {
  width: 22px; height: 36px; border: 2px solid var(--border2);
  border-radius: 12px; display: grid; place-items: center;
}
.scroll-arrow div {
  width: 4px; height: 8px; background: var(--teal); border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateY(-4px); opacity: 0; }
  50%      { transform: translateY(4px);  opacity: 1; }
}

/* ── About ──────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 52px; align-items: center;
}
.about-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 16px;
}
.about-copy p { color: var(--muted); margin-bottom: 12px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-size: .8rem; font-weight: 600; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--border2);
  color: var(--muted); background: var(--surface);
  transition: color .3s, border-color .3s;
}
.tag:hover { color: var(--text); border-color: var(--teal); }

.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 18px; text-align: center;
  transition: transform .35s, box-shadow .35s, border-color .35s;
  cursor: default;
}
.about-stat-card:hover { transform: translateY(-5px); box-shadow: var(--glow-t); border-color: var(--teal); }
.about-stat-card.accent  { border-color: rgba(255,107,53,.2); background: rgba(255,107,53,.05); }
.about-stat-card.accent:hover  { border-color: var(--orange); box-shadow: var(--glow-o); }
.about-stat-card.accent2 { border-color: rgba(139,92,246,.2); background: rgba(139,92,246,.05); }
.about-stat-card.accent2:hover { border-color: var(--purple); box-shadow: 0 0 30px rgba(139,92,246,.28); }
.asc-icon { font-size: 1.4rem; margin-bottom: 8px; color: var(--muted); }
.about-stat-card strong {
  display: block; font-size: 2rem; font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.about-stat-card span { font-size: .8rem; color: var(--muted); margin-top: 4px; display: block; }

/* ── Services ───────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
  cursor: default;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,107,53,.08), transparent);
  opacity: 0; transition: opacity .35s; border-radius: inherit;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--glow-o); border-color: rgba(255,107,53,.3); }
.service-card:hover::before { opacity: 1; }
.service-card.highlight { border-color: rgba(0,198,207,.25); background: rgba(0,198,207,.05); }
.service-card.highlight:hover { box-shadow: var(--glow-t); border-color: var(--teal); }
.sc-icon { width: 48px; height: 48px; color: var(--orange); margin-bottom: 16px; }
.service-card.highlight .sc-icon { color: var(--teal); }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.service-card p  { color: var(--muted); font-size: .92rem; line-height: 1.58; }
.sc-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.service-card:hover .sc-line { transform: scaleX(1); }

/* ── Process ────────────────────────────────── */
.process-track { position: relative; display: flex; flex-direction: column; }
.process-line {
  position: absolute; left: 26px; top: 27px; bottom: 27px;
  width: 2px; background: var(--border); z-index: 0;
}
.process-line-fill {
  width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--orange), var(--teal));
  border-radius: 2px; transition: height 1.4s ease;
}
.process-step {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 20px; align-items: start;
  padding: 18px 0; position: relative; z-index: 1;
}
.ps-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border2);
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 800;
  color: var(--orange); letter-spacing: .05em;
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.process-step:hover .ps-num { background: rgba(255,107,53,.12); border-color: var(--orange); box-shadow: var(--glow-o); }
.ps-body {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: border-color .35s, box-shadow .35s;
}
.process-step:hover .ps-body { border-color: var(--border2); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.ps-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.ps-body p  { color: var(--muted); font-size: .92rem; }

/* ── Materials ──────────────────────────────── */
.material-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.mat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: transform .35s, border-color .35s;
}
.mat-card:hover { transform: translateY(-4px); border-color: var(--border2); }
.mat-header {
  font-size: .82rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.mat-bar {
  height: 5px; background: var(--border);
  border-radius: 999px; margin-bottom: 14px; overflow: hidden;
}
.mat-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--orange), var(--teal));
  border-radius: inherit; transition: width 1.4s ease;
}
.mat-fill.animate { width: var(--p); }
.mat-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mat-card li { font-size: .82rem; color: var(--muted); padding-left: 12px; position: relative; }
.mat-card li::before { content: '›'; position: absolute; left: 0; color: var(--teal); }

/* ── Contact ────────────────────────────────── */
.contact-section { background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 52px; align-items: start; }
.contact-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 14px;
}
.contact-copy > p { color: var(--muted); margin-bottom: 24px; }
.contact-items { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact-items li { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.ci-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 1rem; flex-shrink: 0;
}
.contact-items em { color: var(--muted); font-style: normal; font-size: .8rem; margin-left: 4px; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
  display: flex; flex-direction: column; gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  color: var(--text); font-family: inherit; font-size: .95rem;
  resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.2); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,198,207,.12);
}
.form-group input.error,
.form-group textarea.error { border-color: var(--orange); }
.form-success {
  background: rgba(0,198,207,.1); border: 1px solid rgba(0,198,207,.3);
  border-radius: var(--radius); padding: 14px;
  color: var(--teal); font-weight: 600; text-align: center; font-size: .92rem;
}
.form-note { font-size: .74rem; color: rgba(255,255,255,.2); font-style: italic; }

/* ── Footer ─────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { flex: 1; min-width: 160px; }
.footer-brand p { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.footer-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-nav a {
  font-size: .85rem; color: var(--muted);
  padding: 6px 12px; border-radius: 8px;
  transition: color .3s, background .3s;
}
.footer-nav a:hover { color: var(--text); background: var(--surface2); }
.footer-social { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 10px; }
.footer-social a { font-size: .8rem; color: var(--muted); text-decoration: none; transition: color .25s; }
.footer-social a:hover { color: var(--orange); }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.2); width: 100%; text-align: center; margin-top: 8px; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .material-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-nav, .btn-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .material-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════
   NEW VISUAL & ANIMATION ADDITIONS
   ═══════════════════════════════════════════════════════ */

/* ── Floating 3D shapes in hero background ─── */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.fshape {
  position: absolute;
  animation: shapeFloat ease-in-out infinite alternate;
}
@keyframes shapeFloat {
  from { transform: translateY(0px);  }
  to   { transform: translateY(-22px); }
}

/* CSS 3D cube */
.fcube {
  width: 44px; height: 44px;
  transform-style: preserve-3d;
  animation: spinCube linear infinite;
}
.fc-face {
  position: absolute; width: 44px; height: 44px;
  border: 1px solid rgba(255,107,53,.28);
  background: rgba(255,107,53,.04);
}
.fc-front  { transform: translateZ(22px); }
.fc-back   { transform: rotateY(180deg) translateZ(22px); }
.fc-left   { transform: rotateY(-90deg) translateZ(22px); }
.fc-right  { transform: rotateY(90deg)  translateZ(22px); }
.fc-top    { transform: rotateX(90deg)  translateZ(22px); }
.fc-bottom { transform: rotateX(-90deg) translateZ(22px); }
@keyframes spinCube {
  from { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  to   { transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg); }
}

.fshape-1 { top: 12%; left: 5%;  animation-duration: 6s; }
.fshape-1 .fcube { animation-duration: 13s; }

.fshape-2 { top: 62%; left: 2%;  animation-duration: 8.5s; animation-delay: 1.2s; }
.fshape-2 .fcube { animation-duration: 19s; animation-direction: reverse; }
.fshape-2 .fc-face { border-color: rgba(0,198,207,.28); background: rgba(0,198,207,.04); }

.fshape-3 { top: 28%; right: 4%; animation-duration: 7s; animation-delay: 2s; }
.fshape-3 .fcube { width: 28px; height: 28px; animation-duration: 10s; }
.fshape-3 .fc-face {
  width: 28px; height: 28px;
  border-color: rgba(139,92,246,.32); background: rgba(139,92,246,.05);
}
.fshape-3 .fc-front  { transform: translateZ(14px); }
.fshape-3 .fc-back   { transform: rotateY(180deg) translateZ(14px); }
.fshape-3 .fc-left   { transform: rotateY(-90deg) translateZ(14px); }
.fshape-3 .fc-right  { transform: rotateY(90deg)  translateZ(14px); }
.fshape-3 .fc-top    { transform: rotateX(90deg)  translateZ(14px); }
.fshape-3 .fc-bottom { transform: rotateX(-90deg) translateZ(14px); }

/* Ring shapes */
.fring {
  width: 58px; height: 58px;
  border: 2px solid rgba(0,198,207,.35);
  border-radius: 50%;
  animation: ringPulse 3.5s ease-in-out infinite;
}
.fring.fring-sm {
  width: 34px; height: 34px;
  border-color: rgba(255,107,53,.35);
  animation-duration: 2.5s;
}
.fshape-4 { bottom: 20%; right: 7%; animation-duration: 9s; animation-delay: 3s; }
.fshape-5 { top: 16%; right: 16%; animation-duration: 5.5s; animation-delay: 0.5s; }
@keyframes ringPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,198,207,.4), inset 0 0 0 0 rgba(0,198,207,.1); }
  50%      { box-shadow: 0 0 0 10px rgba(0,198,207,0), inset 0 0 10px rgba(0,198,207,.1); }
}

/* Triangle */
.ftri {
  width: 0; height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 30px solid rgba(139,92,246,.3);
  animation: triSpin 14s linear infinite;
}
.fshape-6 { top: 48%; left: 9%; animation-duration: 7s; animation-delay: 4s; }
@keyframes triSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Animated 3D Printer card ───────────────── */
.printer-card {
  background: rgba(255,255,255,.04);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow), var(--glow-t);
  margin-bottom: 14px;
  animation: cardTilt 8s ease-in-out infinite alternate;
  position: relative;
  background-clip: padding-box;
}
@keyframes cardTilt {
  from { transform: rotateY(-5deg) rotateX(2deg); }
  to   { transform: rotateY(5deg)  rotateX(-2deg); }
}
.pc-header {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.pc-live {
  margin-left: auto; display: flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; color: var(--teal);
}

/* Temperature row */
.pc-temps {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.3); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 12px;
  margin-bottom: 12px;
}
.pc-temp-item {
  display: flex; align-items: center; gap: 5px;
  font-size: .72rem;
}
.pc-temp-dot {
  width: 7px; height: 7px; border-radius: 50%;
  animation: tempPulse 1.8s ease-in-out infinite;
}
.pc-temp-hot  { background: var(--orange); box-shadow: 0 0 5px var(--orange); }
.pc-temp-warm { background: #f5c842; box-shadow: 0 0 5px #f5c842; }
.pc-temp-teal { background: var(--teal);  box-shadow: 0 0 5px var(--teal); animation-delay: .6s; }
@keyframes tempPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(0.85); }
}
.pc-temp-val   { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.pc-temp-unit  { color: var(--muted); margin-left: 1px; }
.pc-temp-label { color: var(--muted); font-size: .68rem; margin-left: 2px; }
.pc-temp-sep   { width: 1px; height: 18px; background: var(--border); }

/* Printer viewport */
.printer-viewport {
  background: rgba(0,0,0,.45);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  height: 200px;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}
/* Scan-line overlay */
.printer-viewport::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,.07) 3px, rgba(0,0,0,.07) 4px
  );
  pointer-events: none; z-index: 3;
}
/* Corner brackets */
.printer-viewport::before {
  content: '';
  position: absolute; inset: 6px;
  border: 1px solid rgba(0,198,207,.12);
  border-radius: 6px;
  pointer-events: none; z-index: 3;
}

.p-machine { position: relative; width: 100%; height: 100%; }

/* ── Filament spool ─────────────────────────── */
.p-spool {
  position: absolute; top: 4px; right: 10px;
  z-index: 2;
}
.p-spool-disc {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(255,107,53,.5);
  background: rgba(255,107,53,.08);
  position: relative;
  animation: spoolSpin 3s linear infinite;
}
@keyframes spoolSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.p-spool-hub {
  position: absolute; inset: 30%;
  border-radius: 50%;
  background: rgba(255,107,53,.4);
  border: 1px solid rgba(255,107,53,.6);
}
.p-spool-spoke {
  position: absolute; top: 50%; left: 50%;
  width: 45%; height: 1.5px;
  background: rgba(255,107,53,.4);
  transform-origin: left center;
  margin-top: -.75px;
}
.sp1 { transform: rotate(0deg); }
.sp2 { transform: rotate(90deg); }
.sp3 { transform: rotate(180deg); }
.sp4 { transform: rotate(270deg); }
.p-spool-thread {
  position: absolute; top: 17px; right: 34px;
  width: 18px; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255,107,53,.7));
  border-radius: 1px;
}

/* ── Z-axis indicator ───────────────────────── */
.p-z-bar {
  position: absolute; left: 0; top: 8px; bottom: 20px;
  width: 6px; background: rgba(255,255,255,.05);
  border-radius: 3px; overflow: hidden;
  z-index: 2;
}
.p-z-fill {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 47%;
  background: linear-gradient(0deg, var(--teal), rgba(0,198,207,.2));
  border-radius: 3px;
  transition: height .5s ease;
  box-shadow: 0 0 6px var(--teal);
}
.p-z-label {
  position: absolute; bottom: -16px; left: 50%;
  transform: translateX(-50%);
  font-size: .55rem; font-weight: 700; color: var(--teal);
  letter-spacing: .05em;
}

/* Vertical pillars */
.p-pillar {
  position: absolute; width: 5px; top: 0; bottom: 0;
  background: linear-gradient(180deg, var(--teal), rgba(0,198,207,.2));
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0,198,207,.35);
}
.p-left  { left: 10px; }
.p-right { right: 10px; }

/* Top crossbar */
.p-crossbar {
  position: absolute; top: 0; left: 10px; right: 10px; height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--orange), var(--teal));
  border-radius: 3px;
  box-shadow: 0 0 16px rgba(255,107,53,.45);
  animation: crossbarPulse 2s ease-in-out infinite;
}
@keyframes crossbarPulse {
  0%,100% { box-shadow: 0 0 16px rgba(255,107,53,.45); }
  50%      { box-shadow: 0 0 28px rgba(255,107,53,.7); }
}

/* Horizontal rail */
.p-rail {
  position: absolute; top: 22px; left: 16px; right: 16px; height: 3px;
  background: rgba(255,255,255,.1); border-radius: 2px;
}

/* Print head */
.p-head {
  position: absolute; top: -12px;
  width: 22px; height: 24px;
  background: linear-gradient(180deg, var(--orange), var(--orange-d));
  border-radius: 4px 4px 2px 2px;
  box-shadow: var(--glow-o), 0 0 0 1px rgba(255,107,53,.5);
  animation: headSlide 4s ease-in-out infinite alternate;
  z-index: 4;
}
.p-head::before {
  content: '';
  position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 5px;
  background: rgba(255,255,255,.2); border-radius: 2px;
}
/* Head body screws (decorative) */
.p-head::after {
  content: '';
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  box-shadow: 0 8px 0 rgba(255,255,255,.15);
}

@keyframes headSlide {
  0%   { left: 4%; }
  100% { left: 62%; }
}

/* Nozzle */
.p-nozzle {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 10px;
  background: linear-gradient(180deg, var(--orange-d), #7a2008);
  border-radius: 0 0 4px 4px;
}
.p-nozzle-glow {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px;
  background: radial-gradient(circle, rgba(255,107,53,.8) 0%, transparent 70%);
  border-radius: 50%;
  animation: nozzleGlow 4s ease-in-out infinite alternate;
  filter: blur(3px);
  pointer-events: none;
}
@keyframes nozzleGlow {
  0%   { opacity: .9; transform: translateX(-50%) scale(1); }
  50%  { opacity: .5; transform: translateX(-50%) scale(.7); }
  100% { opacity: 1;  transform: translateX(-50%) scale(1.2); }
}

/* Steam particles */
.p-steam { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.p-steam span {
  position: absolute; bottom: 0;
  width: 3px; border-radius: 999px;
  background: rgba(255,160,80,.7);
  animation: steamRise 1.6s ease-out infinite;
  filter: blur(1.5px);
}
.p-steam span:nth-child(1) { left: -5px;  height: 10px; animation-delay: 0s;    animation-duration: 1.4s; }
.p-steam span:nth-child(2) { left: 1px;   height: 14px; animation-delay: .35s;  animation-duration: 1.8s; width: 2px; }
.p-steam span:nth-child(3) { left: 6px;   height: 9px;  animation-delay: .7s;   animation-duration: 1.5s; }
.p-steam span:nth-child(4) { left: -10px; height: 7px;  animation-delay: 1.05s; animation-duration: 1.2s; width: 2px; }
@keyframes steamRise {
  0%   { transform: translateY(0) scaleX(1); opacity: .8; }
  60%  { transform: translateY(-18px) scaleX(1.5); opacity: .4; }
  100% { transform: translateY(-30px) scaleX(2);   opacity: 0; }
}

/* Filament trailing light */
.p-trail {
  position: absolute; bottom: -38px; left: 50%; transform: translateX(-50%);
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255,107,53,.9), rgba(255,107,53,.2), transparent);
  border-radius: 1px;
  animation: trailPulse 4s ease-in-out infinite alternate;
  filter: blur(.5px);
}
@keyframes trailPulse {
  0%,100% { opacity: 1; height: 28px; }
  50%      { opacity: .4; height: 18px; }
}

/* Filament drop (tiny bead) */
.p-drop {
  position: absolute; bottom: -42px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 6px var(--orange);
  animation: dropFall 4s ease-in-out infinite alternate;
}
@keyframes dropFall {
  0%,100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50%      { opacity: .3; transform: translateX(-50%) scale(.5); }
}

/* Printed layers */
.p-part {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex; flex-direction: column-reverse; gap: 3px;
  overflow: hidden; z-index: 1;
}
.p-l {
  height: 7px; border-radius: 3px;
  width: var(--lw, 80%);
  background: var(--lc, rgba(255,107,53,.7));
  transform: scaleX(0); transform-origin: left;
  animation: layerBuild 4s ease-in-out infinite;
  box-shadow: 0 0 6px var(--lc, rgba(255,107,53,.3));
}
.p-l:nth-child(1) { animation-delay: .0s;  }
.p-l:nth-child(2) { animation-delay: .22s; }
.p-l:nth-child(3) { animation-delay: .44s; }
.p-l:nth-child(4) { animation-delay: .66s; }
.p-l:nth-child(5) { animation-delay: .88s; }
.p-l:nth-child(6) { animation-delay: 1.1s; }
.p-l:nth-child(7) { animation-delay: 1.3s; }
.p-l-active       { animation: layerBuildActive 4s 1.5s ease-in-out infinite !important; }
@keyframes layerBuild {
  0%,4%    { transform: scaleX(0); opacity: 0; }
  30%,100% { transform: scaleX(1); opacity: 1; }
}
@keyframes layerBuildActive {
  0%,4%  { transform: scaleX(0); opacity: 0; }
  25%    { transform: scaleX(var(--progress, .4)); opacity: 1; box-shadow: 0 0 14px var(--lc); }
  50%    { transform: scaleX(var(--progress, .5)); opacity: 1; box-shadow: 0 0 20px var(--lc); }
  80%    { transform: scaleX(.8); opacity: 1; box-shadow: 0 0 10px var(--lc); }
  100%   { transform: scaleX(.95); opacity: 1; }
}

/* Print bed */
.p-bed {
  position: absolute; bottom: 5px; left: 16px; right: 16px;
  height: 7px;
  background: linear-gradient(90deg, var(--teal), var(--orange), var(--teal));
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(0,198,207,.5);
  overflow: hidden;
}
.p-bed-heat {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.25) 50%, transparent 100%);
  animation: bedSweep 2.5s linear infinite;
}
@keyframes bedSweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* Progress bar */
.pc-progress-top {
  display: flex; justify-content: space-between;
  font-size: .74rem; color: var(--muted); margin-bottom: 7px;
  font-variant-numeric: tabular-nums;
}
.pc-bar {
  height: 5px; background: var(--border);
  border-radius: 999px; overflow: hidden;
}
.pc-bar-fill {
  height: 100%; width: 1%;
  background: linear-gradient(90deg, var(--orange), var(--teal));
  border-radius: inherit;
  transition: width .4s ease;
}

/* ── Marquee strip ───────────────────────────── */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 13px 0;
  position: relative;
}
.marquee-strip::before,
.marquee-strip::after {
  content: ''; position: absolute;
  top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.marquee-strip::before { left: 0;  background: linear-gradient(90deg, var(--bg2), transparent); }
.marquee-strip::after  { right: 0; background: linear-gradient(-90deg, var(--bg2), transparent); }

.marquee-track {
  display: flex; gap: 30px; align-items: center;
  white-space: nowrap; width: max-content;
  animation: marqueeRoll 28s linear infinite;
  will-change: transform;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: .78rem; font-weight: 700;
  color: var(--muted); letter-spacing: .07em;
  text-transform: uppercase;
  transition: color .3s;
}
.marquee-track span:hover { color: var(--teal); }
.marquee-track .m-sep { color: var(--orange); font-size: .55rem; }
@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── About logo card ─────────────────────────── */
.about-logo-card {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: box-shadow .35s, border-color .35s;
}
.about-logo-card:hover { box-shadow: var(--glow-o); border-color: var(--orange); }
.about-logo-card img {
  width: 64px; height: 64px; border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,.06);
  padding: 6px;
}
.about-logo-card span {
  font-size: 1.05rem; color: var(--muted);
}
.about-logo-card strong { color: var(--orange); font-size: 1.05rem; }

/* ── Mouse-tilt cards ────────────────────────── */
.service-card,
.mat-card,
.about-stat-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── Typewriter cursor ───────────────────────── */
#typewriterEl::after {
  content: '|';
  animation: cursorBlink .75s step-start infinite;
  color: var(--teal);
  font-style: normal;
}
@keyframes cursorBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ── Animated gradient border on printer card ── */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.printer-card::before {
  content: '';
  position: absolute;inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: conic-gradient(
    from var(--angle),
    var(--orange), var(--teal), var(--purple), var(--orange)
  );
  z-index: -1;
  animation: rotateBorder 4s linear infinite;
}
@keyframes rotateBorder {
  to { --angle: 360deg; }
}
/* Fallback for browsers without @property */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .printer-card { border: 1px solid var(--border2); }
  .printer-card::before { display: none; }
}
