/* ==========================================================================
   ROBOTICS WORLD COMPANY — "Neon Precision"
   --------------------------------------------------------------------------
   A bold, modern, high-tech identity unique to robotics-world-fze.com.
   Distinct palette, Sora/Space Mono type pairing, gradient glows, angled
   accents, and animated hero. Built fresh — not derived from any template.
   ========================================================================== */

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

:root {
  /* Brand */
  --c-primary: #2563eb;
  --c-primary-2: #06b6d4;
  --c-primary-dark: #1d4ed8;
  --c-primary-soft: #e8efff;
  --c-navy: #0b1120;
  --c-navy-2: #111a33;
  --c-ink: #0d1526;
  --c-slate: #5b6b7c;
  --c-faint: #8a99a9;
  --c-line: #e5eaf2;
  --c-paper: #ffffff;
  --c-mist: #f4f7fc;

  /* Fonts */
  --font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'Consolas', ui-monospace, monospace;

  --grad-brand: linear-gradient(120deg, #2563eb 0%, #06b6d4 100%);
  --grad-navy: linear-gradient(160deg, #0b1120 0%, #111a33 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 21, 38, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 21, 38, 0.18);
  --shadow-brand: 0 12px 32px rgba(37, 99, 235, 0.30);

  /* Compatibility aliases used by inline styles in generated markup */
  --brand-blue: #2563eb;
  --bg-secondary: #f4f7fc;
  --text-primary: #0d1526;
  --text-secondary: #5b6b7c;
  --text-muted: #8a99a9;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Spacing (compat with generated inline styles) */
  --space: 1rem;
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem;
  --space-7: 3rem; --space-8: 4.5rem;

  --t-fast: 150ms ease;
  --t-med: 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--c-paper);
  color: var(--c-ink);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary-dark); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--c-ink);
  line-height: 1.16;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.18rem; }
h4 { font-size: 1rem; }

