/* Hero Section Styles - تصميم قسم البطل */

/* الخلفية الرئيسية مع تدرج أزرق قوي */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 25%, #2563eb 50%, #3b82f6 75%, #60a5fa 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 100vh;
    top: 0;
}

/* تحريك التدرج */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* تحسين الخطوط - أحجام أكبر */
.hero-section h1 {
    font-size: 4.5rem !important;
    font-weight: 800 !important;
    text-shadow: 0 4px 20px rgba(30, 58, 138, 0.5);
    color: #ffffff !important;
    margin-bottom: 2rem !important;
}

/* تحسين وضوح النص للعنصر الذي يحتوي على data-translate="hero.name" */
.hero-section h1 span[data-translate="hero.name"] {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #dbeafe 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(255, 255, 255, 0.6),
        0 4px 20px rgba(30, 58, 138, 0.8) !important;
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.5));
    position: relative;
}

/* إضافة خلفية شبه شفافة خلف النص لمزيد من الوضوح */
.hero-section h1 span[data-translate="hero.name"]::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    z-index: -1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* تحسين إضافي للنص في الشاشات الصغيرة */
@media (max-width: 768px) {
    .hero-section h1 span[data-translate="hero.name"] {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.9),
            0 0 40px rgba(255, 255, 255, 0.7),
            0 2px 15px rgba(30, 58, 138, 0.9) !important;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem !important;
    }
}

.hero-section .text-xl {
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: #e0f2fe !important;
    text-shadow: 0 2px 10px rgba(30, 58, 138, 0.3);
}

.hero-section .text-lg {
    font-size: 1.5rem !important;
    color: #bfdbfe !important;
    line-height: 1.8 !important;
    text-shadow: 0 1px 5px rgba(30, 58, 138, 0.2);
}

/* تأثيرات الصورة ثلاثية الأبعاد */
.profile-image-container {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.profile-image {
    width: 400px !important;
    height: 400px !important;
    border-radius: 50%;
    /* border: 8px solid rgba(255, 255, 255, 0.9); */
    box-shadow: 
        0 20px 60px rgba(30, 58, 138, 0.4),
        0 0 0 20px rgba(59, 130, 246, 0.1),
        0 0 0 40px rgba(96, 165, 250, 0.05),
        inset 0 0 50px rgba(30, 58, 138, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateZ(50px);
    transition: all 0.3s ease;
    animation: profileFloat 4s ease-in-out infinite, profileGlow 3s ease-in-out infinite alternate, profilePulse 2s ease-in-out infinite;
}

/* تأثير الطفو البسيط للصورة */
 @keyframes profileFloat {
     0%, 100% {
         transform: perspective(1000px) rotateY(5deg) rotateX(5deg) translateY(0px);
     }
     50% {
         transform: perspective(1000px) rotateY(5deg) rotateX(5deg) translateY(-10px);
     }
 }

/* تأثير الوهج المتغير */
@keyframes profileGlow {
    0% {
        box-shadow: 
            0 20px 60px rgba(30, 58, 138, 0.4),
            0 0 0 20px rgba(59, 130, 246, 0.1),
            0 0 0 40px rgba(96, 165, 250, 0.05),
            inset 0 0 50px rgba(30, 58, 138, 0.1);
    }
    100% {
        box-shadow: 
            0 25px 80px rgba(30, 58, 138, 0.6),
            0 0 0 25px rgba(59, 130, 246, 0.15),
            0 0 0 50px rgba(96, 165, 250, 0.08),
            inset 0 0 60px rgba(30, 58, 138, 0.15);
     }
 }

 /* تأثير النبض للصورة */
 @keyframes profilePulse {
     0%, 100% {
         transform: perspective(1000px) rotateY(5deg) rotateX(5deg) scale(1);
     }
     50% {
         transform: perspective(1000px) rotateY(5deg) rotateX(5deg) scale(1.03);
     }
 }

/* تأثيرات زر التواصل */
@keyframes contactPulse {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(37, 99, 235, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 0 0 rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 
            0 8px 32px rgba(37, 99, 235, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 0 8px rgba(37, 99, 235, 0.1);
    }
}

@keyframes contactHover {
    0% {
        transform: translateY(-3px) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.08);
    }
    100% {
        transform: translateY(-5px) scale(1.05);
    }
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none !important;
    transform: none !important;
}

.profile-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
    animation-play-state: paused;
    box-shadow: 
        0 0 50px rgba(59, 130, 246, 0.8),
        0 0 100px rgba(59, 130, 246, 0.4),
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 40px rgba(255, 255, 255, 0.3);
}

/* ومضات وتأثيرات حول الصورة */
.profile-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: conic-gradient(
        from 0deg,
        #1e3a8a,
        #2563eb,
        #3b82f6,
        #60a5fa,
        #93c5fd,
        #60a5fa,
        #3b82f6,
        #2563eb,
        #1e3a8a
    );
    border-radius: 50%;
    z-index: -1;
    animation: rotateGlow 4s linear infinite;
    filter: blur(15px);
}

