/* =============================================
   מדיה קליפ — גיליון עיצוב ראשי (RTL)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Hebrew:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #ffffff;
  --bg-section: #f4f6f9;
  --bg-card:    #ffffff;
  --blue:       #1a4f8a;
  --blue-light: #2563a8;
  --blue-pale:  #e8f0fb;
  --text:       #1a1a2e;
  --text-muted: #4b5563;
  --border:     #e5e7eb;
  --gold:       #b45309;
  --shadow:     0 2px 16px rgba(26,79,138,0.08);
  --shadow-hover: 0 8px 32px rgba(26,79,138,0.16);
  --nav-h:      72px;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans Hebrew', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

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

.section { padding: 80px 0; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.section-title span { color: var(--blue); }

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.divider {
  width: 48px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 14px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 6px;
  font-family: 'IBM Plex Sans Hebrew', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-light);
  box-shadow: 0 4px 14px rgba(26,79,138,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 48px;
  margin-inline-start: 40px;
}

.nav-toggle {
  margin-inline-start: auto;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, #e8f0fb 0%, #f4f6f9 50%, #dde8f5 100%);
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.875rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 span { color: var(--blue); }

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* קיר מוניטורים Hero */
.hero-monitor {
  --tally: #e0262f;
  --bezel: #0d1a2d;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  background: var(--bezel);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 24px 56px rgba(13,26,45,0.28);
  animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.monitor-program {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.monitor-program img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.monitor-program img.is-on {
  opacity: 1;
  animation: hero-push 6s ease-out both;
}

.monitor-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  pointer-events: none;
}

.monitor-tally,
.monitor-cam,
.monitor-timecode {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.55);
  line-height: 1.4;
}

.monitor-tally {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tally);
}

.monitor-tally::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: hero-blink 1.2s steps(1) infinite;
}

.monitor-timecode {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.monitor-previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.monitor-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: none;
  border-radius: 5px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  outline: 2px solid rgba(255,255,255,0.12);
  outline-offset: -2px;
  transition: outline-color 0.2s ease;
}

.monitor-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.monitor-preview span {
  position: absolute;
  bottom: 5px;
  left: 5px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.monitor-preview:hover img { opacity: 0.9; }

.monitor-preview.is-on { outline: 3px solid var(--tally); outline-offset: -3px; }
.monitor-preview.is-on img { opacity: 1; }
.monitor-preview.is-on span { background: var(--tally); }

.monitor-preview:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

/* כניסת הטקסט */
.hero-content > * {
  animation: hero-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-content > :nth-child(2) { animation-delay: 0.08s; }
.hero-content > :nth-child(3) { animation-delay: 0.16s; }
.hero-content > :nth-child(4) { animation-delay: 0.24s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes hero-push {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

@keyframes hero-blink {
  50% { opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-monitor,
  .hero-content > *,
  .monitor-program img.is-on,
  .monitor-tally::before { animation: none; }
}

@media (max-width: 640px) {
  .hero-monitor { padding: 6px; border-radius: 10px; }
  .monitor-previews { gap: 6px; margin-top: 6px; }
  .monitor-hud { top: 8px; left: 8px; right: 8px; font-size: 0.65rem; }
  .monitor-preview span { font-size: 0.6rem; }
}

/* ---- About ---- */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow 0.2s;
}


.stat-card .number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card .label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- About sub-heading + list ---- */
.about-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
}

.about-list {
  padding-right: 20px;
  margin-bottom: 20px;
}

.about-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ---- About highlight ---- */
.about-highlight {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--blue-pale);
  border-right: 4px solid var(--blue);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-cta-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.about-cta-link:hover { text-decoration: underline; }

/* ---- About page redesign ---- */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 32px;
}

.about-intro-img {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-intro-img img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.about-stats-bar {
  background: var(--blue);
  padding: 24px 16px;
  border-radius: 12px;
}

.about-stats-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  color: #fff;
  text-align: center;
}

.about-stat-item .stat-num {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.about-stat-item .stat-lbl {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 8px;
}

.about-stat-sep {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
  }

  .about-stats-bar-inner {
    flex-direction: column;
    gap: 24px;
  }

  .about-stat-sep {
    width: 48px;
    height: 1px;
  }
}

/* ---- Showreel ---- */
.showreel-section {
  background: linear-gradient(180deg, #dbe6f5 0%, #e4eaf2 100%);
  padding: 80px 0 88px;
  color: var(--text);
}

.showreel-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.showreel-header h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}

.showreel-header h2 span { color: var(--blue); }

.showreel-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Carousel */
.showreel-viewport {
  position: relative;
  overflow: hidden;
  padding: 40px 0 72px;
  margin: -40px 0 -52px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.showreel-track {
  position: relative;
  width: 62%;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.showreel-fallback {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: #000;
}

.showreel-slide {
  --offset: 0;
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1a2d;
  cursor: pointer;
  z-index: 1;
  opacity: 0.5;
  transform: translateX(calc(var(--offset) * -78%)) scale(0.78);
  box-shadow: 0 10px 30px rgba(26,79,138,0.15);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s ease, box-shadow 0.6s ease;
}

.showreel-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.showreel-slide.is-center {
  z-index: 3;
  opacity: 1;
  cursor: default;
  transform: none;
  box-shadow: 0 20px 48px rgba(26,79,138,0.25), 0 0 0 1px rgba(26,79,138,0.08);
}

.showreel-slide.is-side { z-index: 2; }
.showreel-slide.is-side:hover { opacity: 0.75; }

.showreel-slide.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(var(--offset) * -45%)) scale(0.6);
}

.showreel-arrow {
  position: absolute;
  top: calc(50% - 8px);
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(26,79,138,0.15);
  background: #fff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  z-index: 4;
}

.showreel-arrow[hidden] { display: none; }

.showreel-arrow--prev { right: calc(19% - 26px); }
.showreel-arrow--next { left: calc(19% - 26px); }

.showreel-arrow:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

.showreel-arrow:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.showreel-caption { text-align: center; }
.showreel-caption[hidden] { display: none; }

.showreel-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  min-height: 1.6em;
}

.showreel-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.showreel-dots[hidden] { display: none; }

.showreel-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showreel-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(26,79,138,0.25);
  transition: width 0.3s ease, background 0.3s ease;
}

