/* ===================================
   VISUAL VARIETY & COLOR ACCENTS
   Add more visual interest with varied section styling
   =================================== */

/* ===================================
   ALTERNATING SECTION BACKGROUNDS
   =================================== */

/* Create visual rhythm with alternating backgrounds */
.section:nth-child(odd) {
    background: var(--bg-primary);
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

/* Special accent sections */
.section.accent-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-top: 4px solid var(--projectionlab-primary);
    border-bottom: 4px solid var(--projectionlab-primary);
}

.section.accent-teal {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%) !important;
    border-top: 4px solid var(--projectionlab-secondary);
    border-bottom: 4px solid var(--projectionlab-secondary);
}

.section.accent-amber {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-top: 4px solid var(--projectionlab-accent);
    border-bottom: 4px solid var(--projectionlab-accent);
}

.section.accent-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border-top: 4px solid #10b981;
    border-bottom: 4px solid #10b981;
}

/* ===================================
   ENHANCED CARD VARIATIONS
   =================================== */

/* Primary Cards - Blue accent */
.card.primary,
.feature-card.primary {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
    border: 3px solid var(--projectionlab-primary) !important;
    position: relative;
}

.card.primary::before,
.feature-card.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--projectionlab-primary), var(--projectionlab-secondary));
    border-radius: 12px 12px 0 0;
}

/* Secondary Cards - Teal accent */
.card.secondary,
.feature-card.secondary {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%) !important;
    border: 3px solid var(--projectionlab-secondary) !important;
    position: relative;
}

.card.secondary::before,
.feature-card.secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--projectionlab-secondary), var(--projectionlab-accent));
    border-radius: 12px 12px 0 0;
}

/* Accent Cards - Amber accent */
.card.accent,
.feature-card.accent {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%) !important;
    border: 3px solid var(--projectionlab-accent) !important;
    position: relative;
}

.card.accent::before,
.feature-card.accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--projectionlab-accent), #f59e0b);
    border-radius: 12px 12px 0 0;
}

/* Success Cards - Green accent */
.card.success,
.feature-card.success {
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%) !important;
    border: 3px solid #10b981 !important;
    position: relative;
}

.card.success::before,
.feature-card.success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 12px 12px 0 0;
}

/* ===================================
   ICON STYLING WITH BACKGROUND CIRCLES
   =================================== */

.feature-icon,
.card-icon {
    width: 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, var(--projectionlab-primary), var(--projectionlab-secondary)) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 8px 16px rgba(24, 103, 192, 0.3) !important;
    position: relative !important;
}

.feature-icon::after,
.card-icon::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(24, 103, 192, 0.1);
    border-radius: 50%;
    z-index: -1;
}

/* Varied icon backgrounds */
.feature-card:nth-child(2n) .feature-icon {
    background: linear-gradient(135deg, var(--projectionlab-secondary), var(--projectionlab-accent)) !important;
    box-shadow: 0 8px 16px rgba(38, 166, 162, 0.3) !important;
}

.feature-card:nth-child(3n) .feature-icon {
    background: linear-gradient(135deg, var(--projectionlab-accent), #f59e0b) !important;
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3) !important;
}

.feature-card:nth-child(4n) .feature-icon {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3) !important;
}

/* ===================================
   ENHANCED METRICS STYLING
   =================================== */

.metric-card,
.preview-metric {
    background: var(--bg-primary) !important;
    border: 2px solid var(--border-light) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 16px !important;
    position: relative !important;
    overflow: hidden !important;
}

.metric-card::before,
.preview-metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--projectionlab-primary), var(--projectionlab-secondary));
}

.metric-card.positive::before,
.preview-metric.positive::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.metric-card.negative::before,
.preview-metric.negative::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.metric-card.warning::before,
.preview-metric.warning::before {
    background: linear-gradient(90deg, var(--projectionlab-accent), #f59e0b);
}

/* ===================================
   CALL-TO-ACTION SECTIONS
   =================================== */

.cta-section {
    background: linear-gradient(135deg, var(--projectionlab-primary) 0%, var(--projectionlab-secondary) 100%) !important;
    color: white !important;
    text-align: center !important;
    padding: 80px 40px !important;
    border-radius: 20px !important;
    margin: 40px 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.cta-section h2 {
    color: white !important;
    font-size: 3rem !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    margin-bottom: 40px !important;
}

.cta-section .cta-primary {
    background: white !important;
    color: var(--projectionlab-primary) !important;
    border: none !important;
    padding: 20px 40px !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.cta-section .cta-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3) !important;
}

/* ===================================
   TESTIMONIAL CARDS
   =================================== */

.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid var(--border-light) !important;
    border-radius: 16px !important;
    padding: 32px !important;
    box-shadow: var(--shadow-strong) !important;
    position: relative !important;
    margin-bottom: 24px !important;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--projectionlab-primary);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card:nth-child(2n) {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
    border-color: var(--projectionlab-primary) !important;
}

.testimonial-card:nth-child(3n) {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%) !important;
    border-color: var(--projectionlab-secondary) !important;
}

/* ===================================
   ANIMATIONS AND INTERACTIONS
   =================================== */

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(24, 103, 192, 0.3); }
    50% { box-shadow: 0 0 40px rgba(24, 103, 192, 0.6); }
}

.feature-card:hover {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Hover effects for better interactivity */
.card:hover,
.feature-card:hover,
.perfect-for-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 20px !important;
        margin: 20px 0 !important;
        border-radius: 12px !important;
    }
    
    .cta-section h2 {
        font-size: 2rem !important;
    }
    
    .feature-icon,
    .card-icon {
        width: 56px !important;
        height: 56px !important;
        font-size: 24px !important;
    }
    
    .feature-icon::after,
    .card-icon::after {
        width: 70px;
        height: 70px;
    }
}