body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* برای قرار دادن ویدیو در پس‌زمینه */
}

#bg-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.container {
    position: relative;
    z-index: 1; /* برای قرار دادن محتوا در بالای ویدیو */
    max-width: 800px;
    margin: auto;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
}

main {
    text-align: center;
}

.skills-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill {
    margin: 20px 0;
    width: 80%;
}

.progress-bar {
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    height: 20px;
    width: 100%;
    position: relative;
}

.progress {
    background: #4caf50;
    height: 100%;
    width: 0;
    animation: progress-animation 2s forwards;
}

@keyframes progress-animation {
    from {
        width: 0;
    }
    to {
        width: var(--progress-width);
    }
}

footer {
    text-align: center;
    margin-top: 20px;
}

.contact-icons a {
    margin: 0 10px;
    color: #333;
    text-decoration: none;
    font-size: 1.5em;
}

.download-icon {
    width: 50px;
    height: 50px;
}

/* Media Queries برای واکنش‌گرایی */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 10px;
    }

    .profile-pic {
        width: 80px;
        height: 80px;
    }

    .skills-container {
        width: 100%;
    }

    .skill {
        width: 100%;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }
}