/* ============================================
   Revenue Growth Analytics Section - Modern 3D Design (Odd Section)
   ============================================ */

.revenue-growth-section {
    background: 
        linear-gradient(135deg, #fafbff 0%, #f0f4ff 25%, #ffffff 50%, #f8faff 75%, #fafbff 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

/* 3D Floating Elements */
.revenue-growth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* 3D Geometric shapes */
        radial-gradient(circle 60px at 15% 25%, rgba(42, 193, 174, 0.08) 0%, transparent 70%),
        radial-gradient(circle 80px at 85% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 70%),
        radial-gradient(circle 45px at 25% 75%, rgba(6, 182, 212, 0.07) 0%, transparent 70%),
        radial-gradient(circle 70px at 75% 85%, rgba(245, 158, 11, 0.05) 0%, transparent 70%),
        /* Grid pattern */
        linear-gradient(90deg, transparent 98%, rgba(42, 193, 174, 0.03) 100%),
        linear-gradient(0deg, transparent 98%, rgba(139, 92, 246, 0.03) 100%);
    background-size: auto, auto, auto, auto, 60px 60px, 60px 60px;
    animation: revenueFloatingShapes 20s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes revenueFloatingShapes {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-5px) rotate(-1deg);
        opacity: 0.8;
    }
}

/* Revenue Header */
.revenue-header {
    margin-bottom: 3rem;
}

.revenue-analytics-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    position: relative;
    z-index: 2;
    transform: perspective(500px) rotateX(5deg);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* KPI Chips */
.revenue-kpi-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    justify-content: center;
    width: 100%;
}

.revenue-kpi-chip {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 2px solid rgba(226, 232, 240, 0.4);
    border-radius: 16px;
    padding: 1.2rem 1.8rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    transform: perspective(500px) rotateY(-5deg);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(42, 193, 174, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.revenue-kpi-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2BC7B4, #8B5CF6, #06B6D4);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
    border-radius: 16px 16px 0 0;
}

.revenue-kpi-chip:hover::before {
    transform: scaleX(1);
}

.revenue-kpi-chip:hover {
    transform: perspective(500px) rotateY(0deg) translateY(-8px) scale(1.05);
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-color: rgba(42, 193, 174, 0.4);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(42, 193, 174, 0.15),
        0 0 25px rgba(139, 92, 246, 0.1);
}

.revenue-kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.6rem;
    display: block;
}

.revenue-kpi-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.revenue-kpi-change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    display: inline-block;
}

.revenue-kpi-change.positive {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
}

.revenue-kpi-change.negative {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

/* Progress Section */
.revenue-progress-section {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 24px;
    padding: 2.5rem;
    border: 2px solid rgba(226, 232, 240, 0.4);
    height: 100%;
    transform: perspective(800px) rotateY(5deg);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(42, 193, 174, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
}

.progress-item {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease forwards;
}

.progress-item:nth-child(1) { animation-delay: 0.2s; }
.progress-item:nth-child(2) { animation-delay: 0.4s; }
.progress-item:nth-child(3) { animation-delay: 0.6s; }
.progress-item:nth-child(4) { animation-delay: 0.8s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.progress-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.progress-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
}

.progress-change {
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.progress-change.positive {
    color: #059669;
}

/* Progress Bars */
.progress-bar-container {
    height: 8px;
    background: rgba(226, 232, 240, 0.5);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1.5s ease-in-out;
    position: relative;
    width: 0%;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.awareness-bar {
    background: linear-gradient(90deg, #2BC7B4, #06B6D4);
}

.consideration-bar {
    background: linear-gradient(90deg, #8B5CF6, #A855F7);
}

.intent-bar {
    background: linear-gradient(90deg, #F59E0B, #F97316);
}

.conversion-bar {
    background: linear-gradient(90deg, #EF4444, #F87171);
}

/* Chart Section */
.chart-section {
    background: rgba(248, 250, 252, 0.6);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.3);
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.traffic-dot {
    background: #2BC7B4;
}

.leads-dot {
    background: #8B5CF6;
}

.conversions-dot {
    background: #F59E0B;
}

.legend-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.3);
}

.chart-tooltip {
    position: absolute;
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-tooltip.show {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .revenue-growth-section {
        padding: 80px 0;
    }
    
    .revenue-title {
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .revenue-kpi-chips {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-legend {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .revenue-kpi-chips {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .revenue-kpi-chip {
        padding: 1rem 1.2rem;
    }
}

@media (max-width: 768px) {
    .revenue-growth-section {
        padding: 60px 0;
    }
    
    .revenue-title {
        font-size: 2rem;
    }
    
    .revenue-kpi-chips {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto 2rem;
    }
    
    .revenue-kpi-chip {
        width: 100%;
        padding: 1rem 1.5rem;
    }
    
    .revenue-analytics-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .progress-section,
    .chart-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .revenue-title {
        font-size: 1.8rem;
    }
    
    .kpi-value {
        font-size: 1.3rem;
    }
    
    .chart-title {
        font-size: 1.3rem;
    }
    
    .chart-legend {
        gap: 1rem;
    }
    
    .legend-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .revenue-analytics-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .revenue-kpi-chips {
        gap: 0.8rem;
        max-width: 280px;
    }
    
    .revenue-kpi-chip {
        padding: 0.8rem 1rem;
    }
    
    .revenue-kpi-value {
        font-size: 1.8rem;
    }
    
    .revenue-kpi-label {
        font-size: 0.7rem;
    }
}

/* Performance optimizations */
.progress-bar,
.kpi-chip,
.chart-section {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .progress-item,
    .chart-section,
    .kpi-chip {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .progress-bar::after {
        animation: none;
    }
}
