/* mobile first */
/* ברירת מחדל: תפריט מוצג */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}
.desktop-only {
  display: none;
}
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

@media (max-width: 600px) {
  .header_container > a {
    margin-top: 1rem;
  }
  .main-container {
    padding: 0 1rem; /* ריווח קטן יותר במסכים קטנים */
  }
}

.header_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}
.home-text > h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.logo {
  font-size: 1.5em;
  font-weight: 700;
  color: #2562ee;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
}

.blue-background {
  background-image: url("assets/home_back.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.home_container {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
}
@media (min-width: 600px) {
  .desktop-only {
    display: flex;
  }

  .nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav ul li a {
    color: #a7b0bd;
    text-decoration: none;
  }

  .nav ul li a:hover {
    color: #6892ec;
  }
}

.home_container > img {
  margin-left: 5rem;
}
@media (max-width: 600px) {
  .home_container > img {
    margin-left: 0;
    margin-bottom: 2rem;
  }
}
.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.get_in_touch {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #2562ee;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 2rem;
}

.get_in_touch:hover {
  background-color: #1e4dcc;
}

@media (max-width: 600px) {
  .get_in_touch {
    margin-bottom: 2rem; /* מרווח מהתמונה */
    margin-top: 1rem; /* אפשרי */
    margin: 1rem auto 2rem auto;
  }
}

.box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
}
.projects {
  display: flex;
  gap: 2rem; /* רווח בין הכותרת לטקסט */
  align-items: center; /* ליישור לגובה אחיד */
  justify-content: center; /* יישור התוכן למרכז */
}
.project {
  background-color: white; /* רקע לבן */
  width: calc(100% / 3 - 1rem); /* שליש מהמרחב עם רווח */
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.about_container {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 2rem;
}
@media (min-width: 700px) {
  .about > h2 {
    text-align: left !important;
  }
}
.about {
  width: 70%; /* חצי מהמרחב */
}
.skills {
  width: 30%; /* שליש מהמרחב */
}
@media (min-width: 600px) {
  h2 {
    text-align: center !important;
  }
  .about_container > .about {
    width: 65%; /* חצי מהמרחב */
  }

  p {
    width: 65%;
    font-size: 1.2em;
    line-height: 1.6;
    color: #4a5568; /* צבע טקסט */
  }
}
@media (max-width: 700px) {
  .projects {
    flex-direction: column;
  }
  .project {
    width: 100%; /* פרויקט אחד בשורה */
  }
  .about_container {
    flex-direction: column; /* עיצוב לעמודות בטלפון */
    text-align: center; /* יישור טקסט למרכז */
  }
  .home_container {
    flex-direction: column;
    align-items: center; /* יישור התוכן למרכז */
    text-align: center; /* יישור טקסט למרכז */
  }
  .header_container img {
    align-items: center;
  }
}

footer {
  background-color: #171f2d;
  padding: 2rem;
  text-align: center;
  color: whitesmoke;
  font: 1.5em sans-serif;
}

/* Skills section styling */
.skills ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.skill-bar {
  flex: 1;
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 4px;
  margin-left: 1rem;
  position: relative;
}

.skill-fill {
  height: 100%;
  background-color: #2562ee;
  border-radius: 4px;
  width: 100%;
}
.skill-fill.skill-html {
  max-width: 100%;
}

.skill-fill.skill-react {
  max-width: 100%;
}

.skill-fill.skill-python {
  max-width: 100%;
}

.skill-fill.skill-sql {
  max-width: 100%;
}
/*1*/
.skill-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
}

.skills li span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.projects p {
  font-size: 1em;
  line-height: 1.6;
  color: #4a5568; /* צבע טקסט */
  margin-left: 1rem;
  width: 90%; /* הגדרת רוחב קבוע */
}
.project h3 {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-left: 1rem;
}

.project > a {
  display: block;
  margin: 1rem auto 1rem auto;
  padding: 0.5rem 1rem;
  background-color: #f18d0e;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  width: fit-content;
}

/* <!-- Contact Section --> */
.contact_container {
  display: flex;
}

.contact_form {
  width: 60%;
  padding: 2rem;
  border-radius: 8px;
}
.contact_form .form-group {
  margin-bottom: 1.5rem;
}
.information {
  width: 28%;
  text-align: left;
}
.contact_form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.contact_form input[type="text"],
.contact_form input[type="email"],
.contact_form textarea {
  width: 90%;
  box-sizing: border-box;
}
.contact_form textarea {
  min-height: auto;
}

h2 {
  font-size: 2em !important;
  margin-bottom: 1rem !important;
  text-align: center;
}

.information h3 {
  font-size: 1.5em;
  margin-bottom: 1rem;
}

@media (max-width: 700px) {
  .about {
    width: 100%;
  }

  .skills {
    width: 100%;
    margin-top: 2rem;
  }

  .skills li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .skills li span {
    justify-content: center;
    flex: unset;
  }

  .skill-bar {
    width: 90%;
    margin-top: 0.5rem;
  }

  /* Stack the contact section vertically on small screens */
  .contact_container {
    flex-direction: column;
    align-items: center;
  }
  .contact_form,
  .information {
    width: 100%;
  }
}
