/* ========================================
   MODERN CHOOSE US SECTION STYLES
   Trading Platform Design
   ======================================== */

/* Section Container */
.modern-choose-us-section {
    position: relative;
    padding: 120px 0;
    background: #112025;
    overflow: hidden;
}

/* Animated Background Pattern */
.choose-us-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    pointer-events: none;
}

.pattern-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.pattern-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: dotsMove 15s linear infinite reverse;
}

@keyframes dotsMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(30px, 30px);
    }
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.gradient-orb.orb-left {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.gradient-orb.orb-right {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4), transparent);
    bottom: 10%;
    right: -10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-badge svg {
    width: 18px;
    height: 18px;
}

/* Section Title */
.section-title {
    font-size: 48px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Description */
.section-description {
    font-size: 18px;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
}

/* Feature Card */
.feature-card {
    position: relative;
    background: rgba(17, 32, 37, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    padding: 40px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

/* Animated Border */
.feature-card-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(59, 130, 246, 0.5) 50%,
        transparent 100%
    );
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    animation: rotateBorder 3s linear infinite;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.feature-card:hover .feature-card-border {
    opacity: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 20px;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Icon Wrapper */
.feature-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.2),
        rgba(16, 185, 129, 0.2));
    border-radius: 24px;
    transition: all 0.5s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.feature-card:hover .feature-icon-bg {
    transform: rotate(45deg) scale(1.1);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.4),
        rgba(16, 185, 129, 0.4));
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.feature-icon {
    position: relative;
    z-index: 2;
    font-size: 40px;
    color: #3b82f6;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg,
.feature-icon i {
    width: 44px;
    height: 44px;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: #60a5fa;
}

.feature-card:hover .feature-icon svg,
.feature-card:hover .feature-icon i {
    transform: rotateY(360deg);
}

/* Counter Badge */
.feature-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    z-index: 3;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-number {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Content */
.feature-content {
    flex: 1;
    z-index: 2;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: #3b82f6;
}

.feature-description {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-description {
    color: #cbd5e1;
}

/* Hover Arrow */
.feature-hover-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    opacity: 0;
    transform: translate(10px, 10px);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-hover-arrow {
    opacity: 1;
    transform: translate(0, 0);
    background: #3b82f6;
    color: white;
}

.feature-hover-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-hover-arrow svg {
    transform: rotate(-45deg);
}

/* Glow Effect */
.feature-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.feature-card:hover .feature-glow {
    opacity: 1;
}

/* CTA Section */
.choose-us-cta {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%,
        rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.choose-us-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent);
    transition: left 0.8s ease;
}

.choose-us-cta:hover::before {
    left: 100%;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.cta-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.cta-icon svg {
    width: 40px;
    height: 40px;
}

.cta-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
}

.cta-text p {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Modern Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

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

.btn-modern-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.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.2), transparent);
    transition: left 0.5s ease;
}

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

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

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

.btn-modern-outline {
    background: transparent;
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.btn-modern-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* Decorative Shape */
.choose-us-shape {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.choose-us-shape img {
    max-width: 100%;
    height: auto;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .modern-choose-us-section {
        padding: 100px 0;
    }

    .section-title {
        font-size: 42px;
    }

    .feature-card {
        padding: 36px 24px;
    }

    .choose-us-cta {
        padding: 40px 50px;
    }
}

@media (max-width: 991px) {
    .modern-choose-us-section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 36px;
    }

    .section-description {
        font-size: 16px;
    }

    .feature-card {
        padding: 32px 20px;
    }

    .feature-icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
    }

    .feature-icon svg,
    .feature-icon i {
        width: 36px;
        height: 36px;
    }

    .feature-title {
        font-size: 18px;
    }

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

    .choose-us-cta {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .cta-content {
        flex-direction: column;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn-modern {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .modern-choose-us-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .section-description {
        font-size: 15px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .cta-text h3 {
        font-size: 24px;
    }

    .cta-text p {
        font-size: 15px;
    }

    .gradient-orb {
        display: none;
    }
}

@media (max-width: 575px) {
    .section-badge {
        padding: 8px 20px;
        font-size: 13px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-description {
        font-size: 14px;
    }

    .feature-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .feature-icon {
        font-size: 32px;
    }

    .feature-title {
        font-size: 17px;
    }

    .choose-us-cta {
        padding: 30px 20px;
    }

    .cta-icon {
        width: 60px;
        height: 60px;
    }

    .cta-icon svg {
        width: 32px;
        height: 32px;
    }

    .cta-text h3 {
        font-size: 20px;
    }

    .btn-modern {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Animation Enhancements */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: light) {
    .modern-choose-us-section {
        background: linear-gradient(180deg, 
            rgba(248, 250, 252, 0.8) 0%,
            rgba(241, 245, 249, 0.6) 50%,
            rgba(248, 250, 252, 0.8) 100%);
    }

    .feature-card {
        background: rgba(255, 255, 255, 0.8);
        border-color: rgba(203, 213, 225, 0.3);
    }

    .section-title {
        background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .feature-title {
        color: #0f172a;
    }

    .feature-description {
        color: #475569;
    }

    .cta-text h3 {
        color: #0f172a;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .feature-icon,
    .feature-hover-arrow,
    .btn-modern,
    .pattern-grid,
    .pattern-dots,
    .gradient-orb {
        animation: none;
        transition: none;
    }

    .feature-card:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .modern-choose-us-section {
        background: white;
        padding: 40px 0;
    }

    .feature-card {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }

    .gradient-orb,
    .choose-us-bg-pattern,
    .feature-card-border,
    .feature-glow {
        display: none;
    }
}
