/* Google Fonts Import - גופנים עבריים מקצועיים */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&family=Rubik:wght@300;400;500;600;700;800&display=swap');

/* --- SPECIAL: PUSH FIRST PARAGRAPH DOWN IN FIRST CARD-BACK (RUSSIAN) --- */
html[lang="ru"] .projects-grid > .project-card:first-child .card-back p:first-of-type {
  margin-top: 1.2em !important;
}
/* --- SPECIAL: FIRST CARD-BACK IN RUSSIAN, MAX FIT --- */
html[lang="ru"] .projects-grid > .project-card:first-child .card-back {
  font-size: 0.65rem !important;
  padding: 0.1rem 0.05rem !important;
  max-height: 100px !important;
  overflow-y: auto !important;
}
html[lang="ru"] .projects-grid > .project-card:first-child .card-back p,
html[lang="ru"] .projects-grid > .project-card:first-child .card-back li {
  font-size: 0.6rem !important;
  margin-bottom: 0.1rem !important;
  line-height: 1.01 !important;
}
/* --- FINAL RUSSIAN CARD-BACK FIT: SCROLL, TINY FONT, NO BUTTON --- */
html[lang="ru"] .card-back {
  font-size: 0.75rem !important;
  padding: 0.3rem 0.1rem !important;
  max-height: 120px !important;
  overflow-y: auto !important;
}
html[lang="ru"] .card-back h3 {
  font-size: 0.85rem !important;
  margin-bottom: 0.2rem !important;
}
html[lang="ru"] .card-back p,
html[lang="ru"] .card-back li {
  font-size: 0.7rem !important;
  margin-bottom: 0.2rem !important;
  line-height: 1.05 !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  white-space: normal !important;
}
html[lang="ru"] .card-back ul {
  padding: 0 !important;
  margin: 0 !important;
}
html[lang="ru"] .card-back button {
  display: none !important;
}
/* --- FORCE BLACK TEXT ON ALL CARD FRONTS --- */
.card-front, .card-front *, .project-info, .project-info *, .card-front h3, .card-front p {
  color: #111 !important;
  text-shadow: none !important;
}

