/* ====== בסיסי ====== */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    scroll-behavior: smooth;
}

/* ====== כותרות אחידות לכל הסקשנים ====== */
.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 40px;
    color: #3c3939d8; /* צבע נקי, כהה לקריאה */
    text-align: center; /* יישור טקסט בתוך האלמנט */
    margin: 40px auto 30px auto; /* מרכז האלמנט והוספת מרווח מתחת */
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 20px;
    display: table; /* מאפשר margin auto למרכז */
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: #7a9bc9;
    margin: 10px auto 0;
    border-radius: 2px;
    position: relative;
}

.section-title::after::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: #ed2424;
    border-radius: 50%;
}







/* ====== Header ====== */
header.welcome {
    background: linear-gradient(145deg, #ffffff, #f2f4f7);
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333;
    position: relative;
    border-radius: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 20px 20px;
}

header .header-content h1 {
    font-size: 58px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #222;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(90deg, #333, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease forwards;
}

header .header-content p {
    font-size: 22px;
    font-weight: 300;
    color: #444;
    animation: fadeInUp 1.3s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====== Nav ====== */
nav {
    background: linear-gradient(145deg, #ffffff, #f2f4f7);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

nav a {
    text-decoration: none;
    color: #222;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #2d59b7;
    transform: translateY(-3px);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 10px 0;
    gap: 25px;
}

nav li { display: inline-block; }

/* ====== Sections כלליים ====== */
.section {
    padding: 80px 20px;
    text-align: center;
}

/* ====== About Section ====== */
.about-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.about-card p {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
}

/* ====== Skills Section ====== */
.skills-cards {
    display: flex;
    gap: 30px; /* מעט פחות מרווח כדי שייראה מאוחד */
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.skills-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1 1 200px;
}

.skills-group h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #2d2d2d; /* כהה ונקי */
    margin-bottom: 15px;
    font-size: 26px;
    text-align: center;
    position: relative;
}

.skills-group h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #73a6dd; 
    margin: 8px auto 0;
    border-radius: 2px;
}



/* Skill card */
.skill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f5f5f5; 
    padding: 14px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    color: #333; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06); 
}

.skills-group .skill i {
    font-size: 24px; /* הגדלת כל האייקונים */
    margin-right: 8px; /* רווח בין האייקון לטקסט */
}

.skills-group .skill i:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
}


.skill i.fa-react { color: #61dafb; }      
.skill i.fa-html5 { color: #e34f26; }    
.skill i.fa-css3-alt { color: #1572b6; } 
.skill i.fa-python { color: #3776ab; }    
.skill i.fa-js-square { color: #f7df1e; } 
.skill i.fa-docker { color: #2496ed; }    
.skill i.fa-aws { color: #ff9900; }       
.skill i.fa-node-js { color: #339933; }   
.skill i.fa-database { color: #00758f; } 
.skill i.fa-leaf { color: #47a248; }      
.skill i.fab.fa-github { color: #181717; }
.skill i.devicon-bash-plain {color: #4EAA25;}

.skill:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.skill:hover i {
    transform: scale(1.2);
}


/* ====== Projects Section ====== */
.projects-section {
  background: radial-gradient(circle at top left, #ffffff30, #e0e0e040 70%);
  padding: 80px 20px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}


.section-title {
  font-size: 40px;
  margin-bottom: 40px;
  color: #222;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.projects-cards {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap; /* חשוב כדי שהכרטיסים ירדו שורה במסכים קטנים */
  gap: 30px; /* רווח בין כרטיסים */
  padding: 20px;
}

.project-card {
  flex: 1 1 300px; /* מאפשר לכרטיסים להתכווץ או להתרחב */
  max-width: 350px; /* גודל מקסימלי לכרטיס */
}

.glass {
  background: rgba(220, 219, 227, 0.434);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 25px;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.glass:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}



.project-card video {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}


.project-card h3 {
  color: #111;
  font-size: 24px;
  font-weight: 600;
  margin: 10px 0 12px;
}

.project-card p {
  color: #222;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}


.project-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn {
  background: linear-gradient(135deg, #4EAA25, #2f7a1c);
  color: #fff;
  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(78, 170, 37, 0.4);
}

.btn:hover {
  background: linear-gradient(135deg, #3c8e1d, #226a12);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(78, 170, 37, 0.6);
}

.github-btn {
  background: linear-gradient(135deg, #333, #000);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.github-btn:hover {
  background: linear-gradient(135deg, #555, #222);
  transform: scale(1.05);
}




/* ====== Contact Section ====== */
.contact-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card input,
.contact-card textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    resize: vertical;
}

.contact-card button {
    padding: 15px;
    border: none;
    border-radius: 50px;
    background-color: #3b98da;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.contact-card button:hover {
    background-color: #a05555;
}

/* ====== Footer ====== */
footer {
    background-color: #f9f9f9;
    color: #333;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    font-size: 14px;
}

/* ====== רספונסיבי ====== */
@media (max-width: 900px) {
    .skills-cards, .projects-cards {
        flex-direction: column;
        gap: 25px;
    }

    .section-title {
        font-size: 28px;
    }
}


@media (max-width: 768px) {
  .projects-cards {
    flex-direction: column;
    align-items: center;
  }

  .glass {
    width: 100%;
    max-width: 90%;
    padding: 20px;
  }
}
