@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: #F2E6AC;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  position: relative;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media screen and (min-width: 320px) {
  html {
    font-size: calc(16px + 2 * ((100vw - 320px) / 680));
  }
}

@media screen and (min-width: 1000px) {
  html {
    font-size: 18px;
  }
}

header {
  background-color: #a6a278;
  padding: 20px 0;
  display: flex;
  justify-content: center;
}

.logo {
  margin: 0;
  padding: 10px;
  color: #2D3845;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.logo:hover {
  color: #000000;
}

/* Base navbar styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  z-index: 1000;
  padding: 15px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.navbar ul {
  display: flex;
  gap: clamp(10px, 2vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar li a {
  color: #000;
  text-decoration: none;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  position: relative;
  transition: color 0.3s ease;
  font-family: 'Exo 2', sans-serif;
}

.navbar li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  right: 0;
  background-color: #30302f;
  transition: width 0.3s ease;
}

.navbar li a:hover::after {
  width: 100%;
  left: 0;
  right: auto;
}

p {
  font-family: 'Heebo', sans-serif;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  font-style: italic;
}

.navbar li a:hover {
  color: #444444;
}

/* Responsive breakpoints */
@media screen and (max-width: 1024px) {
  .hero-text h1 {
    font-size: clamp(32px, 6vw, 64px);
  }

  .hero-text p {
    font-size: clamp(18px, 3vw, 24px);
  }

  .about-container {
    padding: 40px 5%;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 10px;
  }

  .logo {
    margin-bottom: 15px;
  }

  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .projects-container {
    grid-template-columns: 1fr;
    padding: 20px 5%;
  }

  .service-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .hero {
    background-attachment: scroll;
    /* ביטול ה-fixed בטלפונים */
    background-position: center center;
    min-height: 100vh;
    /* שימוש ב-min-height במקום height */
  }

  .hero-content {
    width: 90%;
    /* הגבלת רוחב התוכן */
    margin: 0 auto;
    padding: 20px;
  }

  .hero-text h1 {
    font-size: clamp(32px, 8vw, 48px);
    /* התאמת גודל הכותרת */
  }

  .hero-text p {
    font-size: clamp(18px, 4vw, 24px);
    /* התאמת גודל הטקסט */
  }

  .services-section {
    padding: 40px 15px;
  }

  .container-services {
    width: 95%;
    padding: 0;
  }

  .service-card {
    margin: 10px 0;
  }

  .services-grid {
    padding: 0 10px;
  }

  .service-card {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0;
  }
}

@media screen and (max-width: 480px) {
  .hero-content {
    padding: 20px;
    width: 90%;
  }

  .about-text,
  .about-image {
    min-width: 100%;
  }

  .contact-form {
    width: 90%;
  }

  .services-section {
    margin: 30px 15px;
  }
}

/* Add to existing sections */
.hero,
.about-container,
.projects-container,
.services-grid {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Improve images responsiveness */
img {
  max-width: 100%;
  height: auto;
}

/* הוסף את זה לכל סקשן עם ID */
#home,
#about,
#projects,
#contact {
  scroll-margin-top: 80px;
}

#about {
  background-color: #2d3845;
  padding: 60px 20px;
  direction: rtl;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
  font-family: 'Heebo', sans-serif;
}

.about-text {
  flex: 1;
  min-width: 300px;
  color: #ffffff;
  font-family: 'Heebo', sans-serif;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ffffff;
  font-family: 'Heebo', sans-serif;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 300px;
}

.hero {
  background-image: url('assets/img/pascal-scholl-ag7vUvexrPE-unsplash.jpg');
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* שינוי מ-fill ל-cover */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  /* הוספת position relative */
}

.hero-content {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 40px;
  border-radius: 16px;
}

.hero-text {
  font-family: 'Heebo', sans-serif;
  color: #F2E6AC;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 20px;
}

.hero-text h1 {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-text p {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #ffffffcc;
}

.hero-text a {
  text-decoration: none;
  background-color: #8C6436;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.hero-text a:hover {
  background-color: #2D3845;
}

#projects {
  padding: 60px 20px;
  background-color: #8C6436;
  text-align: center;
}

#projects h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2D3845;
  font-family: 'Heebo', sans-serif;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.project-card h3 {
  margin: 10px 0;
  color: #8C6436;
  font-family: 'Heebo', sans-serif;
}

.project-card p {
  font-size: 0.95rem;
  color: #2D3845;
  font-family: 'Heebo', sans-serif;
}

.project-card a {
  display: inline-block;
  margin-top: 10px;
  color: #8C6436;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.project-card a:hover {
  border-bottom: 1px solid #8C6436;
}

#contact {
  background-color: #8C6436;
  padding: 60px 20px;
  text-align: center;
  direction: rtl;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #2D3845;
  font-family: 'Heebo', sans-serif;
}

.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-family: 'Heebo', sans-serif;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #000000;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Heebo', sans-serif;
}

.contact-form button {
  background-color: #000000;
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Heebo', sans-serif;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form button:hover {
  background-color: #333333;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.contact-form button:active {
  transform: scale(1.95);
  border-radius: 50px;
  background-color: #2D3845;
}

.project-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #2d3845;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Heebo', sans-serif;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-button:hover {
  background-color: #55544f;
  color: #777777;
  transform: scale(1.05);
}

.site-footer {
  background-color: #2D3845;
  color: #F2E6AC;
  text-align: center;
  padding: 20px;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  border-top: 4px solid #8C6436;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.services-section {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 60px 0;
  background: #f9f9f9;
  direction: rtl;
  font-family: 'Heebo', sans-serif;
  width: 100%;
  margin: 60px auto 0;
  overflow: hidden;
}

.container-services {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.service-card {
  background: #2D3845;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  flex: 1 1 280px;
  max-width: 300px;
  margin: 10px;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #ffffff;
}

.service-card p {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.6;
}

/* עדכון לסקשנים */
section {
  width: 100%;
  margin: 0;
  padding: 60px 0;
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  box-sizing: border-box;
}