/* --- IMPROVE RUSSIAN TEXT FIT EVEN MORE --- */
html[lang="ru"] .card-back {
  font-size: 0.85rem !important;
  padding: 0.7rem 0.2rem !important;
  max-height: 170px !important;
}
html[lang="ru"] .card-back h3 {
  font-size: 0.95rem !important;
  margin-bottom: 0.3rem !important;
}
html[lang="ru"] .card-back p,
html[lang="ru"] .card-back li {
  font-size: 0.82rem !important;
  margin-bottom: 0.3rem !important;
  line-height: 1.15 !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  white-space: normal !important;
}
html[lang="ru"] .card-back ul {
  padding: 0 !important;
  margin: 0 !important;
}
/* --- RUSSIAN TEXT FITTING FOR CARD BACKS --- */
html[lang="ru"] .card-back {
  font-size: 0.92rem !important;
  padding: 1.1rem 0.3rem !important;
  max-height: 210px !important;
}
html[lang="ru"] .card-back h3 {
  font-size: 1.05rem !important;
  margin-bottom: 0.5rem !important;
}
html[lang="ru"] .card-back p,
html[lang="ru"] .card-back li {
  font-size: 0.89rem !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.3 !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  white-space: normal !important;
}
html[lang="ru"] .card-back ul {
  padding: 0 !important;
  margin: 0 !important;
}
/* --- FORCE WHITE TEXT ON ALL CARD BACKS, ALL STATES --- */
.card-back, .card-back *, .card-back:hover, .card-back:hover * {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.18) !important;
  transition: none !important;
}
/* Base responsive settings */
* {
  box-sizing: border-box;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

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

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

body {
  margin: 0;
  font-family: 'Heebo', 'Segoe UI', 'Tahoma', Arial, sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #f3f4f6 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  color: #374151;
  min-height: 100vh;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* 🔥 פס עליון דק ומקצועי */
.top-bar {
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
  color: white;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1001;
}

.top-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-phone-link {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.top-phone-link:hover {
  color: #fbbf24;
  text-decoration: none;
}

.top-phone-link i {
  font-size: 0.9rem;
  animation: phone-subtle 3s ease-in-out infinite;
}

.top-bar-separator {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

.top-bar-text {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.top-bar-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.top-bar-hours i {
  font-size: 0.8rem;
}

@keyframes phone-subtle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* התאמה למובייל */
@media (max-width: 768px) {
  .top-bar {
    font-size: 0.75rem; /* 🔥 הקטנת טקסט במובייל */
    padding: 0.3rem 0;
  }
  
  .top-bar-content {
    padding: 0 0.5rem; /* 🔥 הקטנת padding במובייל */
    flex-direction: row; /* 🔥 שורה אחת במובייל */
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .top-bar-contact {
    gap: 0.5rem; /* 🔥 הקטנת המרווח */
    order: 1;
    flex-wrap: nowrap;
    justify-content: center;
  }
  
  .top-bar-text {
    font-size: 0.7rem; /* 🔥 טקסט קטן יותר */
    display: none; /* 🔥 הסתרה במסכים קטנים מאוד */
  }
  
  .top-bar-hours {
    order: 2;
    font-size: 0.7rem; /* 🔥 הקטנת טקסט */
  }
  
  .top-phone-link {
    font-size: 0.8rem; /* 🔥 הקטנת טקסט הטלפון */
  }
}

/* 🔥 התאמה למסכים קטנים מאוד */
@media (max-width: 480px) {
  .top-bar {
    font-size: 0.65rem;
    padding: 0.2rem 0;
  }
  
  .top-bar-content {
    padding: 0 0.3rem;
    gap: 0.3rem;
    flex-direction: row; /* 🔥 הכל בשורה אחת */
    justify-content: space-between;
    align-items: center;
  }
  
  .top-bar-contact {
    gap: 0.3rem;
    flex-shrink: 0;
  }
  
  .top-bar-separator {
    display: inline-block; /* 🔥 השארת המפריד */
    margin: 0 0.2rem;
  }
  
  .top-bar-text {
    display: none; /* 🔥 הסתרה במסכים קטנים */
  }
  
  .top-phone-link {
    font-size: 0.7rem;
    white-space: nowrap; /* 🔥 מניעת שבירת שורה */
  }
  
  .top-bar-hours {
    font-size: 0.6rem;
    white-space: nowrap; /* 🔥 מניעת שבירת שורה */
  }
  
  /* 🔥 התאמת המבורגר למסכים קטנים */
  .mobile-menu-btn {
    top: 0.1rem; /* 🔥 העלאה דרמטית - ממש לגובה הלוגו */
    left: 0.5rem; /* 🔥 קצת יותר קרוב לשוליים במסכים קטנים - בצד שמאל */
    padding: 0.4rem; /* 🔥 פחות padding במסכים קטנים */
    font-size: 1.8rem; /* 🔥 גדול יותר גם במסכים קטנים */
    min-width: 40px;
    min-height: 40px;
    color: #000000 !important; /* 🔥 שחור גם במסכים קטנים */
    font-weight: bold; /* 🔥 מובהק */
  }
}

/* 🔥 התאמה למסכים גדולים */
@media (min-width: 1400px) {
  .top-bar {
    font-size: 0.9rem;
    padding: 0.6rem 0;
  }
  
  .top-bar-content {
    padding: 0 3rem;
  }
  
  .top-phone-link {
    font-size: 1rem;
  }
}

.header {
  display: flex;
  justify-content: space-between; /* 🔥 חזרה ל-space-between עם ניווט בשמאל */
  align-items: center;
  padding: 0.8rem 2rem;
  background: rgba(248,246,240,0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
  position: sticky;
  top: 0;
  z-index: 1000; /* 🔥 גבוה מהtop-bar אבל נמוך מהמובייל */
  border-bottom: 1px solid rgba(74,85,104,0.15);
  backdrop-filter: blur(15px);
  height: 60px;
}

/* 🔥 הלוגו במרכז */
.logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo {
  font-family: 'Rubik', 'Heebo', Arial, sans-serif;
  font-size: 2rem;
  color: #4a5568 !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(74,85,104,0.2);
}

.logo-link .logo {
  color: #4a5568 !important;
}

.logo-link:hover .logo,
.logo-link:visited .logo,
.logo-link:active .logo,
.logo-link:focus .logo {
  color: #4a5568 !important;
}

.logo-link {
  text-decoration: none !important;
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
  color: inherit;
  border: none;
  outline: none;
}

.logo-link:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  text-decoration: none !important;
}

.logo-link:focus {
  outline: none;
  outline-offset: 4px;
  border-radius: 8px;
  text-decoration: none !important;
}

.logo-link:visited,
.logo-link:active {
  text-decoration: none !important;
  color: inherit;
}

.logo span {
  border: 1px solid rgba(74,85,104,0.4);
  padding: 0 0.1em;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(74,85,104,0.12) 0%, rgba(74,85,104,0.08) 100%);
  font-size: 0.85em;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 1px 2px rgba(74,85,104,0.15);
}

.sidebar {
  display: block;
  background: none;
  margin: 0;
  padding: 0;
}

.sidebar ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar ul li {
  margin: 0;
  padding: 0;
}

.sidebar ul li a {
  display: inline-block;
  padding: 0.3em 0.8em;
  background: linear-gradient(135deg, #4a5568 0%, #5a6678 50%, #718096 100%);
  color: #f8f6f0;
  font-family: 'Heebo', 'Tahoma', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 
    0 2px 8px rgba(74,85,104,0.25),
    0 4px 15px rgba(74,85,104,0.15),
    inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(74,85,104,0.3);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  position: relative;
  /* שיפור רנדור הגופן */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sidebar ul li a:hover,
.sidebar ul li a:focus {
  background: linear-gradient(135deg, #718096 0%, #6a7688 50%, #4a5568 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 
    0 4px 16px rgba(74,85,104,0.35),
    0 6px 25px rgba(74,85,104,0.2),
    inset 0 1px 0 rgba(255,255,255,0.3);
  border-color: rgba(74,85,104,0.5);
  outline: none;
}

/* Language Selector */
.language-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  position: relative;
  z-index: 1005;
}

.lang-btn {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid rgba(107, 114, 128, 0.3);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 70px;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(107, 114, 128, 0.1);
  line-height: 1.2;
  white-space: nowrap;
}

.lang-btn:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(107, 114, 128, 0.2);
  border-color: rgba(107, 114, 128, 0.5);
}

.lang-btn.active {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.25);
}

/* Mobile language selector - hidden on desktop */
.mobile-language-selector {
  display: none;
}

.mobile-lang-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.mobile-lang-btn {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid rgba(107, 114, 128, 0.3);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 4px rgba(107, 114, 128, 0.1);
  min-height: 44px; /* Touch target size */
}

.mobile-lang-btn:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(107, 114, 128, 0.2);
  border-color: rgba(107, 114, 128, 0.5);
}

.mobile-lang-btn.active {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.25);
}

/* 🔥 מערכת ניווט חדשה ומותאמת לכל המסכים */

/* ניווט דסקטופ - בסיסי */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem; /* 🔥 מרווח קטן יותר */
  justify-content: flex-start; /* 🔥 יישור לצד שמאל */
}

.nav-list a {
  background: #f8f9fa; /* 🔥 רקע לבן-אפור */
  color: #374151; /* 🔥 טקסט אפור כהה */
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.4rem; /* 🔥 פדינג גדול יותר לכפתורים */
  border-radius: 8px; /* 🔥 עיגול מעט יותר */
  box-shadow: 0 2px 6px rgba(107, 114, 128, 0.1); /* 🔥 צל עדין */
  border: 1px solid rgba(107, 114, 128, 0.2); /* 🔥 מסגרת אפורה */
  transition: all 0.3s ease;
}

.nav-list a:hover {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); /* 🔥 גרדיינט אפור יפה */
  color: #ffffff; /* 🔥 טקסט לבן בהובר */
  transform: translateY(-3px); /* 🔥 הרמה יותר בולטת */
  box-shadow: 0 8px 16px rgba(107, 114, 128, 0.25); /* 🔥 צל דרמטי יותר */
  border-color: rgba(107, 114, 128, 0.4);
}

/* המבורגר במובייל - נוקה ותקין */
.mobile-menu-btn {
  display: none; /* מוסתר בדסקטופ */
}

/* ניווט מובייל (mobile-nav) - מוסתר בברירת מחדל */
.mobile-nav {
  display: none;
}

.mobile-nav-overlay {
  display: none;
}

/* התאמות למסכים קטנים - מובייל (עד 768px) */
@media (max-width: 768px) {
  /* הצגת המבורגר */
  .mobile-menu-btn {
    display: block !important;
    position: fixed;
    top: 0.2rem;
    left: 1rem;
    background: transparent !important;
    border: none !important;
    color: #000000 !important;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1015;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: 44px;
    min-height: 44px;
    font-weight: bold;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-menu-btn:hover {
    color: #333333 !important;
    opacity: 0.8;
  }

  /* סגנונות לקווים של התפריט המבורגר */
  .hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
  }

  /* אנימציה לכפתור המבורגר */
  .mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* הצגת תפריט מובייל */
  .mobile-nav-overlay {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(248,246,240,0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(229,231,235,0.3);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .mobile-nav.active {
    transform: translateY(0);
  }

  .mobile-nav-content {
    padding: 4rem 2rem 2rem;
    height: calc(100vh - 1rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .mobile-nav-content::-webkit-scrollbar {
    display: none;
  }
  
  /* סגנונות לתפריט המובייל */
  .mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: center;
  }

  .mobile-nav-menu li {
    margin: 1rem 0;
  }

  .mobile-nav-menu a {
    color: #4a5568;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 1rem 2rem;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .mobile-nav-menu a:hover {
    background: rgba(74,85,104, 0.1);
    color: #2d3748;
  }

  .mobile-nav-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4a5568;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .mobile-nav-close:hover {
    background: rgba(74,85,104, 0.1);
    color: #2d3748;
  }

  /* סגנונות לכפתורי השפה במובייל */
  .mobile-language-section {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(74,85,104, 0.2);
  }

  .mobile-language-title {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
  }

  .mobile-language-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
  }

  .mobile-lang-btn {
    background: rgba(74,85,104, 0.1);
    border: 1px solid rgba(74,85,104, 0.2);
    color: #4a5568;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
  }

  .mobile-lang-btn:hover {
    background: rgba(74,85,104, 0.2);
    color: #2d3748;
  }

  .mobile-lang-btn.active {
    background: #d4572a;
    color: white;
    border-color: #d4572a;
  }
}

/* התאמות למסכים בינוניים - טאבלטים (769px-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .desktop-nav {
    display: flex !important;
  }

  .mobile-menu-btn {
    display: none !important;
  }

  .mobile-nav {
    display: none !important;
  }

  .mobile-nav-overlay {
    display: none !important;
  }
  
  .nav-list {
    gap: 1.5rem;
  }
  
  .nav-list a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* 🔥 התאמות למסכים גדולים - דסקטופ (1025px+) */
@media (min-width: 1025px) {
  .desktop-nav {
    display: flex !important;
  }
  
  .mobile-menu-btn {
    display: none !important;
  }
  
  .sidebar {
    display: none !important;
  }
  
  .nav-list {
    gap: 2rem;
  }
  
  .nav-list a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

/* Mobile menu button styles - מחליף את הישן */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block !important;
    position: fixed; /* 🔥 חזרה לfixed כדי שלא יזוז עם הדף */
    top: 0.2rem; /* 🔥 העלאה משמעותית - ממש לגובה הלוגו */
    left: 1rem; /* 🔥 בצד שמאל */
    background: transparent; /* 🔥 רקע שקוף - נקי יותר */
    border: none;
    color: #000000 !important; /* 🔥 שחור מובהק - ייראה טוב */
    font-size: 2rem; /* 🔥 גדול יותר כדי שיהיה בולט */
    cursor: pointer;
    padding: 0.5rem; /* 🔥 פחות padding כי אין מסגרת */
    z-index: 1003; /* 🔥 הכי גבוה - מעל הכל */
    border-radius: 0; /* 🔥 ללא עיגול */
    box-shadow: none; /* 🔥 ללא צל */
    min-width: 44px;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    transform: none !important; /* 🔥 ביטול transform */
    font-weight: bold; /* 🔥 מובהק יותר */
  }
  
  .mobile-menu-btn:hover,
  .mobile-menu-btn.active {
    color: #333333 !important; /* 🔥 אפור כהה בhover - בולט אבל לא שחור מוחלט */
    background: transparent !important; /* 🔥 רקע שקוף תמיד */
    border: none !important; /* 🔥 ללא גבול */
    box-shadow: none !important; /* 🔥 ללא צל */
    border-radius: 0 !important; /* 🔥 ללא עיגול */
    transform: none !important; /* 🔥 ביטול הזזה */
    opacity: 0.8; /* 🔥 קצת שקוף בhover לאפקט עדין */
  }
}

/* 🔥 ביטול מסגרות המבורגר - הגדרה גלובלית חזקה לכל המצבים */
.mobile-menu-btn,
.mobile-menu-btn:hover,
.mobile-menu-btn:active,
.mobile-menu-btn:focus,
.mobile-menu-btn.active,
.mobile-menu-btn:visited {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  outline: none !important;
  backdrop-filter: none !important;
  /* 🔥 הסרתי את הצבע מכאן כדי שזה יוגדר בקטע הספציפי */
}

/* Style the sidebar for debug mode */
.sidebar {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(248,246,240,0.98);
  backdrop-filter: blur(15px);
  z-index: 1001;
  padding-top: 4rem;
  transform: translateZ(0);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(100%);
}

.sidebar.open {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 1;
  transform: translateX(0);
}

.hero {
  height: 45vh;
  min-height: 380px;
  background: linear-gradient(
    135deg, 
    #ffffff 0%,
    #fefefe 10%,
    #fdfdfd 20%,
    #fafafb 30%, 
    #f7f8f9 40%,
    #f3f4f6 55%,
    #e5e7eb 70%,
    #d1d5db 85%,
    #9ca3af 100%
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border-radius: 20px;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 16px 24px rgba(0, 0, 0, 0.02);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.015'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: 1;
  border-radius: 20px;
}

.hero-content {
  text-align: center;
  color: #ffffff;
  position: relative;
  max-width: 900px;
  padding: 0 2rem;
  z-index: 2;
  overflow: visible;
  height: auto;
  min-height: auto;
}

.hero-content h1 {
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: #374151;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

/* Hero subtitle styling */
.hero-subtitle {
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.3;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 4px 8px rgba(0, 0, 0, 0.15);
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Hero description styling */
.hero-description {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Mobile First Responsive Design for Hero Section */

/* Modern Mobile Phones - Specific Device Adaptations */

/* iPhone SE, 12 Mini, 13 Mini (375px wide) */
@media (max-width: 375px) and (max-height: 667px) {
  .hero {
    height: 50vh;
    min-height: 350px;
    margin-bottom: 1.2rem;
    border-radius: 14px;
    padding: 1.2rem 0.8rem;
  }
  
  .hero-content {
    padding: 0 0.6rem;
    max-width: 320px;
  }
  
  .hero-content h1 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.4;
  }
}

/* iPhone 6/7/8/SE 2020 (375px x 667px) */
@media (min-width: 375px) and (max-width: 414px) and (max-height: 736px) {
  .hero {
    height: 48vh;
    min-height: 330px;
    margin-bottom: 1.3rem;
    border-radius: 15px;
    padding: 1.3rem 1rem;
  }
  
  .hero-content {
    padding: 0 0.8rem;
    max-width: 350px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
  }
}

/* iPhone X/11/12/13/14/15 Standard (390px-428px wide, tall screens) */
@media (min-width: 390px) and (max-width: 428px) and (min-height: 800px) {
  .hero {
    height: 42vh;
    min-height: 380px;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    padding: 1.5rem 1.2rem;
  }
  
  .hero-content {
    padding: 0 1rem;
    max-width: 380px;
  }
  
  .hero-content h1 {
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
  }
}

/* iPhone 14/15 Pro Max, Samsung Galaxy S series (430px+ wide) */
@media (min-width: 428px) and (max-width: 480px) and (min-height: 800px) {
  .hero {
    height: 40vh;
    min-height: 360px;
    margin-bottom: 1.6rem;
    border-radius: 17px;
    padding: 1.6rem 1.4rem;
  }
  
  .hero-content {
    padding: 0 1.2rem;
    max-width: 420px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.9rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
  }
}

/* Extra Small Mobile (320px - 480px) - Legacy Rule for Compatibility */
@media (max-width: 480px) {
  .hero {
    height: 35vh;
    min-height: 280px;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    padding: 1rem;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
  }
  
  .hero-experience {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}

/* Small Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .hero {
    height: 26vh;
    min-height: 210px;
    margin-bottom: 1.8rem;
    border-radius: 18px;
  }
  
  .hero-content {
    padding: 0 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.9rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
  }
  
  .hero-experience {
    font-size: 0.85rem;
  }
}

/* Tablet Portrait (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero {
    height: 30vh;
    min-height: 240px;
    margin-bottom: 2rem;
    border-radius: 20px;
  }
  
  .hero-content {
    padding: 0 2rem;
    max-width: 700px;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .hero-experience {
    font-size: 0.95rem;
  }
}

/* Desktop Small (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .hero {
    height: 32vh;
    min-height: 250px;
    margin-bottom: 2.5rem;
    border-radius: 22px;
  }
  
  .hero-content {
    padding: 0 2.5rem;
    max-width: 900px;
  }
  
  .hero-content h1 {
    font-size: 2.6rem;
    margin-bottom: 1.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 1.1rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
  }
  
  .hero-experience {
    font-size: 1rem;
  }
}

/* Large Desktop (1441px+) */
@media (min-width: 1441px) {
  .hero {
    height: 35vh;
    min-height: 280px;
    margin-bottom: 3rem;
    border-radius: 24px;
  }
  
  .hero-content {
    padding: 0 3rem;
    max-width: 1000px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
  }
  
  .hero-description {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .hero-experience {
    font-size: 1.1rem;
  }
}

/* Ultra Wide (2560px+) */
@media (min-width: 2560px) {
  .hero {
    height: 30vh;
    min-height: 320px;
    margin-bottom: 4rem;
    border-radius: 28px;
  }
  
  .hero-content {
    padding: 0 4rem;
    max-width: 1200px;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1.4rem;
  }
  
  .hero-description {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  
  .hero-experience {
    font-size: 1.2rem;
  }
}

/* Language-specific typography adjustments */
html[lang="en"] .hero-content h1,
html[lang="ru"] .hero-content h1 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  color: #ffffff;
}

html[lang="en"] .hero-subtitle,
html[lang="ru"] .hero-subtitle {
  line-height: 1.25;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  color: #ffffff;
}

html[lang="en"] .hero-description,
html[lang="ru"] .hero-description {
  line-height: 1.5;
  word-spacing: 0.05em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Modern Mobile Typography for English and Russian */

/* iPhone SE, 12 Mini, 13 Mini - English/Russian */
@media (max-width: 375px) and (max-height: 667px) {
  html[lang="en"] .hero,
  html[lang="ru"] .hero {
    height: 45vh;
    min-height: 350px;
    padding: 1.5rem 0.8rem;
  }
  
  html[lang="en"] .hero-content h1,
  html[lang="ru"] .hero-content h1 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.05;
  }
  
  html[lang="en"] .hero-subtitle,
  html[lang="ru"] .hero-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  html[lang="en"] .hero-description,
  html[lang="ru"] .hero-description {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }
  
  html[lang="en"] .hero-experience,
  html[lang="ru"] .hero-experience {
    font-size: 0.65rem;
    line-height: 1.3;
  }
}

/* iPhone 6/7/8/SE 2020 - English/Russian */
@media (min-width: 375px) and (max-width: 414px) and (max-height: 736px) {
  html[lang="en"] .hero,
  html[lang="ru"] .hero {
    height: 42vh;
    min-height: 320px;
    padding: 1.6rem 1rem;
  }
  
  html[lang="en"] .hero-content h1,
  html[lang="ru"] .hero-content h1 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    line-height: 1.05;
  }
  
  html[lang="en"] .hero-subtitle,
  html[lang="ru"] .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }
  
  html[lang="en"] .hero-description,
  html[lang="ru"] .hero-description {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }
  
  html[lang="en"] .hero-experience,
  html[lang="ru"] .hero-experience {
    font-size: 0.7rem;
    line-height: 1.3;
  }
}

/* iPhone X/11/12/13/14/15 Standard - English/Russian */
@media (min-width: 390px) and (max-width: 428px) and (min-height: 800px) {
  html[lang="en"] .hero,
  html[lang="ru"] .hero {
    height: 38vh;
    min-height: 360px;
    padding: 1.8rem 1.2rem;
  }
  
  html[lang="en"] .hero-content h1,
  html[lang="ru"] .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
    line-height: 1.05;
  }
  
  html[lang="en"] .hero-subtitle,
  html[lang="ru"] .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
  }
  
  html[lang="en"] .hero-description,
  html[lang="ru"] .hero-description {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }
  
  html[lang="en"] .hero-experience,
  html[lang="ru"] .hero-experience {
    font-size: 0.75rem;
    line-height: 1.4;
  }
}

/* iPhone 14/15 Pro Max, Samsung Galaxy S series - English/Russian */
@media (min-width: 428px) and (max-width: 480px) and (min-height: 800px) {
  html[lang="en"] .hero,
  html[lang="ru"] .hero {
    height: 35vh;
    min-height: 340px;
    padding: 1.9rem 1.4rem;
  }
  
  html[lang="en"] .hero-content h1,
  html[lang="ru"] .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    line-height: 1.05;
  }
  
  html[lang="en"] .hero-subtitle,
  html[lang="ru"] .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  html[lang="en"] .hero-description,
  html[lang="ru"] .hero-description {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
  }
  
  html[lang="en"] .hero-experience,
  html[lang="ru"] .hero-experience {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* Responsive adjustments for English and Russian text */
@media (max-width: 480px) {
  html[lang="en"] .hero-content h1,
  html[lang="ru"] .hero-content h1 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
  }
  
  html[lang="en"] .hero-subtitle,
  html[lang="ru"] .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
  }
  
  html[lang="en"] .hero-description,
  html[lang="ru"] .hero-description {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  html[lang="en"] .hero-experience,
  html[lang="ru"] .hero-experience {
    font-size: 0.75rem;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  html[lang="en"] .hero-content h1,
  html[lang="ru"] .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  
  html[lang="en"] .hero-subtitle,
  html[lang="ru"] .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
  }
  
  html[lang="en"] .hero-description,
  html[lang="ru"] .hero-description {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }
  
  html[lang="en"] .hero-experience,
  html[lang="ru"] .hero-experience {
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  html[lang="en"] .hero-content h1,
  html[lang="ru"] .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.9rem;
  }
  
  html[lang="en"] .hero-subtitle,
  html[lang="ru"] .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
  }
  
  html[lang="en"] .hero-description,
  html[lang="ru"] .hero-description {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
  }
  
  html[lang="en"] .hero-experience,
  html[lang="ru"] .hero-experience {
    font-size: 0.9rem;
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  html[lang="en"] .hero-content h1,
  html[lang="ru"] .hero-content h1 {
    font-size: 2.4rem;
    margin-bottom: 1.1rem;
  }
  
  html[lang="en"] .hero-subtitle,
  html[lang="ru"] .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  html[lang="en"] .hero-description,
  html[lang="ru"] .hero-description {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
  }
  
  html[lang="en"] .hero-experience,
  html[lang="ru"] .hero-experience {
    font-size: 0.95rem;
  }
}

@media (min-width: 1441px) {
  html[lang="en"] .hero-content h1,
  html[lang="ru"] .hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.3rem;
  }
  
  html[lang="en"] .hero-subtitle,
  html[lang="ru"] .hero-subtitle {
    font-size: 1.7rem;
    margin-bottom: 1.1rem;
  }
  
  html[lang="en"] .hero-description,
  html[lang="ru"] .hero-description {
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
  }
  
  html[lang="en"] .hero-experience,
  html[lang="ru"] .hero-experience {
    font-size: 1.05rem;
  }
}

@media (min-width: 2560px) {
  html[lang="en"] .hero-content h1,
  html[lang="ru"] .hero-content h1 {
    font-size: 3.3rem;
    margin-bottom: 1.5rem;
  }
  
  html[lang="en"] .hero-subtitle,
  html[lang="ru"] .hero-subtitle {
    font-size: 1.9rem;
    margin-bottom: 1.3rem;
  }
  
  html[lang="en"] .hero-description,
  html[lang="ru"] .hero-description {
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
  }
  
  html[lang="en"] .hero-experience,
  html[lang="ru"] .hero-experience {
    font-size: 1.15rem;
  }
}

/* Height adjustments for English and Russian text */
@media (max-width: 480px) {
  html[lang="en"] .hero,
  html[lang="ru"] .hero {
    height: 35vh;
    min-height: 280px;
    padding: 1.5rem 1rem;
  }
  
  html[lang="en"] .hero-content,
  html[lang="ru"] .hero-content {
    padding: 0 0.8rem;
  }
  
  /* כרטיסים מסתובבים - התאמה לרוסית במובייל */
  html[lang="ru"] .card-back {
    padding: 0.8rem !important;
    font-size: 0.8rem;
  }
  
  html[lang="ru"] .card-back h3 {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem;
    line-height: 1.1;
  }
  
  html[lang="ru"] .card-back p {
    font-size: 0.7rem !important;
    margin-bottom: 0.6rem;
    line-height: 1.3;
  }
  
  html[lang="ru"] .project-features li {
    font-size: 0.65rem !important;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    padding: 0.1rem 0;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  html[lang="en"] .hero,
  html[lang="ru"] .hero {
    height: 38vh;
    min-height: 300px;
    padding: 2rem 1.5rem;
  }
  
  html[lang="en"] .hero-content,
  html[lang="ru"] .hero-content {
    padding: 0 1rem;
  }
  
  /* כרטיסים מסתובבים - התאמה לרוסית במסכים בינוניים */
  html[lang="ru"] .card-back {
    padding: 1.2rem !important;
  }
  
  html[lang="ru"] .card-back h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.7rem;
    line-height: 1.15;
  }
  
  html[lang="ru"] .card-back p {
    font-size: 0.85rem !important;
    margin-bottom: 0.8rem;
    line-height: 1.4;
  }
  
  html[lang="ru"] .project-features li {
    font-size: 0.8rem !important;
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  html[lang="en"] .hero,
  html[lang="ru"] .hero {
    height: 40vh;
    min-height: 320px;
    padding: 2.5rem 2rem;
  }
  
  html[lang="en"] .hero-content,
  html[lang="ru"] .hero-content {
    padding: 0 1.5rem;
  }
  
  /* כרטיסים מסתובבים - התאמה לרוסית בטאבלטים */
  html[lang="ru"] .card-back {
    padding: 1.5rem !important;
  }
  
  html[lang="ru"] .card-back h3 {
    font-size: 1.3rem !important;
    margin-bottom: 0.8rem;
    line-height: 1.2;
  }
  
  html[lang="ru"] .card-back p {
    font-size: 1rem !important;
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  
  html[lang="ru"] .project-features li {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  html[lang="en"] .hero,
  html[lang="ru"] .hero {
    height: 42vh;
    min-height: 350px;
    padding: 3rem 2.5rem;
  }
  
  html[lang="en"] .hero-content,
  html[lang="ru"] .hero-content {
    padding: 0 2rem;
  }
}

@media (min-width: 1441px) {
  html[lang="en"] .hero,
  html[lang="ru"] .hero {
    height: 45vh;
    min-height: 380px;
    padding: 3.5rem 3rem;
  }
  
  html[lang="en"] .hero-content,
  html[lang="ru"] .hero-content {
    padding: 0 2.5rem;
  }
}

.hero-text h1 {
  font-size: 3.2rem;
  margin-bottom: 0.5em;
  text-shadow: 
    2px 2px 0 rgba(0,0,0,0.8),
    4px 4px 0 rgba(0,0,0,0.6),
    6px 6px 0 rgba(0,0,0,0.4),
    8px 8px 15px rgba(0,0,0,0.8);
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 2px;
  transform: perspective(500px) rotateX(15deg);
  text-transform: uppercase;
  position: relative;
}

.hero-text h1::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translate(3px, 3px);
}

.hero-text p {
  font-size: 1.3rem;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.3);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  opacity: 0.95;
}

.section {
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 12px;
  margin: 1.5rem auto;
  max-width: 1000px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  scroll-margin-top: 70px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 200, 200, 0.2);
  position: relative;
  overflow: hidden;
  min-height: auto;
}

/* הוספת טקסטורות מעניינות לסקציות */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(74,85,104,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(113,128,150,0.02) 0%, transparent 50%),
    linear-gradient(45deg, transparent 40%, rgba(74,85,104,0.01) 50%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.section > * {
  position: relative;
  z-index: 1;
}

.section.dark {
  background: linear-gradient(135deg, rgba(240, 238, 232, 0.95) 0%, rgba(235, 233, 227, 0.98) 100%);
  border: 1px solid rgba(74,85,104, 0.15);
}

.section.light {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 246, 240, 0.95) 100%);
  color: #2c2c2c;
  border: 1px solid rgba(74,85,104, 0.2);
}

.section h2 {
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #4a5568;
  letter-spacing: 0.3px;
  text-align: center;
  /* שיפור טיפוגרפי */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.section h3 {
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  margin-top: 1.2rem;
  color: #4a5568;
  letter-spacing: 0.2px;
  text-align: center;
  /* שיפור טיפוגרפי */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.section p {
  font-size: 1rem;
  line-height: 1.6;
  color: #2c2c2c;
  margin-bottom: 0.8rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section ul {
  list-style: none;
  padding: 0;
  line-height: 2;
  font-size: 1.1rem;
}

.section ul li {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  transition: transform 0.2s, color 0.2s;
}

.section ul li:hover {
  transform: translateX(-5px);
  color: #4a5568;
}

.section ul li i {
  margin-left: 1rem;
  color: #4a5568;
  font-size: 1.3rem;
  width: 1.5rem;
  text-align: center;
  transition: transform 0.2s;
}

.section ul li:hover i {
  transform: scale(1.2);
}

/* About section specific styles */
#about h2 {
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: 2.2rem !important;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #4a5568;
  letter-spacing: 0.3px;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

#about h3 {
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 2rem;
  color: #4a5568;
  letter-spacing: 0.3px;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

#about p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #333; /* 🔥 שיפור ניגודיות - היה #555 */
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 246, 240, 0.98) 100%);
  border: 1px solid rgba(74,85,104, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  will-change: transform, box-shadow;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74,85,104, 0.1), transparent);
  transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(107, 114, 128, 0.4);
  box-shadow: 0 12px 28px rgba(107, 114, 128, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
}

.service-icon {
  background: linear-gradient(135deg, #4a5568, #718096);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.service-card:hover .service-icon {
  transform: scale(1.08) rotate(5deg);
}

.service-icon i {
  font-size: 1.8rem;
  color: #ffffff;
}

/* Colored service icons */
.network-icon {
  background: linear-gradient(135deg, #3182ce, #2c5aa0) !important; /* כחול - לרשתות */
}

.security-icon {
  background: linear-gradient(135deg, #e53e3e, #c53030) !important; /* אדום - לאבטחה */
}

.wifi-icon {
  background: linear-gradient(135deg, #38a169, #2f855a) !important; /* ירוק - לWIFI */
}

.management-icon {
  background: linear-gradient(135deg, #ed8936, #dd6b20) !important; /* כתום - לניהול */
}

.telecom-icon {
  background: linear-gradient(135deg, #805ad5, #6b46c1) !important; /* סגול - לתקשורת */
}

.server-icon {
  background: linear-gradient(135deg, #4a5568, #2d3748) !important; /* אפור כהה - לשרתים */
}

.service-card h3 {
  font-family: 'Heebo', 'Rubik', sans-serif;
  color: #4a5568;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  /* שיפור רנדור */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.service-card p {
  color: #333; /* 🔥 שיפור ניגודיות - היה #555 */
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

/* Vision Section */
.vision-content {
  max-width: 1000px;
  margin: 0 auto;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.vision-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 246, 240, 0.95) 100%);
  border: 1px solid rgba(74,85,104, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.vision-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74,85,104, 0.12);
  border-color: rgba(74,85,104, 0.3);
}

.vision-icon {
  background: linear-gradient(135deg, #4a5568, #718096);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
}

.vision-item:hover .vision-icon {
  transform: scale(1.1) rotate(5deg);
}

.vision-icon i {
  font-size: 1.4rem;
  color: #f8f6f0;
}

/* Colored vision icons */
.professional-icon {
  background: linear-gradient(135deg, #3182ce, #2c5aa0) !important;
}

.reliability-icon {
  background: linear-gradient(135deg, #38a169, #2f855a) !important;
}

.innovation-icon {
  background: linear-gradient(135deg, #ed8936, #dd6b20) !important;
}

.vision-item h3 {
  font-size: 1.2rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-align: center;
}

.vision-item p {
  font-size: 0.95rem;
  color: #333; /* 🔥 שיפור ניגודיות - היה #555 */
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.vision-main-text {
  margin-top: 2rem;
}

.vision-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 246, 240, 0.95) 100%);
  padding: 1.5rem;
  border-radius: 16px;
  border-left: 4px solid #4a5568;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  margin: 1.5rem 0;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(74,85,104, 0.2);
  font-style: italic;
  z-index: 1;
}

.vision-text::before {
  content: '"';
  font-size: 3rem;
  color: #4a5568;
  position: absolute;
  top: -15px;
  left: 10px;
  font-family: serif;
  opacity: 0.3;
  z-index: 0;
}

.vision-text::after {
  content: '"';
  font-size: 3rem;
  color: #4a5568;
  position: absolute;
  bottom: -15px;
  right: 10px;
  font-family: serif;
  opacity: 0.3;
  z-index: 0;
}

/* Contact Section - קומפקטי ונקי */
.contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 400px;
  margin: 0.5rem auto;
  gap: 1rem;
  text-align: center;
  width: 100%;
}

/* Contact intro section - גודל מותאם */
.contact-intro {
  background: linear-gradient(135deg, rgba(74,85,104,0.05) 0%, rgba(113,128,150,0.03) 100%);
  border: 1px solid rgba(74,85,104, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem auto 1rem;
  max-width: 450px;
  text-align: center;
}

.contact-intro p {
  font-size: 1rem;
  color: #4a5568;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

/* Contact info outside form - במרכז מושלם */
.contact-info-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 1rem auto;
  max-width: 500px;
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 246, 240, 0.98) 100%);
  padding: 1rem;
  border-radius: 8px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(74,85,104, 0.2);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.contact-info-main .contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #2c2c2c;
  font-size: 1rem;
  text-align: center;
  min-width: 150px;
  flex: 1;
}

.contact-info-main .contact-item i {
  color: #4a5568;
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.contact-info-main .contact-item a {
  color: #2c2c2c;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.contact-info-main .contact-item a:hover {
  color: #4a5568;
}

.contact-info-main .contact-item a:focus {
  color: #4a5568;
  outline: 1px solid #4a5568;
  outline-offset: 2px;
  border-radius: 4px;
}

.contact-info-main .contact-item span {
  color: #2c2c2c;
  font-weight: 600;
}

.contact-form-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 246, 240, 0.98) 100%);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(74,85,104, 0.2);
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form-container h3 {
  font-family: 'Heebo', sans-serif;
  color: #4a5568;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.2px;
  /* שיפור רנדור */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.6rem;
  border-radius: 5px;
  border: 2px solid rgba(74,85,104, 0.3);
  background: rgba(255, 255, 255, 0.9);
  color: #2c2c2c;
  font-size: 0.9rem;
  font-family: 'Heebo', 'Rubik', Arial, sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
  min-height: 2.5rem;
  text-align: right;
  direction: rtl;
}

.contact-form textarea {
  min-height: 4.5rem;
  resize: vertical;
  font-family: 'Heebo', 'Rubik', Arial, sans-serif;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 1);
  border-color: #4a5568;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: left 1rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-left: 3rem;
}

.contact-form .form-group {
  margin-bottom: 1.2rem;
  position: relative;
}

.contact-form .form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: 'Heebo', sans-serif;
  font-weight: 500;
  color: #4a5568;
  font-size: 0.9rem;
  text-align: right;
  direction: rtl;
}

.contact-form button {
  width: 100%;
  padding: 1rem; /* 🔥 הגדלת הכפתור */
  margin-top: 1rem;
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); /* 🔥 אפור בולט יותר */
  color: #ffffff;
  border: none;
  border-radius: 8px; /* 🔥 פינות יותר מעוגלות */
  font-weight: 700; /* 🔥 טקסט בולט יותר */
  font-size: 1.1rem; /* 🔥 טקסט גדול יותר */
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3); /* 🔥 צל אפור */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 3rem; /* 🔥 כפתור גבוה יותר */
  letter-spacing: 0.5px;
}

.contact-form button:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%); /* 🔥 אפור כהה יותר */
  color: #fff;
  transform: translateY(-2px); /* 🔥 אפקט hover חזק יותר */
  box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.contact-form button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(107, 114, 128, 0.3);
}

