/* ===== DESIGN TOKENS ===== */
:root {
  --bg-primary: #000000;
  --bg-secondary: #04040a;
  --bg-card: #08080f;
  --bg-card-hover: #121016;
  --accent: #E5A93B;
  --accent-dim: #C59331;
  --accent-glow: rgba(229, 169, 59, 0.4);
  --accent-soft: rgba(229, 169, 59, 0.15);
  --accent-subtle: rgba(229, 169, 59, 0.08);
  --accent-secondary: #00FF87;
  --accent-secondary-glow: rgba(0, 255, 135, 0.3);
  --text-primary: #E8E8E8;
  --text-secondary: #aaa;
  --text-muted: #666;
  --silver: #E0E8F0;
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(229, 169, 59, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', sans-serif;
  --font-brand: 'Orbitron', sans-serif;
}

/* ===== RESET ===== */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg-secondary); }
body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #ffd580; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

.hidden { display: none !important; }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 1200;
  background: linear-gradient(90deg, var(--accent), #ffffff, var(--accent));
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
  width: 0%; transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ===== CURSOR GLOW ===== */
.cursor-glow {
  position: fixed; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 169, 59, 0.05) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== SECTION ===== */
.section { padding: 100px 0; position: relative; overflow: hidden; }
.section-label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: var(--accent); margin-bottom: 8px; opacity: 0.8; }
.section-title { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.section-desc { color: var(--text-secondary); max-width: 550px; margin-bottom: 48px; }

/* ===== PCB GRID BG ===== */
.pcb-grid {
  background-image:
    radial-gradient(circle, rgba(229, 169, 59, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(229, 169, 59, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 169, 59, 0.03) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 24px 24px;
}

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.header.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: 10px 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-brand); font-size: 1.3rem; font-weight: 800; color: var(--text-primary); display:flex; align-items:center; gap:8px; letter-spacing: 3px; text-transform: uppercase; }
.logo-icon { color: var(--accent); font-size: 1.5rem; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-secondary); transition: color var(--transition), text-shadow 0.3s ease; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: 0 0 8px var(--accent-glow); }
.nav-links a:hover { color: var(--accent); text-shadow: 0 0 12px var(--accent-glow); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; color: var(--text-primary); font-size: 1.5rem; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to top, var(--bg-primary), transparent); z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(229, 169, 59, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(0, 255, 135, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}
.hero-blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
}
.blueprint-caliper circle {
  stroke: rgba(229, 169, 59, 0.12);
}
.blueprint-caliper path {
  stroke: rgba(229, 169, 59, 0.2);
}
.blueprint-caliper text {
  fill: rgba(229, 169, 59, 0.35);
}
.bomber-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 0.1s ease-out;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 160px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  max-width: 840px;
  margin: 0 auto;
}
.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); background: var(--accent-subtle);
  padding: 6px 16px; border-radius: 20px; border: 1px solid var(--border-accent);
  margin-bottom: 24px;
  opacity: 0; animation: fadeSlideUp 0.8s 0.2s ease forwards;
  width: fit-content;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; box-shadow: 0 0 8px var(--accent-glow); }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 8px var(--accent-glow); } 50% { opacity: 0.3; box-shadow: 0 0 2px var(--accent-glow); } }
.hero-title { font-family: var(--font-brand); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; max-width: 700px; letter-spacing: 1px; opacity: 0; animation: fadeSlideUp 0.8s 0.4s ease forwards; }
.hero-title .accent { color: var(--accent); text-shadow: 0 0 30px var(--accent-glow); }
.hero-sub { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin-bottom: 36px; line-height: 1.7; opacity: 0; animation: fadeSlideUp 0.8s 0.6s ease forwards; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; opacity: 0; animation: fadeSlideUp 0.8s 0.8s ease forwards; }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ===== HERO TOOL BADGES ===== */
.hero-tools {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px;
  opacity: 0; animation: fadeSlideUp 1s 1.4s ease forwards;
  position: relative; z-index: 3;
}
.tool-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(46,204,113,0.06); border: 1px solid rgba(46,204,113,0.12);
  color: var(--text-muted); font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: all 0.4s ease; cursor: default;
}
.tool-badge:hover {
  background: rgba(46,204,113,0.15); border-color: var(--accent);
  color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(46,204,113,0.15);
}

/* ===== CONTACT EMAIL ===== */
.contact-email {
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted);
  margin-top: 24px; letter-spacing: 0.5px;
}
.contact-email span {
  color: var(--text-secondary); border-bottom: 1px dashed rgba(255,255,255,0.15);
  padding-bottom: 2px; transition: color 0.3s ease;
}
.contact-email:hover span { color: var(--accent); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
  padding: 14px 28px; border-radius: var(--radius-sm);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); text-transform: uppercase; letter-spacing: 1px;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.btn:hover::before { width: 300px; height: 300px; }
