/* =====================================
   Kaleidoscope Effect - Emblem Style
   Redesigned with Stamp/Badge Graphics
   ===================================== */

.kaleidoscope-visual-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fff5f0 100%);
    position: relative;
    overflow: hidden;
}

.kaleidoscope-visual-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(247, 147, 30, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.kaleidoscope-visual-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* Header */
.kalei-visual-header {
    text-align: center;
    margin-bottom: 80px;
}

.kalei-visual-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1A2332 0%, #FF6B35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kalei-visual-header p {
    font-size: 1.3rem;
    color: #666;
    font-weight: 500;
}

/* Visual Flow */
.kalei-visual-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    justify-items: center;
}

/* Stage - Emblem Style */
.kalei-stage-emblem {
    text-align: center;
    max-width: 100%;
}

.stage-emblem-wrapper {
    width: 320px;
    height: 320px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-emblem-wrapper:hover {
    transform: translateY(-8px) scale(1.05);
}

/* Final Stage Special Effect */
.stage-emblem-final {
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 8px 20px rgba(255, 107, 53, 0.15));
    }
    50% {
        filter: drop-shadow(0 12px 30px rgba(255, 107, 53, 0.25));
    }
}

.stage-emblem-final:hover {
    animation: none;
    filter: drop-shadow(0 15px 40px rgba(255, 107, 53, 0.3));
}

/* Emblem Image */
.stage-emblem-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.stage-emblem-wrapper:hover .stage-emblem-image {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 8px 20px rgba(255, 107, 53, 0.2));
}

/* Stage Title & Description */
.kalei-stage-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kalei-stage-desc {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* Operators (Plus & Equals) */
.kalei-operator {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FF6B35;
    text-align: center;
    animation: operator-pulse 2.5s ease-in-out infinite;
    position: relative;
}

.kalei-operator i {
    display: block;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.3));
}

@keyframes operator-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .kalei-visual-flow {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .kalei-operator {
        transform: rotate(90deg);
        font-size: 3rem;
    }

    .stage-emblem-wrapper {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .kaleidoscope-visual-section {
        padding: 60px 0;
    }

    .kalei-visual-header h2 {
        font-size: 2.2rem;
    }

    .kalei-visual-header p {
        font-size: 1.1rem;
    }

    .kalei-visual-flow {
        gap: 30px;
        padding: 0 15px;
    }

    .stage-emblem-wrapper {
        width: 240px;
        height: 240px;
    }

    .kalei-stage-title {
        font-size: 1.3rem;
    }

    .kalei-stage-desc {
        font-size: 0.9rem;
    }

    .kalei-operator {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .kaleidoscope-visual-container {
        padding: 0 20px;
    }

    .kalei-visual-header {
        margin-bottom: 50px;
    }

    .kalei-visual-header h2 {
        font-size: 1.8rem;
    }

    .kalei-visual-header p {
        font-size: 1rem;
    }

    .stage-emblem-wrapper {
        width: 200px;
        height: 200px;
    }

    .kalei-stage-title {
        font-size: 1.2rem;
    }

    .kalei-operator {
        font-size: 2rem;
    }
}

/* Animation on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}