/* Add loading animation for form submission */
.contact-form button.loading {
  pointer-events: none;
  opacity: 0.7;
}

.contact-form button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   🔥 GALLERY PAGE - NEW CLEAN CODE 🔥
   ============================================ */

/* Gallery Section */
.gallery-section {
  padding: 2rem 1rem;
  background: #f8f9fa;
  min-height: 70vh;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: #ffffff;
  border: 2px solid #007bff;
  border-radius: 25px;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: #007bff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.filter-btn:hover {
  background: #007bff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.filter-btn.active {
  background: #007bff;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Project Card */
.project-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Project Image */
.project-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Project Overlay */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,123,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay i {
  color: #ffffff;
  font-size: 2rem;
}

/* Project Info */
.project-info {
  padding: 1.5rem;
  text-align: right;
}

.project-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #212529;
  line-height: 1.4;
}

.project-info p {
  color: #6c757d;
  font-size: 1rem;
  line-height: 1.6;
}

/* Modal Styles - Lightbox עם גלילה תקינה */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  overflow-y: auto;
  padding: 20px 0;
  box-sizing: border-box;
}

.lightbox-content {
  position: relative;
  background: #ffffff;
  border-radius: 15px;
  max-width: 800px;
  width: 90%;
  margin: 20px auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: lightboxFadeIn 0.3s ease-out;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255,0,0,0.8);
  transform: scale(1.1);
}