.btn-primary {
  background: var(--accent); color: #000;
  box-shadow: 0 0 20px var(--accent-glow), 0 0 60px rgba(46,204,113,0.1);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 40px var(--accent-glow), 0 0 100px rgba(46,204,113,0.15); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border); 
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.btn-sm { padding: 10px 20px; font-size: 0.75rem; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 32px;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-subtle) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-accent); background: var(--bg-card-hover); box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px var(--accent-subtle); }
.card:hover::before { left: 100%; }
.card:hover::after { opacity: 1; }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.service-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--accent-subtle); border: 1px solid var(--border-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--accent); font-size: 1.3rem; transition: all 0.4s ease; }
.card:hover .service-icon { background: var(--accent); color: #000; box-shadow: 0 0 20px var(--accent-glow); transform: scale(1.1) rotate(5deg); }
.service-title { font-family: var(--font-brand); font-size: 1rem; font-weight: 700; margin-bottom: 4px; letter-spacing: 0.5px; }
.service-tools { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); margin-bottom: 12px; }
.service-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }

/* ===== PORTFOLIO ===== */
.portfolio-filters { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--font-mono); font-size: 0.75rem; padding: 8px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px;
  transition: all var(--transition); cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent-subtle); border-color: var(--accent); color: var(--accent); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.project-card { border-radius: var(--radius-md); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); position: relative; }
.project-card:hover { transform: translateY(-8px) scale(1.01); border-color: var(--border-accent); box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 20px var(--accent-subtle); }
.project-img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid var(--border); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease; }
.project-card:hover .project-img { transform: scale(1.05); filter: brightness(1.1); }
.project-body { padding: 20px; }
.project-title { font-family: var(--font-brand); font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.5px; }
.project-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-family: var(--font-mono); font-size: 0.65rem; padding: 4px 10px; background: var(--accent-subtle); border: 1px solid var(--border-accent); border-radius: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }



/* ===== WHATSAPP QR ===== */
.qr-container {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  margin: 40px auto; max-width: 300px;
}
.qr-card {
  background: var(--bg-card); border-radius: var(--radius-md); padding: 24px;
  text-align: center; position: relative; overflow: visible;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
/* Animated rotating border */
.qr-card::before {
  content: ''; position: absolute; inset: -3px;
  background: conic-gradient(from var(--qr-angle, 0deg), var(--accent), transparent 30%, var(--accent) 50%, transparent 80%, var(--accent));
  border-radius: calc(var(--radius-md) + 3px); z-index: -1;
  animation: rotateBorder 4s linear infinite;
  opacity: 0.6;
}
@keyframes rotateBorder {
  to { --qr-angle: 360deg; }
}
@property --qr-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.qr-card::after {
  content: ''; position: absolute; inset: 1px;
  background: var(--bg-card); border-radius: calc(var(--radius-md) - 1px); z-index: -1;
}
.qr-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px var(--accent-glow), 0 0 40px rgba(46,204,113,0.1);
}
.qr-image {
  width: 200px; height: 200px; border-radius: var(--radius-sm);
  object-fit: cover; margin: 0 auto 12px;
  border: 2px solid rgba(46,204,113,0.2);
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(46,204,113,0.15));
}
.qr-card:hover .qr-image {
  border-color: var(--accent);
  filter: drop-shadow(0 0 16px rgba(46,204,113,0.3));
  transform: scale(1.03);
}
.qr-label {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted);
  transition: color 0.3s ease;
}
.qr-card:hover .qr-label { color: var(--accent); }
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  background: #25D366; color: #fff; font-family: var(--font-mono);
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  text-decoration: none; position: relative; overflow: hidden;
}
.whatsapp-btn::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}
.whatsapp-btn:hover::before { width: 300px; height: 300px; }
.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.03); color: #fff;
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.5);
}
.whatsapp-btn:active { transform: translateY(0) scale(0.98); }
.whatsapp-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; padding: 36px;
  transform: translateY(20px); transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-title { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 600; }
.modal-close { background: none; color: var(--text-secondary); font-size: 1.5rem; transition: color var(--transition); }
.modal-close:hover { color: var(--text-primary); }

