/* ========================================
   قسم نبذة عني - About Section
   الملف: public/web/css/about.css
======================================== */

/* الخلفية والإطار العام */
.about-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.about-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://mohammed-almalgami.com/public/web/img/pattern-3.jpg');
    opacity: 0.03;
    pointer-events: none;
}

/* الأشكال الزخرفية */
.about-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.about-shapes .shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent 70%);
    top: -200px;
    right: -200px;
    animation: floatShape 20s ease-in-out infinite;
}

.about-shapes .shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: floatShape 15s ease-in-out infinite reverse;
}

.about-shapes .shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseShape 10s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

@keyframes pulseShape {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.05; }
}

/* رأس القسم */
.about-section .section-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    color: #ffd700;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.section-badge i {
    font-size: 16px;
}

.about-section .section-title {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.title-line span {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    border-radius: 3px;
}

.title-line i {
    color: #ffd700;
    font-size: 18px;
    animation: rotateStar 5s linear infinite;
}

@keyframes rotateStar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   المحتوى النصي
======================================== */
.about-content {
    position: relative;
    z-index: 2;
    padding-left: 40px;
}

/* المقدمة */
.about-intro {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.intro-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700 0%, #ffab00 100%);
    border-radius: 20px;
    font-size: 36px;
    color: #1a1a2e;
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.intro-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.intro-text .tagline {
    font-size: 16px;
    color: #ffd700;
    margin: 0;
    display: flex;
    align-items: center;
}

.typing-text {
    min-width: 200px;
}

.cursor {
    animation: blink 1s infinite;
    color: #ffd700;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* الوصف */
.about-description {
    margin-bottom: 30px;
}

.desc-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border-right: 4px solid #ffd700;
    transition: all 0.4s ease;
}

.desc-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.desc-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    color: #ffd700;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.desc-item:hover .desc-icon {
    background: linear-gradient(135deg, #ffd700, #ffab00);
    color: #1a1a2e;
    transform: rotate(10deg) scale(1.1);
}

.desc-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
}

.desc-item.mission {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.05));
    border-right-width: 6px;
}

.mission-text strong {
    color: #ffd700;
}
/* ========================================
   الاقتباس - بنفس تنسيق desc-item
======================================== */
.about-quote {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border-right: 4px solid #ffd700;
    margin-bottom: 40px;
    transition: all 0.4s ease;
    align-items: flex-start;
}

.about-quote:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quote-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    color: #ffd700;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    /* إزالة التنسيق القديم */
    position: static;
}

.about-quote:hover .quote-icon {
    background: linear-gradient(135deg, #ffd700, #ffab00);
    color: #0000000;
    transform: rotate(10deg) scale(1.1);
}

.quote-content {
    flex: 1;
}
.blockquote {
    padding: 16px 20px 16px 80px;
    font-size: 18px;
    font-style: italic;
    color: #555;
    margin: 40px 0;
    border-left: none;
    line-height: 30px;
    position: relative;
    background: #25293e;
    clear: both;
    border-left: 4px solid #efbb20;
}
.about-quote blockquote {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 8px 0;
    line-height: 1.8;
    font-style: italic;
    text-align: right;
}

.about-quote cite {
    display: block;
    color: #ffd700;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    text-align: right;
}
/* ========================================
   الإحصائيات
======================================== */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
    border-radius: 50%;
    color: #ffd700;
    font-size: 24px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    background: linear-gradient(135deg, #ffd700, #ffab00);
    color: #1a1a2e;
    transform: scale(1.1);
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-size: 24px;
    color: #ffd700;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* أزرار الإجراء */
.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-primary-custom,
.btn-secondary-custom,
.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #ffd700 0%, #ffab00 100%);
    color: #1a1a2e;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.4);
    color: #1a1a2e;
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    color: #fff;
}

.btn-outline-custom {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
}

.btn-outline-custom:hover {
    background: #ffd700;
    color: #1a1a2e;
    transform: translateY(-5px);
}

/* ========================================
   الجانب المرئي - Visual Side
======================================== */
.about-visual {
    position: relative;
    padding: 40px;
}

.image-wrapper {
    position: relative;
    z-index: 2;
}

.image-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-frame:hover .main-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(26, 26, 46, 0.8) 100%);
    pointer-events: none;
}

/* الإطارات الزخرفية */
.frame-decoration {
    position: absolute;
    border: 3px solid;
    border-radius: 30px;
    pointer-events: none;
}

.frame-1 {
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border-color: rgba(255, 215, 0, 0.3);
}

.frame-2 {
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    border-color: rgba(0, 212, 255, 0.2);
}

/* الشارات العائمة */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: floatBadge 3s ease-in-out infinite;
}

.floating-badge i {
    font-size: 18px;
}

.floating-badge span {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
}

.badge-1 {
    top: 20%;
    right: -20px;
    animation-delay: 0s;
}

.badge-1 i {
    color: #00c853;
}

.badge-2 {
    bottom: 30%;
    left: -30px;
    animation-delay: 0.5s;
}