#lightbox-img {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.lightbox-info {
  padding: 2rem;
  text-align: center;
  background: #ffffff;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.lightbox-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #212529;
}

.lightbox-info p {
  color: #6c757d;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .filter-buttons {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .lightbox-content {
    width: 95%;
    margin: 10px auto;
  }
  
  .lightbox-info {
    padding: 1.5rem;
  }
  
  .lightbox-info h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-section {
    padding: 1rem 0.5rem;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-info {
    padding: 1rem;
  }
  
  .project-info h3 {
    font-size: 1.2rem;
  }
  
  .lightbox {
    padding: 10px 0;
  }
  
  .lightbox-content {
    width: 98%;
    margin: 10px auto;
  }
  
  .lightbox-info {
    padding: 1rem;
  }
  
  .lightbox-info h3 {
    font-size: 1.3rem;
  }
  
  .lightbox-info p {
    font-size: 1rem;
  }
}

/* 🔥 GALLERY PAGE - קוד חדש לגמרי 🔥 */

/* Filter Buttons */
.filter-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 25px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.filter-btn:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.filter-btn.active {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border-color: #007bff;
  color: white;
  box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

/* Project Card */
.project-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid #e9ecef;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Project Image Container */
.project-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f8f9fa;
}

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

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

/* Project Overlay */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,123,255,0.85), rgba(0,86,179,0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* View Button */
.view-btn {
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #007bff;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.view-btn:hover {
  background: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Project Info */
.project-info {
  padding: 1.5rem;
  text-align: right;
}

.project-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #212529;
  line-height: 1.4;
}

.project-category {
  display: inline-block;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-description {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-client,
.project-date {
  color: #868e96;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 1px solid #e9ecef;
}
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.modal-show {
  opacity: 1;
}

.modal-content {
  background-color: #ffffff;
  margin: auto;
  border-radius: 15px;
  max-width: 800px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: modalShow 0.3s ease-out;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal.modal-show .modal-content {
  transform: translateY(0);
}

@keyframes modalShow {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close:hover {
  background: rgba(0,0,0,0.9);
  transform: scale(1.1);
}

#modal-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  display: block;
  background: #f8f9fa;
}

.modal-info {
  padding: 2rem;
  text-align: right;
}

.modal-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #212529;
}

.modal-info p {
  color: #6c757d;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

#modal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

#modal-meta div {
  background: #f8f9fa;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  border-right: 4px solid #007bff;
  color: #495057;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .project-card {
    margin-bottom: 1rem;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-info {
    padding: 1.2rem;
  }
  
  .project-info h3 {
    font-size: 1.1rem;
  }
  
  .filter-buttons {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    margin: 5vh auto;
    max-width: 95%;
  }
  
  #modal-image {
    max-height: 50vh;
  }
  
  .modal-info {
    padding: 1.5rem;
  }
  
  .modal-info h3 {
    font-size: 1.5rem;
  }
  
  .close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    padding: 0;
  }
  
  .project-image {
    height: 180px;
  }
  
  .view-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .modal-info h3 {
    font-size: 1.3rem;
  }
  
  .modal-info p {
    font-size: 1rem;
  }
}

/* 🔥 END OF NEW GALLERY CODE 🔥 */
.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.view-btn:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
}

/* Form validation styles - subtle and clean */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #4a5568;
  box-shadow: 0 0 0 2px rgba(74, 85, 104, 0.1);
}

/* Ensure phone input is right-aligned */
#contact-phone {
  text-align: right !important;
  direction: rtl !important;
}

/* Ensure placeholders are right-aligned */
.contact-form input::placeholder,
.contact-form select::placeholder,
.contact-form textarea::placeholder {
  text-align: right;
  direction: rtl;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
  background: linear-gradient(135deg, #4b5563, #374151);
}

.back-to-top:active {
  transform: translateY(0);
}

/* Mobile adjustments for back to top */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

.carousel {
  overflow: visible;
  width: 90%;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
  position: relative;
  cursor: pointer;
  padding: 60px 0;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  animation: scroll 25s linear infinite;
  animation-play-state: running;
}

/* עצירת הקרוסלה כשמעביר עכבר על התמונה */
.carousel-track img:hover {
  animation-play-state: paused !important;
}

/* עצירת הקרוסלה עם סלקטור מתקדם */
.carousel-track:has(img:hover) {
  animation-play-state: paused !important;
}

/* fallback לדפדפנים ישנים */
.carousel.paused .carousel-track {
  animation-play-state: paused !important;
}

.carousel-track img {
  width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(74,85,104,0.2);
  border: 2px solid #4a5568;
  transition: transform 0.3s ease, z-index 0.3s, box-shadow 0.3s ease;
  cursor: pointer;
  transform-origin: center center;
  position: relative;
  transform: rotateY(0deg) translateZ(0px);
}

/* הגדלה עדינה כשמעביר עכבר - רק עצירה */
.carousel-track img:hover {
  transform: rotateY(0deg) translateZ(0px) scale(1.05);
  z-index: 50;
  box-shadow: 0 8px 25px rgba(74,85,104,0.4);
  border-color: #718096;
}

/* הצגת התמונה בלחיצה - תזוז קדימה בצורה ישרה */
.carousel-track img:active,
.carousel-track img.clicked {
  transform: rotateY(0deg) translateZ(80px) scale(1.4) !important;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(74,85,104,0.7);
  border-color: #4a5568;
  border-width: 3px;
  transition: transform 0.4s ease, z-index 0.1s, box-shadow 0.4s ease !important;
}

/* התמונה נשארת במצב המוגדל לחצי שנייה */
.carousel-track img.show-enlarged {
  transform: rotateY(0deg) translateZ(80px) scale(1.4) !important;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(74,85,104,0.7);
  border-color: #4a5568;
  border-width: 3px;
  animation: showImage 2s ease forwards;
}

@keyframes showImage {
  0%, 80% {
    transform: rotateY(0deg) translateZ(80px) scale(1.4);
  }
  100% {
    transform: rotateY(0deg) translateZ(0px) scale(1);
  }
}

/* עצירה מוחלטת של הקרוסלה כשהעכבר על תמונה */
.carousel:hover .carousel-track,
.carousel-track:hover {
  animation-play-state: paused !important;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 2rem)); }
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 500px;
  margin: auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 246, 240, 0.95) 100%);
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74,85,104, 0.2);
}

input, textarea {
  padding: 1rem;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #2c2c2c;
  font-size: 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: background 0.2s;
}
input:focus, textarea:focus {
  background: rgba(255, 255, 255, 1);
  outline: 2px solid #4a5568;
}