/* ===== FORM ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 16px; font-family: var(--font-sans); font-size: 0.9rem;
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-primary); transition: border-color var(--transition); outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { cursor: pointer; }
.form-select option { background: var(--bg-primary); }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border); padding: 48px 0 24px;
  background: var(--bg-secondary);
}
.footer-content { display: flex; justify-content: space-between; align-items: start; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-brand .logo { margin-bottom: 8px; }
.footer-tagline { font-size: 0.85rem; color: var(--text-secondary); max-width: 300px; }
.footer-links h4 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-secondary); margin-bottom: 12px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); }

/* ===== SPEED DIAL ===== */
.speed-dial { position: fixed; bottom: 24px; right: 24px; z-index: 900; }
.speed-dial-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #000; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all var(--transition); position: relative; z-index: 2;
}
.speed-dial-btn:hover { transform: scale(1.05); box-shadow: 0 4px 30px var(--accent-glow); }
.speed-dial-btn.open { transform: rotate(45deg); }
.speed-dial-options {
  position: absolute; bottom: 68px; right: 0;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all var(--transition);
}
.speed-dial.open .speed-dial-options { opacity: 1; pointer-events: all; transform: translateY(0); }
.speed-option {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-mono); font-size: 0.75rem; white-space: nowrap;
  transition: all var(--transition);
}
.speed-option:hover { border-color: var(--accent); color: var(--accent); }

/* ===== EDIT MODE ===== */
.edit-toggle {
  position: fixed; bottom: 24px; left: 24px; z-index: 900;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); opacity: 0.4;
}
.edit-toggle:hover { opacity: 1; border-color: var(--accent); color: var(--accent); }
.edit-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  background: linear-gradient(90deg, #1a3a25, #0a2015);
  border-bottom: 1px solid var(--accent);
  padding: 8px 24px; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.75rem;
}
.edit-banner .label { color: var(--accent); display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 2px; }
.edit-banner .actions { display: flex; gap: 8px; }
.edit-banner .actions button { padding: 6px 14px; font-family: var(--font-mono); font-size: 0.7rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; }
.edit-banner .btn-save { background: var(--accent); color: #000; }
.edit-banner .btn-export { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.edit-banner .btn-import { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.edit-banner .btn-reset { background: transparent; border: 1px solid rgba(255,80,80,0.3); color: #ff5050; }
.edit-banner .btn-exit { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
body.edit-mode .header { top: 37px; }
body.edit-mode [data-editable] { outline: 1px dashed var(--border-accent); outline-offset: 2px; cursor: text; min-height: 1em; }
body.edit-mode [data-editable]:focus { outline-color: var(--accent); background: rgba(46,204,113,0.05); }
.edit-actions-inline { display: none; position: absolute; top: 8px; right: 8px; gap: 4px; z-index: 10; }
body.edit-mode .edit-actions-inline { display: flex; }
.edit-btn-sm { width: 28px; height: 28px; border-radius: 4px; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); transition: all var(--transition); }
.edit-btn-edit { background: var(--bg-card); color: var(--accent); }
.edit-btn-delete { background: var(--bg-card); color: #ff5050; }
.edit-btn-sm:hover { transform: scale(1.1); }
.add-item-btn {
  display: none; width: 100%; padding: 40px; border: 2px dashed var(--border-accent);
  border-radius: var(--radius-md); background: transparent;
  color: var(--accent); font-family: var(--font-mono); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1px; transition: all var(--transition);
  cursor: pointer;
}
body.edit-mode .add-item-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.add-item-btn:hover { background: var(--accent-subtle); border-color: var(--accent); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ===== SECTION TRANSITIONS ===== */
.section-title { position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 0; height: 2px; background: var(--accent); margin-top: 8px; transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: 0 0 10px var(--accent-glow); }
.reveal.visible .section-title::after { width: 60px; }

/* ===== SMOOTH PAGE LOAD ===== */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn 0.5s ease; }

/* ===== GLOW PULSE ON SECTIONS ===== */
.section::before { content: ''; position: absolute; top: 50%; left: 50%; width: 600px; height: 600px; background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%); transform: translate(-50%, -50%); opacity: 0; transition: opacity 1s ease; pointer-events: none; z-index: 0; }
.section:hover::before { opacity: 0.4; }

/* ===== SITE-WIDE BACKGROUND BLUEPRINTS ===== */
.section-bg-blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}
.hero-blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}
.blueprint-caliper {
  transform-origin: center;
}
.gear-path {
  transform-origin: center;
}
.bomber-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 0.1s ease-out;
}
#services-piston-rod {
  transform-origin: 0 0;
}
@media (max-width: 768px) {
  .section-bg-blueprint, .hero-blueprint {
    display: none !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-content {
    padding-top: 100px;
  }
  .hero-title {
    max-width: 100%;
  }
}
@media (max-width: 768px) {

  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); padding: 24px; gap: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-title { font-size: 2.2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }

  .footer-content { flex-direction: column; }
  .section { padding: 60px 0; }
  .modal { padding: 24px; margin: 12px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
