/* --- משתנים גלובליים --- */
:root {
  --black-fire: #050709;    
  --white-fire: #FFFFFF;    
  
  /* ברירת מחדל: טכנולוגיה (כחול חשמלי) */
  --neon: #00F3FF; 
  --neon-glow: rgba(0, 243, 255, 0.4);
  --secondary-accent: #0066FF;

  --surface: rgba(10, 15, 20, 0.95);
  --stroke: rgba(255, 255, 255, 0.15);
  --white-glow: 0 0 15px rgba(255, 255, 255, 0.3);
  
  --whatsapp: #25D366;
  
  --font-main: 'Noto Sans Hebrew', 'Noto Sans Arabic', 'Noto Sans SC', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Accessibility */
*:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--black-fire);
  color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 1s ease, color 0.3s ease;
}

/* --- נושא דינמי: בנייה --- */
body.theme-construction {
  --neon: #FFC107;  
  --neon-glow: rgba(255, 193, 7, 0.4);
  --secondary-accent: #2ECC71; 
}

/* --- רקע מטריקס --- */
#matrix {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; opacity: 0.15;
  pointer-events: none;
}

/* --- פריסה --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* --- טיפוגרפיה --- */
h1, h2, h3 { font-weight: 900; margin: 0; letter-spacing: -0.01em; color: #FFF; transition: color 0.5s ease; }
h1 { font-size: clamp(2.5rem, 8vw, 4.2rem); line-height: 1.1; text-shadow: 0 0 20px rgba(0,0,0,0.8); }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; color: #FFF; }
p { color: rgba(255, 255, 255, 0.92); font-size: 1.05rem; }

.mono { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; opacity: 0.8; }
.tagline { font-style: italic; color: var(--neon); opacity: 1; margin-bottom: 30px; display: block; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; transition: color 1s ease; }

/* --- תפריט --- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 7, 9, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stroke);
  transition: border-color 0.5s ease;
}
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
.brand-logo-graphic {
  width: 30px; height: 30px; position: relative;
  border: 2px solid #FFF; transform: rotate(45deg);
  transition: all 0.5s ease; box-shadow: 0 0 10px var(--neon-glow);
}
.brand-logo-graphic::after {
  content: ''; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px;
  border: 1px solid var(--neon); background: rgba(255,255,255,0.1);
}
.brand-logo-graphic { animation: logoPulse 3s infinite; }
@keyframes logoPulse { 0% { box-shadow: 0 0 5px var(--neon); } 50% { box-shadow: 0 0 15px var(--neon), 0 0 5px #fff; } 100% { box-shadow: 0 0 5px var(--neon); } }
.brand-text { font-weight: 900; font-size: 1.4rem; color: #FFF; letter-spacing: 1px; }

.nav-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: 0.3s; cursor: pointer; margin-inline-end: 20px; }
.nav-links a:hover { color: var(--neon); text-shadow: 0 0 8px var(--neon-glow); }
.nav-center { display: flex; align-items: center; }
@media (max-width: 900px) { .nav-center { display: none; } }

/* שפות */
.lang-switch { position: relative; display: inline-block; margin-inline-start: 10px; }
.lang-btn { background: transparent; border: 1px solid var(--stroke); color: #fff; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-family: var(--font-mono); font-size: 0.8rem; display: flex; align-items: center; gap: 5px; transition: border-color 0.3s; }
.lang-btn:hover { border-color: var(--neon); }
.lang-dropdown {
  display: none; position: absolute; top: 100%; left: 0; 
  background: #1a1f26; border: 1px solid var(--stroke); border-radius: 4px;
  min-width: 120px; z-index: 200; margin-top: 5px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
[dir="rtl"] .lang-dropdown { left: auto; right: 0; } 
.lang-switch:hover .lang-dropdown { display: block; }
.lang-opt { display: block; width: 100%; padding: 8px 12px; text-align: start; background: transparent; border: none; color: #fff; cursor: pointer; transition: 0.2s; font-family: var(--font-main); }
.lang-opt:hover { background: rgba(255,255,255,0.1); color: var(--neon); }

/* --- כרטיסים --- */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.dept-card {
  background: var(--surface); border: 1px solid var(--stroke);
  padding: 50px; border-radius: 16px; transition: 0.5s; cursor: pointer;
  position: relative; overflow: hidden; min-height: 350px;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.dept-card::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background-size: cover; background-position: center; transition: 0.5s; opacity: 0.2; filter: grayscale(100%);
  background-image: var(--bg); 
}
.dept-card::after { 
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(0deg, rgba(5,7,9,1) 10%, rgba(5,7,9,0.7) 50%, rgba(5,7,9,0.2) 100%);
}
.dept-card:hover { border-color: var(--neon); transform: translateY(-5px); box-shadow: 0 0 30px var(--neon-glow); }
.dept-card:hover::before { opacity: 0.6; filter: grayscale(0%) contrast(1.2); transform: scale(1.1); }
.dept-content { position: relative; z-index: 3; }
.dept-label { color: var(--neon); margin-bottom: 10px; display: block; }
.dept-text { color: #ddd; margin-top: 15px; }
.link-text { margin-top: 30px; color: var(--neon); font-size: 0.8rem; font-weight:bold; }

/* גריד שירותים */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.service-card {
  background: var(--surface); border: 1px solid var(--stroke); padding: 35px; border-radius: 8px; 
  transition: 0.4s; display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: var(--neon); opacity: 0.5; transition: 0.3s;
}
.service-card:hover { border-color: var(--neon); transform: translateY(-5px); box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }
.service-card:hover::after { opacity: 1; box-shadow: 0 0 10px var(--neon); }
.service-icon { font-size: 2.5rem; margin-bottom: 20px; color: var(--neon); transition: color 0.5s ease; text-shadow: 0 0 10px var(--neon-glow); }
.service-type { font-family: var(--font-mono); font-size: 0.75rem; color: var(--secondary-accent); margin-top: 20px; opacity: 0.9; font-weight: bold; text-transform: uppercase; }

/* כפתורים */
.btn {
  display: inline-flex; align-items: center; padding: 14px 30px; border-radius: 4px;
  font-weight: 700; text-decoration: none; transition: 0.3s;
  border: 1px solid #fff; background: transparent; color: #fff; font-size: 1rem; cursor: pointer;
}
.btn:hover { background: #fff; color: var(--black-fire); }
.btn-neon { border-color: var(--neon); color: var(--neon); background: rgba(255, 255, 255, 0.02); transition: all 0.5s ease; }
.btn-neon:hover { background: var(--neon); color: #000; box-shadow: 0 0 30px var(--neon-glow); border-color: var(--neon); }
.w-full { width: 100%; justify-content: center; }
.actions-row { text-align: center; margin-top: 60px; display: flex; gap: 20px; justify-content: center; }

/* וואטסאפ צף */
.whatsapp-float {
  position: fixed; bottom: 20px; left: 20px; 
  background-color: var(--whatsapp); color: #FFF;
  width: 60px; height: 60px; border-radius: 50%;
  text-align: center; font-size: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(37, 211, 102, 0.6); }
.whatsapp-icon { width: 35px; height: 35px; fill: white; }

/* Sticky CTA */
.sticky-cta { position: fixed; inset-inline: 12px; bottom: 12px; display:none; gap:12px; z-index: 2000; }
.sticky-btn { flex:1; text-align:center; padding:14px 12px; border-radius: 10px; background: rgba(20,20,20,0.9); border: 1px solid var(--stroke); color:#fff; text-decoration:none; font-weight:800; backdrop-filter: blur(12px); }
.sticky-btn.neon { border-color: var(--neon); color: var(--neon); }
@media (max-width: 900px) { .sticky-cta { display:flex; } .whatsapp-float { bottom: 80px; } }

/* Live Ticker */
.live-ticker { position: sticky; top: 72px; z-index: 95; background: rgba(0,0,0,0.55); border-bottom: 1px solid var(--stroke); backdrop-filter: blur(10px); overflow: hidden; }
.ticker-track { display:flex; gap:40px; white-space:nowrap; padding:10px 0; animation: tickerMove 25s linear infinite; }
.ticker-item { font-family: var(--font-mono); font-size: 0.78rem; opacity: 0.9; color: #fff; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* Dashboard */
.dashboard-mockup { background: #0f1216; border: 1px solid #333; border-radius: 12px; padding: 20px; font-family: var(--font-mono); font-size: 0.8rem; box-shadow: 0 20px 50px rgba(0,0,0,0.5); margin: 30px auto; max-width: 600px; position: relative; overflow: hidden; border-top: 2px solid var(--neon); }
.dash-header { display: flex; justify-content: space-between; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 20px; color: #888; }
.dash-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.dash-bar-bg { flex-grow: 1; height: 8px; background: #222; margin: 0 15px; border-radius: 4px; overflow: hidden; }
.dash-bar-fill { height: 100%; width: 0; border-radius: 4px; animation: growBar 2s ease-out forwards; }
@keyframes growBar { to { width: var(--w); } }

/* Views */
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes fadeIn { from { opacity: 0; filter: blur(10px); transform: scale(0.98); } to { opacity: 1; filter: blur(0); transform: scale(1); } }

/* Partners & About */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 30px; justify-items: center; }
.partner-logo { filter: grayscale(1); transition: 0.5s; opacity: 0.6; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.partner-logo:hover { filter: grayscale(0); opacity: 1; transform: scale(1.1); }
.logo-box { width: 60px; height: 60px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.2rem; border-radius: 8px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-img { width: 100%; height: 400px; border-radius: 12px; object-fit: cover; border: 1px solid var(--stroke); filter: grayscale(20%); }
.stats-row { margin-top: 30px; display: flex; gap: 15px; }
.stat-item { border-left: 2px solid var(--neon); padding-left: 15px; }
.stat-num { font-size: 2rem; font-weight: 700; color: #fff; }

/* טופס */
.contact-box { max-width: 800px; margin: 0 auto; background: var(--surface); padding: 50px; border: 1px solid var(--stroke); border-radius: 8px; }
.form-grid { display: grid; gap: 20px; margin-top: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-field { width:100%; padding:18px; background:rgba(255,255,255,0.05); border:1px solid var(--stroke); color:#fff; outline: none; border-radius: 4px; }

footer { padding: 60px 0; text-align: center; border-top: 1px solid var(--stroke); background: #020304; }
.footer-text { opacity:0.4; font-size:0.75rem; line-height: 2; color: #aaa; }
.brand-center { justify-content: center; margin-bottom: 30px; }