/* ==============================
   تنسيقات قسم المطورين المحسّن
   ============================== */

/* خلفية القسم */
.developers {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.developers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(245, 166, 35, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(46, 74, 98, 0.15) 0%, transparent 50%);
    animation: bgMove 15s ease-in-out infinite alternate;
}

@keyframes bgMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, -30px); }
}

/* شبكة خلفية */
.developers::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(245, 166, 35, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 166, 35, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

/* عناوين القسم */
.developers .section-title {
    color: var(--white);
    font-size: 3rem;
    position: relative;
    display: inline-block;
}

.developers .section-title::before {
    content: '</>';
    position: absolute;
    top: -30px;
    right: -40px;
    font-family: 'Courier New', monospace;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
}

.developers .section-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* المحتوى المحسّن */
.developers-content-enhanced {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

/* بطاقة المهندس */
.engineer-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(245, 166, 35, 0.3);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.engineer-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.engineer-card:hover::before {
    opacity: 0.6;
}

.engineer-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 30px 80px rgba(245, 166, 35, 0.5);
    border-color: var(--accent-color);
}

/* صورة المهندس */
.engineer-image {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
}

.engineer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.engineer-card:hover .engineer-image img {
    transform: scale(1.1);
}

.engineer-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(26, 26, 46, 0.95) 100%);
    transition: background 0.5s ease;
}

.engineer-card:hover .engineer-image::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(26, 26, 46, 0.85) 100%);
}

/* شارة التخصص */
.engineer-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color), #D98E19);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 800;
    z-index: 3;
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.6);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 25px rgba(245, 166, 35, 0.6); }
    50% { transform: scale(1.05); box-shadow: 0 10px 35px rgba(245, 166, 35, 0.8); }
}

/* محتوى البطاقة */
.engineer-content {
    padding: 40px;
    position: relative;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.8) 0%, rgba(26, 26, 46, 0.95) 100%);
    z-index: 2;
}

.engineer-name {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 3;
}

.engineer-name i {
    font-size: 2rem;
    color: var(--accent-color);
    filter: drop-shadow(0 0 10px rgba(245, 166, 35, 0.6));
}

.engineer-role {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(245, 166, 35, 0.4);
    position: relative;
    z-index: 3;
}

.engineer-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 28px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 3;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
}

/* المهارات */
.engineer-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    position: relative;
    z-index: 3;
}

.skill-tag {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(245, 166, 35, 0.1));
    border: 2px solid rgba(245, 166, 35, 0.4);
    border-radius: 25px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--accent-color), #D98E19);
    border-color: var(--accent-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.5);
}

/* روابط التواصل */
.engineer-social {
    display: flex;
    gap: 18px;
    padding-top: 25px;
    border-top: 2px solid rgba(245, 166, 35, 0.3);
    position: relative;
    z-index: 3;
}

.social-link-dev {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(46, 74, 98, 0.15));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
}

.social-link-dev:hover {
    background: linear-gradient(135deg, var(--accent-color), #D98E19);
    border-color: var(--accent-color);
    transform: translateY(-8px) rotate(360deg) scale(1.15);
    box-shadow: 0 12px 30px rgba(245, 166, 35, 0.6);
}

/* إحصائيات التطوير */
.dev-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.stat-box-dev {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
}

.stat-box-dev:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 35px rgba(245, 166, 35, 0.3);
}

.stat-number-dev {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-color), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label-dev {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* التصميم المتجاوب */
@media (max-width: 992px) {
    .developers-content-enhanced {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .developers .section-title {
        font-size: 2.2rem;
    }
    
    .dev-info-section {
        padding: 35px;
    }
    
    .dev-main-title {
        font-size: 1.8rem;
    }
    
    .tech-title {
        font-size: 1.7rem;
    }
    
    .dev-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .developers .section-title {
        font-size: 1.8rem;
    }
    
    .dev-info-section {
        padding: 25px;
    }
    
    .dev-main-title {
        font-size: 1.5rem;
    }
    
    .detail-item {
        padding: 15px;
    }
    
    .tech-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}
