/* Advanced Scaling Widget - Complete Styles */
.asw-container {
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 20px;
    position: relative;
    min-height: 100vh;
}

.asw-section-container {
    position: relative;
    width: 100%;
    margin: 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: hidden;
}

.asw-interactive-section {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center center;
    transform: scale(1.4);
    padding: 50px;
    overflow-x: hidden;
    overflow-y: hidden;
}

.asw-interactive-section.asw-in-viewport {
    transform: scale(1);
}

.asw-rows-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    height: 100%;
    padding: 0 50px;
}

.asw-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    height: calc(33.33% - 10px);
}

/* تصميم البلوكات - النسخة النهائية */
.asw-block {
    flex: 1;
    max-width: calc(33.33% - 10px);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 250px;
    max-height: 250px;
}

/* الحالة العادية: خلفية سوداء + العنوان فقط */
.asw-block:not(.asw-block-5) {
    background-color: #05080C !important;
    background-blend-mode: normal;
}

.asw-block:not(.asw-block-5)::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 1;
    border-radius: 15px;
    background: #05080C;
}

.asw-block:not(.asw-block-5) .asw-block-content {
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
    width: 100%;
    padding: 25px;
}

.asw-block-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    transition: all 0.5s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.asw-block-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
    margin-top: 0;
    display: none;
}

/* تأثير الهوفر: تختفي الخلفية السوداء وتظهر الصورة */
.asw-block:not(.asw-block-5):hover {
    z-index: 10;
    background-color: transparent !important;
}

.asw-block:not(.asw-block-5):hover::before {
    opacity: 0;
}

.asw-block:not(.asw-block-5):hover .asw-block-content {
    padding: 30px;
    border-radius: 10px;
}

.asw-block:not(.asw-block-5):hover .asw-block-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.asw-block:not(.asw-block-5):hover .asw-block-description {
    max-height: 150px;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 15px;
    display: block;
}

/* البلوك رقم 5 - الحالة الخاصة */
.asw-block-5 {
    background-color: transparent !important;
    border: none;
    padding: 0;
}

.asw-block-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 1;
    border-radius: 15px;
    filter: brightness(1);
}

.asw-block-5 .asw-block-content {
    opacity: 0;
    position: absolute;
    z-index: 2;
    transition: all 0.5s ease;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 30px;
    border-radius: 12px;
    width: 85%;
    top: 50%;
    left: 50%;
    text-align: center;
}

.asw-block-5 .asw-block-title {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-shadow: none;
}

.asw-block-5 .asw-block-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
    max-height: 0;
    opacity: 0;
    display: none;
}

/* تأثير الهوفر للبلوك 5 */
.asw-block-5:hover {
    z-index: 10;
}

.asw-block-5:hover::before {
    opacity: 0.9;
    filter: brightness(0.9);
}

.asw-block-5:hover .asw-block-content {
    opacity: 1;
}

.asw-block-5:hover .asw-block-description {
    max-height: 150px;
    opacity: 1;
    margin-top: 15px;
    display: block;
}

/* Progress Indicator */
.asw-scroll-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    color: #2c3e50;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.asw-scale-value {
    font-weight: bold;
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
    font-family: monospace;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.asw-progress-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 200px;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    z-index: 1000;
}

.asw-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #e74c3c, #3498db);
    width: 0%;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    .asw-row {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }
    
    .asw-block {
        max-width: 100%;
        height: 180px;
        padding: 20px;
        min-height: 160px;
    }
    
    .asw-section-container {
        height: auto;
        min-height: 850px;
    }
    
    .asw-interactive-section {
        height: auto;
        min-height: 850px;
    }
    
    .asw-rows-container {
        height: auto;
    }
    
    .asw-block-title {
        font-size: 1.3rem;
    }
    
    .asw-block-description {
        font-size: 0.9rem;
    }
    
    .asw-scroll-indicator {
        top: 10px;
        right: 10px;
        font-size: 0.85rem;
        padding: 8px 12px;
        width: auto;
    }
    
    .asw-progress-indicator {
        top: 60px;
        right: 10px;
        width: 150px;
    }
}