
:root {
  --bg0: #05070A; /* Deepest void - for body */
  --bg1: #0A0E1A; /* Base layer - for sections */
  --bg2: #10162D; /* Card base surface */
  --bg3: #161F3D; /* Hover states / Elevated surfaces */
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Typography levels - high contrast against dark bg */
  --txt: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --muted2: rgba(255, 255, 255, 0.45);

  --violet: #8B5CF6; /* Vibrant Purple (Primary Accent) */
  --cyan: #06B6D4;   /* Tech Cyan (Secondary Accent) */
  --pink: #D87CFF;   /* Alternative Accent */
  
  --accent-gradient: linear-gradient(135deg, var(--violet), var(--cyan));
  /* Status Colors */
  --good: #2BE3A1;
  --bad: #FF5A76;
  --warn: #FFCC66;

  /* Glows & Shadows */
  --glowV: 0 0 40px rgba(139, 92, 246, 0.25);
  --glowC: 0 0 70px rgba(6, 182, 212, 0.18);
  --shadow-luxe: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --shadow2: 0 10px 32px rgba(0, 0, 0, 0.40);

  /* =========================================================
     SIZING, SPACING & TYPOGRAPHY
     ========================================================= */
  --r: 18px;
  --r2: 26px;
  --r-modern: 20px;

  --wrap: 1140px;

  /* Spacing System */
  --s-unit: 1rem;
  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 22px;
  --s5: 30px;
  --s6: 44px;
  --s7: 64px;

  /* Typography Sizes */
  --h1: clamp(2.0rem, 3.6vw, 3.2rem);
  --h2: clamp(1.45rem, 2.2vw, 2.1rem);
  --h3: 1.12rem;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Arial, sans-serif;

  color-scheme: dark;
}

/* -----------------------------
   שיפורים כלליים לחוויית משתמש
----------------------------- */
body {
  line-height: 1.6;
  letter-spacing: -0.01em;
  background:
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.16), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--txt);
}

/* -----------------------------
   ניווט משופר (Header UX)
----------------------------- */
.topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

/* אפקט הריחוף של התפריט */
.nav a {
  position: relative;
  overflow: hidden;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav a:hover::after {
  width: 60%;
}

/* -----------------------------
   כרטיסים חכמים (Project/Card UX)
----------------------------- */
.card,
.project {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.card:hover,
.project:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-luxe), var(--glowV);
  border-color: rgba(139, 92, 246, 0.3);
}

/* -----------------------------
   כפתורים (Buttons UX)
----------------------------- */
.btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  background: var(--accent-gradient);
  color: var(--txt);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--glowV);
  
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--glowV), var(--glowC);
}

/* -----------------------------
   פורמטים וטפסים (Input UX)
----------------------------- */
input,
textarea,
select {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--txt);
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

/* -----------------------------
   אנימציות כניסה חלוקות
----------------------------- */
[data-reveal] {
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* -----------------------------
   שיפור ה-Circuit Effect (הוספת חיים)
----------------------------- */
.ev-header-circuit .brand::after {
  animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 15px var(--cyan));
  }
}

/* התאמה למובייל - שיפור הנוחות ביד אחת */
@media (max-width: 899px) {
  .mobile-menu {
    border-radius: 30px 0 0 30px;
    /* עיצוב מעוגל ונוח יותר */
    padding: 24px;
  }

  .mobile-menu a {
    margin-bottom: 8px;
    font-size: 1.1rem;
    padding: 16px;
    /* שטח לחיצה גדול יותר */
  }
}

/* -----------------------------
   1) Base reset
----------------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--txt);
  background:
    radial-gradient(900px 500px at 18% 5%, rgba(139, 92, 246, 0.18), transparent 62%),
    radial-gradient(700px 500px at 85% 12%, rgba(6, 182, 212, 0.14), transparent 62%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

p {
  line-height: 1.7;
  margin: 0 0 var(--s3);
}

ul {
  margin: 0;
  padding-inline-start: 18px;
}

li {
  line-height: 1.65;
}

strong {
  color: var(--txt);
}

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: var(--txt);
}

.hidden {
  display: none !important;
}

.no-scroll {
  overflow: hidden !important;
}

/* Skip link */
.skip {
  position: absolute;
  inset-inline-start: var(--s3);
  inset-block-start: var(--s3);
  padding: 10px 12px;
  background: rgba(0, 0, 0, .75);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  transform: translateY(-160%);
  z-index: 9999;
}