button {
  padding: 1rem;
  background: linear-gradient(90deg, #4a5568 60%, #718096 100%);
  color: #f8f6f0;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(74,85,104,0.2);
  transition: background 0.3s, color 0.2s;
}

button:hover {
  background: linear-gradient(90deg, #718096 60%, #4a5568 100%);
  color: #fff;
}

footer {
  background: linear-gradient(135deg, rgba(74,85,104, 0.9) 0%, rgba(113,128,150, 0.95) 100%);
  color: #f8f6f0;
  text-align: center;
  padding: 1.2rem;
  font-size: 1rem;
  border-top: 1px solid rgba(74,85,104, 0.2);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 20px 20px;
  backdrop-filter: blur(10px);
}

.carousel-3d {
  position: relative;
  width: 700px;
  height: 450px;
  margin: 3em auto;
  perspective: 1400px;
  overflow: hidden;
}

.carousel-3d-track {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0; top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transition: transform 1.2s ease-out;
}

.carousel-3d-track img {
  position: absolute;
  width: 420px;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(74,85,104,0.2);
  border: 3px solid #4a5568;
  transition: box-shadow 0.3s, opacity 0.3s, transform 1.2s ease-out;
  opacity: 0.7;
  will-change: transform;
  cursor: pointer;
  /* שיפור איכות התמונות וחדות מקסימלית */
  filter: brightness(0.85) contrast(1.2) saturate(1.1) sharpen(2) unsharp-mask(1.5, 0.5, 0);
  -webkit-filter: brightness(0.85) contrast(1.2) saturate(1.1) sharpen(2);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.carousel-3d-track img.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1.1);
  border: 3px solid #6b7280;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.carousel-3d-track img.active:hover,
.carousel-3d-track img:hover {
  transform: scale(1.05);
}

/* כפתור עצירה/התחלה */
.carousel-3d-play-pause {
  position: absolute;
  top: -50px;
  right: 0;
  background: #4a5568;
  color: #f8f6f0;
  border: none;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
}

.carousel-3d-play-pause:hover {
  background: #718096;
}

.carousel-3d-prev,
.carousel-3d-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #4a5568;
  color: #f8f6f0;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(74,85,104,0.3);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.carousel-3d-prev {
  left: -70px;
}

.carousel-3d-next {
  right: -70px;
}

  .carousel-3d-prev:hover,
  .carousel-3d-next:hover {
    background: #718096;
    color: #fff;
    box-shadow: 0 6px 20px rgba(74,85,104,0.4);
  }

/* אינדיקטורים לגלריה */
.carousel-3d-indicators {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-3d-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(74,85,104, 0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.carousel-3d-indicator.active {
  background: #4a5568;
  transform: scale(1.2);
}

.carousel-3d-indicator:hover {
  background: #718096;
}

/* התאמות נוספות לגלריה הרגילה */
.carousel-info {
  text-align: center;
  margin-bottom: 1rem;
  color: #4a5568;
  font-size: 0.9rem;
}

.gallery-instructions {
  text-align: center;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.gallery-instructions p {
  color: #000000;
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(74,85,104,0.95) 0%, rgba(45,55,72,0.98) 100%);
  color: white;
  padding: 1rem 2rem;
  z-index: 10000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.2);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.cookie-text h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.cookie-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.9;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn.accept {
  background: #48bb78;
  color: white;
}

.cookie-btn.accept:hover {
  background: #38a169;
  transform: translateY(-1px);
}

.cookie-btn.decline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn.decline:hover {
  background: rgba(255,255,255,0.1);
}

.cookie-btn.settings {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

.cookie-btn.settings:hover {
  background: rgba(255,255,255,0.2);
}

/* Mobile Cookie Banner */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem;
  }
  
  .cookie-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .cookie-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cookie-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* גלריית כרטיסיות פשוטה ויעילה */
/* גלריית פרויקטים - פשוט וברור */
.projects-gallery {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

.project-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 400px;
  position: relative;
  perspective: 1000px;
  /* תמיכה במגע */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* אפקט מגע למובייל */
@media (hover: none) and (pointer: coarse) {
  .project-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .project-card:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.project-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}

.card-front {
  background: #ffffff;
}


.card-back {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #fff !important;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow-y: auto;
  max-height: 100%;
  scrollbar-width: thin;
}

.card-back h3, .card-back p, .card-back li {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.18);
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 600px) {
  .card-back {
    font-size: 0.92rem;
    padding: 1.2rem 0.5rem;
    max-height: 220px;
  }
  .card-back h3 {
    font-size: 1.1rem;
  }
  .card-back p, .card-back li {
    font-size: 0.92rem;
  }
}

.project-image {
  width: 100%;
  height: 60%;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-info {
  padding: 1.5rem;
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.project-info h3 {
  font-size: 1.4rem;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.project-info p {
  color: #666;
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
}

.card-back h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.card-back p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.6;
}

.project-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.project-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size: 1rem;
  position: relative;
}

.project-features li:last-child {
  border-bottom: none;
}

.project-features li::before {
  content: "✓ ";
  color: #81C784;
  font-weight: bold;
  margin-left: 0.5rem;
}

/* רספונסיביות מלאה לכל סוגי המסכים */

/* מסכי 4K ומעלה */
@media (min-width: 2560px) {
  .projects-gallery {
    max-width: 1400px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .project-card {
    height: 480px;
  }
  
  .project-info h3 {
    font-size: 1.6rem;
  }
  
  .project-info p {
    font-size: 1.2rem;
  }
  
  .card-back h3 {
    font-size: 1.8rem;
  }
  
  .card-back p {
    font-size: 1.3rem;
  }
  
  .project-features li {
    font-size: 1.2rem;
  }
}

/* מסכים גדולים מאוד */
@media (min-width: 1400px) and (max-width: 2559px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    gap: 2.5rem;
  }
  
  .project-card {
    height: 420px;
  }
}

/* מסכים גדולים */
@media (min-width: 1200px) and (max-width: 1399px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* מסכים בינוניים-גדולים */
@media (min-width: 992px) and (max-width: 1199px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .project-card {
    height: 380px;
  }
}

/* טאבלטים */
@media (min-width: 769px) and (max-width: 991px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .project-card {
    height: 360px;
  }
  
  .project-info h3 {
    font-size: 1.3rem;
  }
}

/* מובייל גדול */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    height: 350px;
    margin: 0 auto;
    max-width: 400px;
  }
  
  .project-info {
    padding: 1rem;
  }
  
  .project-info h3 {
    font-size: 1.2rem;
  }
  
  .card-back {
    padding: 1.5rem;
  }
  
  .card-back h3 {
    font-size: 1.4rem;
  }
  
  .card-back p {
    font-size: 1rem;
  }
}

/* מובייל קטן */
@media (max-width: 480px) {
  .projects-gallery {
    padding: 0.5rem;
  }
  
  .project-card {
    height: 320px;
    max-width: 350px;
  }
  
  .project-info h3 {
    font-size: 1.1rem;
  }
  
  .project-info p {
    font-size: 0.9rem;
  }
  
  .card-back {
    padding: 1rem;
  }
  
  .card-back h3 {
    font-size: 1.2rem;
  }
  
  .card-back p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .project-features li {
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }
}

/* מובייל קטן מאוד */
@media (max-width: 360px) {
  .project-card {
    height: 300px;
    max-width: 320px;
  }
  
  .project-info {
    padding: 0.8rem;
  }
  
  .project-info h3 {
    font-size: 1rem;
  }
  
  .project-info p {
    font-size: 0.85rem;
  }
  
  .card-back {
    padding: 0.8rem;
  }
  
  .card-back h3 {
    font-size: 1.1rem;
  }
  
  .card-back p {
    font-size: 0.9rem;
  }
  
  .project-features li {
    font-size: 0.85rem;
  }
}

/* תמיכה בכיוון מסך למובייל */
@media (max-width: 768px) and (orientation: landscape) {
  .project-card {
    height: 280px;
  }
  
  .project-info {
    padding: 0.8rem;
  }
  
  .project-info h3 {
    font-size: 1.1rem;
  }
  
  .project-info p {
    font-size: 0.9rem;
  }
  
  .card-back {
    padding: 1rem;
  }
  
  .card-back h3 {
    font-size: 1.2rem;
  }
  
  .card-back p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }
  
  .project-features li {
    font-size: 0.8rem;
    padding: 0.3rem 0;
  }
}

/* ווידוא שהכרטיסים נראים טוב בכל רזולוציה */
@media (min-width: 320px) and (max-width: 1920px) {
  .projects-grid {
    width: 100%;
    justify-items: center;
  }
  
  .project-card {
    width: 100%;
    max-width: 100%;
  }
}

/* תמיכה במצב כהה (Dark Mode) אם המכשיר תומך */
@media (prefers-color-scheme: dark) {
  .project-card {
    background: #2d3748;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  
  .project-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  }
  
  .card-front {
    background: #2d3748;
  }
  
  .project-info h3 {
    color: #ffffff;
  }
  
  .project-info p {
    color: #cbd5e0;
  }
}

/* אופטימיזציה לביצועים */
.project-card * {
  will-change: transform;
}

.card-inner {
  will-change: transform;
}

.card-image:hover {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.2);
}

.card-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60%;
  width: 100%;
  background: linear-gradient(135deg, rgba(74,85,104,0.1) 0%, rgba(113,128,150,0.1) 100%);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.card-image-placeholder:hover {
  background: linear-gradient(135deg, rgba(74,85,104,0.2) 0%, rgba(113,128,150,0.2) 100%);
  transform: scale(1.05);
}

.card-image-placeholder i {
  transition: all 0.3s ease;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.card-image-placeholder:hover i {
  transform: scale(1.1);
  color: #2d3748 !important;
}

.card-back {
  background: linear-gradient(135deg, #4a5568, #718096);
  transform: rotateY(180deg) translateZ(0);
  -webkit-transform: rotateY(180deg) translateZ(0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  color: #f8f6f0;
  text-align: center;
  will-change: transform;
  height: 100%;
  box-sizing: border-box;
  min-height: 400px;
}



/* תוכן הצד הקדמי */
.card-front-content {
  padding: 1.5rem;
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  /* שיש לבן קבוע עם פסים עדינים עם שקיפות */
  background: 
    /* פסים עדינים */
    repeating-linear-gradient(90deg, transparent, transparent 12px, rgba(190,190,190,0.1) 12px, rgba(190,190,190,0.1) 13px),
    repeating-linear-gradient(0deg, transparent, transparent 15px, rgba(200,200,200,0.08) 15px, rgba(200,200,200,0.08) 16px),
    /* רקע שיש לבן עם שקיפות */
    linear-gradient(135deg, rgba(255,255,255,0.93) 0%, rgba(248,249,250,0.96) 100%);
  border-radius: 0 0 12px 12px;
  backdrop-filter: blur(2px);
}

.card-front-content h3 {
  font-family: 'Heebo', 'Rubik', sans-serif;
  color: #1a202c;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
  transition: all 0.3s ease;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.card-front-content p {
  color: #2d3748;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(255,255,255,0.8);
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* תוכן הצד האחורי */
.card-back h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #f8f6f0;
  font-weight: 600;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.card-back p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.card-back-details {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
  max-width: 100%;
  width: 100%;
  flex-shrink: 0;
}

.card-back-details li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(248,246,240,0.2);
  font-size: 1rem;
}

.card-back-details li:last-child {
  border-bottom: none;
}

.card-back-details li::before {
  content: "✓ ";
  color: #6b7280;
  font-weight: bold;
  margin-left: 0.5rem;
}

/* Language-specific adjustments for better text handling */
.lang-en .card-front-content h3,
.lang-ru .card-front-content h3 {
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 0.3rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.lang-en .card-front-content p,
.lang-ru .card-front-content p {
  font-size: 0.85rem;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.lang-en .card-back h3,
.lang-ru .card-back h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.lang-en .card-back p,
.lang-ru .card-back p {
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Specific adjustments for Russian text */
.lang-ru .card-front-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.15;
}

.lang-ru .card-back h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.lang-ru .card-front-content p,
.lang-ru .card-back p {
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.35;
}

/* Enhanced Russian text handling for better readability */
.lang-ru .project-card {
  font-family: 'Rubik', 'Heebo', sans-serif;
}

.lang-ru .card-front-content,
.lang-ru .card-back {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Russian text specific word breaking */
.lang-ru .card-front-content h3,
.lang-ru .card-back h3,
.lang-ru .card-front-content p,
.lang-ru .card-back p {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* הודעה לחזרה */
.card-back::after {
  content: "לחץ לחזרה";
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(248,246,240,0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* התאמות responsive לגלריה המסתובבת */


  
  .lang-en .card-front-content p,
  .lang-ru .card-front-content p {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .card-front-content h3 {
    font-size: 1rem;
    text-align: center;
    color: #1a202c;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
    margin-bottom: 0.4rem;
  }
  
  .card-front-content p {
    font-size: 0.85rem;
    text-align: center;
    color: #2d3748;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255,255,255,0.8);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
  }
  
  .card-back {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 350px;
    box-sizing: border-box;
    text-align: center;
  }
  
  .card-back h3 {
    font-size: 1.1rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    color: #f8f6f0;
  }
  
  .card-back p {
    font-size: 0.9rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: #f8f6f0;
    opacity: 0.9;
  }
  
  .card-back-details li {
    font-size: 0.8rem;
    text-align: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(248,246,240,0.3);
  }
  
  /* הגדרות מרכוז כלליות למסכים קטנים */
  .section h2 {
    text-align: center !important;
    font-size: 1.8rem;
  }
  
  .section h3 {
    text-align: center !important;
    font-size: 1.3rem;
  }
  
  .section p {
    text-align: center !important;
    font-size: 0.95rem;
  }
  
  .card-back {
    padding: 0.8rem;
  }
  
  .card-back h3 {
    font-size: 1.1rem;
  }

  .card-back p {
    font-size: 0.9rem;
  }

  .card-back-details li {
    font-size: 0.8rem;
  }

  /* Mobile adjustments for Russian text */
  .lang-ru .card-front-content h3 {
    font-size: 0.95rem !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
    letter-spacing: -0.2px !important;
  }

  .lang-ru .card-front-content p {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.1px !important;
  }

  .lang-ru .card-back h3 {
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
    letter-spacing: -0.2px !important;
  }

  .lang-ru .card-back p {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.1px !important;
  }

  .card-back h3 {
    font-size: 1.3rem;
  }
/* Tablet Design (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Show mobile menu button on tablets too */
  .mobile-menu-btn {
    display: block !important;
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: rgba(74,85,104, 0.9);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.8rem;
    z-index: 1002;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    min-width: 44px;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  
  /* Hide desktop navigation on tablets */
  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(248,246,240,0.98);
    backdrop-filter: blur(15px);
    z-index: 1001;
    padding-top: 4rem;
    transform: translateZ(0);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(100%);
  }
  
  .sidebar.open {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    opacity: 1;
    transform: translateX(0);
  }

  /* Ensure desktop navigation is visible */
  .mobile-menu-btn {
    display: none;
  }
  
  .sidebar {
    display: block;
    position: static;
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
    z-index: auto;
    padding-top: 0;
  }
  
  .sidebar ul {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 0;
  }
  
  .sidebar ul li a {
    display: inline-block;
    padding: 0.3em 0.8em;
    background: linear-gradient(90deg, #4a5568 60%, #718096 100%);
    color: #f8f6f0;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(74,85,104,0.2);
    border: none;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.3px;
    position: relative;
    min-width: auto;
  }
  
  .header {
    padding: 1rem 1.5rem;
    position: relative;
  }
  
  .language-selector {
    gap: 0.3rem;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    z-index: 1000;
  }
  
  .mobile-menu-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 1001;
  }
  
  .lang-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    min-width: 60px;
    gap: 0.3rem;
  }
  }
  
  .logo {
    font-size: 2.2rem;
  }
  
  .hero {
    height: 50vh;
    min-height: 350px;
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .section {
    padding: 2.5rem 1.5rem;
    margin: 1.2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .contact-info-main {
    gap: 1.8rem;
    padding: 1.2rem;
    margin: 1.5rem auto;
    justify-content: center;
    text-align: center;
  }
  
  .contact-info-main .contact-item i {
    font-size: 1.5rem;
  }
  
  .carousel-3d {
    width: 480px;
    height: 320px;
  }
  
  .carousel-3d-track img {
    width: 300px;
    height: 200px;
    /* שיפור איכות התמונות בטאבלט עם חדות */
    filter: brightness(0.85) contrast(1.2) saturate(1.1);
    -webkit-filter: brightness(0.85) contrast(1.2) saturate(1.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

/* Medium Desktop Screens (1025px - 1199px) */
@media (min-width: 1025px) and (max-width: 1199px) {
  /* Ensure desktop navigation is visible */
  .mobile-menu-btn {
    display: none;
  }
  
  .sidebar {
    display: block;
    position: static;
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
    z-index: auto;
    padding-top: 0;
  }
  
  .sidebar ul {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 0;
    justify-content: flex-start; /* 🔥 יישור לצד שמאל */
  }
  
  .sidebar ul li a {
    display: inline-block;
    padding: 0.6rem 1.2rem; /* 🔥 פדינג גדול יותר לכפתורים */
    background: #9ca3af; /* 🔥 צבע אפור כמו בתמונה */
    color: #1f2937; /* 🔥 טקסט כהה על רקע אפור */
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px; /* 🔥 פחות עיגול */
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 🔥 צל קל */
    border: 1px solid rgba(0,0,0,0.1); /* 🔥 מסגרת קלה */
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    position: relative;
    min-width: auto;
  }
  
  /* 🔥 אפקט הובר לכפתורים האפורים */
  .sidebar ul li a:hover {
    background: #6b7280; /* 🔥 אפור כהה יותר בהובר */
    color: #ffffff; /* 🔥 טקסט לבן בהובר */
    transform: translateY(-1px); /* 🔥 הרמה קלה */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* 🔥 צל גדול יותר */
  }
  
  .header {
    padding: 1rem 2rem;
  }
  
  .logo {
    font-size: 2.4rem;
  }
  
  .hero {
    height: 55vh;
    min-height: 400px;
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
  
  .hero-text h1 {
    font-size: 3.2rem;
  }
  
  .section {
    padding: 3.5rem 2rem;
    max-width: 1100px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
  
  .contact-info-main {
    gap: 2.5rem;
    padding: 1.8rem;
    max-width: 750px;
    margin: 1.5rem auto;
    justify-content: center;
    text-align: center;
  }
  
  .contact-info-main .contact-item {
    font-size: 1.1rem;
  }
  
  .contact-info-main .contact-item i {
    font-size: 1.8rem;
  }
  
  .carousel-3d {
    width: 550px;
    height: 370px;
  }
  
  .carousel-3d-track img {
    width: 340px;
    height: 230px;
    /* שיפור איכות התמונות במדיום דסקטופ עם חדות */
    filter: brightness(0.85) contrast(1.2) saturate(1.1) sharpen(2);
    -webkit-filter: brightness(0.85) contrast(1.2) saturate(1.1) sharpen(2);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Large Desktop Screens (1200px+) */
@media (min-width: 1200px) {
  /* Ensure desktop navigation is visible */
  .mobile-menu-btn {
    display: none;
  }
  
  .sidebar {
    display: block;
    position: static;
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
    z-index: auto;
    padding-top: 0;
  }
  
  .sidebar ul {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 0;
    justify-content: flex-start; /* 🔥 יישור לצד שמאל */
  }
  
  .sidebar ul li a {
    display: inline-block;
    padding: 0.6rem 1.2rem; /* 🔥 פדינג גדול יותר לכפתורים */
    background: #9ca3af; /* 🔥 צבע אפור כמו בתמונה */
    color: #1f2937; /* 🔥 טקסט כהה על רקע אפור */
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px; /* 🔥 פחות עיגול */
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 🔥 צל קל */
    border: 1px solid rgba(0,0,0,0.1); /* 🔥 מסגרת קלה */
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    position: relative;
    min-width: auto;
  }
  
  /* 🔥 אפקט הובר לכפתורים האפורים - מסכים גדולים */
  .sidebar ul li a:hover {
    background: #6b7280; /* 🔥 אפור כהה יותר בהובר */
    color: #ffffff; /* 🔥 טקסט לבן בהובר */
    transform: translateY(-1px); /* 🔥 הרמה קלה */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* 🔥 צל גדול יותר */
  }
  
  .header {
    padding: 1.2rem 2.5rem;
  }
  
  .logo {
    font-size: 2.6rem;
  }
  
  .hero {
    height: 60vh;
    min-height: 450px;
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
  
  .hero-text h1 {
    font-size: 3.8rem;
  }
  
  .section {
    padding: 4rem 2.5rem;
    max-width: 1200px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .contact-info-main {
    gap: 3rem;
    padding: 2rem;
    max-width: 800px;
    margin: 1.5rem auto;
    justify-content: center;
    text-align: center;
  }
  
  .contact-info-main .contact-item {
    font-size: 1.2rem;
  }
  
  .contact-info-main .contact-item i {
    font-size: 2rem;
  }
  
  .carousel-3d {
    width: 600px;
    height: 400px;
  }
  
  .carousel-3d-track img {
    width: 380px;
    height: 260px;
    /* שיפור איכות התמונות בדסקטופ גדול עם חדות מקסימלית */
    filter: brightness(0.85) contrast(1.2) saturate(1.1) sharpen(3);
    -webkit-filter: brightness(0.85) contrast(1.2) saturate(1.1) sharpen(3);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Ultra-wide screens (1440px+) */
@media (min-width: 1440px) {
  .hero {
    height: 65vh;
    max-height: 500px;
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
  
  .hero-text h1 {
    font-size: 4.2rem;
  }
  
  .hero-text p {
    font-size: 1.6rem;
  }
  
  .section {
    max-width: 1400px;
    padding: 6rem 4rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .contact-info-main {
    max-width: 1000px;
    gap: 5rem;
    margin: 1.5rem auto;
    justify-content: center;
    text-align: center;
  }
}

/* General rule - Ensure desktop navigation works on all screens above mobile */
@media (min-width: 769px) {
  /* Show desktop language selector on larger screens */
  .language-selector {
    display: flex !important;
  }
  
  /* Hide mobile language selector on larger screens */
  .mobile-language-selector {
    display: none !important;
  }

  .mobile-menu-btn {
    display: none !important;
  }
  
  .sidebar {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    backdrop-filter: none !important;
    z-index: auto !important;
    padding-top: 0 !important;
  }
  
  .sidebar ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    margin-top: 0 !important;
  }
  
  .sidebar ul li a {
    display: inline-block !important;
    padding: 0.3em 0.8em !important;
    background: linear-gradient(90deg, #4a5568 60%, #718096 100%) !important;
    color: #f8f6f0 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    border-radius: 18px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(74,85,104,0.2) !important;
    border: none !important;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s !important;
    letter-spacing: 0.3px !important;
    position: relative !important;
    min-width: auto !important;
  }
  
  .sidebar ul li a:hover,
  .sidebar ul li a:focus {
    background: linear-gradient(90deg, #718096 60%, #4a5568 100%) !important;
    color: #fff !important;
    transform: translateY(-2px) scale(1.06) !important;
    box-shadow: 0 4px 16px rgba(74,85,104,0.3) !important;
    outline: none !important;
  }
  
  /* Ensure links work properly */
  .sidebar ul li a[href^="#"],
  .sidebar ul li a[href$=".html"] {
    cursor: pointer !important;
    text-decoration: none !important;
  }
}

/* Responsive Design for Mobile and Small Tablets */
@media (max-width: 768px) {
  /* Hide desktop language selector on mobile */
  .language-selector {
    display: none !important;
  }
  
  /* Show mobile language selector only inside sidebar */
  .mobile-language-selector {
    display: block;
    margin-top: 1.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(74,85,104,0.3);
    background: rgba(248,246,240,0.1);
    border-radius: 8px;
    width: 100%;
  }
  
  .mobile-language-selector h4 {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    text-align: center;
    font-weight: 600;
  }
  
  .mobile-lang-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .mobile-lang-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(74,85,104,0.2);
    color: #4a5568;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  
  .mobile-lang-btn:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    border-color: rgba(74,85,104,0.4);
    transform: translateY(-1px);
  }
  
  .mobile-lang-btn.active {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    color: #f8f6f0;
    border-color: #4a5568;
    box-shadow: 0 2px 8px rgba(74,85,104,0.25);
  }

  /* Fix common mobile issues */
  html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    /* Fix for Samsung Internet */
    touch-action: manipulation;
  }
  
  body {
    -webkit-overflow-scrolling: touch;
    /* Fix for some Android browsers */
    position: relative;
  }
  
  /* Fix for Firefox mobile */
  * {
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Allow text selection where needed */
  p, span, div {
    -moz-user-select: text;
    -webkit-user-select: text;
    user-select: text;
  }
  
  /* Mobile menu button */
  .mobile-menu-btn {
    display: block !important;
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: rgba(74,85,104, 0.9);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.8rem;
    z-index: 1002;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    -webkit-tap-highlight-color: transparent;
    /* Better touch target */
    min-width: 44px;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    /* Fix for various mobile browsers */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    transition: all 0.2s ease;
  }
  
  .mobile-menu-btn:active,
  .mobile-menu-btn.active {
    background: rgba(74,85,104, 1);
    transform: scale(0.95);
  }
  
  /* Icon transition for hamburger/close */
  .mobile-menu-btn i {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .mobile-menu-btn .hamburger-icon {
    opacity: 1;
  }
  
  .mobile-menu-btn .close-icon {
    opacity: 0;
    position: absolute;
    transform: rotate(180deg);
  }
  
  .mobile-menu-btn.active .hamburger-icon {
    opacity: 0;
    transform: rotate(-180deg);
  }
  
  .mobile-menu-btn.active .close-icon {
    opacity: 1;
    transform: rotate(0deg);
    position: static;
  }
  
  /* Hide navigation on mobile by default */
  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    /* Multiple fallbacks for different browsers */
    background: rgba(248,246,240,0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    -moz-backdrop-filter: blur(15px);
    z-index: 1001;
    padding: 4rem 2rem 2rem 2rem;
    /* Fix for some mobile browsers */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    /* Smooth transitions */
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(100%);
    /* Add flex layout */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
  }
  
  .sidebar.active,
  .sidebar.open {
    display: flex !important;
    opacity: 1;
    transform: translateX(0);
  }
  
  .sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    max-width: 300px;
  }
  
  .sidebar ul li {
    margin: 0;
    width: 100%;
  }
  
  .sidebar ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #4a5568;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    background: rgba(255,255,255,0.8);
    transition: all 0.2s ease;
    text-align: center;
    border: 2px solid rgba(74,85,104,0.1);
  }
  
  .sidebar ul li a:hover,
  .sidebar ul li a:focus {
    background: rgba(74,85,104,0.1);
    color: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74,85,104,0.15);
  }
  
  .sidebar ul {
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .sidebar ul li a {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border: 1px solid #4a5568;
    border-radius: 8px;
    background: rgba(74,85,104, 0.1);
    display: block;
    text-align: center;
    min-width: 200px;
    transition: all 0.3s ease;
    color: #4a5568;
    text-decoration: none;
    /* Better mobile touch targets */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fix for mobile browsers */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
  }
  
  .sidebar ul li a:hover {
    background: rgba(74,85,104, 0.2);
    transform: translateY(-2px);
    color: #4a5568;
  }
  
  /* Adjust header for mobile */
  .header {
    padding: 0.8rem 1.2rem; /* 🔥 הגדלת padding כדי שיהיה מספיק מקום */
    flex-direction: row;
    justify-content: center; /* 🔥 מרכז את התוכן */
    align-items: center;
    height: 60px; /* 🔥 גובה קבוע כדי שההמבורגר יהיה במקום הנכון */
    position: relative; /* 🔥 חשוב לabsolute positioning של ההמבורגר */
  }
  
  .logo-center {
    flex: 1;
    text-align: center;
    margin: 0; /* ביטול המרווח כדי שהלוגו יהיה במרכז */
  }
  
  /* Logo adjustments */
  .logo {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
  }
  
  /* Hero section for mobile */
  .hero {
    height: 35vh;
    min-height: 250px;
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll !important;
    border-radius: 0;
    position: relative;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 
      1px 1px 0 #000,
      2px 2px 0 #333,
      3px 3px 0 #666,
      4px 4px 8px rgba(0,0,0,0.8);
    letter-spacing: 1px;
    transform: perspective(400px) rotateX(10deg);
  }
  
  .hero-text h1::before {
    transform: translate(2px, 2px);
  }
  
  .hero-text p {
    font-size: 1.1rem;
  }
  
  /* Sections for mobile */
  .section {
    padding: 2rem 1rem;
    margin: 1rem 0.5rem;
    border-radius: 12px;
    scroll-margin-top: 60px;
  }
  
  .section h2 {
    font-size: 1.5rem;
  }
  
  .section ul {
    font-size: 1rem;
    line-height: 1.8;
  }
  
  /* Services cards for mobile */
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    /* Fallback for older browsers */
    display: block;
  }
  
  /* Modern browsers will use grid */
  @supports (display: grid) {
    .services-grid {
      display: grid;
    }
  }
  
  .service-card {
    padding: 1.5rem;
    text-align: center;
    /* Fallback margin for block layout */
    margin-bottom: 1.5rem;
  }
  
  .service-card h3 {
    text-align: center;
  }
  
  .service-card p {
    text-align: center;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .service-icon i {
    font-size: 1.5rem;
  }
  
  .service-card h3 {
    font-size: 1rem;
  }
  
  .service-card p {
    font-size: 0.85rem;
  }
  
  /* Vision section for mobile */
  .vision-text {
    font-size: 1.1rem;
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  .vision-text::before,
  .vision-text::after {
    font-size: 2.5rem;
    opacity: 0.25;
  }
  
  .vision-text::before {
    top: -10px;
    left: 5px;
  }
  
  .vision-text::after {
    bottom: -10px;
    right: 5px;
  }
  
  /* Contact form for mobile */
  .contact-content {
    flex-direction: column;
    gap: 1rem;
    margin: 0.5rem;
    max-width: none;
  }
  
  .contact-info-main {
    flex-direction: column;
    gap: 1rem;
    margin: 0.5rem auto;
    padding: 1rem;
    justify-content: center;
    text-align: center;
    max-width: 95%;
  }
  
  .contact-info-main .contact-item {
    flex-direction: row;
    gap: 0.8rem;
  }
  
  .contact-info-main .contact-item i {
    font-size: 1.3rem;
    margin-bottom: 0;
  }
  
  .contact-form-container {
    padding: 1rem;
    max-width: 95%;
    width: 100%;
  }
  
  .contact-form-container h3 {
    font-size: 1rem;
  }
  
  /* Carousel adjustments */
  .carousel {
    width: 95%;
  }
  
  .carousel-track img {
    width: 250px;
  }
  
  /* 3D Carousel for mobile */
  .carousel-3d {
    width: 380px;
    height: 280px;
    overflow: hidden;
    margin: 2em auto;
  }
  
  .carousel-3d-track {
    transition: transform 1.0s ease-out;
  }
  
  .carousel-3d-track img {
    width: 260px;
    height: 180px;
    transition: box-shadow 0.3s, opacity 0.3s, transform 1.0s ease-out;
    /* שיפור איכות התמונות במובייל עם חדות */
    filter: brightness(0.85) contrast(1.2) saturate(1.1) sharpen(1.5);
    -webkit-filter: brightness(0.85) contrast(1.2) saturate(1.1) sharpen(1.5);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  
  .carousel-3d-prev,
  .carousel-3d-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .carousel-3d-prev {
    left: -50px;
  }
  
  .carousel-3d-next {
    right: -50px;
  }
  
  .carousel-3d-prev,
  .carousel-3d-next {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
  
  .carousel-3d-prev {
    left: -45px;
  }
  
  .carousel-3d-next {
    right: -45px;
  }
  
  /* Form adjustments */
  form {
    margin: 1rem;
    padding: 1.5rem;
    max-width: none;
  }
  
  input, textarea {
    padding: 0.8rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  button {
    padding: 0.8rem;
    font-size: 1rem;
  }
  
  /* Footer for mobile */
  footer {
    padding: 1rem;
    font-size: 0.9rem;
  }

@media (max-width: 480px) {
  /* Hide desktop language selector on small mobile */
  .language-selector {
    display: none !important;
  }
  
  /* Show mobile language selector */
  .mobile-language-selector {
    display: block;
  }

  /* Extra small screens */
  .mobile-menu-btn {
    display: block;
  }
  
  .header {
    padding: 0.8rem 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-center {
    flex: 1;
    text-align: center;
  }
  
  /* Hero optimization for small screens */
  .hero {
    height: 25vh;
    min-height: 200px;
    margin-bottom: 1rem;
    border-radius: 12px;
    padding: 1rem;
  }
  
  .hero-content h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 0.8rem;
  }

  .hero-content p {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }
  
  /* Sections with better spacing */
  .section {
    padding: 2rem 1rem;
    margin: 1rem auto;
    border-radius: 12px;
  }
  
  /* Contact info optimization */
  .contact-info-main {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    margin: 0.8rem auto;
    max-width: 95%;
    justify-content: center;
    text-align: center;
  }
  
  .contact-form-container {
    padding: 1rem;
    max-width: 95%;
    margin: 0.8rem auto;
  }
}
  
  .logo {
    font-size: 1.8rem;
  }
  
  .hero {
    height: 50vh;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .section {
    padding: 1.5rem 0.8rem;
    margin: 0.8rem 0.3rem;
    scroll-margin-top: 50px;
  }
  
  .section h2 {
    font-size: 1.6rem;
  }
  
  .carousel-track img {
    width: 200px;
  }
  
  .carousel-3d {
    width: 320px;
    height: 240px;
    overflow: hidden;
    margin: 1.5em auto;
  }
  
  .carousel-3d-track {
    transition: transform 0.8s ease-out;
  }
  
  .carousel-3d-track img {
    width: 220px;
    height: 150px;
    transition: box-shadow 0.3s, opacity 0.3s, transform 0.8s ease-out;
  }
  
  .carousel-3d-prev,
  .carousel-3d-next {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
  
  .carousel-3d-prev {
    left: -40px;
  }
  
  .carousel-3d-next {
    right: -40px;
  }
  
  /* Vision section for small screens */
  .vision-text {
    font-size: 1rem;
    padding: 1.2rem;
  }
  
  .vision-text::before,
  .vision-text::after {
    font-size: 2rem;
    opacity: 0.2;
  }
  
  /* Contact form for small mobile */
  .contact {
    padding: 1rem 0.5rem;
  }
  
  .contact-content {
    margin: 0.3rem;
    gap: 0.8rem;
    flex-direction: column;
    max-width: none;
  }
  
  .contact-info-main {
    margin: 0.3rem auto;
    padding: 0.8rem;
    gap: 0.8rem;
    justify-content: center;
    text-align: center;
    max-width: 95%;
  }
  
  .contact-info-main .contact-item {
    font-size: 0.9rem;
  }
  
  .contact-info-main .contact-item i {
    font-size: 1.2rem;
  }
  
  .contact-info, .contact-form-container {
    padding: 0.8rem;
    max-width: 95%;
    width: auto;
    margin: 0.6rem auto;
  }
  
  .contact-form-container h3 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-group {
    margin-bottom: 0.6rem;
  }
  
  .form-group label {
    text-align: right;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.85rem;
    padding: 0.5rem;
    min-height: 2.5rem;
  }
  
  .contact-form textarea {
    min-height: 4.5rem;
  }
  
  .submit-btn {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    width: 100%;
    min-height: 2.5rem;
  }

/* Specific fixes for different mobile browsers */
/* Chrome Mobile */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 768px) {
  .header {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .sidebar.active {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* Firefox Mobile */
@-moz-document url-prefix() {
  @media (max-width: 768px) {
    .sidebar {
      background: rgba(0, 0, 0, 0.98) !important;
    }
    
    .logo {
      -moz-user-select: none;
      user-select: none;
    }
  }
}

/* Samsung Internet */
@media screen and (max-width: 768px) {
  .header {
    position: sticky;
  }
}

/* Extra small phones (below 360px) */
@media (max-width: 360px) {
  .header {
    padding: 0.5rem 0.6rem;
  }
  
  .logo {
    font-size: 1.4rem;
  }
  
  .hero {
    height: 40vh;
    min-height: 300px;
  }
  
  .hero-text h1 {
    font-size: 1.4rem;
    letter-spacing: 0.3px;
  }
  
  .hero-text p {
    font-size: 0.8rem;
  }
  
  .section {
    padding: 1rem 0.5rem;
    margin: 0.5rem 0.1rem;
  }
  
  .service-card {
    padding: 0.6rem;
  }
  
  .service-icon {
    width: 45px;
    height: 45px;
  }
  
  .service-icon i {
    font-size: 1.1rem;
  }
  
  .service-card h3 {
    font-size: 0.8rem;
  }
  
  .service-card p {
    font-size: 0.7rem;
  }
}

/* Extra small screens (up to 375px) */
@media (max-width: 375px) {
  .header {
    padding: 0.6rem 0.8rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  
  .language-selector {
    gap: 0.2rem;
    position: absolute;
    top: 0.6rem;
    left: 0.8rem;
    z-index: 1000;
  }
  
  .mobile-menu-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    z-index: 1001;
  }
  
  .lang-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    min-width: 50px;
    gap: 0.2rem;
  }
  
  .logo-center {
    flex: 1;
    text-align: center;
  }
  
  .logo {
    font-size: 1.6rem;
  }
  
  .hero {
    height: 45vh;
  }
  
  .hero-text h1 {
    font-size: 1.6rem;
    letter-spacing: 0.5px;
  }
  
  .hero-text p {
    font-size: 0.9rem;
  }
  
  .section {
    padding: 1.2rem 0.6rem;
    margin: 0.6rem 0.2rem;
  }
  
  .section h2 {
    font-size: 1.4rem;
  }
  
  .service-card {
    padding: 0.8rem;
    min-height: 180px;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
  }
  
  .service-icon i {
    font-size: 1.3rem;
  }
  
  .service-card h3 {
    font-size: 0.9rem;
  }
  
  .service-card p {
    font-size: 0.75rem;
  }
  
  .contact-info-main {
    margin: 0.3rem;
    padding: 0.6rem;
    gap: 0.6rem;
  }
  
  .contact-info-main .contact-item {
    font-size: 0.85rem;
  }
  
  .contact-info-main .contact-item i {
    font-size: 1.1rem;
  }
  
  .contact-form-container {
    padding: 0.6rem;
    max-width: 95%;
  }
  
  .contact-form-container h3 {
    font-size: 0.9rem;
  }
  
  .carousel-3d {
    width: 280px;
    height: 200px;
  }
  
  .carousel-3d-track img {
    width: 180px;
    height: 120px;
  }
  
  .carousel-3d-prev,
  .carousel-3d-next {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
  
  .carousel-3d-prev {
    left: -35px;
  }
  
  .carousel-3d-next {
    right: -35px;
  }
}

/* Print media query */
@media print {
  .carousel-3d-prev,
  .carousel-3d-next,
  .contact-form button {
    display: none;
  }
  
  .section {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
  
  .hero {
    height: auto !important;
    padding: 2rem !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-icon i,
  .contact-info-main .contact-item i {
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
  }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    height: 70vh;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-info-main {
    flex-direction: row;
    gap: 1.5rem;
  }
  
  .contact-info-main .contact-item {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* Extra small screens (320px-480px) */
@media (max-width: 480px) {
  .hero {
    height: 40vh;
    min-height: 250px;
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll !important;
    border-radius: 0;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
  }
  
  .hero-text p {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }
}

/* Landscape mobile screens */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    height: 50vh;
    min-height: 200px;
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll !important;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text p {
    font-size: 1.1rem;
  }
}

/* Browser Compatibility and Testing */
/* These rules ensure compatibility across all major browsers */

/* Chrome, Edge, Opera, Safari - Modern browsers */
@supports (display: grid) {
  .projects-grid {
    display: grid;
  }
}

/* Firefox specific optimizations */
@-moz-document url-prefix() {
  body {
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Safari specific fixes */
@supports (-webkit-appearance: none) {
  .project-card {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  input, button, textarea {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
  }
}

/* Samsung Internet Browser fixes */
@supports (-webkit-appearance: none) and (not (-ms-ime-align: auto)) {
  .project-card:hover {
    transform: none;
  }
}

/* Print styles */
@media print {
  .cookie-banner,
  .mobile-menu-btn,
  .sidebar {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .header {
    background: white !important;
    border-bottom: 1px solid #000;
  }
}

/* טאבלטים קטנים ומובייל גדול בפורטרט */
@media (max-width: 820px) and (orientation: portrait) {
  .mobile-menu-btn {
    display: block !important;
  }
  
  .sidebar {
    display: none;
  }
  
  .sidebar.open {
    display: flex !important;
  }
  
  .contact-form-container {
    padding: 1rem;
    max-width: 95%;
    margin: 0.8rem auto;
  }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px; /* מונע זום באייפון */
    min-height: 2.3rem;
    padding: 0.6rem;
  }
  
  .contact-form textarea {
    min-height: 4rem;
  }
}

/* תיקון לכל המכשירים הקטנים */
@media (max-width: 991px) {
  .mobile-menu-btn {
    display: block !important;
    /* 🔥 תיקון תנועה בהובר במובייל */
    transform: none !important;
  }
  
  /* 🔥 ביטול אפקטי hover במובייל לכפתור ההמבורגר */
  .mobile-menu-btn:hover,
  .mobile-menu-btn.active {
    transform: none !important;
  }
  
  .sidebar {
    position: static;
    display: none;
  }
  
  .sidebar.open {
    position: fixed;
    display: flex !important;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(248,246,240,0.98);
    backdrop-filter: blur(15px);
    z-index: 1001;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 4rem;
  }
  
  .contact-form-container {
    margin: 0.8rem auto;
    max-width: 95%;
  }
}

/* Modern Mobile Navigation Optimizations */

/* iPhone X/11/12/13/14/15 - Notch and Dynamic Island compatibility */
@media (min-width: 375px) and (max-width: 430px) and (min-height: 800px) {
  .top-bar {
    padding-top: env(safe-area-inset-top, 8px);
    min-height: calc(44px + env(safe-area-inset-top, 8px));
  }
  
  .navbar {
    padding-top: env(safe-area-inset-top, 8px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  .mobile-menu-btn {
    top: calc(env(safe-area-inset-top, 8px) + 8px);
    min-width: 48px;
    min-height: 48px;
    font-size: 1.8rem;
  }
  
  .sidebar {
    padding-top: calc(env(safe-area-inset-top, 8px) + 4rem);
  }
}

/* Touch-friendly improvements for modern mobiles */
@media (max-width: 480px) and (hover: none) and (pointer: coarse) {
  .service-card {
    min-height: 160px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transform: none;
    transition: all 0.2s ease;
  }
  
  .service-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  
  .lang-btn,
  .mobile-lang-btn {
    min-width: 48px;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 12px;
  }
  
  .contact-form button {
    min-height: 52px;
    font-size: 1.1rem;
    border-radius: 12px;
    margin-top: 1rem;
  }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Landscape mode optimizations for mobile phones */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
  .hero {
    height: 85vh;
    min-height: 300px;
    margin-bottom: 1rem;
  }
  
  .hero-content {
    padding: 0 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-description {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }
  
  .hero-experience {
    font-size: 0.8rem;
  }
  
  .top-bar {
    padding: 4px 1rem;
    font-size: 0.8rem;
  }
  
  .navbar {
    padding: 0.5rem 1rem;
  }
}

/* 🔥 שיפורי נגישות - הגדלת פונטים במובייל */
@media (max-width: 768px) {
  /* שיפור פונטים במובייל לקריאות טובה יותר */
  .section h2 {
    font-size: 1.8rem !important; /* היה 2rem - קטן אותו מעט למובייל */
  }
  
  .service-card h3 {
    font-size: 1.3rem !important; /* היה 1.4rem - שמור יחסי */
  }
  
  .service-card p {
    font-size: 1.1rem !important; /* היה 1rem - הגדל לקריאות */
    line-height: 1.7 !important;
  }
  
  .section p {
    font-size: 1.1rem !important; /* היה 1rem - הגדל לקריאות */
    line-height: 1.7 !important;
  }
  
  #about p {
    font-size: 1.2rem !important; /* היה 1.1rem - הגדל עוד יותר */
    line-height: 1.8 !important;
  }
  
  /* שיפור כפתורי השפה */
  .mobile-lang-btn {
    min-width: 48px !important; /* מינימום 44px + padding */
    min-height: 48px !important;
    font-size: 1rem !important;
    padding: 0.8rem 1rem !important;
  }
  
  .mobile-menu-btn {
    min-width: 48px !important;
    min-height: 48px !important;
    font-size: 1.2rem !important;
    transform: none !important; /* 🔥 תיקון: הסרת הזזה במובייל */
  }
  
  .mobile-menu-btn:hover {
    transform: none !important; /* 🔥 תיקון: ביטול הזזה על hover במובייל */
  }
}

/* 🔥 התאמות מקיפות לכל סוגי המסכים */

/* 🔥 בדיקות מעמיקות - וידוא שכל האלמנטים נראים בכל המסכים */

/* 📱 טלפונים קטנים (320px-480px) */
@media (max-width: 480px) {
  /* 🔥 וידוא שורה עליונה */
  .top-bar {
    display: block !important;
    font-size: 0.75rem;
    padding: 0.3rem 0;
  }
  
  .top-bar-content {
    padding: 0 0.5rem;
    flex-direction: row;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .top-bar-text {
    font-size: 0.7rem;
    display: none;
  }
  
  .top-bar-hours {
    order: 2;
    font-size: 0.7rem;
  }
  
  .top-phone-link {
    font-size: 0.8rem;
  }
}

/* Gallery Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  background-color: #ffffff;
  margin: 2% auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close:hover,
.close:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

#modal-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  display: block;
  border-radius: 12px 12px 0 0;
}

.modal-info {
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 0 0 12px 12px;
}

.modal-info h3 {
  font-family: 'Heebo', 'Rubik', sans-serif;
  color: #2d3748;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

.modal-info p {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

#modal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

#modal-meta div {
  color: #6b7280;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: rgba(107, 114, 128, 0.1);
  border-radius: 8px;
  border-right: 4px solid #6b7280;
}

/* Project Gallery Styles */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

.project-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.view-btn {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.view-btn:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.project-info {
  padding: 1.5rem;
  text-align: center;
}

.project-info h3 {
  font-family: 'Heebo', 'Rubik', sans-serif;
  color: #2d3748;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-category {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-description {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.project-client,
.project-date {
  color: #6b7280;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(107, 114, 128, 0.2);
}

.project-client:last-child,
.project-date:last-child {
  border-bottom: none;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 5% auto;
  }
  
  .modal-info {
    padding: 1.5rem;
  }
  
  .modal-info h3 {
    font-size: 1.4rem;
  }
  
  .modal-info p {
    font-size: 1rem;
  }
  
  #modal-image {
    max-height: 50vh;
  }
  
  .close {
    top: 10px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .project-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .project-image {
    height: 200px;
  }
  
  .view-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .project-info {
    padding: 1rem;
  }
  
  .project-info h3 {
    font-size: 1.2rem;
  }
  
  .project-description {
    font-size: 0.9rem;
  }
}

/* Filter Buttons Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  animation: fadeIn 0.5s ease-in-out;
}

/* End of Gallery Styles */

/* 🔹 מובייל קטן (320px-480px) */
@media (max-width: 480px) {
  .top-bar {
    font-size: 0.65rem;
    padding: 0.2rem 0;
  }
  
  .top-bar-content {
    padding: 0 0.3rem;
    gap: 0.3rem;
    flex-direction: row; /* 🔥 הכל בשורה אחת */
    justify-content: space-between;
    align-items: center;
  }
  
  /* 🔥 וידוא כפתורי שפה במובייל */
  .language-selector {
    display: none !important; /* 🔥 הסתרה במובייל */
  }
  
  .mobile-language-selector {
    display: block !important;
    margin-top: 2rem;
    text-align: center;
  }
  
  .mobile-lang-btn {
    display: block !important;
    margin: 0.5rem 0;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    min-width: 48px;
    min-height: 48px;
  }
  
  /* 🔥 וידוא ניווט במובייל */
  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(248,246,240,0.98);
    backdrop-filter: blur(15px);
    z-index: 1001;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 4rem;
  }
  
  .sidebar.open {
    display: flex !important;
  }
  
  /* 🔥 וידוא HERO במובייל */
  .hero {
    margin-top: 1rem; /* 🔥 מרווח מההמבורגר */
    height: 35vh;
    min-height: 250px;
  }
  
  .hero h1 {
    font-size: 1.8rem !important;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 1rem !important;
    line-height: 1.5;
  }
  
  .service-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .service-card h3 {
    font-size: 1.1rem !important;
    line-height: 1.4;
    margin-bottom: 0.8rem;
  }
  
  .service-card p {
    font-size: 0.9rem !important;
    line-height: 1.5;
    text-align: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem; /* 🔥 ודא מרווח מעל */
  }
  
  /* 🔥 הגנות נוספות למובייל */
  .section {
    padding: 2rem 1rem;
    overflow-x: hidden; /* 🔥 מונע גלילה אופקית */
  }
  
  .service-card {
    word-wrap: break-word; /* 🔥 שבירת מילים ארוכות */
    overflow-wrap: break-word;
    hyphens: auto; /* 🔥 מקפים אוטומטיים */
  }
}

/* 🔹 טאבלטים קטנים (481px-768px) */
@media (min-width: 481px) and (max-width: 768px) {
  /* 🔥 וידוא כל האלמנטים נראים */
  .top-bar {
    display: block !important;
    font-size: 0.75rem;
  }
  
  .language-selector {
    display: none !important; /* 🔥 הסתרה בטאבלט */
  }
  
  .mobile-language-selector {
    display: block !important;
  }
  
  .hero {
    height: 40vh;
    min-height: 280px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .service-card {
    padding: 1.3rem;
  }
  
  .service-card h3 {
    font-size: 1.2rem;
    line-height: 1.4;
  }
  
  .service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

/* 🔷 טאבלטים גדולים ומסכי מחשב קטנים (769px-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* 🔥 כאן כפתורי השפה צריכים להופיע בheader */
  .language-selector {
    display: flex !important;
    gap: 0.5rem;
  }
  
  .lang-btn {
    display: block !important;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .mobile-language-selector {
    display: none !important; /* 🔥 הסתרה כי יש כפתורים בheader */
  }
  
  /* 🔥 המבורגר רק עד 768px */
  .mobile-menu-btn {
    display: none !important;
  }
  
  /* 🔥 ניווט דסקטופ צריך להופיע */
  .nav {
    display: flex !important;
  }
  
  .hero {
    height: 45vh;
    min-height: 320px;
  }
  
  .service-card {
    padding: 1.4rem;
  }
  
  .service-card h3 {
    font-size: 1.3rem;
    line-height: 1.5;
  }
  
  .service-card p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
  }
}

/* מחשבים ניידים (1025px-1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card h3 {
    font-size: 1.4rem;
    line-height: 1.5;
  }
  
  .service-card p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* מסכי מחשב (1367px-1920px) */
@media (min-width: 1367px) and (max-width: 1920px) {
  .service-card {
    padding: 1.6rem;
  }
  
  .service-card h3 {
    font-size: 1.5rem;
    line-height: 1.5;
  }
  
  .service-card p {
    font-size: 1.1rem;
    line-height: 1.7;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
  }
}

/* מסכים גדולים ותצוגות 4K (1921px+) */
@media (min-width: 1921px) {
  .service-card {
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .service-card h3 {
    font-size: 1.7rem;
    line-height: 1.5;
  }
  
  .service-card p {
    font-size: 1.2rem;
    line-height: 1.8;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .section {
    padding: 4rem 2rem;
  }
}

/* Modern Mobile Performance Optimizations */
@media (max-width: 480px) {
  /* Smooth scrolling for mobile */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Improve scrolling performance */
    overscroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
  }
  
  /* Better rendering performance */
  .hero,
  .service-card,
  .gallery-card,
  .project-card {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: auto;
    /* Use auto instead of transform to save memory */
  }
  
  /* Optimize transforms only when needed */
  .service-card:hover,
  .project-card:hover {
    will-change: transform;
  }
  
  .service-card:not(:hover),
  .project-card:not(:hover) {
    will-change: auto;
  }
  
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* iOS Safari specific fixes */
  .hero-content {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Better tap targets */
  button,
  .lang-btn,
  .mobile-lang-btn,
  .service-card {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
}

/* PWA and full-screen optimizations */
@media (display-mode: standalone) {
  .top-bar {
    padding-top: env(safe-area-inset-top, 20px);
  }
  
  .navbar {
    padding-top: env(safe-area-inset-top, 10px);
  }
}

/* Dark mode support for modern mobiles */
@media (prefers-color-scheme: dark) and (max-width: 480px) {
  .hero {
    background: linear-gradient(
      135deg, 
      #1a1a1a 0%,
      #2d2d2d 10%,
      #3a3a3a 20%,
      #4a4a4a 30%, 
      #5a5a5a 40%,
      #6a6a6a 55%,
      #7a7a7a 70%,
      #8a8a8a 85%,
      #9a9a9a 100%
    );
  }
  
  .hero-content h1,
  .hero-subtitle,
  .hero-description {
    color: #ffffff;
    text-shadow: 
      0 2px 4px rgba(0, 0, 0, 0.5),
      0 4px 8px rgba(0, 0, 0, 0.3);
  }
}

/* Mobile Navigation - REMOVED DUPLICATE STYLES */
}

/* Ensure all three language buttons are visible */
.mobile-language-buttons .mobile-lang-btn {
  flex: none;
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 1;
}

.mobile-lang-btn {
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 8px;
  color: #2c2c2c;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  line-height: 1.2;
}

.mobile-lang-btn:hover,
.mobile-lang-btn:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: #d4572a;
  color: #d4572a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(212, 87, 42, 0.15);
}

.mobile-lang-btn.active {
  background: linear-gradient(135deg, #d4572a 0%, #f97316 100%);
  border-color: #d4572a;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(212, 87, 42, 0.3);
}

.mobile-lang-btn.active:hover {
  background: linear-gradient(135deg, #b8491f 0%, #ea580c 100%);
  transform: translateY(-1px);
}

/* Mobile Navigation Responsive Design - Clean Version */

/* Default mobile styles (all mobile devices) */
@media (max-width: 768px) {
  .mobile-nav-content {
    padding: 3rem 1.5rem 1.5rem;
    height: calc(100vh - 1rem);
  }
  
  .mobile-nav-menu a {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }
  
  .mobile-nav-menu li {
    margin-bottom: 0.5rem;
  }
  
  .mobile-lang-btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
  }
  
  .mobile-language-title {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }
  
  .mobile-language-buttons {
    gap: 0.4rem;
    flex-direction: row;
    align-items: center;
  }
  
  .mobile-language-section {
    padding: 0.8rem 0 0.8rem 0;
    margin-top: 0.8rem;
    min-height: 120px;
  }
}

/* Small screens */
@media (max-width: 480px) {
  .mobile-nav-content {
    padding: 2.5rem 1.2rem 1.2rem;
    height: calc(100vh - 1rem);
  }
  
  .mobile-nav-menu a {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .mobile-nav-menu li {
    margin-bottom: 0.4rem;
  }
  
  .mobile-lang-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }
  
  .mobile-language-title {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .mobile-language-buttons {
    gap: 0.3rem;
    flex-direction: row;
    align-items: center;
  }
  
  .mobile-language-section {
    padding: 0.6rem 0 0.6rem 0;
    margin-top: 0.6rem;
    min-height: 110px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .mobile-nav-content {
    padding: 2rem 1rem 1rem;
    height: calc(100vh - 0.8rem);
  }
  
  .mobile-nav-menu a {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 6px;
  }
  
  .mobile-nav-menu li {
    margin-bottom: 0.3rem;
  }
  
  .mobile-lang-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    min-height: 32px;
  }
  
  .mobile-language-title {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
  }
  
  .mobile-language-buttons {
    gap: 0.25rem;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }
  
  .mobile-language-section {
    padding: 0.5rem 0 0.5rem 0;
    margin-top: 0.5rem;
    min-height: 90px;
  }
}

/* Extra small screens */
@media (max-width: 320px) {
  .mobile-nav-content {
    padding: 1.8rem 0.8rem 0.8rem;
    height: calc(100vh - 0.6rem);
  }
  
  .mobile-nav-menu a {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 5px;
  }
  
  .mobile-nav-menu li {
    margin-bottom: 0.25rem;
  }
  
  .mobile-lang-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
    min-height: 28px;
  }
  
  .mobile-language-title {
    font-size: 0.65rem;
    margin-bottom: 0.35rem;
  }
  
  .mobile-language-buttons {
    gap: 0.2rem;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }
  
  .mobile-language-section {
    padding: 0.4rem 0 0.4rem 0;
    margin-top: 0.4rem;
    min-height: 80px;
  }
}

/* Gallery Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  animation: fadeInModal 0.3s ease-in-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  background-color: #ffffff;
  margin: 2% auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideInModal 0.3s ease-out;
}

@keyframes slideInModal {
  from { 
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close:hover,
.close:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

#modal-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  display: block;
  border-radius: 12px 12px 0 0;
}

.modal-info {
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 0 0 12px 12px;
}

.modal-info h3 {
  font-family: 'Heebo', 'Rubik', sans-serif;
  color: #2d3748;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

.modal-info p {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

#modal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

#modal-meta div {
  color: #6b7280;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: rgba(107, 114, 128, 0.1);
  border-radius: 8px;
  border-right: 4px solid #6b7280;
}

/* 🔹 מובייל קטן (320px-480px) */
@media (max-width: 480px) {
  .top-bar {
    font-size: 0.65rem;
    padding: 0.2rem 0;
  }
  
  .top-bar-content {
    padding: 0 0.3rem;
    gap: 0.3rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .close {
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
  
  .view-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}
/* הסתרת נקודות (pagination) של קרוסלות לוגואים במובייל */
@media (max-width: 480px) {
  .logos-swiper .swiper-pagination,
  .equipment-swiper .swiper-pagination {
    display: none !important;
  }
}
/* תיקון מרכוז האתר במסכים גדולים לכל הדפדפנים */
body {
  max-width: 2200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  width: 100% !important;
  display: block !important;
}
.container,
.top-bar-content,
.header-content,
.section,
.hero-section,
.services-section,
.projects-section,
.contact-section,
.footer {
  max-width: 2200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
}
@media (min-width: 1920px) {
  body {
    max-width: 2200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    display: block !important;
  }
  .container,
  .top-bar-content,
  .header-content,
  .section,
  .hero-section,
  .services-section,
  .projects-section,
  .contact-section,
  .footer {
    max-width: 2200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }
}
@media (min-width: 2560px) {
  body {
    max-width: 2600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    display: block !important;
  }
  .container,
  .top-bar-content,
  .header-content,
  .section,
  .hero-section,
  .services-section,
  .projects-section,
  .contact-section,
  .footer {
    max-width: 2600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }
}