:root {
  /* פלטת צבעים משופרת */
  --primary-dark: #0a1130;      /* רקע כהה מאוד לכותרת */
  --secondary-dark: #102050;    /* רקע כהה לקטעים משניים */
  --content-bg: #f5f8ff;        /* רקע בהיר לתוכן */
  --accent-blue: #3b82f6;       /* צבע הדגשה - כחול בהיר */
  --accent-light-blue: #7eb6ff; /* צבע הדגשה משני - כחול בהיר יותר */
  --text-light: #ffffff;        /* טקסט בהיר */
  --text-dark: #1e293b;         /* טקסט כהה */
  --card-bg: rgba(255, 255, 255, 0.07); /* רקע כרטיסיות שקוף */

  /* תוספת משתנים עבור ריווח עקבי */
  --spacing-xs: 0.25rem;  /* 4px */
  --spacing-sm: 0.5rem;   /* 8px */
  --spacing-md: 1rem;     /* 16px */
  --spacing-lg: 2rem;     /* 32px */
  --spacing-xl: 4rem;     /* 64px */

  /* תוספת משתנים עבור צללים */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15), 0 5px 10px rgba(0,0,0,0.05);

  /* תוספת משתנים עבור עיגולי קצוות */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 30px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* למניעת הסתרת תוכן מתחת לכותרת הקבועה */
}

body {
  font-family: 'Heebo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--content-bg);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

/* כותרת (Header) - עם שיפורים */
header {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  box-shadow: var(--shadow-md);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 5px 0;
  box-shadow: var(--shadow-lg);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xs) 0;
}

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

.logo-image {
  height: 40px;
  width: auto;
  max-width: 150px;
  transition: all 0.3s ease;
}

header.scrolled .logo-image {
  height: 35px;
}

.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  padding: var(--spacing-xs);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-blue);
  transition: width 0.3s;
}

.nav-links a:hover, .nav-links a:focus {
  color: var(--accent-light-blue);
  outline: none;
}

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

/* כפתור תפריט המבורגר - עם שיפורי נגישות */
.menu-toggle {
  display: none;
  font-size: 24px;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1002;
}

.menu-toggle:focus {
  outline: 2px solid var(--accent-light-blue);
  border-radius: var(--radius-sm);
}

/* תפריט למובייל - עם אנימציות חלקות יותר */
.mobile-menu {
  position: fixed;
  top: 60px;
  right: 0;
  left: 0;
  background: var(--primary-dark);
  padding: var(--spacing-lg);
  z-index: 999;
  box-shadow: var(--shadow-lg);
  transform: translateY(-150%);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  max-height: 80vh;
  overflow-y: auto;
}

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

.mobile-menu-links {
  list-style: none;
}

.mobile-menu-links li {
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.mobile-menu-links a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  font-size: 18px;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.mobile-menu-links a:hover, .mobile-menu-links a:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-light-blue);
  outline: none;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-blue);
  color: white;
  padding: 8px;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* Hero Section - עיצוב כהה משופר */
.hero {
  margin-top: 60px; /* מרווח מהכותרת הקבועה */
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* הסרת נקודות או אפקטים מהרקע */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  z-index: -1; /* שימוש ב-z-index שלילי כדי לוודא שזה מתחת לתוכן */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, rgba(10, 17, 48, 0) 70%);
  pointer-events: none;
}

.hero-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(123, 182, 255, 0.7); /* צבע בהיר יותר */
  border-radius: 50%;
  opacity: 0.5;
  animation: floatParticle 15s linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-50px) scale(1); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