p { color: var(--c-slate); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }

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

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
}
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: 1.12rem; color: var(--c-slate); }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.items-center { align-items: center; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.mt-4 { margin-top: 16px !important; }
.mt-6 { margin-top: 24px !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-icon { width: 17px; height: 17px; }
.btn-primary { background: var(--grad-brand); color: #fff; border: none; }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn-secondary {
  background: var(--c-paper);
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-secondary:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-soft); }
.btn-ghost { background: transparent; color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary-soft); }
.btn-large { padding: 16px 34px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow var(--t-med);
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(13, 21, 38, 0.10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo-link { display: inline-flex; align-items: center; }
.logo-shield { display: inline-flex; align-items: center; }
.logo-img { height: 44px; width: auto; }
.logo-img-footer { height: 50px; }
.main-nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--c-ink);
  font-weight: 500;
  font-size: 0.96rem;
  border-radius: var(--r-pill);
}
.main-nav > li > a:hover { color: var(--c-primary); background: var(--c-mist); }
.main-nav > li > a.active { color: var(--c-primary); background: var(--c-primary-soft); }
.has-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 110;
}
.has-dropdown:hover .dropdown-menu, .has-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  color: var(--c-ink);
  border-radius: var(--r-sm);
  font-size: 0.94rem;
}
.dropdown-menu li a:hover { color: var(--c-primary); background: var(--c-mist); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn-primary { padding: 10px 20px; }
.menu-toggle { display: none; background: none; border: none; padding: 10px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--c-ink); margin: 5px 0; border-radius: 2px; transition: all var(--t-fast); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  padding: 16px 24px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul li a {
  display: block;
  padding: 12px 0;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-mist);
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-navy);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 84px 0 88px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 80% -10%, rgba(6, 182, 212, 0.30), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(37, 99, 235, 0.35), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb--1 { width: 340px; height: 340px; top: -80px; right: 8%; background: radial-gradient(circle, rgba(6,182,212,0.7), transparent 70%); }
.hero-orb--2 { width: 300px; height: 300px; bottom: -100px; left: 4%; background: radial-gradient(circle, rgba(37,99,235,0.7), transparent 70%); animation-delay: 2.5s; }
.hero-orb--3 { width: 200px; height: 200px; top: 40%; left: 45%; background: radial-gradient(circle, rgba(124,58,237,0.55), transparent 70%); animation-delay: 4.5s; }
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-28px) scale(1.08); }
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; z-index: 1; }
.hero-content h1 { color: #fff; margin-bottom: 20px; }
.hero-content .lead { color: #b9c6da; margin-bottom: 32px; max-width: 560px; }
.hero-eyebrow { color: #7dd3fc; }
.hero-eyebrow::before { background: var(--grad-brand); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cfe4ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.hero-badge:hover { border-color: rgba(6, 182, 212, 0.6); color: #fff; }
.hero-visual { position: relative; }
.hero-3d-placeholder {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0d1730;
  aspect-ratio: 16 / 9;
}
.hero-video {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--r-lg);
}
.hero-visual--intro2 .hero-3d-placeholder { aspect-ratio: 4 / 3; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--c-navy); padding: 28px 0; }
.trust-grid, .trust-grid-5 {
  display: grid;
  gap: 16px;
}
.trust-flex { display: flex; justify-content: space-between; align-items: stretch; gap: 12px; flex-wrap: nowrap; }
.trust-grid { grid-template-columns: repeat(4, 1fr); }
.trust-grid-5 { grid-template-columns: repeat(5, 1fr); }
.trust-flex .trust-item { flex: 1 1 0; }
.trust-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  padding: 26px 18px;
  text-align: center;
  transition: all var(--t-med);
}
.trust-item:hover { border-color: rgba(6, 182, 212, 0.5); transform: translateY(-3px); }
.trust-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: var(--r-sm);
  background: rgba(6, 182, 212, 0.12);
  color: var(--c-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-icon svg { width: 22px; height: 22px; }
.stat-number {
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  background: linear-gradient(120deg, #fff, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { margin-top: 8px; color: #93a5c0; font-size: 0.86rem; font-weight: 500; }

/* ---------- Section header ---------- */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 32px; }
.section-header .eyebrow { justify-content: center; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card {
  display: block;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 28px 26px;
  transition: all var(--t-med);
  color: var(--c-ink);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
a.card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-md); transform: translateY(-4px); color: var(--c-ink); }
a.card:hover::after { transform: scaleX(1); }
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-sm);
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.card-icon svg { width: 26px; height: 26px; }

/* Colorful icon variants — each card in a grid gets a distinct gradient */
.grid > .card:nth-child(4n+1) .card-icon,
.grid > .card:nth-child(3n+1) .card-icon { background: linear-gradient(135deg, #2563eb, #06b6d4); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28); }
.grid > .card:nth-child(4n+2) .card-icon,
.grid > .card:nth-child(3n+2) .card-icon { background: linear-gradient(135deg, #8b5cf6, #d946ef); box-shadow: 0 8px 20px rgba(139, 92, 246, 0.28); }
.grid > .card:nth-child(4n+3) .card-icon,
.grid > .card:nth-child(3n+3) .card-icon { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28); }
.grid > .card:nth-child(4n+4) .card-icon { background: linear-gradient(135deg, #10b981, #06b6d4); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28); }
.card-image {
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 16 / 10;
  background: var(--c-mist);
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
a.card:hover .card-image img { transform: scale(1.06); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-primary);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 14px;
}
.card-link .btn-icon { width: 15px; height: 15px; }

/* ---------- Product / project cards ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--t-med);
  height: 100%;
}
a.product-card { color: var(--c-ink); }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); border-color: var(--c-primary); color: var(--c-ink); }
.product-card-image { position: relative; aspect-ratio: 16 / 10; background: var(--c-mist); overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.product-card-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 10px;
}
.product-card h3 { font-size: 1.02rem; margin-bottom: 10px; }
.product-card h3 a { color: var(--c-ink); }
.product-card h3 a:hover { color: var(--c-primary); }
.product-card p { font-size: 0.9rem; flex: 1; }
.product-card-specs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.spec-badge {
  font-size: 0.78rem;
  color: var(--c-slate);
  background: var(--c-mist);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}

/* ---------- Feature list ---------- */
.features-list { display: grid; gap: 12px; margin: 22px 0 26px; }
.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--c-ink);
  font-weight: 500;
}
.feature-item::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat, var(--grad-brand);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(rgba(11, 17, 32, 0.84), rgba(11, 17, 32, 0.92)), url('/images/img_53ebcb0d0c288a78.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
  pointer-events: none;
}
.page-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.page-hero-orb--1 { width: 300px; height: 300px; top: -90px; right: 6%; background: radial-gradient(circle, rgba(6,182,212,0.7), transparent 70%); }
.page-hero-orb--2 { width: 260px; height: 260px; bottom: -90px; left: 4%; background: radial-gradient(circle, rgba(37,99,235,0.7), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; margin-bottom: 18px; }
.breadcrumb li { color: #93a5c0; }
.breadcrumb a { color: #b9c6da; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .current { color: #fff; font-weight: 600; }
.breadcrumb .sep { color: #5b6b7c; }
.page-hero h1 { color: #fff; margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: #b9c6da; font-size: 1.15rem; max-width: 720px; }

/* ---------- Projects layout ---------- */
.projects-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: 96px; max-height: calc(100vh - 140px); overflow-y: auto; display: grid; gap: 6px; }
.filters h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-faint); margin-bottom: 8px; position: sticky; top: 0; background: #fff; padding-bottom: 8px; z-index: 1; }
.projects-grid { max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 8px; }
.proj-filter-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  color: var(--c-ink);
  font-weight: 500;
  font-size: 0.93rem;
  transition: all var(--t-fast);
}
.proj-filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.proj-filter-btn.is-active { background: var(--grad-brand); border-color: transparent; color: #fff; }
.proj-filter-btn .count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--c-mist);
  color: var(--c-slate);
  border-radius: var(--r-pill);
  padding: 1px 9px;
}
.proj-filter-btn.is-active .count { background: rgba(255, 255, 255, 0.2); color: #fff; }
.projects-empty { display: none; text-align: center; padding: 60px 20px; color: var(--c-faint); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background: var(--grad-brand);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 60px 48px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-brand);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; font-size: clamp(1.6rem, 3vw, 2.4rem); position: relative; }
.cta-banner p { color: rgba(255, 255, 255, 0.95); font-size: 1.06rem; margin: 0 auto 26px; max-width: 560px; position: relative; }
.cta-banner .btn { background: #fff; color: var(--c-primary); border-color: #fff; position: relative; }
.cta-banner .btn:hover { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

/* ---------- Forms ---------- */
.form-wrap { max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--c-ink);
  background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); }
textarea.form-control { min-height: 140px; resize: vertical; }

/* Anti-Spam notice + contact details (compact 2-column layout) */
.contact-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.contact-full { grid-column: 1 / -1; }
.anti-spam-note { padding: 16px 18px; height: auto; }
.contact-card { padding: 14px 18px; height: auto; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { font-size: 0.85rem; }
@media (max-width: 520px) {
  .contact-details-grid { grid-template-columns: 1fr; }
}

/* ---------- Content (blog/article body) ---------- */
.content { max-width: 800px; }
.content p, .content ul, .content ol { margin-bottom: 18px; color: var(--c-slate); }
.content ul, .content ol { padding-left: 22px; }
.content ul li { list-style: disc; margin-bottom: 8px; }
.content h2, .content h3 { margin: 30px 0 12px; }
.content img { border-radius: var(--r-md); margin: 18px 0; }
.content strong { color: var(--c-ink); }
.about-grid { gap: 48px; }
.about-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-gallery-item { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); }
.about-gallery-item:first-child { grid-column: 1 / -1; }
.about-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.about-gallery-item:hover img { transform: scale(1.05); }
.post-date { color: var(--c-faint); font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 20px; }
.post-hero-img { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 28px; }
.post-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.gallery-item { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .post-gallery { grid-template-columns: 1fr; } }

/* ---------- Service sidebar ---------- */
.service-sidebar { position: sticky; top: 96px; align-self: start; }
.service-sidebar h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-faint); margin-bottom: 14px; }
.related-service {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  color: var(--c-ink);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--t-fast);
}
.related-service:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-soft); }
.related-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-icon svg { width: 17px; height: 17px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy); color: #93a5c0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; padding: 40px 0 28px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul a { color: #93a5c0; font-size: 0.9rem; }
.footer-col ul a:hover { color: #fff; }
.footer-contact { display: grid; gap: 6px; margin-top: 12px; }
.footer-contact a { color: #93a5c0; font-size: 0.9rem; }
.footer-contact a:hover { color: #fff; }
.social-links { display: flex; gap: 8px; }
.social-links li a {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--t-fast);
}
.social-links li a:hover { background: var(--grad-brand); color: #fff; transform: translateY(-2px); }
.social-links svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #5b6b7c;
}
.footer-bottom a { color: #93a5c0; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Move to Top ---------- */
.move-to-top {
  position: fixed;
  right: 22px;
  bottom: 96px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--grad-brand);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-brand);
  z-index: 95;
  cursor: pointer;
  transition: all var(--t-fast);
}
.move-to-top.is-visible { display: flex; }
.move-to-top:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37, 99, 235, 0.45); }
.move-to-top svg { width: 18px; height: 18px; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 90;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }
.pulse { position: absolute; inset: 0; border-radius: 50%; background: rgba(37, 211, 102, 0.4); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Modals ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 17, 32, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--r-md);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--c-line);
}
.modal-title { font-size: 1.2rem; }
.modal-close {
  background: none;
  border: none;
  color: var(--c-slate);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--c-mist); color: var(--c-ink); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: 24px 26px; }
