/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

/* Global Styles */
body {
    font-family: 'Cairo', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #343a40;
    line-height: 1.7;
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    max-width: 1000px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header Styles */
.header-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    position: relative;
}

/* Profile Image Styles */
.profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.profile-image {
    width: 200px;
    height: 210px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3571b1;
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
    transition: all 0.3s ease;
    /* display: block; /*مخفية افتراضياً حتى يتم رفع صورة */
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 86, 179, 0.4);
}

/* .image-placeholder {
    width: 150px;
    height: 150px;
    /* border: 3px dashed #0056b3; */
    /*border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c4965 0%, #e9ecef 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
} */

.image-placeholder:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #004494;
    transform: scale(1.02);
}

.image-placeholder p {
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

.image-placeholder i {
    margin-bottom: 8px;
}

/* Animation for placeholder */
.image-placeholder {
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.contact-icons span {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(0, 86, 179, 0.1);
    border-radius: 25px;
    margin: 5px;
    transition: all 0.3s ease;
}

.contact-icons span:hover {
    background: rgba(0, 86, 179, 0.2);
    transform: translateY(-2px);
}

/* Section Styles */
.section-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.section-title {
    color: #0056b3;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Info Items */
.info-item {
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(0, 86, 179, 0.05);
    padding-left: 10px;
    border-radius: 8px;
}

.info-item:last-child {
    border-bottom: none;
}

/* Summary Text */
.summary-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    color: #495057;
}

/* Education Styles */
.education-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #0056b3;
}

.degree-title {
    color: #0056b3;
    font-weight: 600;
    margin-bottom: 10px;
}

.university, .graduation-date {
    color: #6c757d;
    margin-bottom: 5px;
}

/* Skills Styles */
.skill-category {
    margin-bottom: 25px;
}

.skill-category h5 {
    color: #0056b3;
    font-weight: 600;
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Project Styles */
.section-intro {
    font-size: 1.05rem;
    color: #495057;
    margin-bottom: 25px;
    text-align: justify;
    line-height: 1.7;
}

.project-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #0056b3;
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.project-header h5 {
    color: #0056b3;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.project-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.project-tech {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.tech-tag {
    background: rgba(0, 86, 179, 0.1);
    color: #0056b3;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 2px;
    display: inline-block;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 86, 179, 0.2);
    transform: scale(1.05);
}





/* Certification Styles */
.cert-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.cert-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.cert-item i {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.cert-item span {
    font-weight: 500;
    color: #495057;
    line-height: 1.4;
}

/* Language Styles */
.language-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
}

h1 {
    color: #0056b3;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.lead {
    font-weight: 400;
    color: #6c757d;
}

/* Animations */
.section-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
        border-radius: 15px;
    }
    
    .header-section {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .contact-icons span {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
    
    .section-card {
        padding: 20px;
    }
    
    .skill-tags {
        justify-content: center;
    }
    
    .project-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px 0;
    }
    
    .container {
        margin: 5px;
        padding: 15px;
    }
    
    .section-card {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .section-card {
        box-shadow: none;
        border: 1px solid #eee;
        break-inside: avoid;
    }
    
    .project-card {
        break-inside: avoid;
    }
}









