@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;600&display=swap");

:root {
  --bg-main: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-dark: #1a1a1a;
  --text-light: #555555;
  --accent: #2c3e50;
  --border: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Heebo", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.7;
  direction: rtl;
}

/* ניווט ותפריטים נפתחים (Dropdowns) */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo h1 {
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 400;
  transition: 0.3s;
  padding: 10px 0;
}
nav a:hover {
  color: #888888;
}
nav a.active {
  font-weight: 600;
  border-bottom: 2px solid var(--text-dark);
}

.dropdown {
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-main);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  border-radius: 4px;
  z-index: 101;
  flex-direction: column;
}
.dropdown:hover .dropdown-content {
  display: flex;
}
.dropdown-content a {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-secondary);
}
.dropdown-content a:hover {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

/* פריסות עמודים */
.hero-section {
  padding: 6rem 5%;
  text-align: center;
  background-color: var(--bg-secondary);
}
.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem 5%;
}
a.link-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 4px;
  background: var(--bg-main);
  transition: 0.3s;
}
a.link-card:hover {
  border-color: var(--text-dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* מסנני קטגוריות (Tabs) בעמודי גלריה */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
  font-family: inherit;
}
.tab-btn:hover {
  background: #e9ecef;
}
.tab-btn.active {
  background: var(--text-dark);
  color: white;
  border-color: var(--text-dark);
}

/* גלריה ו-Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 2rem 5% 5rem;
}
.project-folder {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
  background: var(--bg-secondary);
}
.project-folder:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.project-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.project-info {
  padding: 1.5rem;
  text-align: center;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.modal-content {
  max-width: 80%;
  max-height: 80vh;
  border-radius: 4px;
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}
.prev-btn {
  right: 20px;
}
.next-btn {
  left: 20px;
}
.image-counter {
  position: absolute;
  bottom: 20px;
  color: white;
}

/* אזור צפייה בקבצים (Viewer) */
.viewer-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}
.file-drop-area {
  border: 2px dashed var(--border);
  padding: 3rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: 0.3s;
}
.file-drop-area:hover {
  border-color: var(--text-dark);
}
#modelDisplay {
  width: 100%;
  height: 500px;
  background: #eef2f5;
  border-radius: 8px;
  display: none;
  margin-top: 2rem;
}
#svgDisplay {
  max-width: 100%;
  max-height: 500px;
  display: none;
  margin: 2rem auto;
}

/* טפסים */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 5%;
}
.form-group {
  margin-bottom: 1.5rem;
  text-align: right;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
.submit-button {
  width: 100%;
  padding: 1rem;
  background: var(--text-dark);
  color: white;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 4px;
}

/* וואטסאפ צף */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}
.whatsapp-btn img {
  width: 35px;
  height: 35px;
}
