/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
/*------------------------------------------------------------------------------------------------------------------------------------*/
/* Header & Nav */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo h1 {
    color: #2563eb;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2563eb;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}
/*------------------------------------------------------------------------------------------------------------------------------------*/
/* Hero */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8rem 5% 5rem;
    background: linear-gradient(135deg, #f0f4ff, #e6f0ff);
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.highlight {
    color: #2563eb;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: #2563eb;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 1rem;
    font-weight: 500;
    transition: background 0.3s;
}

.hero-buttons .secondary {
    background-color: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn:hover {
    background-color: #1d4ed8;
}

.secondary:hover {
    background-color: #2563eb;
    color: white;
}

.social-icons {
    margin-top: 2rem;
}

.social-icons a {
    display: inline-block;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    color: #555;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #2563eb;
}

.hero-image {
    width: 450px;  /* تكبير العرض */
    height: 450px; /* تكبير الارتفاع */
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #2563eb; /* زيادة سمك الإطار */
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3); /* تكبير الظل */
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.profile-photo:hover {
    transform: scale(1.15); /* تكبير أكبر عند التحويم */
}
/*------------------------------------------------------------------------------------------------------------------------------------*/
/* About Section */
.section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.about-text:first-of-type {
    margin-bottom: 0.5rem;
}

.highlight-text {
    color: #2563eb;
    font-size: 1.4rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    font-style: italic;
    line-height: 1.4;
}
/*------------------------------------------------------------------------------------------------------------------------------------*/
/* Experience Section - Enhanced */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    background: white;
    padding: 1.8rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 1.8rem;
    border-left: 4px solid #2563eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
}

.company-logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #2563eb20;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timeline-content {
    flex: 1;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.timeline-header .date {
    color: #2563eb;
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(37, 99, 235, 0.1);
    padding: 0.3rem 1rem;
    border-radius: 20px;
}

.timeline-item .company {
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.timeline-item .company i {
    font-size: 0.8rem;
    color: #2563eb;
}

.timeline-item p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.experience-tags span {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.client-logos {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
}

.client-logo {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: contain;
    background: white;
    border: 1px solid #2563eb20;
}

.more-clients {
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}
/*------------------------------------------------------------------------------------------------------------------------------------*/
/* Education Section */
.education-container {
    max-width: 600px;
    margin: 0 auto;
}

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
}

.education-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.education-icon i {
    font-size: 30px;
    color: white;
}

.education-content {
    flex: 1;
}

.education-content h3 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.education-content .institution {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.education-details {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.education-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.education-details i {
    color: #2563eb;
    font-size: 0.9rem;
}
/*------------------------------------------------------------------------------------------------------------------------------------*/
/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 35px;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.service-features li {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.services-cta {
    text-align: center;
    margin-top: 50px;
}

.services-cta .btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background-color: #2563eb;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.services-cta .btn:hover {
    background-color: #1d4ed8;
}
/*------------------------------------------------------------------------------------------------------------------------------------*/
/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #1e293b;
}

.project-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.tech-tags span {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    text-decoration: none;
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.project-links a:hover {
    background-color: #1d4ed8;
}
/*------------------------------------------------------------------------------------------------------------------------------------*/
/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: white;
    padding: 2rem 1.8rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
}

.skill-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}

.skill-header i {
    font-size: 3rem;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    padding: 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-header h3 {
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #475569;
    font-size: 0.95rem;
}

.skills-list li:last-child {
    border-bottom: none;
}

.skills-list li i {
    color: #2563eb;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

/*------------------------------------------------------------------------------------------------------------------------------------*/
/* Contact */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.contact-box:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: #2563eb;
}

.contact-box h4 {
    margin: 0.5rem 0;
    color: #1e293b;
}

.contact-box p {
    margin: 0;
    color: #64748b;
}
/*------------------------------------------------------------------------------------------------------------------------------------*/
/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: #1e293b;
    color: white;
}
/*------------------------------------------------------------------------------------------------------------------------------------*/
/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }
    .hero-image {
        margin-top: 3rem;
        width: 250px;
        height: 250px;
    }
    
    /* Services Responsive */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero-content h2 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    
    /* Experience Responsive */
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .company-logo {
        width: 50px;
        height: 50px;
    }
    
    .timeline-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .client-logos {
        margin-left: 0;
        margin-top: 5px;
    }
    
    /* Education Responsive */
    .education-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .education-details {
        justify-content: center;
    }
    
    /* Contact Responsive */
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Services Responsive */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 30px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .education-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .client-logos {
        flex-wrap: wrap;
    }
}