/* ====================================
   About Section - Modern Minimal Design
   Clean, Elegant & Contemporary
   ==================================== */

/* Section Container */
.about-modern-minimal {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

/* Gradient Background */
.about-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(67, 17, 169, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(93, 43, 196, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    z-index: 0;
}

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

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

/* Mini Badge */
.about-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(67, 17, 169, 0.1), rgba(93, 43, 196, 0.1));
    border: 1px solid rgba(67, 17, 169, 0.2);
    border-radius: 50px;
    margin-bottom: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(67, 17, 169, 0.1);
}

.about-mini-badge:hover {
    background: linear-gradient(135deg, rgba(67, 17, 169, 0.15), rgba(93, 43, 196, 0.15));
    transform: translateX(-8px) scale(1.02);
    box-shadow: 0 6px 20px rgba(67, 17, 169, 0.2);
    border-color: rgba(67, 17, 169, 0.3);
}

.badge-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #4311a9, #5d2bc4);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(67, 17, 169, 0.5);
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 10px rgba(67, 17, 169, 0.5);
    }
    50% {
        transform: scale(1.4);
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(67, 17, 169, 0.8);
    }
}

.badge-text {
    color: #4311a9;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #4311a9, #5d2bc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Title */
.about-title-modern {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #1a202c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    position: relative;
    letter-spacing: -0.5px;
}

.about-title-modern::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #4311a9, #5d2bc4, #4311a9);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: gradient-shift 3s ease infinite;
}

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

/* Description */
.about-desc-modern {
    font-size: 19px;
    line-height: 1.9;
    color: #475569;
    margin-bottom: 45px;
    font-weight: 400;
}

.about-desc-modern p {
    margin-bottom: 18px;
}

/* Stats Row */
.about-stats-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-item-modern {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(67, 17, 169, 0.1);
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 17, 169, 0.05), transparent);
    transition: left 0.6s ease;
}

.stat-item-modern:hover::before {
    left: 100%;
}

.stat-item-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(67, 17, 169, 0.2), 0 0 0 1px rgba(67, 17, 169, 0.2) inset;
    border-color: rgba(67, 17, 169, 0.3);
}

.stat-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4311a9, #5d2bc4);
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(67, 17, 169, 0.3);
    transition: all 0.4s ease;
}

.stat-item-modern:hover .stat-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(67, 17, 169, 0.4);
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #4311a9, #5d2bc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 6px 0;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Button */
.about-cta-modern {
    margin-top: 32px;
}

.btn-modern-primary {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 42px;
    background: linear-gradient(135deg, #4311a9, #5d2bc4);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(67, 17, 169, 0.35), 0 0 0 0 rgba(67, 17, 169, 0.4);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    letter-spacing: 0.3px;
}

.btn-modern-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-modern-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, #4311a9, #5d2bc4, #4311a9);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: border-rotate 3s linear infinite;
}

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

.btn-modern-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(67, 17, 169, 0.5), 0 0 0 8px rgba(67, 17, 169, 0.1);
    color: #ffffff;
}

.btn-modern-primary:hover::before {
    left: 100%;
}

.btn-modern-primary:hover::after {
    opacity: 1;
}

.btn-modern-primary svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-modern-primary:hover svg {
    transform: translateX(5px);
}

[dir="rtl"] .btn-modern-primary:hover svg {
    transform: translateX(-5px);
}

/* Image Side */
.about-image-modern {
    position: relative;
    padding: 40px;
}

.image-wrapper-modern {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.image-wrapper-modern:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 35px 90px rgba(67, 17, 169, 0.3), 0 0 0 1px rgba(67, 17, 169, 0.2) inset;
    border-color: rgba(67, 17, 169, 0.3);
}

.main-image-modern {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.image-wrapper-modern:hover .main-image-modern {
    transform: scale(1.05);
}

.image-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(67, 17, 169, 0.15) 0%,
        rgba(93, 43, 196, 0.15) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(2px);
}

.image-wrapper-modern:hover .image-overlay-modern {
    opacity: 1;
}

/* Floating Badge */
.floating-badge-modern {
    position: absolute;
    bottom: 60px;
    right: 60px;
    padding: 28px 36px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(67, 17, 169, 0.2);
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    text-align: center;
    animation: float-badge 3s ease-in-out infinite;
    z-index: 2;
    backdrop-filter: blur(10px);
}

@keyframes float-badge {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.badge-content {
    position: relative;
    z-index: 2;
}

.badge-number-modern {
    display: block;
    font-size: 46px;
    font-weight: 800;
    background: linear-gradient(135deg, #4311a9, #5d2bc4, #4311a9);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    line-height: 1;
    animation: gradient-text 3s ease infinite;
    letter-spacing: -2px;
}

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

.badge-text-modern {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(67, 17, 169, 0.25), rgba(93, 43, 196, 0.15), transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 2.5s ease-in-out infinite;
    z-index: 0;
    filter: blur(15px);
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Decorative Circles */
.decorative-circle-1 {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(67, 17, 169, 0.15), rgba(93, 43, 196, 0.15));
    border-radius: 50%;
    z-index: 0;
    animation: rotate-circle 20s linear infinite;
    filter: blur(20px);
    box-shadow: 0 0 40px rgba(67, 17, 169, 0.2);
}

.decorative-circle-2 {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, rgba(93, 43, 196, 0.15), rgba(67, 17, 169, 0.15));
    border-radius: 50%;
    z-index: 0;
    animation: rotate-circle 25s linear infinite reverse;
    filter: blur(25px);
    box-shadow: 0 0 50px rgba(93, 43, 196, 0.2);
}

@keyframes rotate-circle {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .about-modern-minimal {
        padding: 100px 0;
    }

    .about-title-modern {
        font-size: 40px;
    }

    .about-title-modern::after {
        right: auto;
        left: 0;
        width: 90px;
    }

    .about-image-modern {
        padding: 25px;
        margin-top: 50px;
    }

    .floating-badge-modern {
        bottom: 35px;
        right: 35px;
        padding: 24px 28px;
    }

    .badge-number-modern {
        font-size: 40px;
    }

    .stat-number {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .about-modern-minimal {
        padding: 80px 0;
    }

    .about-title-modern {
        font-size: 32px;
    }

    .about-title-modern::after {
        width: 70px;
        height: 4px;
    }

    .about-desc-modern {
        font-size: 17px;
    }

    .about-stats-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item-modern {
        padding: 24px;
    }

    .stat-icon {
        width: 56px;
        height: 56px;
    }

    .stat-icon svg {
        width: 26px;
        height: 26px;
    }

    .floating-badge-modern {
        bottom: 25px;
        right: 25px;
        padding: 20px 24px;
    }

    .badge-number-modern {
        font-size: 36px;
    }

    .badge-text-modern {
        font-size: 11px;
    }

    .decorative-circle-1,
    .decorative-circle-2 {
        display: none;
    }
}

/* RTL Support */
[dir="rtl"] .about-title-modern::after {
    right: auto;
    left: 0;
}

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

[dir="rtl"] .about-mini-badge:hover {
    transform: translateX(5px);
}

@media (max-width: 991px) {
    [dir="rtl"] .about-title-modern::after {
        right: 0;
        left: auto;
    }

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

@media (max-width: 767px) {
    [dir="rtl"] .floating-badge-modern {
        left: 20px;
    }
}

/* Print Styles */
@media print {
    .about-modern-minimal {
        padding: 40px 0;
    }

    .decorative-circle-1,
    .decorative-circle-2,
    .badge-glow {
        display: none;
    }
}
