/* === הגדרות בסיסיות === */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 20px; /* רווח קטן יותר למובייל */
    padding: 0;
}

/* === חלקיקים מרחפים ברקע === */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

/* אנימציית ריחוף */
@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* === עיצוב האזור העליון - מותאם נייד === */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px 15px; /* פחות padding למובייל */
    text-align: center;
    margin-bottom: 15px; /* רווח קטן יותר */
    position: relative;
    overflow: hidden;
}

.profile-container {
    position: relative;
    z-index: 2;
}

/* תמונת פרופיל קטנה יותר למובייל */
.profile-image {
    width: 80px; /* קטן יותר */
    height: 80px;
    border-radius: 50%;
    border: 3px solid #3498db; /* מסגרת דקה יותר */
    margin: 0 auto 15px; /* רווח קטן יותר */
    background: linear-gradient(45deg, #3498db, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: profilePulse 3s ease-in-out infinite;
    overflow: hidden; /* מסתיר חלקים שיוצאים מהעיגול */
}

/* עיצוב לתמונה האמיתית */
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* מכסה את כל השטח */
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* גיבוי אם אין תמונה */
.profile-image:not(:has(img)) {
    font-size: 24px; /* גודל טקסט קטן יותר */
    font-weight: bold;
    letter-spacing: 1px;
}

@keyframes profilePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    }
}

.profile-image:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: #2ecc71;
}

