/* Home Page Specific Styles */

/* Market Comparison Section Styles - Optimized for Performance */
.market-comparison-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.market-comparison-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.08);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow;
}

.market-comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #0056b3);
    transform: scaleX(0);
    transition: transform 0.25s ease-out;
    transform-origin: left;
}

.market-comparison-card:hover::before {
    transform: scaleX(1);
}

.market-comparison-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 16px 48px rgba(0, 102, 255, 0.12);
    border-color: rgba(0, 102, 255, 0.15);
}

.market-comparison-card.standout {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0056b3 100%);
    color: white;
    border: none;
    box-shadow: 0 16px 48px rgba(0, 102, 255, 0.25);
    transform: translateY(-4px) translateZ(0);
}

.market-comparison-card.standout::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    transform: scaleX(1);
}

.market-comparison-card.standout:hover {
    transform: translateY(-12px) translateZ(0);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.35);
}

.market-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
}

.market-comparison-card.standout .market-title {
    color: white;
}

.market-flag {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.market-metric {
    text-align: center;
    padding: 1.25rem 0;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: rgba(0, 102, 255, 0.05);
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.market-comparison-card.standout .market-metric {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.market-metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.4rem;
    font-family: 'Outfit', sans-serif;
    display: block;
}

.market-comparison-card.standout .market-metric-value {
    color: white;
}

.market-metric-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}

.market-comparison-card.standout .market-metric-label {
    color: rgba(255, 255, 255, 0.9);
}

.market-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-align: center;
}

.market-comparison-card.standout .market-description {
    color: rgba(255, 255, 255, 0.9);
}

.market-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
}

.market-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem;
    background: rgba(0, 102, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.2s ease-out;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.market-comparison-card.standout .market-highlight-item {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.market-highlight-item:hover {
    background: rgba(0, 102, 255, 0.08);
    transform: translateX(3px) translateZ(0);
}

.market-comparison-card.standout .market-highlight-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.market-highlight-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 0.95rem;
}

.market-comparison-card.standout .market-highlight-icon {
    background: rgba(255, 255, 255, 0.2);
}

.market-highlight-content {
    flex: 1;
}

.market-highlight-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.market-comparison-card.standout .market-highlight-title {
    color: white;
}

.market-highlight-text {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-secondary);
    margin: 0;
}

.market-comparison-card.standout .market-highlight-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Lottie Animation Styles */
.lottie-animation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 1s both;
}

.lottie-animation-wrapper {
    position: relative;
    max-width: 100%;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 102, 255, 0.15));
}

.lottie-player {
    width: 100% !important;
    height: auto !important;
    max-width: 800px;
    max-height: 700px;
    border-radius: 20px;
    background: transparent;
}

/* Animation enhancement */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fullscreen adjustments for home screen */
.hero-section {
    height: 100vh; /* Fullscreen height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-section .container {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Strategy Showcase Cards - Optimized for Performance */
.enhanced-strategy-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(0, 102, 255, 0.08);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow;
}

.enhanced-strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #0056b3);
    transform: scaleX(0);
    transition: transform 0.25s ease-out;
    transform-origin: left;
    will-change: transform;
}

.enhanced-strategy-card:hover::before {
    transform: scaleX(1);
}

.enhanced-strategy-card:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.12);
}

.strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.strategy-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.strategy-badge .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

.strategy-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.strategy-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.strategy-metrics {
    margin-bottom: 1.5rem;
}

.metric-small {
    text-align: center;
    padding: 0.75rem;
    background: rgba(0, 102, 255, 0.04);
    border-radius: 8px;
}

.metric-value-sm {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.25rem;
}

.metric-label-sm {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.strategy-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(0, 102, 255, 0.08);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.risk-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.risk-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.risk-bars {
    display: flex;
    gap: 2px;
}

.risk-bar {
    width: 12px;
    height: 6px;
    background: rgba(0, 102, 255, 0.2);
    border-radius: 3px;
}

.risk-bar.active {
    background: var(--accent-color);
}

.risk-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
}

.strategy-cta .btn {
    width: 100%;
    font-weight: 600;
}

.btn-enhanced-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-enhanced-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-enhanced-outline:hover::before {
    left: 0;
}

.btn-enhanced-outline:hover {
    color: white;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .market-comparison-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .market-comparison-section {
        min-height: auto;
        padding: 50px 0;
    }
    
    .market-comparison-card {
        padding: 1.75rem 1.25rem;
    }
    
    .market-metric-value {
        font-size: 2rem;
    }
    
    .market-title {
        font-size: 1.2rem;
    }
    
    .lottie-animation-container {
        margin-top: 2rem;
        animation: fadeInUp 1s ease-out 0.8s both;
    }
    
    .lottie-player {
        max-width: 500px;
        max-height: 450px;
    }
}

@media (max-width: 576px) {
    .lottie-player {
        max-width: 380px;
        max-height: 320px;
    }
}

/* Performance optimizations - Enhanced for smooth animations */
.market-comparison-card {
    will-change: transform, box-shadow;
    contain: layout style paint;
}

.market-comparison-card:hover {
    will-change: transform, box-shadow;
}

.market-comparison-card:not(:hover) {
    will-change: auto;
}

.enhanced-strategy-card {
    will-change: transform;
    contain: layout style paint;
}

.enhanced-strategy-card:hover {
    will-change: transform;
}

.enhanced-strategy-card:not(:hover) {
    will-change: auto;
}

.market-highlight-item {
    will-change: transform, background-color;
}

.market-highlight-item:not(:hover) {
    will-change: auto;
}

/* Prevent layout shift */
.lottie-animation-container {
    min-height: 300px;
    contain: layout;
}

@media (min-width: 768px) {
    .lottie-animation-container {
        min-height: 400px;
    }
}

/* Smooth scrolling improvements */
.market-comparison-section,
.strategy-showcase-section {
    scroll-margin-top: 80px;
}

/* GPU acceleration for animations - Enhanced */
.market-comparison-card,
.enhanced-strategy-card,
.lottie-animation-container,
.market-highlight-item {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduce paint complexity */
.market-comparison-card::before,
.enhanced-strategy-card::before {
    will-change: transform;
}

/* Optimize box-shadow transitions */
.market-comparison-card,
.enhanced-strategy-card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.25s ease-out;
}