/* Copyright-Safe Hero Visual Art - Original CSS Designs */

/* Case Study Box Styling */
.case-study-box {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: boxGlow 3s ease-in-out infinite;
}

@keyframes boxGlow {
    0%, 100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 20px 60px rgba(59, 130, 246, 0.5); }
}

.case-study-header {
    margin-bottom: 24px;
}

.case-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    animation: badgePulse 2s ease-in-out infinite;
}

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

.case-study-header h3 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.metric-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 6px;
}

.metric-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    line-height: 1.2;
}

.case-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Flash Animation for Metrics */
.flash-animate {
    animation: flashIn 1.5s ease-out forwards;
    opacity: 0;
}

.flash-animate.delay-1 {
    animation-delay: 0.3s;
}

.flash-animate.delay-2 {
    animation-delay: 0.6s;
}

@keyframes flashIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Rolling Number Effect */
.metric-value {
    animation: rollIn 1s ease-out forwards;
}

@keyframes rollIn {
    0% {
        transform: rotateX(90deg);
        opacity: 0;
    }
    50% {
        transform: rotateX(-10deg);
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

.hero-visual-art {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Visual 1: AI Neural Network Grid */
.hero-visual-1 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
}

.visual-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(255,255,255,0.1) 35px, rgba(255,255,255,0.1) 36px),
        repeating-linear-gradient(90deg, transparent, transparent 35px, rgba(255,255,255,0.1) 35px, rgba(255,255,255,0.1) 36px);
    animation: gridMove 20s linear infinite;
}

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

.visual-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.3) 2px, transparent 2px),
        radial-gradient(circle at 60% 70%, rgba(255,255,255,0.2) 3px, transparent 3px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.25) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.2) 2px, transparent 2px),
        radial-gradient(circle at 90% 60%, rgba(255,255,255,0.3) 3px, transparent 3px);
    background-size: 100% 100%;
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-20px); opacity: 1; }
}

/* Visual 2: Data Waves */
.hero-visual-2 {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #3b82f6 100%);
}

.visual-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(37, 99, 235, 0.2) 0%, transparent 50%);
    animation: waveMove 8s ease-in-out infinite;
}

@keyframes waveMove {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.visual-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: dotsPulse 4s ease-in-out infinite;
}

@keyframes dotsPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Visual 3: Circuit Board Pattern */
.hero-visual-3 {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
}

.visual-circuit {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 48%, rgba(255,255,255,0.1) 48%, rgba(255,255,255,0.1) 52%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(255,255,255,0.1) 48%, rgba(255,255,255,0.1) 52%, transparent 52%);
    background-size: 80px 80px;
    animation: circuitFlow 10s linear infinite;
}

@keyframes circuitFlow {
    0% { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}

.visual-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.visual-nodes::before,
.visual-nodes::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255,255,255,0.8);
}

.visual-nodes::before {
    top: 30%;
    left: 25%;
    animation: nodePulse 3s ease-in-out infinite;
}

.visual-nodes::after {
    bottom: 35%;
    right: 30%;
    animation: nodePulse 3s ease-in-out infinite 1.5s;
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* Shared Glow Effect */
.visual-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 6s ease-in-out infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-visual-art {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-visual-art {
        height: 250px;
    }
}
