/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f97316;
    --accent-color: #10b981;
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    --bg-dark: #0f172a;
    --bg-light: #f1f5f9;
    --card-bg: rgba(30, 58, 138, 0.1);
    --border-color: rgba(249, 115, 22, 0.2);
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h3 {
    color: var(--text-light);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 2;
    position: relative;
}

.profile-image {
    margin: 0 auto 2rem;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--text-light), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

/* Circuit Background Animation */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.circuit-line {
    position: absolute;
    background: rgba(249, 115, 22, 0.1);
    animation: pulse 4s linear infinite;
}

.line-1 { width: 2px; height: 60%; top: 20%; left: 10%; animation-delay: 0s; }
.line-2 { width: 40%; height: 2px; top: 50%; right: 20%; animation-delay: 1s; }
.line-3 { width: 2px; height: 40%; bottom: 10%; right: 15%; animation-delay: 2s; }

@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

/* Section Styles */
section { 
    padding: 5rem 0; 
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* About Section */
.about { 
    background: var(--bg-light); 
}

.about-text {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-dark);
    line-height: 1.8;
}

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

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon i {
    font-size: 2rem;
    color: white;
}

/* Languages */
.languages {
    max-width: 600px;
    margin: 0 auto;
}

.languages h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.language-bar {
    margin-bottom: 1rem;
}

.language-bar span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 2s ease-in-out;
}

/* Experience Section */
.experience-section {
    margin-top: 4rem;
}

