/* ============================================
   Modern About Section Styles
   ============================================ */

.modern-about-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.modern-about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(var(--primary-color-rgb, 0, 123, 255), 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.modern-about-section .container {
    position: relative;
    z-index: 1;
}

/* Image Wrapper */
.modern-about-image-wrapper {
    position: relative;
    padding: 20px;
}

.modern-image-container {
    position: relative;
    z-index: 2;
}

.modern-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-2deg);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-about-image-wrapper:hover .modern-image-frame {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.modern-about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-about-image-wrapper:hover .modern-about-image {
    transform: scale(1.1);
}

/* Decorative Elements */
.modern-image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.modern-image-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 80px;
    height: 80px;
    background: var(--primary-color, #007bff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    z-index: 3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 123, 255, 0.4);
    }
}

/* Content Styles */
.modern-about-content {
    padding: 20px 0;
}

.modern-about-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 8px 20px;
    background: rgba(var(--primary-color-rgb, 0, 123, 255), 0.1);
    border-radius: 30px;
    border: 1px solid rgba(var(--primary-color-rgb, 0, 123, 255), 0.2);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color, #007bff);
    border-radius: 50%;
    display: inline-block;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.badge-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color, #007bff);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-about-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
    color: var(--heading-font-color, #1a1a1a);
    letter-spacing: -1px;
}

.modern-about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--body-font-color, #666);
    margin-bottom: 30px;
}

.modern-about-text p {
    margin-bottom: 15px;
}

.modern-about-text p:last-child {
    margin-bottom: 0;
}

.modern-about-text ul,
.modern-about-text ol {
    margin: 15px 0;
    padding-left: 25px;
}

.modern-about-text li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Features */
.modern-about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(var(--primary-color-rgb, 0, 123, 255), 0.05);
    border-radius: 50px;
    border: 1px solid rgba(var(--primary-color-rgb, 0, 123, 255), 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(var(--primary-color-rgb, 0, 123, 255), 0.1);
    border-color: rgba(var(--primary-color-rgb, 0, 123, 255), 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
}

.feature-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #007bff);
    color: #ffffff;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
}

.feature-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--heading-font-color, #1a1a1a);
}

/* Responsive Design */
@media (max-width: 992px) {
    .modern-about-section {
        padding: 80px 0;
    }

    .modern-about-image-wrapper {
        margin-bottom: 40px;
        padding: 15px;
    }

    .modern-image-badge {
        width: 60px;
        height: 60px;
        bottom: 20px;
        left: 20px;
    }

    .modern-image-badge svg {
        width: 30px;
        height: 30px;
    }

    .modern-image-decoration {
        width: 150px;
        height: 150px;
        top: -15px;
        right: -15px;
    }
}

@media (max-width: 768px) {
    .modern-about-section {
        padding: 60px 0;
    }

    .modern-about-image-wrapper {
        padding: 10px;
    }

    .modern-image-frame {
        border-radius: 15px;
    }

    .modern-about-title {
        margin-bottom: 20px;
    }

    .modern-about-text {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .modern-about-features {
        gap: 15px;
        margin-top: 25px;
    }

    .feature-item {
        padding: 10px 16px;
        gap: 10px;
    }

    .feature-icon {
        width: 28px;
        height: 28px;
    }

    .feature-icon svg {
        width: 16px;
        height: 16px;
    }

    .feature-text {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .modern-about-section {
        padding: 50px 0;
    }

    .modern-image-badge {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }

    .modern-image-badge svg {
        width: 24px;
        height: 24px;
    }

    .modern-image-decoration {
        width: 120px;
        height: 120px;
        top: -10px;
        right: -10px;
    }

    .modern-about-badge {
        padding: 6px 16px;
        margin-bottom: 15px;
    }

    .badge-text {
        font-size: 12px;
    }

    .modern-about-title {
        margin-bottom: 15px;
    }

    .modern-about-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .modern-about-features {
        flex-direction: column;
        gap: 12px;
    }

    .feature-item {
        width: 100%;
        justify-content: flex-start;
    }
}

/* RTL Support */
[dir="rtl"] .modern-image-decoration {
    right: auto;
    left: -20px;
}

[dir="rtl"] .modern-image-badge {
    left: auto;
    right: 30px;
}

[dir="rtl"] .modern-about-features {
    flex-direction: row-reverse;
}

@media (max-width: 992px) {
    [dir="rtl"] .modern-image-decoration {
        left: -15px;
    }

    [dir="rtl"] .modern-image-badge {
        right: 20px;
    }
}

@media (max-width: 576px) {
    [dir="rtl"] .modern-image-badge {
        right: 15px;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    .modern-about-title {
        color: #ffffff;
    }

    .modern-about-text {
        color: rgba(255, 255, 255, 0.8);
    }

    .feature-text {
        color: #ffffff;
    }

    .feature-item {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