/* כותרת קטנה יותר למובייל */
h1 {
    font-size: 1.8em; /* קטן יותר */
    margin-bottom: 8px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

h2 {
    font-size: 1.1em; /* קטן יותר */
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 12px;
}

.status-badge {
    display: inline-block;
    background: #2ecc71;
    color: white;
    padding: 6px 12px; /* קטן יותר */
    border-radius: 15px;
    font-size: 0.8em; /* קטן יותר */
    font-weight: 500;
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* עיצוב כפתור הורדה */
.header-actions {
    margin-top: 15px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
    background: linear-gradient(45deg, #27ae60, #229954);
}

.download-btn span {
    font-size: 1.1em;
}

/* === פריסת העמודות - מותאם נייד === */
.main-container {
    display: flex;
    flex-direction: column; /* עמודה אחת במובייל */
    gap: 15px; /* רווח קטן יותר */
    background: white;
    border-radius: 12px;
    padding: 15px; /* פחות padding */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-top: 15px;
}

.left-column {
    width: 100%; /* רוחב מלא */
}

.right-column {
    width: 100%; /* רוחב מלא */
}

/* === עיצוב הקופסאות - קטן יותר === */
.contact, .about, .experience {
    background-color: white;
    padding: 15px; /* פחות padding */
    margin: 8px 0; /* רווח קטן יותר */
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.skills {
    background-color: white;
    padding: 15px;
    margin: 8px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* === אנימציות === */
* {
    transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

h3::before {
    content: "▶ ";
    color: #3498db;
}

/* === כישורים - מותאם נייד === */
.skill-item {
    margin: 15px 0; /* רווח קטן יותר */
    position: relative;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateX(3px); /* הזזה קטנה יותר */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.skill-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
}

.skill-name span:first-child {
    font-size: 1em; /* גודל רגיל למובייל */
}

.skill-name span:last-child {
    color: #3498db;
    font-weight: bold;
}

.skill-item:hover .skill-name span:first-child {
    color: #3498db;
    transform: scale(1.02); /* הגדלה קטנה יותר */
}

.skill-item:hover .skill-name span:last-child {
    color: #2ecc71;
    transform: scale(1.05);
}

.skill-bar {
    height: 8px; /* קטן יותר למובייל */
    background: #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 8px;
    width: 0%;
    transition: width 2s ease-in-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.skill-item:hover .skill-progress {
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.4);
    transform: scaleY(1.1); /* הגדלה קטנה יותר */
}

.skill-item:hover .skill-bar {
    background: #d5dbdb;
    transform: scale(1.01);
}

.skill-item:hover .skill-progress::after {
    animation: shine 1s ease-in-out;
}

/* === ציר זמן - מותאם נייד === */
.experience {
    background-color: white;
    padding: 20px;
    margin: 8px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.timeline {
    position: relative;
    padding: 15px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px; /* קרב יותר לשמאל במובייל */
    top: 0;
    bottom: 0;
    width: 2px; /* דק יותר */
    background: linear-gradient(180deg, #3498db, #2ecc71, #f39c12);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px; /* רווח קטן יותר */
    display: flex;
    flex-direction: column; /* עמודה במובייל */
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInTimeline 0.8s ease-out forwards;
}

@keyframes slideInTimeline {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px; /* מותאם למיקום הקו */
    top: 8px;
    width: 12px; /* קטן יותר */
    height: 12px;
    background: #3498db;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #3498db, 0 3px 10px rgba(52, 152, 219, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    background: #2ecc71;
    box-shadow: 0 0 0 3px #2ecc71, 0 4px 15px rgba(46, 204, 113, 0.6);
}

.timeline-date {
    width: fit-content;
    padding: 6px 10px; /* קטן יותר */
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    border-radius: 15px;
    font-size: 0.8em; /* קטן יותר למובייל */
    font-weight: bold;
    text-align: center;
    margin-left: 35px; /* רווח מהקו */
    margin-bottom: 10px;
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-date {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.5);
}

.timeline-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px; /* קטן יותר */
    border-radius: 12px;
    border-left: 3px solid #3498db;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-left: 35px; /* רווח מהקו */
}

.timeline-item:hover .timeline-content {
    transform: translateY(-3px); /* הזזה קטנה יותר */
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-left-color: #2ecc71;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.8s ease;
}

.timeline-item:hover .timeline-content::before {
    left: 100%;
}

.job-title {
    font-size: 1.1em; /* קטן יותר למובייל */
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.company-name {
    color: #3498db;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.job-description {
    color: #34495e;
    line-height: 1.5;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    font-size: 0.9em; /* קטן יותר למובייל */
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.skill-tag {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    padding: 3px 8px; /* קטן יותר */
    border-radius: 12px;
    font-size: 0.75em; /* קטן יותר למובייל */
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
}

/* צבעים שונים לפריטים */
.timeline-item:nth-child(1) .timeline-content {
    border-left-color: #2ecc71;
}

.timeline-item:nth-child(2) .timeline-content {
    border-left-color: #3498db;
}

.timeline-item:nth-child(3) .timeline-content {
    border-left-color: #f39c12;
}

.timeline-item:nth-child(1)::before {
    background: #2ecc71;
    box-shadow: 0 0 0 3px #2ecc71, 0 3px 10px rgba(46, 204, 113, 0.4);
}

.timeline-item:nth-child(3)::before {
    background: #f39c12;
    box-shadow: 0 0 0 3px #f39c12, 0 3px 10px rgba(243, 156, 18, 0.4);
}

/* === סעיף פרויקטים מקצועי === */
.projects {
    background-color: white;
    padding: 20px;
    margin: 8px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.project-image {
    height: 60px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    font-size: 2em;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* אפקט זוהר ברקע התמונה */
.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.8s ease;
}

.project-card:hover .project-image::before {
    left: 100%;
}

.project-content {
    padding: 15px;
}

.project-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: #3498db;
}

.project-description {
    color: #34495e;
    font-size: 0.85em;
    line-height: 1.4;
    margin-bottom: 12px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.tech-tag {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
}

.project-links {
    display: flex;
    gap: 8px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
}

.project-link:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.demo-link {
    background: #2ecc71;
    border-color: #2ecc71;
}

.demo-link:hover {
    background: #27ae60;
    border-color: #27ae60;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

/* אנימציות כניסה לפרויקטים */
.project-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInProject 0.6s ease-out forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.3s; }
.project-card:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeInProject {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* עיצוב מיוחד למובייל */
@media (max-width: 480px) {
    .projects {
        padding: 15px;
    }

    .project-content {
        padding: 12px;
    }

    .project-title {
        font-size: 1em;
    }

    .project-description {
        font-size: 0.8em;
    }

    .project-links {
        flex-direction: column;
        gap: 6px;
    }

    .project-link {
        justify-content: center;
        padding: 8px;
    }
}

/* עיצוב למחשב - גריד של 2 עמודות */
@media (min-width: 768px) {
    .projects-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .project-card:last-child {
        grid-column: 1 / -1; /* תופס את כל הרוחב */
    }
}
.contact:hover, .about:hover, .skills:hover, .experience:hover {
    transform: translateY(-3px); /* הזזה קטנה יותר */
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em; /* קטן יותר למובייל */
}

/* עיצוב קישורי אימייל וטלפון */
.email-link, .phone-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.email-link:hover, .phone-link:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    transform: translateX(3px);
}

/* עיצוב קישורים חברתיים */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    border-color: #3498db;
}

.social-link span {
    font-size: 1.1em;
}

.about p {
    font-style: italic;
    color: #555;
    line-height: 1.5;
    font-size: 0.9em; /* קטן יותר למובייל */
}

/* === אנימציות כניסה === */
.header, .main-container {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px); /* הזזה קטנה יותר */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === עיצוב מצב כהה === */
.dark-theme {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

.dark-theme .main-container {
    background: #2c3e50 !important;
    color: white;
}

.dark-theme .contact, .dark-theme .about, .dark-theme .skills, .dark-theme .experience {
    background: #34495e !important;
    color: white;
}

.dark-theme h1, .dark-theme h2, .dark-theme h3, .dark-theme p {
    color: white !important;
}

.dark-theme .skill-name {
    color: white !important;
}

.dark-theme .skill-name span:last-child {
    color: #3498db !important;
}

.dark-theme h3::before {
    color: #3498db !important;
}

.dark-theme .particle {
    background: rgba(255, 255, 255, 0.4) !important;
}

/* === חלון יצירת קשר === */
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    padding: 20px; /* padding למובייל */
}

.contact-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-form {
    background: white;
    padding: 20px; /* קטן יותר למובייל */
    border-radius: 15px;
    width: 100%;
    max-width: 350px; /* רוחב מותאם למובייל */
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.contact-overlay.active .contact-form {
    transform: scale(1);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.contact-form button[type="submit"] {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
}

.contact-form button[type="submit"]:hover {
    background: #2980b9;
}

/* === מיוחד למכשירים גדולים === */
@media (min-width: 768px) {
    body {
        margin: 40px; /* רווח גדול יותר במחשב */
    }

    .main-container {
        display: flex;
        flex-direction: row; /* שתי עמודות במחשב */
        gap: 25px;
        padding: 25px;
    }

    .left-column {
        flex: 1;
    }

    .right-column {
        flex: 2;
    }

    .header {
        padding: 50px 30px; /* padding גדול יותר */
    }

    .profile-image {
        width: 120px; /* גדול יותר במחשב */
        height: 120px;
        font-size: 50px;
    }

    h1 {
        font-size: 2.5em; /* גדול יותר במחשב */
    }

    h2 {
        font-size: 1.3em;
    }

    .contact, .about, .skills, .experience {
        padding: 20px; /* padding גדול יותר */
        margin: 12px 0;
    }

    .timeline-content {
        margin-left: 0; /* ללא רווח מהקו במחשב */
    }

    .timeline-date {
        margin-left: 50px; /* רווח גדול יותר במחשב */
        margin-bottom: 0;
        margin-right: 20px;
    }

    .timeline-item {
        flex-direction: row; /* שורה במחשב */
        align-items: flex-start;
    }
}

/* === הסתרת scroll bar אופקי === */
body {
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}container {
     background: white;
     border-radius: 15px;
     padding: 20px;
     box-shadow: 0 10px 30px rgba(0,0,0,0.2);
     margin-top: 20px;
 }

/* הוספת אייקונים לכותרות */
h3::before {
    content: "▶ "; /* אייקון חץ לפני כל כותרת */
    color: #3498db; /* צבע כחול */
}

/* === שיפורי סעיף כישורים - פסי התקדמות === */
.skills {
    background-color: white;
    padding: 20px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.skill-item {
    margin: 20px 0; /* רווח בין כישורים */
    position: relative;
}

.skill-name {
    display: flex;
    justify-content: space-between; /* שם משמאל, אחוז מימין */
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600; /* טקסט מודגש */
    color: #2c3e50;
}

.skill-name span:first-child {
    font-size: 1.1em; /* שם הכישור קצת יותר גדול */
}

.skill-name span:last-child {
    color: #3498db; /* אחוז בכחול */
    font-weight: bold;
}

/* מסגרת פס ההתקדמות */
.skill-bar {
    height: 10px;
    background: #ecf0f1; /* רקע אפור בהיר */
    border-radius: 10px;
    overflow: hidden; /* הסתרת חלקים שיוצאים */
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); /* צל פנימי */
}

/* פס ההתקדמות עצמו */
.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71); /* גרדיאנט כחול-ירוק */
    border-radius: 10px;
    width: 0%; /* מתחיל ברוחב 0 */
    transition: width 2s ease-in-out; /* אנימציה של 2 שניות */
    position: relative;
}

/* אפקט זוהר בפס ההתקדמות */
.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s ease-in-out infinite; /* אנימציית זוהר */
}

/* אנימציית זוהר */
@keyframes shine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* אפקט הובר על הכישור */
.skill-item:hover .skill-progress {
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4); /* צל כחול בהובר */
    transform: scaleY(1.2); /* הגדלה קלה בגובה */
}

/* אפקט הובר נוסף - על כל האלמנט */
.skill-item {
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer; /* סמן יד */
}

.skill-item:hover {
    background: rgba(52, 152, 219, 0.05); /* רקע כחול קל */
    transform: translateX(5px); /* הזזה קלה ימינה */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* צל קל */
}

/* אפקט הובר על שם הכישור */
.skill-item:hover .skill-name span:first-child {
    color: #3498db; /* שם הכישור הופך כחול */
    transform: scale(1.05); /* הגדלה קלה */
}

/* אפקט הובר על האחוז */
.skill-item:hover .skill-name span:last-child {
    color: #2ecc71; /* האחוז הופך ירוק */
    transform: scale(1.1); /* הגדלה יותר גדולה */
}

/* אפקט הובר מיוחד על הפס */
.skill-item:hover .skill-bar {
    background: #d5dbdb; /* רקע קצת יותר כהה */
    transform: scale(1.02); /* הגדלה קלה */
}

/* אנימציה מתקדמת לפס בהובר */
.skill-item:hover .skill-progress::after {
    animation: shine 1s ease-in-out; /* זוהר מהיר יותר בהובר */
}

/* === אפקטי הובר === */
/* אפקטי הובר לכל הקופסאות */
.contact:hover, .about:hover, .skills:hover, .experience:hover {
    transform: translateY(-5px); /* הזזה למעלה ב-5 פיקסל */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* צל חזק יותר */
}

/* עיצוב פרטי יצירת קשר */
.contact p {
    display: flex; /* פריסת פלקס */
    align-items: center; /* יישור אנכי למרכז */
    gap: 10px; /* רווח בין אלמנטים */
}

/* === ציר זמן מקצועי לניסיון === */
.experience {
    background-color: white;
    padding: 30px;
    margin: 10px 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

/* קו הציר הראשי */
.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3498db, #2ecc71, #f39c12);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInTimeline 0.8s ease-out forwards;
}

/* אנימציית כניסה לפריטי ציר הזמן */
@keyframes slideInTimeline {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* עיכוב מדורג לאנימציות */
.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

/* נקודת זמן בציר */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 10px;
    width: 16px;
    height: 16px;
    background: #3498db;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #3498db, 0 4px 12px rgba(52, 152, 219, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

/* אפקט הובר על נקודת הזמן */
.timeline-item:hover::before {
    transform: scale(1.3);
    background: #2ecc71;
    box-shadow: 0 0 0 4px #2ecc71, 0 6px 20px rgba(46, 204, 113, 0.6);
}

/* תאריך */
.timeline-date {
    min-width: 120px;
    padding: 8px 12px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    margin-right: 20px;
    margin-left: 60px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

/* אפקט הובר על התאריך */
.timeline-item:hover .timeline-date {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.5);
}

/* תוכן העבודה */
.timeline-content {
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #3498db;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* אפקט הובר על תוכן העבודה */
.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-left-color: #2ecc71;
}

/* אפקט זוהר ברקע התוכן */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.8s ease;
}

.timeline-item:hover .timeline-content::before {
    left: 100%;
}

/* כותרת התפקיד */
.job-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

/* שם החברה */
.company-name {
    color: #3498db;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

/* תיאור התפקיד */
.job-description {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* תגיות כישורים */
.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.skill-tag {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* אפקטים מיוחדים לפריטים שונים בציר */
.timeline-item:nth-child(1) .timeline-content {
    border-left-color: #2ecc71; /* ירוק לעבודה נוכחית */
}

.timeline-item:nth-child(2) .timeline-content {
    border-left-color: #3498db; /* כחול לעבודה קודמת */
}

.timeline-item:nth-child(3) .timeline-content {
    border-left-color: #f39c12; /* כתום להתחלה */
}

.timeline-item:nth-child(1)::before {
    background: #2ecc71;
    box-shadow: 0 0 0 4px #2ecc71, 0 4px 12px rgba(46, 204, 113, 0.4);
}

.timeline-item:nth-child(3)::before {
    background: #f39c12;
    box-shadow: 0 0 0 4px #f39c12, 0 4px 12px rgba(243, 156, 18, 0.4);
}

/* רספונסיביות למכשירים קטנים */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: stretch;
    }

    .timeline-date {
        margin-left: 60px;
        margin-right: 0;
        margin-bottom: 15px;
        width: fit-content;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item::before {
        left: 12px;
    }
}

/* עיצוב טקסט בסעיף אודות */
.about p {
    font-style: italic; /* טקסט נטוי */
    color: #555; /* צבע אפור */
    line-height: 1.6; /* גובה שורה */
}

/* === אנימציות כניסה === */
.header, .main-container {
    animation: fadeInUp 0.8s ease-out; /* אנימציה של הופעה */
}

@keyframes fadeInUp {
    from {
        opacity: 0; /* מתחיל שקוף */
        transform: translateY(30px); /* מתחיל 30 פיקסל למטה */
    }
    to {
        opacity: 1; /* נגמר גלוי */
        transform: translateY(0); /* במיקום הסופי */
    }
}

/* === עיצוב מצב כהה === */
.dark-theme {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

.dark-theme .main-container {
    background: #2c3e50 !important;
    color: white;
}

.dark-theme .contact, .dark-theme .about, .dark-theme .skills, .dark-theme .experience {
    background: #34495e !important;
    color: white;
}

/* תיקון צבעי טקסט במצב כהה */
.dark-theme h1, .dark-theme h2, .dark-theme h3, .dark-theme p {
    color: white !important;
}

.dark-theme .experience strong {
    color: #3498db !important;
}

.dark-theme .about p {
    color: #bdc3c7 !important;
}

.dark-theme .skill-name {
    color: white !important;
}

.dark-theme .skill-name span:last-child {
    color: #3498db !important;
}

/* אייקונים נשארים כחולים במצב כהה */
.dark-theme h3::before {
    color: #3498db !important;
}

/* חלקיקים במצב כהה - יותר בולטים */
.dark-theme .particle {
    background: rgba(255, 255, 255, 0.4) !important;
}

/* === חלון יצירת קשר === */
.contact-overlay {
    position: fixed; /* מיקום קבוע ביחס למסך */
    top: 0;
    left: 0;
    width: 100%; /* רוחב מלא */
    height: 100%; /* גובה מלא */
    background: rgba(0,0,0,0.7); /* רקע כהה שקוף 70% */
    display: flex; /* פריסת פלקס */
    justify-content: center; /* יישור אופקי למרכז */
    align-items: center; /* יישור אנכי למרכז */
    opacity: 0; /* מתחיל בלתי נראה */
    visibility: hidden; /* מוסתר */
    transition: all 0.3s ease; /* מעבר חלק */
    z-index: 2000; /* שכבה עליונה */
}

/* כשהחלון פעיל */
.contact-overlay.active {
    opacity: 1; /* נראה */
    visibility: visible; /* גלוי */
}

/* עיצוב הטופס עצמו */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 400px;
    max-width: 90%; /* לא יותר מ-90% במכשירים קטנים */
    transform: scale(0.7); /* מתחיל קטן (70%) */
    transition: transform 0.3s ease;
}

/* כשהחלון פעיל - הטופס גדל לגודל מלא */
.contact-overlay.active .contact-form {
    transform: scale(1); /* גודל מלא (100%) */
}

/* כותרת הטופס */
.form-header {
    display: flex;
    justify-content: space-between; /* רווח מקסימלי בין כותרת לכפתור */
    align-items: center; /* יישור אנכי למרכז */
    margin-bottom: 20px;
}

/* כפתור סגירה (X) */
.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

/* עיצוב שדות הטופס */
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

/* כפתור שליחה */
.contact-form button[type="submit"] {
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

/* אפקט הובר על כפתור שליחה */
.contact-form button[type="submit"]:hover {
    background: #2980b9; /* כחול כהה יותר */
}

/* === אינדיקטור גלילה === */
.scroll-indicator {
    position: fixed; /* מיקום קבוע ביחס למסך */
    bottom: 20px; /* 20 פיקסל מהתחתית */
    left: 50%; /* התחלה במרכז */
    transform: translateX(-50%); /* יישור מדויק למרכז */
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    animation: bounce 2s infinite; /* אנימציית קפיצה חוזרת */
    z-index: 1000;
}

/* אנימציית קפיצה */
@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0); /* מיקום רגיל */
    }
    50% {
        transform: translateX(-50%) translateY(-10px); /* קפיצה למעלה */
    }
}