.showreel-dot:hover::before { background: rgba(26,79,138,0.5); }

.showreel-dot[aria-current="true"] { width: 36px; }
.showreel-dot[aria-current="true"]::before {
  width: 28px;
  background: var(--blue);
}

.showreel-dot:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .showreel-section { padding: 56px 0 64px; }
  .showreel-track { width: 80%; }
  .showreel-slide { border-radius: 10px; }
  .showreel-arrow { width: 40px; height: 40px; }
  .showreel-arrow--prev { right: calc(10% - 20px); }
  .showreel-arrow--next { left: calc(10% - 20px); }
  .showreel-title { font-size: 1.1rem; }
}

/* ---- White Label section ---- */
.white-label-section {
  background: var(--blue);
  padding: 64px 24px;
  text-align: center;
}

.white-label-inner {
  max-width: 680px;
  margin: 0 auto;
}

.white-label-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.25;
}

.white-label-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
}

.white-label-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
  padding: 10px 28px;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.btn-outline-light:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--blue);
}

.btn-light:hover {
  background: var(--blue-pale);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-light:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ---- Services ---- */
.services-section { background: var(--bg-section); }

.services-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
}

/* ציר זמן: קו רציף לאורך השלבים, נקודה בתחילת כל שלב */
.services-phase {
  position: relative;
  padding-top: 32px;
}

.services-phase::before {
  content: '';
  position: absolute;
  top: 5px;
  right: 0;
  left: -40px;
  height: 2px;
  background: rgba(26,79,138,0.2);
}

.services-phase:last-child::before { left: 0; }

.services-phase::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--bg-section);
}

.services-phase-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 8px;
}

.services-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.services-list li:last-child { border-bottom: none; }

.services-list h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.services-list p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

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

  /* במובייל הציר אנכי, בצד ימין */
  .services-phase {
    padding-top: 0;
    padding-right: 32px;
    padding-bottom: 28px;
  }

  .services-phase::before {
    top: 6px;
    bottom: 0;
    right: 5px;
    left: auto;
    width: 2px;
    height: auto;
  }

  .services-phase:last-child::before { bottom: auto; height: 0; }
  .services-phase::after { top: 2px; }
  .services-list li:first-child { padding-top: 8px; }
}

/* ---- Recent Projects ---- */
.projects-section { background: var(--bg); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.project-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.project-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-card:hover .project-card-img img {
  transform: scale(1.05);
}

.project-card-img .placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
}

.project-card-body {
  padding: 16px 20px;
}

.project-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.project-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Page Header ---- */
.page-header {
  padding: 120px 0 60px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 8px;
}

