.skills {
    background-color: #1f242d;
    /* نفس الخلفية العامة */
    padding: 60px 20px;
    color: white;
}

:root {
    --bg-color: #1f242d;
    --f-color: #ffffff;
    --hover-color: #d68910;
    --color-button: #00e5e0;
}

.section-title {
    font-size: 50px;
    text-align: center;
}

.section-subtitle {
    font-size: 25px;
    text-align: center;
    color: #f39c12;
    font-weight: 500;
    padding-bottom: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.skill-item {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.skill-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-name {
    color: white;
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-percentage {
    color: #4fc3f7;
    font-weight: bold;
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background-color: var(--hover-color);
    border-radius: 10px;
    width: 0%;
    transition: width 2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(50%) translateY(0);
    }

    40% {
        transform: translateX(50%) translateY(-10px);
    }

    60% {
        transform: translateX(50%) translateY(-5px);
    }
}

.demo-area {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 50px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-btn {
    background: linear-gradient(45deg, #4fc3f7, #29b6f6);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}