/* הגדרות צבעים */
:root {
  --primary-color: #ff00bf;
  --secondary-color: #310e28;
  --text-color: #503a52;
  --light-text-color: #79537c;
  --background-color: #f9f6f8;
  --white-color: #ffffff;
  --light-grey-color: #fafafa;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --hover-color: #990075;
  --accordion-header-color: #ee00ff;
  --accordion-header-hover-color: #ff00a2;
  --hero-paragraph-color: #ae8db5; /* Added for the hero paragraph */
  --menu-background-color: #f9f6f8; /* New variable for menu background */
}

/* סגנונות כלליים */
* {
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  color: var(--text-color);
  direction: rtl;
  padding: 0 150px;
  background-color: var(--background-color);
  max-width: 100%;
  margin: 0 auto;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

p {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--light-text-color);
  text-align: justify;
}

/* כותרת האתר והניווט */
header {
  background-color: var(--background-color);
  padding: 10px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1000;
}

.navbar {
  width: 100%;
}

.nav-container {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

#logo img {
  height: 70px; /* הגדלת גודל הלוגו */
  transition: transform 0.3s ease-in-out;
}

#logo img:hover {
  transform: rotate(360deg) scale(1.2);
}

.nav-container .checkbox {
  display: none;
}

.nav-container .hamburger-lines {
  display: none;
}

.menu-items {
  display: flex;
  list-style: none;
  padding: 0;
  background-color: var(--menu-background-color); /*שינוי צבע הרקע*/
}

.menu-items li {
  margin-right: 20px;
}

.menu-items a {
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  font-weight: 600;
  font-size: 1.08rem;
}

.menu-items a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -15px;
  left: 0;
  background-color: var(--primary-color);
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

.menu-items a:hover:before {
  visibility: visible;
  transform: scaleX(1);
}

/* מדור הגיבורים */
#hero {
  background-color: var(--background-color);
  display: flex;
  justify-content: space-between;
  gap: 70px;
  align-items: center;
  padding: 100px 10px;
}

.hero-content {
  max-width: 40%;
}

#hero span {
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 2.5rem;
}

#hero h1 {
  font-size: 40px;
  font-weight: 300;
  margin-top: -5px;
  line-height: 3.4rem;
}

#hero p {
  font-size: 24px;
  font-weight: 300;
  color: var(--hero-paragraph-color); /* Use the new variable */
  margin-bottom: 0px;
  padding: 0px;
  margin-top: -25px;
}

#hero small {
  display: block;
  margin-top: 50px; /* Fixed typo: added space */
  font-size: 0.9em;
  color: var(--secondary-color);
}

#hero img {
  max-width: 40%;
  height: auto;
  margin-top: 20px;
}

/* מדור התכונות */
#features {
  background-color: var(--background-color);
  padding: 30px;
  margin-top: 70px;
}

#features h2 {
  font-size: 30px;
  margin-bottom: 30px;
  color: var(--text-color);
  text-align: center;
}

.features3 {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.feature {
  box-shadow: 0 0 1px 0 rgba(0, 12, 32, 0.04),
    0 10px 16px 0 rgba(10, 31, 68, 0.06);
  border-radius: 20px;
  padding: 20px 30px;
  margin-top: 30px;
  background-color: var(--white-color);
  width: 30%;
}

.feature-number {
  margin-top: 20px;
  min-width: 30px;
  background-color: var(--primary-color);
  color: var(--white-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
}

hr {
  height: 3px;
  border-width: 0;
  background-color: rgb(
    232,
    232,
    232
  ); /* Consider adding a variable if you want to modify this color as well */
}

.feature-number h3 {
  /* This was misplaced, moved it inside the .feature-number class */
  font-size: 1.5rem; /* Reduced size to fit better */
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* מדור מי אנחנו */
#about-us {
  display: flex;
  flex-direction: row-reverse;
  margin: 100px 0;
  justify-content: space-between;
  align-items: center;
}

#about-us img {
  margin-top: 90px;
  width: 40%;
}

.about-us-content {
  width: 40%;
}

.about-us-content h2 {
  font-size: 3rem;
}

.about-us-content p {
  font-size: 1.3rem;
}

/* מדור יצירת קשר */
#contact {
  background-color: var(--background-color);
  display: flex;
  flex-direction: row-reverse;
  margin: 100px 0;
  justify-content: space-between;
  align-items: center;
}

#contact img {
  margin-top: 90px;
  width: 40%;
}

.contact-content {
  width: 40%;
}

.contact-content h2 {
  font-size: 3rem;
}

.contact-content p {
  font-size: 1.3rem;
}

/* מדור שאלות ותשובות */
#faq {
  background-color: var(--background-color);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 100px;
}

#faq img {
  width: 40%;
}

.faq-content {
  width: 40%;
}

#faq h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  max-width: 700px;
}

.accordion-item {
  background-color: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-bottom: 10px;
  max-width: 1000px;
  box-shadow: 0 2px 5px var(--shadow-color);
}

.accordion-header {
  background-color: var(--accordion-header-color);
  color: var(--white-color);
  padding: 15px;
  font-size: 18px;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: var(--accordion-header-hover-color);
}

