:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0ea5e9;
  --primary-600: #0284c7;
  --accent: #22d3ee;
  --brand: #001b2e;
  --ring: rgba(14,165,233,0.25);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1100px, 92%); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #e2e8f0;
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--brand); text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.logo img { width: 36px; height: 36px; }

.nav { display: flex; align-items: center; gap: 1rem; }
.nav a { color: var(--text); text-decoration: none; padding: .4rem .6rem; border-radius: .4rem; }
.nav a:hover { background: #f1f5f9; }

.nav-toggle { display: none; background: none; border: none; padding: .4rem; border-radius: .4rem; }

/* Hero */
.hero { background: #001b2e; color: #e2e8f0; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem; padding: 3.5rem 0; }
.hero h1 { font-size: clamp(2rem, 3.5vw, 3rem); margin: 0 0 .5rem; line-height: 1.2; }
.hero p { margin: 0 0 1rem; color: #cbd5e1; }
.hero .cta { display: inline-flex; gap: .75rem; margin-top: 1rem; }

/* Rotating text */
.rotator { display:inline-flex; position: relative; height: 1.5em; overflow: hidden; margin: .5rem 0 0; font-weight: 700; color: #FFA500; }
.rotator span { position:absolute; inset:0; display:flex; align-items:center; transform: translateY(100%); opacity:0; animation: rotator 18s infinite; }
.rotator span:nth-child(1) { animation-delay: 0s; }
.rotator span:nth-child(2) { animation-delay: 3s; }
.rotator span:nth-child(3) { animation-delay: 6s; }
.rotator span:nth-child(4) { animation-delay: 9s; }
.rotator span:nth-child(5) { animation-delay: 12s; }
.rotator span:nth-child(6) { animation-delay: 15s; }
@keyframes rotator {
  0%   { transform: translateY(100%); opacity: 0; }
  5%   { transform: translateY(0%);   opacity: 1; }
  25%  { transform: translateY(0%);   opacity: 1; }
  30%  { transform: translateY(-100%);opacity: 0; }
  100% { transform: translateY(-100%);opacity: 0; }
}

/* Ticker */
.ticker-section { padding: 0; background: #0b2540; color: #e2e8f0; border-top: 1px solid #0a223a; border-bottom: 1px solid #0a223a; }
.ticker { overflow: hidden; white-space: nowrap; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: inline-flex; gap: 2rem; padding: .6rem 0; align-items:center; animation: ticker 28s linear infinite; }
.ticker__track span { color: #94a3b8; }
.ticker__track span::before { content: "•"; color: #FFA500; margin-right: .5rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.btn { appearance: none; border: none; background: var(--primary); color: #fff; padding: .8rem 1rem; border-radius: .6rem; font-weight: 600; cursor: pointer; text-decoration: none; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.btn:hover { background: var(--primary-600); }
.btn.secondary { background: #0f172a; }
.hero-figure { border-radius: .8rem; overflow: hidden; box-shadow: 0 10px 30px rgba(2,8,23,.25); border: 1px solid #0b2540; }

/* Section waves */
.hero { position: relative; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; pointer-events: none;
  background: bottom center / 100% 100% no-repeat url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C150,100 350,0 600,60 C850,120 1050,20 1200,80 L1200,120 L0,120 Z" fill="%23FFA500" opacity="0.15"/></svg>');
}
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -60px; height: 90px; pointer-events: none;
  background: top center / 100% 100% no-repeat url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,120 C150,20 350,120 600,60 C850,0 1050,100 1200,40 L1200,0 L0,0 Z" fill="%23FFA500" opacity="0.15"/></svg>');
}
@media (max-width: 900px) { .hero::after, .site-footer::before { height: 60px; } }

/* Thin line waves below the orange waves */
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 30px; pointer-events: none;
  background: bottom center / 100% 100% no-repeat url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C150,100 350,0 600,60 C850,120 1050,20 1200,80" fill="none" stroke="%23FFA500" stroke-width="2" stroke-linecap="round"/></svg>');
  opacity: .8;
}
.site-footer::after {
  content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 30px; pointer-events: none;
  background: top center / 100% 100% no-repeat url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,120 C150,20 350,120 600,60 C850,0 1050,100 1200,40" fill="none" stroke="%23FFA500" stroke-width="2" stroke-linecap="round"/></svg>');
  opacity: .8;
}
@media (max-width: 900px) {
  .hero::before, .site-footer::after { height: 20px; bottom: -10px; }
  .site-footer::after { top: -14px; }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 .75rem; }
.section .lead { color: var(--muted); margin-bottom: 1rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: var(--surface); border: 1px solid #e2e8f0; border-radius: .8rem; padding: 1rem; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.card h3 { margin-top: 0; margin-bottom: .4rem; }
.card p { margin: 0; color: var(--muted); }

/* Services interactivity */
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; will-change: transform; cursor: default; }
.card .icon svg { transition: transform .25s ease, color .25s ease, filter .25s ease; }
.card:hover, .card:focus-within { transform: translateY(-6px) scale(1.03); box-shadow: 0 12px 30px rgba(2,8,23,.18); border-color: rgba(255,165,0,.4); }
.card:hover h3, .card:focus-within h3 { color: #FFA500; }
.card:hover .icon svg, .card:focus-within .icon svg { transform: translateY(-2px) scale(1.08); color: #FFA500; }
@media (prefers-reduced-motion: reduce) {
  .card, .card .icon svg { transition: none; }
}

/* Work grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid .item { background: var(--surface); border: 1px solid #e2e8f0; border-radius: .6rem; overflow: hidden; position: relative; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; will-change: transform; }
.grid .item img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.grid .item:hover, .grid .item:focus-within { transform: translateY(-6px) scale(1.03); box-shadow: 0 12px 30px rgba(2,8,23,.18); border-color: rgba(255,165,0,.4); }
.grid .item:hover img, .grid .item:focus-within img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .grid .item, .grid .item img { transition: none; }
}

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.person { background: var(--surface); border: 1px solid #e2e8f0; border-radius: .8rem; padding: 1rem; display: grid; grid-template-columns: 80px 1fr; gap: 1rem; align-items: center; }
.person .avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 1px solid #e2e8f0; }
.person h4 { margin: 0 0 .25rem; }
.person .role { color: var(--muted); margin: 0 0 .25rem; }
.person a { color: var(--primary-600); text-decoration: none; }
.person a:hover { text-decoration: underline; }

/* WhatsApp links accent */
.team a[href^="https://wa.me"] { color: #FFA500; }
.team a[href^="https://wa.me"]:hover { color: #e69500; text-decoration: underline; }

/* Footer */
.site-footer { padding: 2rem 0; border-top: 1px solid #e2e8f0; color: var(--muted); }
.site-footer .brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; }

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 56px; right: 4%; background: #fff; padding: .5rem; border: 1px solid #e2e8f0; border-radius: .6rem; box-shadow: 0 10px 30px rgba(2,8,23,.12); }
  .nav-toggle { display: inline-flex; }
  .services, .grid, .team { grid-template-columns: 1fr; }
}

/* About background: electrical engineering tools */
#about {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 110% -10%, rgba(14,165,233,0.08), transparent 60%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><g stroke="%230ea5e9" stroke-opacity=".25" fill="none" stroke-width="2"><rect x="40" y="60" width="120" height="70" rx="8"/><circle cx="260" cy="95" r="35"/><path d="M380 60 l30 50 -30 50 70 -50 h-40 l20 -50z"/><path d="M520 60 h80 v70 h-80 z"/><path d="M560 60 v70" opacity=".4"/><path d="M120 220 h120 m-60 -30 v60"/><path d="M260 190 h90 l10 15 -10 15 h-90"/><path d="M430 180 h110 m-55 -20 v40"/><path d="M580 180 l40 40 m0 -40 l-40 40"/><path d="M80 320 h160 m-120 0 l-20 -20 m20 20 l-20 20" opacity=".4"/><rect x="280" y="280" width="120" height="80" rx="10"/><circle cx="540" cy="320" r="36"/><path d="M500 280 l80 80" opacity=".3"/><path d="M660 280 h60 v80 h-60 z"/><path d="M690 280 v80" opacity=".4"/></g><g stroke="%230ea5e9" stroke-opacity=".12" fill="none" stroke-width="1"><path d="M0 100 H800"/><path d="M0 200 H800"/><path d="M0 300 H800"/><path d="M0 400 H800"/><path d="M0 500 H800"/></g></svg>') no-repeat right -40px / 600px auto;
}

@media (max-width: 900px) {
  #about { background-position: center -60px; background-size: 140% auto; }
}