.profile-image::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #1e40af, #3b82f6, #60a5fa, #3b82f6, #1e40af);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 2s ease-in-out infinite alternate;
    opacity: 0.7;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 0.9; }
}

/* عناصر الومضات المتطايرة */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #60a5fa, #3b82f6);
    border-radius: 50%;
    animation: floatParticle 6s ease-in-out infinite;
    box-shadow: 0 0 20px #3b82f6;
}

.particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.particle:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.particle:nth-child(3) {
    bottom: 25%;
    left: 10%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    bottom: 15%;
    right: 25%;
    animation-delay: 3s;
    animation-duration: 5.5s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 4s;
    animation-duration: 6.5s;
}

.particle:nth-child(6) {
    top: 60%;
    right: 8%;
    animation-delay: 5s;
    animation-duration: 5.8s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) translateX(20px) scale(1.2);
        opacity: 0.8;
    }
    90% {
        opacity: 1;
    }
}

/* تأثيرات الأزرار */
.hero-btn {
    font-size: 1.25rem !important;
    padding: 1rem 2.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 50px !important;
}

.hero-btn:first-child {
    background: linear-gradient(135deg, #1e40af, #2563eb, #3b82f6) !important;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.4);
}

.hero-btn:first-child:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.6);
}

.hero-btn:last-child {
    border: 3px solid #2563eb !important;
    color: #2563eb !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(59, 130, 246, 0.1)) !important;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: contactPulse 3s ease-in-out infinite;
}

.hero-btn:last-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.hero-btn:last-child:hover::before {
    left: 100%;
}

.hero-btn:last-child::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.hero-btn:last-child:hover::after {
    width: 300px;
    height: 300px;
}

.hero-btn:last-child:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa) !important;
    color: white !important;
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 
        0 20px 50px rgba(37, 99, 235, 0.5),
        0 0 30px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: #60a5fa !important;
    animation: contactHover 0.3s ease forwards;
}

.hero-btn:last-child:active {
    transform: translateY(-2px) scale(1.02) !important;
    transition: all 0.1s ease;
}

/* تأثير الموجة عند النقر */
.hero-btn:last-child {
    position: relative;
    overflow: hidden;
}

.hero-btn:last-child:focus {
    outline: none;
    box-shadow: 
        0 20px 50px rgba(37, 99, 235, 0.4),
        0 0 0 3px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* تأثير التوهج المتحرك */
.hero-btn:last-child {
    background-size: 200% 200%;
    animation: contactPulse 3s ease-in-out infinite, gradientMove 4s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* تأثير النص المتوهج */
.hero-btn:last-child {
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn:last-child:hover {
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(96, 165, 250, 0.6),
        0 2px 10px rgba(0, 0, 0, 0.3);
}

/* تأثيرات الروابط الاجتماعية */
.social-link {
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease !important;
    color: floralwhite;
}

.social-link:hover {
    background: #2563eb !important;
    color: white !important;
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4) !important;
}

/* تأثيرات إضافية للخلفية */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(96, 165, 250, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* تحسينات الاستجابة */
@media (max-width: 1024px) {
    .profile-image {
        width: 350px !important;
        height: 350px !important;
    }
}

@media (max-width: 768px) {
    .profile-image {
        width: 300px !important;
        height: 300px !important;
    }
    
    .hero-section .text-xl {
        font-size: 1.75rem !important;
    }
    
    .hero-section .text-lg {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 640px) {
    .profile-image {
        width: 250px !important;
        height: 250px !important;
    }
}

/* تأثير النص المتحرك */
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين مؤشر التمرير */
.scroll-indicator {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.5rem !important;
}

.scroll-indicator:hover {
    color: #60a5fa !important;
    transform: translateY(-2px) !important;
}