.skip:focus {
  transform: translateY(0);
  outline: none;
}

:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.75);
  outline-offset: 3px;
  border-radius: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2*var(--s4)));
  margin-inline: auto;
}

/* -----------------------------
   2) Typography
----------------------------- */
h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.12;
  letter-spacing: -.3px;
}

h1 {
  font-size: var(--h1);
}

h2 {
  font-size: var(--h2);
}

h3 {
  font-size: var(--h3);
}

.lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: .86rem;
  color: var(--muted2);
}

.grad {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad2 {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


.grad3 {
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad4 {
  background: linear-gradient(135deg,#2563eb,#2b6cf8,#f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -----------------------------
   3) Header + Nav
----------------------------- */
.topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: var(--s3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  padding-top: 1vh;
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.16), transparent 45%),
    linear-gradient(135deg, var(--cyan), var(--violet) 55%, var(--pink) 85%);
  box-shadow: var(--glowV);
}

.brand-text {
  font-weight: 900;
  letter-spacing: .4px;
}

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

.nav a {
  color: var(--muted);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 18px;
  transition: all 0.3s ease;
}

.nav a:hover {
  color: var(--txt);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--glowC);
}

.nav a.active,
.nav a[aria-current="page"] {
  color: var(--txt);
  background: var(--accent-gradient);
  box-shadow: var(--glowV);
}

.icon-btn {
  appearance: none;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--txt);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--glowC);
}

.burger {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  position: relative;
}

.burger span::before {
  position: absolute;
  inset-block-start: -7px;
  inset-inline-start: 0;
}

.burger span::after {
  position: absolute;
  inset-block-start: 7px;
  inset-inline-start: 0;
}

@media (min-width: 900px) {
  #menuBtn {
    display: none;
  }

  .nav {
    display: flex;
  }
}

@media (max-width: 899px) {
  .nav {
    display: none;
  }

  #menuBtn {
    display: inline-flex;
  }

  /* Hidden by default on mobile, shown when .is-open is added */
  .mobile-menu,
  .mobile-overlay {
    display: none;
  }

  .mobile-menu.is-open {
    display: flex;
  }

  .mobile-overlay.is-open {
    display: block;
  }
}

/* -----------------------------
   4) Mobile menu
----------------------------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(6px);
  z-index: 80;
}

.mobile-menu {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(380px, 92vw);
  padding: 16px;
  background: var(--glass);
  border-inline-start: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  z-index: 90;
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: slideIn .18s ease both;
}

@keyframes slideIn {
  from {
    transform: translateX(18px);
    opacity: .4;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block-end: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-block-end: 6px;
}

.mobile-menu a {
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: all 0.25s ease;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--txt);
}

.mobile-menu a.active,
.mobile-menu a[aria-current="page"] {
  background: var(--accent-gradient);
  border-color: rgba(6, 182, 212, 0.30);
  color: var(--txt);
  box-shadow: var(--glowV);
}

/* -----------------------------
   5) Buttons + chips
----------------------------- */


.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: none;
  color: var(--txt);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--glowC);
}

.btn-small {
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 850;
}

.btn-wide {
  padding-inline: 18px;
}

/* legacy button variants (from style.css) */
.btn-primary {
  background: var(--accent-gradient);
  border-color: rgba(6, 182, 212, 0.30);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--txt);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-weight: 800;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-gradient);
  box-shadow: var(--glowV);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn,
.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.filter-btn:hover,
.chip-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.filter-btn.is-active,
.chip-btn.is-active {
  background: var(--accent-gradient);
  border-color: rgba(6, 182, 212, 0.35);
  color: var(--txt);
  box-shadow: var(--glowV);
}

.chip-clear {
  background: var(--glass);
  border-color: var(--glass-border);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-weight: 800;
}

.chip i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: var(--glowC);
}

/* -----------------------------
   6) Sections + hero
----------------------------- */
.section {
  padding-block: var(--s7);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
  margin-block-end: var(--s4);
}

.section-head p {
  margin: 0;
}

