/* ========================================
   MODERN PRODUCT SECTION STYLES
   Trading Platform Design - Product Features
   ======================================== */

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

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

.pattern-hexagons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 50px,
            rgba(59, 130, 246, 0.04) 50px,
            rgba(59, 130, 246, 0.04) 51px
        ),
        repeating-linear-gradient(
            -60deg,
            transparent,
            transparent 50px,
            rgba(16, 185, 129, 0.04) 50px,
            rgba(16, 185, 129, 0.04) 51px
        );
    animation: hexMove 25s linear infinite;
}

@keyframes hexMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.pattern-waves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    animation: wavesPulse 8s ease-in-out infinite;
}

@keyframes wavesPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Gradient Orbs */
.gradient-orb.orb-product-1 {
    position: absolute;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    border-radius: 50%;
    filter: blur(110px);
    top: 15%;
    left: -15%;
    animation: floatProductOrb 12s ease-in-out infinite;
    pointer-events: none;
}

.gradient-orb.orb-product-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%);
    border-radius: 50%;
    filter: blur(110px);
    bottom: 15%;
    right: -15%;
    animation: floatProductOrb 15s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes floatProductOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.15); }
    66% { transform: translate(-40px, 40px) 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;
    margin-bottom: 48px;
    max-width: 600px;
}

/* Product Content */
.product-content {
    position: relative;
    z-index: 2;
}

/* Product Features List */
.product-features {
    margin-bottom: 40px;
}

/* Product Feature Item */
.product-feature-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(17, 32, 37, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.product-feature-item::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.6s ease;
}

.product-feature-item:hover::before {
    left: 100%;
}

.product-feature-item:hover {
    transform: translateX(8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Feature Icon Container */
.feature-icon-container {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    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: 18px;
    transition: all 0.5s ease;
}

.product-feature-item:hover .feature-icon-bg {
    transform: rotate(10deg) 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.4);
}

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

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

.product-feature-item:hover .feature-icon {
    transform: scale(1.15);
    color: #60a5fa;
}

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

/* Feature Pulse Effect */
.feature-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 18px;
    opacity: 0;
}

.product-feature-item:hover .feature-pulse {
    animation: featurePulse 2s ease-in-out infinite;
}

@keyframes featurePulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Feature Content */
.feature-content {
    flex: 1;
}

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

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

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

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

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

.product-feature-item:hover .feature-arrow {
    opacity: 1;
    transform: translateX(0);
    background: #3b82f6;
    color: white;
}

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

.product-feature-item:hover .feature-arrow svg {
    transform: translateX(4px);
}

/* CTA Section */
.product-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

.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;
}

.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 8px 20px 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 12px 30px rgba(59, 130, 246, 0.5);
}

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

/* CTA Note */
.cta-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.cta-note svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* Product Visual */
.product-visual {
    position: relative;
    z-index: 2;
}

.product-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: visible;
}

/* Image Decorations */
.image-decoration {
    position: absolute;
    border-radius: 20px;
    opacity: 0.6;
    z-index: 0;
}

.image-decoration.dec-1 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), transparent);
    top: -40px;
    right: -40px;
    animation: floatDec1 7s ease-in-out infinite;
}

.image-decoration.dec-2 {
    width: 180px;
    height: 180px;
    background: linear-gradient(225deg, rgba(16, 185, 129, 0.2), transparent);
    bottom: -30px;
    left: -30px;
    animation: floatDec2 9s ease-in-out infinite;
}

.image-decoration.dec-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(315deg, rgba(168, 85, 247, 0.2), transparent);
    top: 50%;
    left: -60px;
    animation: floatDec3 8s ease-in-out infinite;
}

@keyframes floatDec1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(25px, -25px) rotate(15deg); }
    66% { transform: translate(-20px, 20px) rotate(-15deg); }
}

@keyframes floatDec2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(-10deg); }
}

@keyframes floatDec3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(15px, -15px) rotate(10deg); }
}

/* Product Image */
.product-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
    z-index: 1;
}

.product-image:hover {
    transform: scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%,
        transparent 50%,
        rgba(16, 185, 129, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.product-image:hover .image-overlay {
    opacity: 1;
}

/* Light/Dark Mode Images */
.l-mood { display: block; }
.d-mood { display: none; }

@media (prefers-color-scheme: dark) {
    .l-mood { display: none; }
    .d-mood { display: block; }
}

/* Floating Info Cards */
.floating-info {
    position: absolute;
    background: rgba(17, 32, 37, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    z-index: 3;
    animation: floatInfo 4s ease-in-out infinite;
}

.floating-info:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.floating-info.info-1 {
    top: 12%;
    right: -30px;
    animation-delay: 0s;
}

.floating-info.info-2 {
    top: 48%;
    left: -40px;
    animation-delay: 1.5s;
}

.floating-info.info-3 {
    bottom: 18%;
    right: -25px;
    animation-delay: 3s;
}

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

/* Info Icon */
.info-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.info-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.info-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

/* Info Content */
.info-content {
    flex: 1;
}

.info-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 2px;
}

.info-value {
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
}

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

.product-shape-bg img {
    max-width: 100%;
    height: auto;
}

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

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

    .floating-info {
        padding: 12px 16px;
    }

    .info-value {
        font-size: 16px;
    }

    .info-icon {
        width: 38px;
        height: 38px;
    }
}

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

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

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

    .product-visual {
        margin-bottom: 60px;
    }

    .floating-info {
        position: static;
        margin: 16px 0;
        animation: none;
    }

    .image-decoration {
        display: none;
    }
}

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

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

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

    .product-feature-item {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .feature-icon-container {
        width: 56px;
        height: 56px;
    }

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

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

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

    .feature-arrow {
        align-self: flex-end;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .gradient-orb {
        display: none;
    }
}

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

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

    .product-feature-item {
        gap: 12px;
        margin-bottom: 16px;
    }

    .feature-icon-container {
        width: 48px;
        height: 48px;
    }

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

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

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

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

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

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

    .product-feature-item,
    .floating-info {
        background: rgba(255, 255, 255, 0.95);
        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,
    .info-value {
        color: #0f172a;
    }

    .feature-description,
    .section-description {
        color: #475569;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .product-feature-item,
    .feature-icon,
    .feature-arrow,
    .btn-modern,
    .pattern-hexagons,
    .pattern-waves,
    .gradient-orb,
    .feature-pulse,
    .floating-info,
    .image-decoration {
        animation: none;
        transition: none;
    }

    .product-feature-item:hover {
        transform: none;
    }
}

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

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

    .gradient-orb,
    .product-bg-pattern,
    .floating-info,
    .image-decoration {
        display: none;
    }
}