.experience-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.experience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.experience-card:hover { 
    transform: translateY(-3px); 
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-logo i {
    font-size: 1.5rem;
    color: white;
}

/* Projects Section */
.projects {
    background: var(--bg-dark);
    color: var(--text-light);
}

.projects .section-title { 
    color: var(--text-light); 
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(249, 115, 22, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.1);
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-overlay i { 
    font-size: 3rem; 
    color: var(--secondary-color); 
}

.project-card:hover .project-image img { 
    transform: scale(1.05); 
}

.project-card:hover .project-overlay { 
    opacity: 1; 
}

/* Education Section */
.education { 
    background: var(--bg-light); 
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
}

.timeline-item {
    position: relative;
    padding: 0 0 3rem 80px;
}

.timeline-icon {
    position: absolute;
    left: 15px;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon i { 
    font-size: 1rem; 
    color: white; 
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
    background: var(--primary-color);
    color: var(--text-light);
}

.contact .section-title { 
    color: var(--text-light); 
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i { 
    color: white; 
    font-size: 1.2rem; 
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Social Links */
.social-links { 
    display: flex; 
    justify-content: center; 
    gap: 1rem; 
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover { 
    transform: translateY(-3px); 
}

.social-link i { 
    color: white; 
    font-size: 1.2rem; 
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
}

/* Project Pages Styles */
.project-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-color) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.project-demo {
    background: var(--bg-light);
    padding: 4rem 0;
}

.demo-interface {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pump-control {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pump-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pump-card.active {
    border-color: var(--accent-color);
    background: #ecfdf5;
}

.pump-status {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.pump-status.on {
    background: var(--accent-color);
    animation: pulse-green 2s infinite;
}

.pump-status.off {
    background: #64748b;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.control-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.control-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

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

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.components-section {
    background: white;
    padding: 4rem 0;
}

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

.component-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.circuit-diagram {
    max-width: 100%;
    height: 400px;
    background: #1e293b;
    border-radius: 15px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.achievements {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0;
}

.medal {
    text-align: center;
    margin-bottom: 2rem;
}

.medal i {
    font-size: 4rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

/* Solar Project Specific Styles */
.solar-demo {
    background: var(--bg-light);
    padding: 4rem 0;
}

.solar-system {
    max-width: 1000px;
    margin: 2rem auto;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.solar-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.panel {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 10px;
    padding: 1rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.energy-flow {
    background: #f8fafc;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.flow-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.flow-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.solar-icon { background: #f59e0b; }
.battery-icon { background: #ef4444; }
.pump-icon { background: #10b981; }

.flow-arrow {
    font-size: 2rem;
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

.environmental-impact {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.impact-card {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.sustainability-features {
    background: white;
    padding: 4rem 0;
}

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

.feature-card {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.innovation-award {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.award-badge {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.award-badge i {
    font-size: 4rem;
    color: #f59e0b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }
    .nav-menu.active { left: 0; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .contact-content, .experience-cards, .projects-grid, .skills-grid {
        grid-template-columns: 1fr !important;
    }
    .pump-control, .solar-panels {
        grid-template-columns: 1fr;
    }
    .flow-diagram {
        flex-direction: column;
    }
    .flow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .demo-interface {
        padding: 1rem;
    }
}






















































































































































































































































































































































































































































































































/*   تحسين قابلية القراءة للنص العربي    الخاصة بالتربصات*/
.experience-section {
    font-family: 'Amiri', 'Arial', 'Tahoma', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.experience-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.experience-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.experience-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border-right: 4px solid #007bff;
    margin-bottom: 20px;
}

.experience-details h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.7;
    font-weight: bold;
}

.experience-details .company {
    font-size: 1.1rem;
    color: #3498db;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.6;
}

.experience-details .period {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 15px;
    font-weight: 500;
    background: #e8f4f8;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
}

.experience-details .description {
    font-size: 1.05rem;
    color: #34495e;
    line-height: 2;
    text-align: justify;
    margin: 0;
    padding: 15px 0;
    word-spacing: 2px;
    text-indent: 20px;
}

/* تحسين المسافات على الشاشات الصغيرة */
@media (max-width: 768px) {
    .experience-section {
        padding: 15px;
    }
    
    .experience-card {
        padding: 20px 15px;
    }
    
    .experience-details h4 {
        font-size: 1.2rem;
        line-height: 1.8;
    }
    
    .experience-details .description {
        font-size: 1rem;
        line-height: 1.9;
        text-indent: 15px;
    }
}

/* إضافة خط Google Fonts للعربية */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');



























































































































































































































































































































































































































/* تحسين قابلية القراءة لقسم التعليم */
.education {
    font-family: 'Amiri', 'Arial', 'Tahoma', sans-serif;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.education .section-title {
    font-size: 2.2rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 50px;
    line-height: 1.6;
    font-weight: bold;
}

/* تحسين Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #3498db, #2c3e50);
    transform: translateX(50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 25px 30px;
    margin-right: 60px;
    border-right: 4px solid #3498db;
}

.timeline-item:nth-child(even) {
    margin-right: 0;
    margin-left: 60px;
    border-right: none;
    border-left: 4px solid #e74c3c;
}

.timeline-icon {
    position: absolute;
    right: -45px;
    top: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.timeline-item:nth-child(even) .timeline-icon {
    right: auto;
    left: -45px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.7;
    font-weight: bold;
}

.timeline-content .institution {
    font-size: 1.15rem;
    color: #3498db;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.6;
}

.timeline-content .period {
    font-size: 1rem;
    color: #7f8c8d;
    background: #ecf0f1;
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content .location,
.timeline-content .specialty,
.timeline-content .description {
    font-size: 1.05rem;
    color: #34495e;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* تحسين الإنجازات */
.achievements {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 3px solid #27ae60;
}

.achievements h4 {
    font-size: 1.2rem;
    color: #27ae60;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.6;
}

.achievements ul {
    list-style: none;
    padding: 0;
}

.achievements li {
    font-size: 1.05rem;
    color: #2c3e50;
    line-height: 1.8;
    margin-bottom: 8px;
    position: relative;
    padding-right: 25px;
}

.achievements li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

/* تحسين المهارات التقنية */
.technical-skills-section {
    margin-top: 60px;
    padding: 40px 0;
}

.skills-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 1.8rem;
    line-height: 1.6;
    font-weight: bold;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.skill-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-top: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.skill-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.6;
    font-weight: bold;
}

.skill-card p {
    font-size: 1rem;
    color: #7f8c8d;
    line-height: 1.7;
    margin: 0;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .timeline::before {
        right: 30px;
    }
    
    .timeline-item {
        margin-right: 0;
        margin-left: 70px;
        padding: 20px;
    }
    
    .timeline-item:nth-child(even) {
        margin-right: 0;
        margin-left: 70px;
    }
    
    .timeline-icon {
        right: -45px;
        left: auto;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .timeline-item:nth-child(even) .timeline-icon {
        right: -45px;
        left: auto;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .education .section-title {
        font-size: 1.8rem;
    }
    
    .timeline-content h3 {
        font-size: 1.25rem;
    }
}























































































































































































































































/* تحسين قابلية القراءة لقسم المشاريع */
.projects {
    font-family: 'Amiri', 'Arial', 'Tahoma', sans-serif;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
}

.projects .section-title {
    font-size: 2.5rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 60px;
    line-height: 1.6;
    font-weight: bold;
    position: relative;
}

.projects .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    border-radius: 2px;
}

/* تحسين شبكة المشاريع */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* تحسين بطاقات المشاريع */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* تحسين صورة المشروع */
.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(231, 76, 60, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* تحسين محتوى المشروع */
.project-content {
    padding: 30px 25px;
}

.project-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.7;
    font-weight: bold;
    text-align: center;
}

.project-description {
    font-size: 1.1rem;
    color: #5a6c7d;
    line-height: 2;
    margin-bottom: 25px;
    text-align: justify;
    text-indent: 15px;
    word-spacing: 1px;
}

/* تحسين علامات التقنيات */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.tech-tag {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 80px;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.tech-tag:nth-child(even) {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.tech-tag:nth-child(even):hover {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* تحسين الجوائز */
.project-award {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.project-award i {
    margin-left: 10px;
    font-size: 1.2rem;
}

/* تحسين روابط المشروع */
.project-links {
    text-align: center;
}

.project-links .btn {
    display: inline-block;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.project-links .btn:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

/* تأثيرات إضافية */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .projects {
        padding: 60px 0;
    }
    
    .projects .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .project-card {
        border-radius: 15px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-content {
        padding: 25px 20px;
    }
    
    .project-content h3 {
        font-size: 1.3rem;
        line-height: 1.6;
    }
    
    .project-description {
        font-size: 1rem;
        line-height: 1.8;
        text-indent: 10px;
    }
    
    .project-tech {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .tech-tag {
        font-size: 0.85rem;
        padding: 6px 12px;
        min-width: 70px;
    }
    
    .project-award {
        padding: 10px 15px;
        font-size: 0.95rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .project-award i {
        margin-left: 0;
        margin-bottom: 5px;
    }
    
    .project-links .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}
























































































































































































/* تحسين قسم التواصل */
.contact {
    font-family: 'Amiri', 'Arial', 'Tahoma', sans-serif;
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.contact .section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.6;
    font-weight: bold;
    color: white;
    position: relative;
}

.contact .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    border-radius: 2px;
}

/* تحسين محتوى التواصل */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* تحسين معلومات التواصل */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px 20px;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.6;
    color: #f8f9fa;
}

.contact-details p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e8f4f8;
    margin: 0;
}

/* تحسين أرقام الهاتف */
.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-number {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phone-label {
    font-size: 0.95rem;
    color: #bdc3c7;
    font-weight: 500;
}

.phone-value {
    font-size: 1.1rem;
    color: #f8f9fa;
    direction: ltr;
    unicode-bidi: bidi-override;
    font-weight: 600;
    letter-spacing: 1px;
}

.work-status {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    color: white !important;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

/* تحسين النموذج */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.6;
}

.form-header p {
    font-size: 1rem;
    color: #7f8c8d;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.5;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Amiri', 'Arial', 'Tahoma', sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.8;
}

.contact-form .btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    letter-spacing: 0.5px;
}

.contact-form .btn:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

/* تحسين الروابط الاجتماعية */
.social-links {
    margin-top: 60px;
    text-align: center;
}

.social-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #f8f9fa;
    font-weight: bold;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 15px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    min-width: 120px;
}

.social-link i {
    font-size: 1.8rem;
}

.social-link span {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-link.email:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.social-link.phone:hover {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.social-link.linkedin:hover {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-link.github:hover {
    background: linear-gradient(135deg, #333, #24292e);
}

/* تحسين الفوتر */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 40px 0 20px;
    font-family: 'Amiri', 'Arial', 'Tahoma', sans-serif;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-main h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.6;
}

.footer-main p {
    font-size: 1rem;
    color: #bdc3c7;
    line-height: 1.7;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    line-height: 1.6;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #95a5a6;
}

.made-with {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.made-with i {
    color: #e74c3c;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 50%, 100% {
        transform: scale(1);
    }
    25%, 75% {
        transform: scale(1.1);
    }
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 15px;
    }
    
    .contact-item {
        padding: 20px 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .social-icons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .social-link {
        flex-direction: row;
        min-width: 200px;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .contact-content {
        padding: 0 10px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .phone-number {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}





























































































































































































































/* تحسين قسم نبذة عني */
.about {
    font-family: 'Amiri', 'Arial', 'Tahoma', sans-serif;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(52, 152, 219, 0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

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

.about .section-title {
    font-size: 2.5rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 60px;
    line-height: 1.6;
    font-weight: bold;
    position: relative;
}

.about .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    border-radius: 2px;
}

/* تحسين محتوى النبذة */
.about-content {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.about-text {
    text-align: center;
}

.text-wrapper {
    background: white;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.text-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #e74c3c, #f39c12, #27ae60);
}

.intro-text {
    font-size: 1.3rem;
    color: #2c3e50;
    line-height: 2.2;
    margin-bottom: 35px;
    text-align: justify;
    text-indent: 20px;
    word-spacing: 2px;
    position: relative;
}

/* إحصائيات مميزة */
.highlight-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-top: 3px solid #3498db;
    transition: all 0.3s ease;
    min-width: 120px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.2);
}

.stat-item:nth-child(2) {
    border-top-color: #e74c3c;
}

.stat-item:nth-child(3) {
    border-top-color: #f39c12;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
    line-height: 1.4;
}

/* تحسين قسم المهارات */
.skills-section {
    margin-bottom: 60px;
}

.skills-main-title {
    font-size: 2rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: bold;
    position: relative;
}

.skills-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skill-card {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.skill-card::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.6s;
}

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

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.skill-card:nth-child(2) .skill-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.skill-card:nth-child(3) .skill-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.skill-card:nth-child(4) .skill-icon {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.skill-card:hover .skill-icon {
    transform: rotateY(360deg);
}

.skill-card h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: bold;
}

.skill-card p {
    font-size: 1.05rem;
    color: #7f8c8d;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.skill-badge {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.5px;
}

.skill-card:nth-child(2) .skill-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.skill-card:nth-child(3) .skill-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.skill-card:nth-child(4) .skill-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

/* تحسين قسم لغات البرمجة */
.languages-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.languages-title {
    font-size: 1.8rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: bold;
    position: relative;
}

.languages-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 2px;
}

.languages-grid {
    display: grid;
    gap: 25px;
}

.language-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-right: 4px solid #3498db;
    transition: all 0.3s ease;
}

.language-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.language-item:nth-child(2) {
    border-right-color: #e74c3c;
}

.language-item:nth-child(3) {
    border-right-color: #f39c12;
}

.language-item:nth-child(4) {
    border-right-color: #27ae60;
}

.language-item:nth-child(5) {
    border-right-color: #9b59b6;
}

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

.language-name {
    font-size: 1.15rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.5;
}

.language-percentage {
    font-size: 1.1rem;
    color: #3498db;
    font-weight: bold;
}

.progress {
    background: #ecf0f1;
    border-radius: 25px;
    height: 12px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 25px;
    transition: width 2s ease-in-out;
    position: relative;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.progress-bar.cpp {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.progress-bar.arduino {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.progress-bar.python {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.progress-bar.java {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.progress-bar.php {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .about {
        padding: 60px 0;
    }
    
    .about .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .text-wrapper {
        padding: 30px 25px;
    }
    
    .intro-text {
        font-size: 1.15rem;
        line-height: 1.9;
        text-indent: 15px;
    }
    
    .highlight-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .stat-item {
        min-width: 200px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .skill-card {
        padding: 25px 20px;
    }
    
    .skill-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .languages-section {
        padding: 0 15px;
    }
    
    .language-item {
        padding: 20px;
    }
    
    .language-name {
        font-size: 1rem;
    }
    
    .language-percentage {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-content {
        padding: 0 10px;
    }
    
    .text-wrapper {
        padding: 25px 20px;
    }
    
    .intro-text {
        font-size: 1rem;
        line-height: 1.8;
        text-indent: 10px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .skill-card h3 {
        font-size: 1.2rem;
    }
    
    .skill-card p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .language-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* تحريك أشرطة التقدم عند التحميل */
@keyframes loadProgress {
    from {
        width: 0;
    }
    to {
        width: var(--target-width);
    }
}

.progress-bar {
    animation: loadProgress 2s ease-out forwards;
}

















































































































































































































































































/* زر تحميل السيرة الذاتية */
.btn-cv {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transform: translateY(0);
}

.btn-cv:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-cv:active {
    transform: translateY(-1px);
    transition: all 0.1s;
}

/* تأثير اللمعان */
.btn-shine {
    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.6s;
}

.btn-cv:hover .btn-shine {
    left: 100%;
}

/* أيقونة التحميل */
.btn-cv i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-cv:hover i {
    transform: translateY(2px);
    animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* نص الزر */
.btn-text {
    position: relative;
    z-index: 2;
}

/* تأثير النبضة */
.btn-cv::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cv:hover::before {
    width: 300px;
    height: 300px;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .btn-cv {
        padding: 12px 20px;
        font-size: 14px;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* تحسين تخطيط الأزرار */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

/* تأثير إضافي للتركيز */
.btn-cv:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.4);
}

/* تأثير التحميل */
.btn-cv.downloading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-cv.downloading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


















/* إشعار التحميل */
.download-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    font-weight: 500;
}

.download-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.download-notification i {
    font-size: 18px;
}

/* تصميم متجاوب للإشعار */
@media (max-width: 768px) {
    .download-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .download-notification.show {
        transform: translateY(0);
    }
}





















































































































































































































































































































/* تحسين تخطيط المهارات التقنية */
.technical-skills-section .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* تأثيرات خاصة للأيقونات الجديدة */
.skill-card:nth-child(4) .skill-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.skill-card:nth-child(5) .skill-icon {
    background: linear-gradient(135deg, #5f27cd, #341f97);
}

/* تأثير hover للبطاقات الجديدة */
.skill-card:nth-child(4):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.3);
}

.skill-card:nth-child(5):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(95, 39, 205, 0.3);
}

/* تحسين الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .technical-skills-section .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .technical-skills-section .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}


























































/* تصميم خاص للأيقونات التي تحتوي على صور */
.skill-icon-image {
    background: linear-gradient(135deg, #00d2d3, #00a8cc) !important;
    padding: 8px;
}

.skill-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
}

/* تأثير hover للصورة */
.skill-card:hover .skill-image {
    transform: scale(1.1);
    filter: brightness(1.2) contrast(1.2);
}

/* تأثير خاص لبطاقة Virtual Breadboard */
.skill-card:nth-child(4):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 210, 211, 0.3);
}

.skill-card:nth-child(4) .skill-icon-image:hover {
    background: linear-gradient(135deg, #00a8cc, #00d2d3);
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 768px) {
    .skill-image {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .skill-image {
        width: 30px;
        height: 30px;
    }
}
































































































































































































































































/* تصميم عام للأيقونات التي تحتوي على صور */
.skill-icon-image {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    padding: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.skill-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

/* تأثيرات hover مختلفة لكل برنامج */

/* Arduino IDE - أزرق */
.skill-card:nth-child(1) .skill-icon-image {
    background: linear-gradient(135deg, #00979d, #00646a) !important;
}

.skill-card:nth-child(1):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 151, 157, 0.3);
}

.skill-card:nth-child(1):hover .skill-icon-image {
    background: linear-gradient(135deg, #00646a, #00979d) !important;
    border-color: #00979d;
}

/* Multisim - أزرق غامق */
.skill-card:nth-child(2) .skill-icon-image {
    background: linear-gradient(135deg, #1e3799, #0c2461) !important;
}

.skill-card:nth-child(2):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(30, 55, 153, 0.3);
}

.skill-card:nth-child(2):hover .skill-icon-image {
    background: linear-gradient(135deg, #0c2461, #1e3799) !important;
    border-color: #1e3799;
}

/* Circuit Wizard - بنفسجي */
.skill-card:nth-child(3) .skill-icon-image {
    background: linear-gradient(135deg, #8c7ae6, #6c5ce7) !important;
}

.skill-card:nth-child(3):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(140, 122, 230, 0.3);
}

.skill-card:nth-child(3):hover .skill-icon-image {
    background: linear-gradient(135deg, #6c5ce7, #8c7ae6) !important;
    border-color: #8c7ae6;
}

/* Virtual Breadboard - أخضر */
.skill-card:nth-child(4) .skill-icon-image {
    background: linear-gradient(135deg, #00d2d3, #00a8cc) !important;
}

.skill-card:nth-child(4):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 210, 211, 0.3);
}

.skill-card:nth-child(4):hover .skill-icon-image {
    background: linear-gradient(135deg, #00a8cc, #00d2d3) !important;
    border-color: #00d2d3;
}

/* Proteus - برتقالي */
.skill-card:nth-child(5) .skill-icon-image {
    background: linear-gradient(135deg, #ff9ff3, #f368e0) !important;
}

.skill-card:nth-child(5):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 159, 243, 0.3);
}

.skill-card:nth-child(5):hover .skill-icon-image {
    background: linear-gradient(135deg, #f368e0, #ff9ff3) !important;
    border-color: #ff9ff3;
}

/* تأثير hover للصور */
.skill-card:hover .skill-image {
    transform: scale(1.1);
    filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.15));
}

/* تأثير loading للصور */
.skill-image {
    opacity: 0;
    animation: fadeInImage 0.5s ease forwards;
}

@keyframes fadeInImage {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* تأثير إضافي - نبضة خفيفة */
.skill-card:hover .skill-icon-image {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 768px) {
    .skill-image {
        width: 40px;
        height: 40px;
    }
    
    .skill-icon-image {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .skill-image {
        width: 35px;
        height: 35px;
    }
    
    .skill-icon-image {
        padding: 6px;
    }
}



/* معالجة حالة عدم تحميل الصورة */
.skill-image {
    background: linear-gradient(135deg, #f1f2f6, #ddd);
    border-radius: 4px;
}

.skill-image:not([src]) {
    content: "🔧";
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