.section-head h1 {
  margin: 0 0 8px;
}

.section-head h2 {
  margin: 0 0 8px;
}

@media (max-width: 820px) {
  .section {
    padding-block: 52px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero {
  padding-block: clamp(44px, 7vw, 84px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.cta-row,
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-block: 18px 8px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 14px;
}

.hero-card {
  border-radius: var(--r2);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: var(--shadow-luxe);
  overflow: hidden;
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.fake-tabs {
  display: flex;
  gap: 8px;
}

.fake-tabs span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}

.fake-url {
  color: rgba(255, 255, 255, .62);
  font-weight: 800;
  font-size: .92rem;
}

.card-body {
  padding: 18px 18px 20px;
}

.mini {
  color: rgba(255, 255, 255, .88);
}

.mini-title {
  font-weight: 950;
  letter-spacing: .2px;
  margin-bottom: 10px;
}

.mini-list {
  margin: 0;
  padding-inline-start: 18px;
}

.mini-list li {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .76);
}

.mini-link {
  display: inline-flex;
  margin-top: 10px;
  color: rgba(184, 164, 255, .98);
  font-weight: 900;
}

.mini-link:hover {
  text-decoration: underline;
}

/* -----------------------------
   7) Grids + cards
----------------------------- */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 980px) {
  .grid3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .grid2 {
    grid-template-columns: 1fr;
  }

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

.card,
.tile,
.panel {
  border-radius: var(--r);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
  box-shadow: var(--shadow2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card.premium {
  border-color: rgba(139, 92, 246, 0.26);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow), var(--glowV);
}

.tile {
  background: rgba(255, 255, 255, .045);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .78);
  font-weight: 900;
  font-size: .86rem;
  margin-bottom: 14px;
  align-self: flex-start;
}

.card h3,
.card h4 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card .muted,
.card p.muted {
  margin: 8px 0 0 0;
  line-height: 1.5;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.26);
  color: var(--txt);
  font-weight: 900;
  font-size: .84rem;
}

.mini-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-weight: 850;
  font-size: .84rem;
}

.callout {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: var(--r2);
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

@media (max-width: 740px) {
  .callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cta-banner {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--r2);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow2);
}

@media (max-width: 740px) {
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* -----------------------------
   8) Forms
----------------------------- */
label {
  display: block;
  font-weight: 900;
  color: var(--txt);
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--txt);
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted2);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap:nowrap;
  white-space: nowrap;
  
}

.ok {
  color: var(--good);
}

.err {
  color: var(--bad);
}

.form-msg {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
}

.form-msg.ok {
  border-color: rgba(43, 227, 161, .30);
  background: rgba(43, 227, 161, .10);
}

.form-msg.err {
  border-color: rgba(255, 90, 118, .35);
  background: rgba(255, 90, 118, .12);
}

.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -----------------------------
   9) Portfolio cards + modal
----------------------------- */
.project {
  border-radius: var(--r2);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  overflow: hidden;
  box-shadow: var(--shadow2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-luxe), var(--glowV);
  border-color: rgba(139, 92, 246, 0.28);
}

.project-top {
  position: relative;
}

.project-img {
  width: 100%;
  aspect-ratio: 12/7;
  object-fit: cover;
  background: rgba(0, 0, 0, .25);
}