.modal-body p, .modal-body ul { color: var(--c-slate); margin-bottom: 14px; }
.modal-body h3 { margin: 20px 0 10px; font-size: 1.05rem; }
.modal-body ul { padding-left: 20px; }
.modal-body ul li { list-style: disc; margin-bottom: 6px; }
.modal-footer { padding: 16px 26px 22px; border-top: 1px solid var(--c-line); display: flex; justify-content: flex-end; }

/* ---------- Notification modal (MTModal — success/error feedback) ---------- */
.mt-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 17, 32, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mt-modal-overlay.is-open {
  display: flex;
  animation: mt-fade 0.2s ease-out;
}
.mt-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px 30px;
  text-align: center;
  animation: mt-rise 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.mt-modal-close-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--c-mist);
  color: var(--c-slate);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
}
.mt-modal-close-x:hover { background: #fee2e2; color: #dc2626; }
.mt-modal-close-x svg { width: 16px; height: 16px; }
.mt-modal-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mt-modal-icon svg { width: 34px; height: 34px; }
.mt-modal-icon--success { color: #16a34a; background: rgba(22, 163, 74, 0.12); }
.mt-modal-icon--error { color: #dc2626; background: rgba(220, 38, 38, 0.12); }
.mt-modal-title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-ink);
}
.mt-modal-message {
  margin: 0 0 22px;
  color: var(--c-slate);
  font-size: 0.95rem;
  line-height: 1.6;
}
.mt-modal-message a { color: var(--c-primary); }
.mt-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mt-modal-actions .btn { min-width: 130px; }

@keyframes mt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mt-rise { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- Contact reveal buttons ---------- */
a.ct-reveal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-primary);
  font-weight: 600;
  cursor: pointer;
}
a.ct-reveal:hover { color: var(--c-primary-dark); }
a.ct-revealed { color: var(--c-ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 60px 0 70px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .projects-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .content { max-width: 100%; }
  .service-sidebar { position: static; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .form-row { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid-5 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
}

/* =========================================================
   Enhancements & polish
   ========================================================= */
/* Card entrance animation */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Card lift & shadow refinement */
.card, .product-card, .trust-item { will-change: transform; }

/* Hero image vignette for depth */
.hero-3d-placeholder img { box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.3); }

/* Buttons subtle press effect */
.btn:active { transform: translateY(0) scale(0.98); }

/* Footer social icon hover ring */
.social-links li a { position: relative; }
.social-links li a::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  border: 1px solid var(--c-primary-2);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.social-links li a:hover::after { opacity: 1; }

/* Focus visibility for accessibility */
a:focus-visible, .btn:focus-visible, button:focus-visible, .form-control:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

/* Section alternating subtle background */
.section:nth-child(even):not(.section-sm) { background: var(--c-mist); }
.hero, .page-hero, .trust-strip, .site-footer { background: var(--c-navy); }

/* Content images subtle border */
.content img { box-shadow: var(--shadow-md); }

/* Smooth dropdown */
.has-dropdown .dropdown-menu { animation: fadeDrop 0.2s ease; }
@keyframes fadeDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--c-mist); }
::-webkit-scrollbar-thumb { background: #c3cede; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-primary); }

/* =========================================================
   Projects gate (lock screen)
   ========================================================= */
.gate-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(700px 500px at 15% 0%, rgba(37, 99, 235, 0.30), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(6, 182, 212, 0.25), transparent 60%),
    var(--grad-navy);
  background-attachment: fixed;
  padding: 40px 20px;
}
.gate-wrap { width: 100%; max-width: 560px; text-align: center; }
.gate-logo { display: inline-block; margin-bottom: 28px; }
.gate-logo img { height: 54px; width: auto; }
.gate-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 40px 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  text-align: left;
}
.gate-lock {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}
.gate-lock svg { width: 30px; height: 30px; }
.gate-card h1 { text-align: center; font-size: 1.6rem; margin-bottom: 10px; }
.gate-intro { text-align: center; color: var(--c-slate); font-size: 0.95rem; margin-bottom: 26px; }
.gate-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--c-mist);
  border-radius: var(--r-pill);
  padding: 4px;
  margin-bottom: 24px;
}
.gate-tab {
  border: none;
  background: transparent;
  color: var(--c-slate);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--t-fast);
}
.gate-tab.is-active { background: #fff; color: var(--c-primary); box-shadow: var(--shadow-sm); }
.gate-hint { font-size: 0.8rem; color: var(--c-faint); margin-top: 14px; text-align: center; }
.gate-submit { width: 100%; }
.gate-footer { margin-top: 22px; }
.gate-footer a { color: #b9c6da; font-size: 0.9rem; }
.gate-footer a:hover { color: #fff; }

@media (max-width: 520px) {
  .gate-card { padding: 30px 20px; }
  .gate-tabs { grid-template-columns: 1fr; }
}
