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

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background: linear-gradient(135deg, #f5f3f0 0%, #e8e4df 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Egyptian Design Elements */
.egyptian-border {
    height: 8px;
    background: linear-gradient(90deg, 
        #d4af37 0%, 
        #b8860b 25%, 
        #8b4513 50%, 
        #b8860b 75%, 
        #d4af37 100%);
    position: relative;
}

.egyptian-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #d4af37 0px,
        #d4af37 10px,
        #8b4513 10px,
        #8b4513 20px
    );
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: #ffffff;
    padding: 3rem 2rem;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(184, 134, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease;
}

.profile-image-placeholder:hover {
    transform: scale(1.05);
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 1rem;
    font-weight: 300;
}

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

.contact-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.contact-link:hover {
    background: #d4af37;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Main Content Styles */
.main-content {
    padding: 0 2rem;
}

.section {
    padding: 3rem 0;
    border-bottom: 1px solid #e8e4df;
    position: relative;
}

.section:last-child {
    border-bottom: none;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 1rem;
    position: relative;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #b8860b);
    margin: 0 auto;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #d4af37;
    border-radius: 50%;
}

.section-divider::before {
    left: -15px;
}

.section-divider::after {
    right: -15px;
}

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

/* Introduction Section */
.introduction .section-content p {
    font-size: 1.3rem;
    text-align: center;
    color: #555;
    font-weight: 300;
    line-height: 1.8;
}

/* Academic Background - Timeline */
.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 40px;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(180deg, #d4af37, #e8e4df);
}

.timeline-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #2c2c2c;
    margin-bottom: 0.3rem;
}

.timeline-content .institution {
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.timeline-content .description {
    color: #666;
    line-height: 1.6;
}

/* Professional Contributions - Grid */
.contribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.contribution-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fafafa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e8e4df;
}

.contribution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.contribution-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.contribution-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2c2c2c;
    margin-bottom: 0.8rem;
}

.contribution-item p {
    color: #666;
    line-height: 1.6;
}

/* Cultural Engagement */
.engagement-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.engagement-item {
    padding: 2rem;
    background: #fafafa;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
    transition: all 0.3s ease;
}

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

.engagement-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #2c2c2c;
    margin-bottom: 0.8rem;
}

.engagement-item p {
    color: #666;
    line-height: 1.7;
}

/* Achievements */
.achievement-highlight {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    border-radius: 15px;
    border: 1px solid #e8e4df;
    position: relative;
    overflow: hidden;
}

.achievement-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #d4af37, #b8860b);
}

.achievement-year {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #d4af37;
    flex-shrink: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.achievement-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.achievement-program {
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.achievement-description {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Contact Section */
.contact-info {
    text-align: center;
}

.contact-info p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: #fafafa;
    border-radius: 50px;
    text-decoration: none;
    color: #2c2c2c;
    transition: all 0.3s ease;
    border: 1px solid #e8e4df;
}

.contact-method:hover {
    background: #d4af37;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.contact-method i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: #cccccc;
    text-align: center;
    padding: 2rem;
}

.footer p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }
    
    .header {
        padding: 2rem 1rem;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-image-placeholder {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    .name {
        font-size: 2.2rem;
    }
    
    .main-content {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contribution-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .achievement-highlight {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .achievement-year {
        font-size: 2.5rem;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contact-method {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    .timeline-marker {
        width: 25px;
        height: 25px;
        margin-right: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0.8rem;
    }
    
    .main-content {
        padding: 0 0.8rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 1rem;
    }
    
    .contribution-item,
    .engagement-item {
        padding: 1.5rem 1rem;
    }
    
    .achievement-highlight {
        padding: 1.5rem 1rem;
    }
    
    .achievement-year {
        font-size: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation for sections on scroll */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.section {
    animation: fadeInUp 0.6s ease forwards;
}