.hero h1 .highlight {
  color: var(--accent-light-blue);
  font-weight: bold;
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(45deg, var(--accent-blue), #0049b7);
  color: white;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.cta-button:hover, .cta-button:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
  outline: none;
}

/* מדדי חדשנות - משופרים */
.innovation-metrics {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: var(--spacing-xl) 0 var(--spacing-lg);
  flex-wrap: wrap;
}

.metric-item {
  text-align: center;
  min-width: 150px;
  padding: var(--spacing-sm);
}

.metric-number {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: bold;
  color: var(--accent-light-blue);
  margin-bottom: var(--spacing-sm);
  line-height: 1;
}

.metric-label {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: rgba(255, 255, 255, 0.9);
}

/* שירותים - עיצוב כהה משופר */
.services-section {
  background: linear-gradient(145deg, var(--secondary-dark) 0%, #193070 100%);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  color: white;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: var(--spacing-xl);
  color: var(--secondary-dark);
  font-weight: 500;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: var(--spacing-lg);
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
  font-size: 35px;
  color: var(--accent-light-blue);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.service-card h3 {
  color: white;
  margin-bottom: var(--spacing-md);
  text-align: center;
  font-size: 24px;
}

.service-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.service-card ul {
  list-style: none;
  margin-top: auto;
}

.service-card li {
  margin-bottom: var(--spacing-sm);
  padding-right: 25px;
  position: relative;
  color: rgba(255, 255, 255, 0.7);
}

.service-card li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--accent-light-blue);
  position: absolute;
  right: 0;
}

/* טכנולוגיות - עיצוב בהיר משופר */
.tech-section {
  background-color: white;
  padding: var(--spacing-xl) 0;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.tech-section .section-title {
  color: var(--secondary-dark);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.tech-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s;
  height: 100%;
}

.tech-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.3);
}

.tech-icon {
  font-size: 40px;
  color: var(--accent-blue);
  margin-bottom: var(--spacing-lg);
}

.tech-item h3 {
  color: var(--secondary-dark);
  margin-bottom: var(--spacing-sm);
  font-size: 20px;
  font-weight: bold;
}

.tech-item p {
  color: var(--text-dark);
}

/* מקטע הצוות שלנו - משופר */
.team-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(145deg, var(--secondary-dark) 0%, #193070 100%);
  color: white;
}

.team-section .section-title {
  color: white;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.team-member-box {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  width: calc(25% - 20px);
  min-width: 220px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.team-member-box:hover, .team-member-box:focus-within {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.3);
}

.team-icon {
  font-size: 28px;
  color: var(--accent-light-blue);
  margin-bottom: var(--spacing-md);
  transition: transform 0.3s ease;
}

.team-member-box:hover .team-icon {
  transform: scale(1.2);
}

.team-title {
  color: white;
  font-size: 18px;
  font-weight: 500;
}

/* סגנון למקטע "למה אנחנו" - משופר */
.about-section {
  background: linear-gradient(135deg, #101c40 0%, #162650 100%);
  padding: var(--spacing-xl) 0;
  position: relative;
  color: white;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.15'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' transform='scale(1.5)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-repeat: repeat;
  background-size: 10%;
  pointer-events: none;
}

.about-section .section-title {
  color: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: var(--spacing-xl);
}

.benefit-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

.benefit-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.2);
}

.benefit-icon {
  font-size: 40px;
  color: var(--accent-light-blue);
  margin-bottom: var(--spacing-lg);
}

.benefit-item h3 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 20px;
}

.benefit-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.6;
}

/* סגנון למקטע יצירת הקשר - משופר עם טופס */
.contact-section {
  background-color: var(--content-bg);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.contact-card {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xl);
  max-width: 800px;
  margin: 0 auto;
}

.contact-title {
  color: var(--secondary-dark);
  margin-bottom: var(--spacing-lg);
  font-size: 28px;
}

.contact-text {
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
  font-size: 18px;
}

/* הוספת טופס יצירת קשר */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  text-align: right;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--secondary-dark);
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  font-family: 'Heebo', sans-serif;
  transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

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

.contact-email {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--spacing-lg);
  color: var(--secondary-dark);
  font-size: 22px;
  font-weight: 500;
}

.contact-email i {
  margin-left: var(--spacing-sm);
  color: var(--accent-blue);
  font-size: 24px;
}

