/* ==============================
   قسم المطورين - تصميم 3D احترافي
   ============================== */

/* الخلفية العامة للقسم */
.developers {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.developers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(155, 89, 182, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* تزيين العنوان */
.header-decorator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.decorator-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    position: relative;
    animation: line-glow 2s ease-in-out infinite;
}

@keyframes line-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

.header-icon {
    font-size: 2.5rem;
    color: #3498db;
    animation: icon-pulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.6);
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        color: #3498db;
    }
    50% {
        transform: scale(1.1);
        color: #9b59b6;
    }
}

/* تحسين العنوان */
.developers .section-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #3498db, #9b59b6, #3498db);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-animation 3s ease infinite;
    text-shadow: 0 5px 30px rgba(52, 152, 219, 0.3);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

@keyframes gradient-animation {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* تحسين الوصف */
.developers .section-description {
    font-size: 1.3rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.developers .section-description::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    animation: description-glow 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes description-glow {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
}

/* شبكة البطاقات */
.developers-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
    gap: 60px;
    margin-top: 60px;
    padding: 20px;
    perspective: 1000px;
    position: relative;
    z-index: 10;
}

/* البطاقة الثلاثية الأبعاد */
.developer-card-3d {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: visible !important;
    z-index: auto;
    isolation: auto;
}

.developer-card-3d:hover {
    transform: translateY(-20px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(52, 152, 219, 0.4);
    box-shadow: 
        0 40px 100px rgba(52, 152, 219, 0.3),
        0 0 40px rgba(52, 152, 219, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* توهج البطاقة */
.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 30px;
    background: linear-gradient(45deg, 
        rgba(52, 152, 219, 0.5),
        rgba(155, 89, 182, 0.5),
        rgba(52, 152, 219, 0.5));
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.6s ease;
    animation: glow-rotate 4s linear infinite;
    pointer-events: none;
}

@keyframes glow-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.developer-card-3d:hover .card-glow {
    opacity: 1;
}

/* غلاف الصورة */
.developer-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 30px;
    perspective: 1000px;
}

/* تكبير خاص لصورة المهندس حازم */
.hazem-card .developer-image-wrapper {
    width: 280px;
    height: 420px;
}

/* الحلقة المتوهجة */
.image-glow-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3498db, #9b59b6, #3498db);
    background-size: 200% 200%;
    animation: ring-rotate 3s linear infinite, ring-pulse 2s ease-in-out infinite;
    filter: blur(10px);
    opacity: 0.6;
    pointer-events: none;
}

@keyframes ring-rotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes ring-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* الصورة الدائرية */
.developer-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    transition: all 0.6s ease;
    position: relative;
    z-index: 1;
}

.developer-card-3d:hover .developer-image {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 15px 50px rgba(52, 152, 219, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
}

/* محتوى البطاقة */
.developer-content {
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

/* اسم المطور */
.developer-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3498db;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 0 3px 15px rgba(52, 152, 219, 0.5);
    transition: all 0.4s ease;
}

.developer-name i {
    font-size: 1.8rem;
    color: #3498db;
    transition: all 0.4s ease;
}

.developer-card-3d:hover .developer-name {
    transform: translateY(-5px);
    text-shadow: 0 5px 20px rgba(52, 152, 219, 0.5);
}

.developer-card-3d:hover .developer-name i {
    transform: rotate(360deg) scale(1.2);
    color: #9b59b6;
}

/* العنوان الوظيفي */
.developer-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #9b59b6;
    margin-bottom: 25px;
    text-align: center;
    transition: all 0.4s ease;
    text-shadow: 0 2px 10px rgba(155, 89, 182, 0.3);
}

.developer-card-3d:hover .developer-title {
    color: #9b59b6;
    transform: translateY(-3px);
}

/* السيرة الذاتية */
.developer-bio {
    font-size: 1.2rem;
    line-height: 2.1;
    color: #e8f4f8;
    text-align: justify;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    border-left: 5px solid #3498db;
    transition: all 0.4s ease;
}