.accordion-content {
  background-color: var(--light-grey-color);
  overflow: hidden;
  padding: 0 15px;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.accordion-content p {
  margin: 15px 0;
  line-height: 1.5;
}

.icon {
  transition: transform 0.3s ease;
}

.active .icon {
  transform: rotate(45deg);
}

/* תחתית האתר */
footer {
  background-color: var(--secondary-color);
  font-weight: bold;
  color: var(--white-color);
  padding: 70px 20px;
  margin: 0 -150px;
  display: flex;
  justify-content: space-evenly;
  list-style: none;
}

.footer-items a {
  text-decoration: none;
  list-style: none;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 100;
  line-height: 1.8;
}

/* עיצובים כלליים למסכים קטנים */
@media (max-width: 1000px) {
  body {
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
  }

  /* תפריט ניווט למסכים קטנים */

  .nav-container {
    position: relative;
  }

  #logo {
    order: 1;
    margin: 9px;
    margin-top: 23px; /* הגדלת margin-top ללוגו */
  }

  .nav-container .checkbox {
    display: block;
    position: absolute;
    height: 32px;
    width: 32px;
    top: 20px;
    right: 20px;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
  }

  .nav-container .hamburger-lines {
    display: block;
    height: 26px;
    width: 32px;
    position: absolute;
    top: 17px;
    right: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .nav-container .hamburger-lines .line {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 10px;
    background: #0e2431;
  }

  .nav-container .hamburger-lines .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
  }

  .nav-container .hamburger-lines .line2 {
    transition: transform 0.2s ease-in-out;
  }

  .nav-container .hamburger-lines .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
  }

  .menu-items {
    position: fixed;
    top: 80px;
    left: -100%;
    height: calc(100vh - 80px);
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.5s ease-in-out;
    z-index: 999;
    overflow-y: auto;
    background-color: var(--menu-background-color); /* הוספת רקע אטום לתפריט */
  }

  .menu-items li {
    margin: 20px 0;
    font-size: 1.5rem;
    font-weight: 500;
  }

  .nav-container input:checked ~ .menu-items {
    left: 0;
  }

  .nav-container input:checked ~ .hamburger-lines .line1 {
    transform: rotate(45deg);
  }

  .nav-container input:checked ~ .hamburger-lines .line2 {
    transform: scaleY(0);
  }

  .nav-container input:checked ~ .hamburger-lines .line3 {
    transform: rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden;
  }

  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 30px 40px;
    gap: 30px;
  }

  /* התאמות למדור הגיבורים */
  #hero {
    padding: 20px 0;
    flex-direction: column-reverse;
    height: auto;
    margin-bottom: 30px;
  }

  #hero img {
    max-width: 60%;
    height: auto;
    font-size: 0.3rem;
  }

  .hero-content {
    max-width: 80%;
  }

  #hero span {
    font-weight: 400;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  #hero h1 {
    font-size: 43px;
    font-weight: 300;
    margin-top: -1px;
  }

  #hero p {
    font-size: 1.3rem;
    margin-top: -25px;
  }

  /* התאמות למדור התכונות */

  #features {
    padding: 20px;
  }
  .feature {
    width: 100%; /* מאפשר לכל תכונה לקחת את רוחב המסך כולו */
    margin: 10px 0;
    padding: 7px 20px;
  }

  /* מדור מי אנחנו */

  #about-us {
    flex-direction: column;
    margin: 50px;
  }

  #about-us img {
    width: 90%;
  }

  .about-us-content {
    width: 90%;
  }

  .about-us-content h2 {
    font-size: 2.3rem;
  }

  .about-us-content p {
    font-size: 1.2rem;
  }

  /* מדור יצירת קשר */

  #contact {
    flex-direction: column;
    margin: 50px;
  }

  #contact img {
    width: 90%;
  }

  .contact-content {
    width: 90%;
  }

  .contact-content h2 {
    font-size: 2.3rem;
  }

  .contact-content p {
    font-size: 1.2rem;
  }
  /* התאמות למדור שאלות ותשובות */

  #faq {
    align-items: center;
    flex-direction: column;
    margin-top: 100px;
    gap: 10px;
  }

  #faq img {
    width: 90%;
  }

  .faq-content {
    width: 90%;
  }

  #faq h2 {
    font-size: 30px;
  }
}

/* עיצובים לסמארטפונים */
@media (max-width: 480px) {
  body {
    padding: 0 10px;
  }

  .hero-content {
    max-width: 90%;
  }

  #hero span {
    font-size: 1rem;
    letter-spacing: 0.03em;
  }

  #hero h1 {
    font-size: 37px;
    font-weight: 300;
    margin-top: 5px;
  }

  #hero p {
    font-size: 1.2rem;
    margin-top: -20px;
  }
}

/* אנימציות לטעינת האתר */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: fadeIn 1s ease-in-out;
}

/* אנימציות לריחוף עכבר */
.feature,
#contact button,
#back-to-top a {
  transition: transform 0.4s ease-in-out;
}

.feature:hover,
#contact button:hover,
#back-to-top a:hover {
  transform: scale(1.1);
}

/* אנימציה לכותרות */
h1,
h2,
h3 {
  transition: color 0.3s ease-in-out;
}
