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

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background: #eef2f7;
    color: #1e293b;
    min-height: 100vh;
    padding: 30px 15px;
}

.container {
    max-width: 800px;
    margin: auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.header {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: white;
    text-align: center;
    padding: 45px 20px;
}

.profile-icon {
    width: 100px;
    height: 100px;
    background: white;
    color: #1d4ed8;
    border: 4px solid #93c5fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    font-weight: 800;
    margin: 0 auto 15px;
}

.header h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 5px;
}

.header p {
    color: #dbeafe;
    font-size: 16px;
}

.card {
    margin: 20px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border-right: 5px solid #2563eb;
    transition: 0.3s;
}

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

.card h2 {
    color: #1d4ed8;
    font-size: 21px;
    margin-bottom: 12px;
    font-weight: 700;
}

.card p {
    color: #475569;
    line-height: 2;
    font-size: 15px;
    text-align: justify;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills span {
    background: #dbeafe;
    color: #1e40af;
    padding: 8px 17px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.skills span:hover {
    background: #1d4ed8;
    color: white;
}

.email {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    direction: ltr;
    display: inline-block;
}

.email:hover {
    text-decoration: underline;
}

footer {
    background: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 18px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .container {
        width: 100%;
    }

    .header h1 {
        font-size: 25px;
    }

    .card {
        margin: 12px;
        padding: 20px;
    }

    .skills {
        gap: 8px;
    }

    .skills span {
        font-size: 12px;
    }
}