.project-glow {
  position: absolute;
  inset: auto -70px -70px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

.project-body {
  padding: 16px;
}

.project-cta {
  margin-top: 10px;
  font-weight: 950;
  color: rgba(184, 164, 255, .98);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  width: min(980px, calc(100% - 2*var(--s4)));
  margin: 6vh auto;
  border-radius: var(--r2);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: var(--shadow-luxe);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.modal-title {
  margin: 0;
}

.modal-content {
  padding: 16px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: start;
}

.modal-media img {
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
}

.modal-info h3 {
  margin-top: 14px;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .modal-dialog {
    margin: 10vh auto;
  }

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

/* -----------------------------
   10) Footer
----------------------------- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding-block: 40px;
  background: var(--bg1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.foot-links a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: all 0.25s ease;
}

.foot-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--txt);
}

.foot-links a.active,
.foot-links a[aria-current="page"] {
  background: var(--accent-gradient);
  border-color: rgba(6, 182, 212, 0.30);
  color: var(--txt);
  box-shadow: var(--glowV);
}

/* -----------------------------
   11) Reveal animation
----------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------
   12) Toast
----------------------------- */
.toast {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 16px;
  margin-inline: auto;
  width: fit-content;
  max-width: min(520px, calc(100% - 2*var(--s4)));
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--txt);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------
   13) Builder + legacy classes from style.css
   (kept so nothing is unstyled if used anywhere)
----------------------------- */
.layout-center {
  display: grid;
  place-items: center;
  min-height: 60vh;
}

.layout-minimal {
  max-width: 920px;
  margin-inline: auto;
}

.rounded {
  border-radius: var(--r2);
}

.square {
  border-radius: 0;
}

.dark {
  background: rgba(0, 0, 0, .22);
}

.editable {
  outline: 1px dashed rgba(255, 255, 255, .20);
}

.closed {
  opacity: .6;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 980px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  padding: 18px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  box-shadow: var(--shadow2);
}

.section-title {
  margin-bottom: 10px;
}

.header {
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item {
  padding: 10px 12px;
  border-radius: 14px;
}

.card-preview {
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .10);
  overflow: hidden;
  background: rgba(0, 0, 0, .20);
}

.card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card-badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  font-weight: 850;
  font-size: .84rem;
}

/* Builder components */
.builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 860px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }
}

.builder-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 980px) {
  .builder-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .builder-cards {
    grid-template-columns: 1fr;
  }
}

.builder-card {
  padding: 18px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  box-shadow: var(--shadow2);
}

.builder-title {
  font-weight: 950;
  margin-bottom: 6px;
}

.builder-content {
  color: var(--muted);
}

.builder-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.builder-row-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.builder-row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.builder-divider {
  height: 1px;
  background: rgba(255, 255, 255, .10);
  margin: 14px 0;
}

.builder-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.builder-group {
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
}

.builder-note {
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid rgba(6, 182, 212, 0.18);
  background: rgba(6, 182, 212, 0.06);
  color: var(--txt);
}

.builder-hint {
  font-size: .9rem;
  color: var(--muted2);
}

.builder-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.builder-range {
  width: 100%;
}

.builder-sort {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sort-item {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
}

.sort-handle {
  cursor: grab;
}

.sort-name {
  font-weight: 900;
}

.sort-id {
  font-size: .85rem;
  color: var(--muted2);
}

.builder-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch-ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  position: relative;
}

.switch-ui::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  transition: transform 0.2s ease;
}

.builder-switch input:checked+.switch-ui {
  background: var(--accent-gradient);
  border-color: rgba(6, 182, 212, 0.35);
}

.builder-switch input:checked+.switch-ui::after {
  transform: translateX(18px);
}

.switch-text {
  color: var(--muted);
  font-weight: 800;
}

.builder-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--txt);
  font-weight: 900;
  cursor: pointer;
  transition: all 0.25s ease;
}

.builder-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--glowC);
}

.builder-btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-border);
}

.builder-btn-glow {
  background: rgba(139, 92, 246, 0.20);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: var(--glowV);
}

/* -----------------------------
   14) RTL readiness
----------------------------- */
[dir="rtl"] .hero-grid,
[dir="rtl"] .section-head,
[dir="rtl"] .footer-grid {
  direction: rtl;
}

/* -----------------------------
   15) Reduced motion
----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =====================================================
   EV Header Circuit Effect (Scoped – Safe Version)
   Does NOT override existing header classes
===================================================== */

.ev-header-circuit {
  position: relative;
  isolation: isolate;
}

/* subtle tech sheen overlay */
.ev-header-circuit::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background:
    linear-gradient(180deg, rgba(6, 182, 212, 0.06), transparent 40%, rgba(139, 92, 246, 0.05)),
    repeating-linear-gradient(135deg,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px 12px);
  mix-blend-mode: screen;
}

/* keep inner content above overlay */
.ev-header-circuit>* {
  position: relative;
  z-index: 1;
}

/* circuit frame around logo container */
.ev-header-circuit .brand {
  position: relative;
  isolation: isolate;
}

