/* Base Styles */
:root {
    --primary: #0066cc;
    --primary-light: #3399ff;
    --primary-dark: #004d99;
    --dark: #1d1d1f;
    --darker: #121212;
    --light: #f5f5f7;
    --lighter: #ffffff;
    --gray: #86868b;
    --gray-light: #e5e5e5;
    --success: #34c759;
    --warning: #ff9500;
    --danger: #ff3b30;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display Thin';
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('fonts/SFProDisplay-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scrollIndicator {
    0% { transform: translateY(0); opacity: 0.5; }
    100% { transform: translateY(10px); opacity: 1; }
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary-dark) 0%, var(--darker) 70%);
    z-index: -1;
    opacity: 0.1;
}

/* Navigation - Updated Center Alignment */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(29, 29, 31, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center; /* מרכז את כל התפריט */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* מגביל את הרוחב המקסימלי */
    padding: 0 5%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0 auto; /* עוזר במרכזון */
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10% 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeIn 1s ease-out forwards;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    overflow: hidden;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.scroll-indicator {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--gray);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--gray);
    border-radius: 2px;
    animation: scrollIndicator 1.5s infinite;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 100%;
    min-height: 500px;
}

.glowing-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(0,102,204,0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: pulse 4s infinite ease-in-out;
}

.floating-tech-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-tech-icons i {
    position: absolute;
    font-size: 3.5rem;
    color: var(--primary-light);
    opacity: 0.7;
    animation: float 6s infinite ease-in-out;
}

.floating-tech-icons i:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-tech-icons i:nth-child(2) {
    top: 60%;
    left: 15%;
    animation-delay: 1s;
}

.floating-tech-icons i:nth-child(3) {
    top: 30%;
    left: 80%;
    animation-delay: 2s;
}

.floating-tech-icons i:nth-child(4) {
    top: 70%;
    left: 75%;
    animation-delay: 3s;
}

.floating-tech-icons i:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

/* Sections */
.section {
    padding: 8rem 5%;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-section {
    background-color: var(--darker);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.skill-header i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1rem;
}

.skill-header h3 {
    font-size: 1.5rem;
}

.skill-items {
    margin-top: 1.5rem;
}

.skill-items li {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease-out;
}

/* Experience Section - Updated */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: calc(50% - 2rem);
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
}

.timeline-item:nth-child(odd) {
    margin-left: auto;
}

.timeline-item:nth-child(even) {
    margin-right: auto;
}

.timeline-date {
    position: absolute;
    top: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 1 !important; /* התאריך תמיד גלוי */
}

.timeline-item:nth-child(odd) .timeline-date {
    right: calc(100% + 1rem);
    text-align:justify;
}

.timeline-item:nth-child(even) .timeline-date {
    left: calc(100% + 1rem);
}

.timeline-content {
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.timeline-content h3 {
    position: relative;
    padding-right: 30px;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 1 !important; /* הכותרת תמיד גלויה */
}

.timeline-content h3::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.timeline-item.active h3::after {
    content: '-';
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    opacity: 1 !important; /* תת-כותרת תמיד גלויה */
}

.timeline-content p, 
.timeline-content ul {
    margin-bottom: 1rem;
    color: var(--gray-light);
    transition: all 0.3s ease;
}

.timeline-content.collapsed p,
.timeline-content.collapsed ul {
    display: none; /* רק התוכן המפורט מתגלגל */
}

.timeline-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.education-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.2);
}

.education-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.education-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.education-card h4 {
    font-size: 1.1rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.education-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.education-details-btn {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 100;
}

.education-details-btn:hover {
    background-color: var(--primary);
    color: white;
}

.education-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    text-align: left;
    margin-top: 1rem;
}

.education-details.active {
    max-height: 500px;
}

.education-details ul {
    margin-top: 1rem;
}

.education-details ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.education-details ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Contact Section */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.3);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--darker);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 15%;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item {
        width: calc(100% - 4rem);
        margin-left: 2rem !important;
        margin-right: 2rem !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        position: relative;
        top: 0;
        left: 0;
        right: auto;
        text-align: left;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .section {
        padding: 5rem 5%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* ====== START OF REQUESTED UPDATES ====== */
/* Updated Navigation */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo img.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.logo-text {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Updated Skills Section */
.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.skill-percent {
    color: var(--primary-light);
    font-weight: 500;
}

.skill-bar {
    height: 4px;
}

.skill-level {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