.contact-button {
  display: inline-block;
  background: linear-gradient(45deg, var(--accent-blue), #0049b7);
  color: white;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: bold;
  margin-top: var(--spacing-lg);
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  border: none;
  cursor: pointer;
}

.contact-button:hover, .contact-button:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
  outline: none;
}

/* הוספת מקטע לקוחות ממליצים */
.testimonials-section {
  background-color: white;
  padding: var(--spacing-xl) 0;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  background-color: var(--content-bg);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 0 var(--spacing-md);
  text-align: center;
}

.testimonial-quote {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 60px;
  color: var(--accent-blue);
  opacity: 0.3;
  position: absolute;
  top: -30px;
  right: -10px;
}

.testimonial-author {
  font-weight: 500;
  color: var(--secondary-dark);
}

.testimonial-role {
  font-size: 14px;
  color: var(--accent-blue);
  margin-top: var(--spacing-xs);
}

/* מקטע פוטר */
footer {
  background: var(--primary-dark);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  max-width: 120px;
  margin-bottom: var(--spacing-lg);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover, .footer-links a:focus {
  color: var(--accent-light-blue);
  outline: none;
}

.footer-social {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s;
}

.social-icon:hover, .social-icon:focus {
  background: var(--accent-blue);
  transform: translateY(-3px);
  outline: none;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* כפתור חזרה למעלה */
.back-to-top {
  position: fixed;
  bottom: var(--spacing-lg);
  left: var(--spacing-lg);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
  z-index: 999;
}

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

.back-to-top:hover, .back-to-top:focus {
  background: var(--primary-dark);
  transform: translateY(-3px);
  outline: none;
}

/* מצב כהה/בהיר */
.theme-toggle {
  position: fixed;
  top: 80px;
  left: var(--spacing-lg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.theme-toggle:hover, .theme-toggle:focus {
  background: var(--primary-dark);
  transform: translateY(-3px);
  outline: none;
}

/* מצב כהה - סגנונות */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .tech-section,
body.dark-mode .testimonials-section {
  background-color: #1a1a1a;
}

body.dark-mode .tech-item {
  background-color: #222;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .tech-item h3,
body.dark-mode .section-title,
body.dark-mode .contact-title,
body.dark-mode .testimonial-author,
body.dark-mode .form-label {
  color: #e0e0e0;
}

body.dark-mode .tech-item p,
body.dark-mode .testimonial-quote,
body.dark-mode .contact-text {
  color: #b0b0b0;
}

body.dark-mode .contact-card {
  background-color: #222;
}

body.dark-mode .form-input,
body.dark-mode .form-textarea {
  background-color: #333;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

body.dark-mode .testimonial-slide {
  background-color: #222;
}

/* התאמות למסך קטן - משופרות */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 var(--spacing-sm);
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .logo-image {
    height: 35px;
  }

  .hero {
    margin-top: 60px;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
    padding: 0 var(--spacing-md);
  }

  .innovation-metrics {
    gap: var(--spacing-lg);
  }

  .metric-number {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: var(--spacing-lg);
  }

  .services-grid,
  .tech-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .team-member-box {
    width: 100%;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .theme-toggle,
  .back-to-top {
    width: 35px;
    height: 35px;
  }
}

/* התאמות למסכים בינוניים */
@media (min-width: 769px) and (max-width: 1024px) {
  .team-member-box {
    width: calc(33.333% - 20px);
  }
}

/* אנימציות נוספות */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* תוספת לקובץ styles.css - תיקון לכותרות במצב כהה */

/* מצב כהה - שיפור נראות כותרות */
body.dark-mode .section-title {
  color: #ffffff; /* צבע לבן בולט לכותרות במצב כהה */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* הוספת צל לשיפור הקריאות */
}

/* שיפור ניגודיות במצב כהה */
body.dark-mode .contact-section .section-title,
body.dark-mode .testimonials-section .section-title,
body.dark-mode .tech-section .section-title {
  color: var(--accent-light-blue); /* שימוש בצבע כחול בהיר יותר לכותרות במקטעים מסוימים */
}

/* תיקונים נוספים למצב כהה */
body.dark-mode .contact-card {
  background-color: #222;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .contact-title,
body.dark-mode .form-label {
  color: #ffffff;
}

/* הסתרת המידע הכפול של אימייל ולחצן נוסף בטופס יצירת קשר */
.contact-email,
.contact-email + .contact-button {
  display: none;
}
/* סגנונות נוספים לטופס צור קשר */

/* הודעות שגיאה והצלחה */
.error-message,
.success-message {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
  text-align: center;
}

.error-message {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.success-message {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

/* סגנונות שדות שגויים */
.form-input.error,
.form-textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/* מתאים גם למצב חשוך */
body.dark-mode .error-message {
  background-color: rgba(220, 53, 69, 0.2);
  color: #ff6b6b;
}

body.dark-mode .success-message {
  background-color: rgba(40, 167, 69, 0.2);
  color: #5cdb95;
}

/* סגנון לחצן במצב טעינה */
.contact-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* סגנונות לאזור ה-CAPTCHA */
.cf-turnstile {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

/* מצב כהה בטופס */
body.dark-mode .form-input,
body.dark-mode .form-textarea {
  background-color: #333;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .form-input:focus,
body.dark-mode .form-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* שיפור נראות טופס בניידים */
@media (max-width: 768px) {
  .cf-turnstile {
    transform: scale(0.85);
    transform-origin: center;
  }
}

/* תיקוני תצוגת טופס למובייל */

/* הגדרות כלליות לטופס במובייל */
@media screen and (max-width: 767px) {
  .contact-form {
    width: 100%;
    padding: 15px;
  }

  .form-group {
    margin-bottom: 15px;
    width: 100% !important; /* וידוא שכל השדות תופסים את מלוא הרוחב */
  }

  .form-input,
  .form-textarea,
  select.form-input {
    width: 100%;
    padding: 12px;
    font-size: 16px; /* גודל טקסט המותאם למגע (מינימום 16px למניעת זום אוטומטי) */
    border-radius: 8px;
  }

  .form-textarea {
    min-height: 100px; /* גובה מינימלי לשדה טקסט */
  }

  /* שיפור מראה התוויות */
  .form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
  }

  /* שיפור מראה כפתור השליחה */
  .contact-button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
  }

  /* הוספת ריווח בין שדות */
  .form-group + .form-group {
    margin-top: 20px;
  }

  /* שיפור מראה הודעות שגיאה/הצלחה */
  .form-status {
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
  }

  .error-message,
  .success-message {
    padding: 10px;
    border-radius: 8px;
  }

  /* התאמת מרווחים בתוך כרטיס הטופס */
  .contact-card {
    padding: 20px 15px;
  }

  /* התאמת Turnstile */
  .cf-turnstile {
    transform: scale(0.9);
    transform-origin: left center;
    margin-bottom: 10px;
  }
}

/* תיקון ספציפי לשדות שהיו אמורים להיות זה לצד זה */
@media screen and (max-width: 767px) {
  .contact-form .form-group {
    width: 100% !important;
    float: none;
    padding-left: 0;
    padding-right: 0;
  }
}

/* התאמת גובה המקטע לתצוגת מובייל */
@media screen and (max-width: 767px) {
  .contact-section {
    padding: 40px 0;
  }

  .contact-section .section-title {
    margin-bottom: 20px;
  }

  .contact-text {
    margin-bottom: 25px;
  }
}

/* תיקונים נוספים לתצוגת מובייל */
@media screen and (max-width: 480px) {
  .contact-form {
    padding: 10px 0;
  }

  .form-input,
  .form-textarea,
  select.form-input {
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    -webkit-appearance: none; /* תיקון להופעה של שדות ב-iOS */
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
    width: auto;
  }

  .cf-turnstile {
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
}
/* סגנון עמיד וחזק יותר להערות שוליים - פתרון לאחר deploy */
.tech-terms-notes {
  background-color: rgba(10, 17, 48, 0.8) !important; /* רקע כהה יותר עם דגש !important */
  border-radius: 10px !important;
  padding: 20px 25px !important;
  margin-top: 30px !important;
  margin-bottom: 20px !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border: 1px solid rgba(123, 182, 255, 0.4) !important; /* גבול בולט יותר */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  position: relative !important;
  z-index: 5 !important; /* שיפור מיקום שכבות */
}

/* הוספת חציצה נוספת לפני ואחרי ההערות */
.tech-terms-notes::before {
  content: "";
  display: block;
  height: 10px;
}

.tech-terms-notes::after {
  content: "";
  display: block;
  height: 10px;
}

/* שיפור טקסט הערות */
.tech-terms-notes p {
  color: #ffffff !important; /* שימוש בצבע מלא במקום rgba לתאימות טובה יותר */
  font-size: 1rem !important; /* גודל טקסט גדול יותר ויציב */
  margin-bottom: 12px !important;
  line-height: 1.6 !important;
  text-align: right !important; /* וידוא יישור לימין */
  font-family: 'Heebo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important; /* וידוא גופן */
}

.tech-terms-notes p:last-child {
  margin-bottom: 0 !important;
}

/* שיפור מונחים מודגשים */
.tech-terms-notes strong {
  color: #7cb6ff !important; /* כחול בהיר */
  font-weight: 700 !important; /* הדגשה חזקה יותר */
}

/* שיפור כוכביות */
.tech-terms-notes sup {
  color: #7cb6ff !important;
  margin-right: 3px !important;
  font-size: 80% !important; /* גודל גדול יותר לכוכביות */
  vertical-align: super !important;
  font-weight: 700 !important; /* עיבוי הכוכביות */
  display: inline-block !important; /* מיקום טוב יותר */
  line-height: 1 !important;
}

/* שיפור המונחים בהודעה הראשית */
.hero p .term {
  white-space: nowrap !important;
  font-weight: 500 !important;
  display: inline-block !important; /* למניעת שבירה */
  padding: 0 2px !important; /* מרווח נוסף */
}

.hero p .term sup {
  font-size: 80% !important;
  vertical-align: super !important;
  color: #7cb6ff !important;
  font-weight: 700 !important;
  margin-right: 1px !important;
  margin-left: 1px !important;
  display: inline-block !important;
  line-height: 1 !important;
}

/* התאמה למובייל עם דגש על עמידות */
@media (max-width: 768px) {
  .tech-terms-notes {
    padding: 15px 20px !important;
    margin-top: 25px !important;
    margin-bottom: 15px !important;
  }

  .tech-terms-notes p {
    font-size: 0.95rem !important; /* גודל טקסט גדול יותר במובייל */
    margin-bottom: 10px !important;
  }

  /* התאמה נוספת עבור מסכים קטנים מאוד */
  @media (max-width: 480px) {
    .tech-terms-notes {
      padding: 12px 15px !important;
    }

    .tech-terms-notes p {
      font-size: 0.9rem !important;
    }
  }
}

/* מבטיח שהמסגרת הכחולה תהיה גלויה */
html .tech-terms-notes,
body .tech-terms-notes {
  border: 1px solid rgba(123, 182, 255, 0.4) !important;
}

/* אלטרנטיבה לפונקציית backdrop-filter במקרה שזה לא נתמך בכל הדפדפנים */
@supports not (backdrop-filter: blur(5px)) {
  .tech-terms-notes {
    background-color: rgba(10, 17, 48, 0.9) !important; /* רקע כהה יותר במקרה שאין תמיכה ב-backdrop-filter */
  }
}

/* כמה תיקונים ספציפיים לרנדור נכון */
.tech-terms-notes,
.tech-terms-notes * {
  box-sizing: border-box !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

body.focus-mode *:focus {
  outline: 4px solid #0066cc !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px white, 0 0 8px 4px rgba(0, 102, 204, 0.6) !important;
  animation: focus-pulse 1.5s infinite !important;
}

@keyframes focus-pulse {
  0% { outline-color: #0066cc; }
  50% { outline-color: #4d94ff; }
  100% { outline-color: #0066cc; }
}