.ev-header-circuit .brand::before {
  content: "";
  position: absolute;
  inset: -10px -14px;
  border-radius: 22px;
  pointer-events: none;
  z-index: -2;
  opacity: .8;
  background:
    radial-gradient(140px 46px at 12% 50%, rgba(6, 182, 212, 0.20), transparent 60%),
    radial-gradient(160px 52px at 88% 50%, rgba(139, 92, 246, 0.18), transparent 62%);
  filter: blur(2px);
}

.ev-header-circuit .brand::after {
  content: "";
  position: absolute;
  inset: -12px -18px;
  border-radius: 26px;
  pointer-events: none;
  z-index: -1;
  opacity: .85;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(6, 182, 212, 0.55) 8% 9%, transparent 9% 100%),
    linear-gradient(90deg, transparent 0 86%, rgba(184, 164, 255, 0.40) 86% 87%, transparent 87% 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 14px;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.18));
}

/* animated micro pulses */
.ev-header-circuit .brand-text {
  position: relative;
}

.ev-header-circuit .brand-text::before,
.ev-header-circuit .brand-text::after {
  content: "";
  position: absolute;
  inset-block: -6px;
  width: 44px;
  pointer-events: none;
  opacity: .9;
  background:
    radial-gradient(circle, rgba(6, 182, 212, 0.95) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.25), transparent);
  background-size: 18px 18px, 100% 100%;
  background-repeat: repeat, no-repeat;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.16));
}

.ev-header-circuit .brand-text::before {
  inset-inline-start: -54px;
  animation: evPulseLeft 2.2s linear infinite;
}

.ev-header-circuit .brand-text::after {
  inset-inline-end: -54px;
  animation: evPulseRight 2.4s linear infinite;
}

@keyframes evPulseLeft {
  0% {
    transform: translateX(-12px);
    opacity: .2;
  }

  25% {
    opacity: .9;
  }

  100% {
    transform: translateX(14px);
    opacity: .2;
  }
}

@keyframes evPulseRight {
  0% {
    transform: translateX(12px);
    opacity: .2;
  }

  25% {
    opacity: .9;
  }

  100% {
    transform: translateX(-14px);
    opacity: .2;
  }
}

/* reduced motion support */
@media (prefers-reduced-motion: reduce) {

  .ev-header-circuit .brand-text::before,
  .ev-header-circuit .brand-text::after {
    animation: none !important;
  }
}

/* mobile cleanup */
@media (max-width:899px) {
  .ev-header-circuit::after {
    opacity: .3;
  }

  .ev-header-circuit .brand::before,
  .ev-header-circuit .brand::after {
    opacity: .5;
  }

  .ev-header-circuit .brand-text::before,
  .ev-header-circuit .brand-text::after {
    display: none;
  }
}

/* -------------------------------------------------------------------------
   17) UTILITY CLASSES (bullets, list, note, stat, etc.)
   ------------------------------------------------------------------------- */

/* Bullet lists */
.bullets,
.list {
  list-style: none;
  margin: var(--space-3) 0 var(--space-4);
  padding-inline-start: 0;
}

.bullets li,
.list li {
  position: relative;
  padding-inline-start: var(--space-5);
  margin-bottom: var(--space-2);
  color: var(--muted);
}

.bullets li::before,
.list li::before {
  content: "•   ";
  position: relative;
  inset-inline-start: 0;
  color: var(--accent-violet);
  font-weight: 900;
}

/* Note box */
.note {
  padding: 14px;
  border-radius: 20px;
  border: none;
  background: 
    linear-gradient(90deg,#2564eb,#f9741646);

}

.note h3 {
  text-shadow: 2px 2px 15px black;
}

/* Mini stats */
.mini-stats {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.stat {
  text-align: center;
}

.stat-k {
  font-size: 1.5rem;
  font-weight: 950;
  color: var(--txt);
  line-height: 1;
}

.stat-v {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: var(--s1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Color blobs decoration */
.color-blobs {
  position: absolute;
  inset: -40px -40px auto auto;
  width: 120px;
  height: 120px;
  background:
    radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.2), transparent 50%);
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.6;
}

/* -------------------------------------------------------------------------
   18) PRINT STYLES
   ------------------------------------------------------------------------- */
@media print {

  .topbar,
  .mobile-menu,
  .mobile-overlay,
  .toast,
  .modal {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}