.developer-card-3d:hover .developer-bio {
    background: rgba(0, 0, 0, 0.3);
    border-left-color: #9b59b6;
    transform: translateX(5px);
}

/* مجموعة التقنيات */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

/* أيقونات التقنيات */
.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    color: #3498db;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.tech-icon:hover::before {
    width: 100px;
    height: 100px;
}

.tech-icon:hover {
    transform: translateY(-8px) scale(1.2) rotate(360deg);
    background: rgba(52, 152, 219, 0.2);
    border-color: #9b59b6;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

.tech-icon i {
    position: relative;
    z-index: 1;
}

/* زر واتساب - حل نهائي */
a.whatsapp-btn-dev,
.whatsapp-btn-dev {
    display: block !important;
    width: 100% !important;
    padding: 18px 30px !important;
    background: #25D366 !important;
    color: white !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3) !important;
    position: relative !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    border: none !important;
    margin-top: 20px !important;
}

a.whatsapp-btn-dev:hover,
.whatsapp-btn-dev:hover {
    background: #128C7E !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5) !important;
}

.whatsapp-btn-dev * {
    pointer-events: none !important;
}

/* أيقونة واتساب النابضة */
.whatsapp-icon-pulse {
    font-size: 1.8rem;
    position: relative;
    z-index: 101;
    pointer-events: none;
}

.whatsapp-btn-dev span {
    position: relative;
    z-index: 101;
    pointer-events: none;
}

/* تأثير دخول البطاقات */
.developer-card-3d[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-100px) rotateY(-20deg);
}

.developer-card-3d[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(100px) rotateY(20deg);
}

.developer-card-3d.aos-animate {
    opacity: 1;
    transform: translateX(0) rotateY(0);
}

/* التصميم المتجاوب */