.badge-2 i {
    color: #ffd700;
}

.badge-3 {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.badge-3 i {
    color: #ff4757;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* دائرة التقنيات */
.tech-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.orbit-item {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: orbit 20s linear infinite;
    animation-delay: calc(var(--i) * -3.33s);
}

.orbit-item:nth-child(1) { top: 0; left: 50%; }
.orbit-item:nth-child(2) { top: 20%; right: 0; }
.orbit-item:nth-child(3) { bottom: 20%; right: 0; }
.orbit-item:nth-child(4) { bottom: 0; left: 50%; }
.orbit-item:nth-child(5) { bottom: 20%; left: 0; }
.orbit-item:nth-child(6) { top: 20%; left: 0; }

.orbit-item:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.2);
}

/* ========================================
   قسم التقنيات - Technologies Section
======================================== */
.tech-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #16213e 0%, #1a1a2e 50%, #0f0f1a 100%);
    overflow: hidden;
}

.tech-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.tech-section .section-header {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.section-badge.dark {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.tech-section .section-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.tech-section .section-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* تصنيفات التقنيات */
.tech-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.tech-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-filter:hover,
.tech-filter.active {
    background: linear-gradient(135deg, #ffd700, #ffab00);
    color: #1a1a2e;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.tech-filter i {
    font-size: 16px;
}

/* شبكة التقنيات */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.tech-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #00d4ff);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tech-card:hover::before {
    transform: scaleX(1);
}

.tech-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.tech-card.hidden {
    display: none;
}

.tech-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.05));
    border-radius: 20px;
    font-size: 36px;
    color: #ffd700;
    transition: all 0.4s ease;
}

.tech-card:hover .tech-icon {
    background: linear-gradient(135deg, #ffd700, #ffab00);
    color: #1a1a2e;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
}

.tech-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px;
}

.tech-level {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.level-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #00d4ff);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
}

.tech-card:hover .level-bar,
.tech-card.visible .level-bar {
    width: var(--level);
}

.tech-percent {
    font-size: 14px;
    font-weight: 700;
    color: #ffd700;
}

/* ========================================
   سلايدر التقنيات
======================================== */
.tech-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 30px 0;
    background: #ffffff; /* تم تغيير الخلفية للأبيض */
    border-radius: 20px;
    border: 1px solid #e0e0e0; /* تم تعديل الحدود لتكون رمادية خفيفة */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* (اختياري) ظل خفيف لإبراز السلايدر */
}

.tech-slider {
    overflow: hidden;
    position: relative;
}

.tech-slider::before,
.tech-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* تعديل التدرج ليتلاشى مع الأبيض */
.tech-slider::before {
    left: 0;
    background: linear-gradient(90deg, #ffffff, transparent);
}

/* تعديل التدرج ليتلاشى مع الأبيض */
.tech-slider::after {
    right: 0;
    background: linear-gradient(-90deg, #ffffff, transparent);
}

.tech-slider-track {
    display: flex;
    gap: 60px;
    animation: slideTrack 30s linear infinite;
    width: max-content;
}

.tech-slider-track img {
    height: 60px;
    width: auto;
    object-fit: contain;
    /* إزالة brightness(0.7) لأنها تجعل الصور داكنة جداً على الأبيض */
    filter: grayscale(100%); 
    opacity: 0.7;
    transition: all 0.4s ease;
}

.tech-slider-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes slideTrack {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   التجاوب مع الشاشات
======================================== */
@media (max-width: 1199px) {
    .about-section .section-title,
    .tech-section .section-title {
        font-size: 42px;
    }
    
    .about-content {
        padding-left: 20px;
    }
}

@media (max-width: 991px) {
    .about-section,
    .tech-section {
        padding: 80px 0;
    }
    
    .about-section .section-title,
    .tech-section .section-title {
        font-size: 36px;
    }
    
    .about-content {
        padding: 40px 0 0;
    }
    
    .about-visual {
        padding: 20px;
        margin-bottom: 40px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .floating-badge {
        display: none;
    }
    
    .tech-orbit {
        display: none;
    }
}

@media (max-width: 767px) {
    .about-section .section-title,
    .tech-section .section-title {
        font-size: 30px;
    }
    
    .about-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .intro-text h3 {
        font-size: 24px;
    }
    
    .desc-item {
        flex-direction: column;
        text-align: center;
    }
    
    .about-quote blockquote {
        font-size: 18px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .about-actions {
        justify-content: center;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom,
    .btn-outline-custom {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tech-categories {
        gap: 10px;
    }
    
    .tech-filter {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .about-section,
    .tech-section {
        padding: 60px 0;
    }
    
    .about-section .section-title,
    .tech-section .section-title {
        font-size: 26px;
    }
    
    .section-badge {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-item {
        padding: 20px 10px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .about-actions {
        flex-direction: column;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom,
    .btn-outline-custom {
        width: 100%;
        justify-content: center;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-card {
        padding: 20px 15px;
    }
    
    .tech-icon {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}