/*
 * Modern Minimal Portfolio Template
 * تصميم نظيف وعصري بألوان هادئة
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', 'Cairo', sans-serif;
    background: #FAFBFC;
    color: #1a1a2e;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.modern-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero */
.modern-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    color: white;
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -100px;
    right: -80px;
}

.modern-hero::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -60px;
    left: -60px;
}

.hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    position: relative;
}

.hero-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
}

.hero-title {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 400;
    position: relative;
}

.hero-bio {
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    position: relative;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

/* Sections */
.modern-section {
    padding: 4rem 0;
}

.modern-section-alt {
    background: #F0F2F5;
}

.section-heading {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #1a1a2e;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    margin: 0.8rem auto 0;
    border-radius: 4px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-item {
    background: white;
    padding: 1.5rem 1.8rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.skill-percent {
    color: #667eea;
    font-weight: 700;
    font-size: 0.85rem;
}

.skill-bar {
    height: 6px;
    background: #E8ECF1;
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #ec4899);
    border-radius: 3px;
    transition: width 1s ease;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.project-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.project-card p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.project-links a {
    font-size: 0.8rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.project-links a:hover {
    opacity: 0.7;
}

/* Contact */
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

/* Footer */
.modern-footer {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 0.8rem;
    border-top: 1px solid #E8ECF1;
}

.modern-footer a {
    color: #667eea;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-name { font-size: 1.8rem; }
    .skills-grid, .projects-grid { grid-template-columns: 1fr; }
    .modern-hero { padding: 4rem 1.5rem 3rem; }
}