/* Large Desktop */
@media (min-width: 1400px) {
    .developers-grid-3d {
        grid-template-columns: repeat(2, 1fr);
        gap: 70px;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Desktop */
@media (max-width: 1399px) and (min-width: 1200px) {
    .developers-grid-3d {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

/* Laptop */
@media (max-width: 1199px) and (min-width: 992px) {
    .developers-grid-3d {
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .developer-card-3d {
        padding: 35px;
    }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .developers {
        padding: 80px 0;
    }
    
    .developers-grid-3d {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 15px;
    }
    
    .developer-card-3d {
        padding: 30px;
        border-radius: 25px;
    }
    
    .developer-image-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .hazem-card .developer-image-wrapper {
        width: 220px;
        height: 330px;
    }
    
    .developers .section-title {
        font-size: 2.8rem;
    }
    
    .developer-name {
        font-size: 2rem;
    }
    
    .developer-title {
        font-size: 1.4rem;
    }
    
    .developer-bio {
        font-size: 1.1rem;
        line-height: 1.9;
    }
    
    .tech-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
}

/* Mobile Large */
@media (max-width: 767px) and (min-width: 577px) {
    .developers {
        padding: 60px 0;
    }
    
    .developers-grid-3d {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 10px;
    }
    
    .developer-card-3d {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .developer-image-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .hazem-card .developer-image-wrapper {
        width: 200px;
        height: 300px;
    }
    
    .developers .section-title {
        font-size: 2.2rem;
    }
    
    .developers .section-description {
        font-size: 1.1rem;
        padding: 20px;
    }
    
    .developer-name {
        font-size: 1.7rem;
        gap: 10px;
    }
    
    .developer-name i {
        font-size: 1.5rem;
    }
    
    .developer-title {
        font-size: 1.2rem;
    }
    
    .developer-bio {
        font-size: 1rem;
        line-height: 1.8;
        padding: 18px;
        text-align: center;
    }
    
    .tech-stack {
        gap: 12px;
        padding: 18px;
    }
    
    .tech-icon {
        width: 46px;
        height: 46px;
        font-size: 1.35rem;
    }
    
    .whatsapp-btn-dev {
        font-size: 1.05rem !important;
        padding: 16px 28px !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .developers {
        padding: 50px 0;
    }
    
    .developers-grid-3d {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 5px;
        margin-top: 40px;
    }
    
    .developer-card-3d {
        padding: 25px 15px;
        border-radius: 20px;
    }
    
    .developer-image-wrapper {
        width: 170px;
        height: 170px;
        margin-bottom: 20px;
    }
    
    .hazem-card .developer-image-wrapper {
        width: 170px;
        height: 255px;
    }
    
    .developers .section-title {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    
    .developers .section-description {
        font-size: 1rem;
        padding: 18px;
        line-height: 1.8;
    }
    
    .header-icon {
        font-size: 2rem;
    }
    
    .decorator-line {
        width: 60px;
    }
    
    .developer-name {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .developer-name i {
        font-size: 1.3rem;
    }
    
    .developer-title {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }
    
    .developer-bio {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 15px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .tech-stack {
        gap: 10px;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .tech-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
    
    .tech-icon img {
        width: 20px !important;
        height: 20px !important;
    }
    
    .whatsapp-btn-dev {
        font-size: 1rem !important;
        padding: 14px 25px !important;
    }
    
    .whatsapp-icon-pulse {
        font-size: 1.5rem;
    }
}

/* Mobile Small (iPhone SE, old phones) */
@media (max-width: 375px) {
    .developers {
        padding: 40px 0;
    }
    
    .developers-grid-3d {
        gap: 25px;
        padding: 0;
        margin-top: 30px;
    }
    
    .developer-card-3d {
        padding: 20px 12px;
        border-radius: 18px;
    }
    
    .developer-image-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: 18px;
    }
    
    .hazem-card .developer-image-wrapper {
        width: 150px;
        height: 225px;
    }
    
    .developers .section-title {
        font-size: 1.6rem;
    }
    
    .developers .section-description {
        font-size: 0.95rem;
        padding: 15px;
    }
    
    .developer-name {
        font-size: 1.3rem;
        gap: 6px;
    }
    
    .developer-name i {
        font-size: 1.1rem;
    }
    
    .developer-title {
        font-size: 1rem;
    }
    
    .developer-bio {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 12px;
    }
    
    .tech-stack {
        gap: 8px;
        padding: 12px;
    }
    
    .tech-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .tech-icon img {
        width: 18px !important;
        height: 18px !important;
    }
    
    .whatsapp-btn-dev {
        font-size: 0.95rem !important;
        padding: 12px 20px !important;
    }
}

/* Landscape Orientation - للهواتف الأفقية */
@media (max-width: 991px) and (orientation: landscape) {
    .developers {
        padding: 40px 0;
    }
    
    .developers-grid-3d {
        gap: 30px;
    }
    
    .developer-card-3d {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 20px;
        align-items: center;
    }
    
    .developer-image-wrapper {
        width: 150px;
        height: 150px;
        margin: 0;
    }
    
    .hazem-card .developer-image-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .developer-content {
        text-align: right;
    }
    
    .developer-name {
        justify-content: flex-start;
    }
    
    .developer-bio {
        text-align: right;
    }
}

/* Extra Small Devices (< 320px) */
@media (max-width: 319px) {
    .developers-grid-3d {
        gap: 20px;
    }
    
    .developer-card-3d {
        padding: 15px 10px;
    }
    
    .developer-image-wrapper {
        width: 130px;
        height: 130px;
    }
    
    .hazem-card .developer-image-wrapper {
        width: 130px;
        height: 195px;
    }
    
    .developer-name {
        font-size: 1.2rem;
    }
    
    .developer-title {
        font-size: 0.95rem;
    }
    
    .tech-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* تأثيرات إضافية للحركة - معطلة */
/* @keyframes float-gentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.developer-card-3d {
    animation: float-gentle 6s ease-in-out infinite;
}

.developer-card-3d:nth-child(2) {
    animation-delay: 1s;
}

.developer-card-3d:hover {
    animation: none;
} */