/* ---- Portfolio Grid ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 60px 0;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}


.portfolio-cta {
  text-align: center;
  padding: 48px 0 16px;
  border-top: 1px solid var(--border);
}

.portfolio-cta-more {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.portfolio-cta-tagline {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
}

.portfolio-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue);
}

.portfolio-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.portfolio-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.portfolio-card:hover .portfolio-card-img img {
  transform: scale(1.06);
}

.portfolio-card-img .img-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 20px;
}

.portfolio-card-body {
  padding: 20px 24px;
}

.portfolio-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.portfolio-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.loading-msg, .empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
}

/* ---- Lightbox ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.lightbox-nav button {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav button:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.lightbox-counter {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  min-width: 60px;
  text-align: center;
}

.lightbox-title {
  position: absolute;
  bottom: 30px;
  right: 0;
  left: 0;
  text-align: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
}

/* ---- Contact ---- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  padding: 60px 0;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail .detail-text strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-detail .detail-text span {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-section);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: 'IBM Plex Sans Hebrew', sans-serif;
  font-size: 1rem;
  direction: rtl;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,79,138,0.1);
  background: #fff;
}

.form-group input.error,
.form-group textarea.error { border-color: #b91c1c; }

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-error {
  font-size: 0.78rem;
  color: #b91c1c;
  margin-top: 5px;
  display: none;
}

.form-error.visible { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  padding: 13px;
  font-size: 1.05rem;
}

.form-status {
  margin-top: 16px;
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
}

.form-status.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

/* ---- Accessibility ---- */
.accessibility-content {
  max-width: 800px;
  padding: 60px 0;
}

.accessibility-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  margin: 40px 0 10px;
}

.accessibility-content h2:first-child { margin-top: 0; }

.accessibility-content p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.accessibility-content ul {
  list-style: disc;
  padding-right: 24px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.accessibility-content ul li { margin-bottom: 6px; }

.accessibility-content a {
  color: var(--blue);
  text-decoration: underline;
}

/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 5000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* ---- Accessibility Widget ---- */
.a11y-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#a11y-widget-trigger {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  z-index: 4000;
}

#a11y-widget-trigger:hover { background: var(--blue-light); }

#a11y-widget-panel {
  position: fixed;
  bottom: 88px;
  inset-inline-start: 24px;
  width: min(320px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
  padding: 18px;
  z-index: 4000;
}

.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.a11y-panel-header h2 { font-size: 1.05rem; font-weight: 700; }

.a11y-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 4px 8px;
}

.a11y-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.a11y-toggle {
  background: var(--bg-section);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 0.82rem;
  font-family: 'IBM Plex Sans Hebrew', sans-serif;
  color: var(--text);
  cursor: pointer;
  text-align: center;
}

.a11y-toggle[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.a11y-reset {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.85rem;
  font-family: 'IBM Plex Sans Hebrew', sans-serif;
  color: var(--text-muted);
  cursor: pointer;
}

.a11y-reset:hover { color: var(--text); border-color: var(--text-muted); }

html.a11y-contrast-invert #a11y-widget-panel,
html.a11y-contrast-invert #a11y-widget-trigger {
  filter: invert(1) hue-rotate(180deg);
}

/* ---- Accessibility Preference Effects ---- */
html.a11y-links a { text-decoration: underline !important; }

html.a11y-headings h1, html.a11y-headings h2, html.a11y-headings h3 {
  outline: 2px dashed var(--blue);
  outline-offset: 4px;
}

html.a11y-contrast-high { filter: contrast(1.35); }

html.a11y-contrast-invert { filter: invert(1) hue-rotate(180deg); }
html.a11y-contrast-invert img,
html.a11y-contrast-invert video {
  filter: invert(1) hue-rotate(180deg);
}

html.a11y-contrast-mono { filter: grayscale(1); }

html.a11y-text-115 body { font-size: 115%; }
html.a11y-text-130 body { font-size: 130%; }
html.a11y-text-150 body { font-size: 150%; }

html.a11y-lines-16 body { line-height: 1.6; }
html.a11y-lines-20 body { line-height: 2; }

html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

html.a11y-readable-font body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html.a11y-cursor-black,
html.a11y-cursor-black * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpolygon points='2,2 2,18 6,15 8,21 11,20 9,14 16,14' fill='black' stroke='white' stroke-width='1'/%3E%3C/svg%3E") 2 2, auto !important;
}

html.a11y-cursor-large,
html.a11y-cursor-large * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpolygon points='4,4 4,36 12,30 16,42 22,40 18,28 32,28' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 4 4, auto !important;
}

@media print {
  html[class*="a11y-"] { filter: none !important; }
  html[class*="a11y-text-"] body { font-size: 100% !important; }
  html[class*="a11y-lines-"] body { line-height: 1.7 !important; }
  #a11y-widget-trigger, #a11y-widget-panel { display: none !important; }
}

/* ---- Footer ---- */
.footer {
  background: #1a1a2e;
  color: #cbd5e1;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #94a3b8;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.83rem;
  color: #64748b;
}

.footer-bottom a {
  color: #93c5fd;
  font-size: 0.83rem;
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .hero-monitor { order: -1; }

  .about-grid { grid-template-columns: 1fr; }
  .projects-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    right: 0;
    left: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .projects-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-stats .stat-card:last-child { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form { padding: 24px; }
}
