/* Base styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #e74c3c;
  --text-color: #2c3e50;
  --background-color: #f9f9f9;
  --card-background: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Navigation styles */
.nav-bar {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bsd {
  font-size: 1.2rem;
  font-weight: bold;
  color: #d63031;
  padding: 0.5rem 1rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
}

.menu-items {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #2d3436;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: #f8f9fa;
  color: #d63031;
  transform: translateY(-2px);
}

.nav-link .icon {
  font-size: 1.2rem;
}

.nav-link .link-text {
  font-size: 1rem;
  font-weight: 500;
}

/* רספונסיביות למסכים קטנים */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .menu-items {
    flex-direction: column;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
  }
}

/* Contributors section */
.contributors-section {
  margin-bottom: 3rem;
}

.contributor-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.contributor-card {
  background-color: var(--card-background);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  overflow: hidden;
}

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

.contributor-header {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.contributor-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.contributor-content {
  padding: 1.5rem;
}

.founder .contributor-header {
  background: linear-gradient(45deg, #f1c40f, #e67e22);
}

/* Join section */
.join-section {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.join-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.join-option {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: var(--background-color);
  transition: transform 0.3s ease;
}

.join-option:hover {
  transform: translateY(-5px);
}

.join-option .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* Special thanks section */
.special-thanks {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.thanks-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.thanks-content p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-align: center;
}

.thanks-content ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.thanks-content li {
  margin-bottom: 0.5rem;
  padding: 1rem;
  position: relative;
  background-color: var(--background-color);
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.thanks-content li:hover {
  transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .contributor-group {
    grid-template-columns: 1fr;
  }

  .join-options {
    grid-template-columns: 1fr;
  }
}

/* Animation for cards */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contributor-card {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Additional styling improvements */

/* Header styles */
h1 {
  text-align: center;
  color: var(--text-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

/* Enhanced contributor card styles */
.contributor-content h4 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin: 0 0 0.5rem 0;
}

.contributor-role {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.contributor-links a {
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.contributor-links a:hover {
  color: var(--secondary-color);
  transform: translateX(-5px);
}

.contribution-details {
  background-color: var(--background-color);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Open position styling */
.open-position {
  color: var(--accent-color);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  border: 2px dashed var(--accent-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.open-position:hover {
  background-color: var(--accent-color);
  color: white;
  cursor: pointer;
}

/* Enhanced join section */
.join-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.join-content p {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.join-option {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(
    145deg,
    var(--card-background),
    var(--background-color)
  );
  box-shadow: var(--shadow);
}

.join-option:hover {
  border-color: var(--primary-color);
}

.join-option h3 {
  color: var(--primary-color);
  margin: 1rem 0;
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
@keyframes cardPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.contributor-card:hover {
  animation: cardPulse 1s infinite;
}

/* Glass morphism effect */
.nav-bar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Section headers */
.contributors-section h2,
.join-section h2,
.special-thanks h2 {
  display: inline-block;
  background: linear-gradient(
    120deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.5rem;
  font-size: 1.8rem;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #1a1a1a;
    --card-background: #2d2d2d;
    --text-color: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .contributor-content {
    color: #e0e0e0;
  }

  .contribution-details {
    background-color: rgba(255, 255, 255, 0.05);
  }
}

/* Print styles */
@media print {
  .nav-bar {
    display: none;
  }

  .contributor-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .join-section {
    display: none;
  }
}

/* עיצוב רשימת התפקידים */
.role-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.role-list li {
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  background-color: var(--background-color);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
}

.role-list li:hover {
  transform: translateX(-5px);
  background-color: var(--primary-color);
  color: white;
}

/* עדכון עיצוב כרטיס תורם */
.contributor-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contributor-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.open-position {
  margin-top: auto;
}

/* אנימציה לכרטיסים */
.contributor-card {
  transform-origin: center;
  transition: all 0.3s ease;
}

.contributor-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* עיצוב כותרת תפקידים */
.contributor-content h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-align: center;
  font-size: 1.2rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  background-color: var(--card-background);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  position: relative;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--accent-color);
}

.modal-body {
  margin-top: 1.5rem;
}

.modal-body h3 {
  color: var(--primary-color);
  margin: 1.5rem 0 1rem;
}

.modal-body ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.modal-body li {
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  background-color: var(--background-color);
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.modal-body li:hover {
  transform: translateX(-5px);
}

.contact-section {
  margin-top: 2rem;
  text-align: center;
}

.contact-button {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Dark mode adjustments for modal */
@media (prefers-color-scheme: dark) {
  .modal-content {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
}

/* Contact Form Modal Styles */
.contact-form-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-form-modal.show {
  opacity: 1;
}

.contact-form-content {
  background-color: var(--card-background);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.contact-form-modal.show .contact-form-content {
  transform: translateY(0);
}

.close-form {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.close-form:hover {
  color: var(--accent-color);
}

.contact-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.submit-form,
.cancel-form {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-form {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
}

.cancel-form {
  background-color: var(--background-color);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-color);
}

.submit-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cancel-form:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .form-group input,
  .form-group textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .cancel-form {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* בתוך הקובץ הקיים, נוסיף את הסגנונות הבאים */

.join-option.mentorship {
  background: linear-gradient(145deg, #f6d365, #fda085);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.join-option.mentorship::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.2)
  );
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.mentorship-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #fff;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.join-option.mentorship > * {
  position: relative;
  z-index: 2;
}

.mentorship-btn:hover {
  background: #fff;
  color: #fda085;
  transform: translateY(-2px);
}

/* מודאל תוכנית החניכה */
.mentorship-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mentorship-modal.show {
  opacity: 1;
  display: block;
}

.mentorship-content {
  background: linear-gradient(145deg, #2d3436, #2d3436);
  color: #ffffff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mentorship-modal.show .mentorship-content {
  transform: translateY(0);
}

.mentorship-tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.track-card {
  background: #34495e;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.track-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: #2c3e50;
}

.track-card h3 {
  color: #3498db;
  margin-bottom: 1rem;
}

.track-card p {
  color: #ecf0f1;
  margin-bottom: 1rem;
}

.track-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.track-card li {
  color: #bdc3c7;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.track-card li:last-child {
  border-bottom: none;
}

.track-card .contact-button {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.track-card .contact-button:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mentorship-modal .close-modal {
  color: #ffffff;
  font-size: 2rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.mentorship-modal .close-modal:hover {
  opacity: 1;
}
