/* ============================================
   CATCHY 3D VISUAL ENHANCEMENTS
   ============================================ */

/* ===== 3D TEXT EFFECTS ===== */
.text-3d {
    text-shadow: 
        1px 1px 0 rgba(0,0,0,0.1),
        2px 2px 0 rgba(0,0,0,0.08),
        3px 3px 0 rgba(0,0,0,0.06),
        4px 4px 0 rgba(0,0,0,0.04),
        5px 5px 0 rgba(0,0,0,0.02);
    transform: translateZ(0);
}

.text-3d-bold {
    text-shadow: 
        2px 2px 0 rgba(0,0,0,0.15),
        4px 4px 0 rgba(0,0,0,0.12),
        6px 6px 0 rgba(0,0,0,0.09),
        8px 8px 0 rgba(0,0,0,0.06);
    transform: translateZ(0);
}

.text-glow {
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.5),
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2);
}

.text-glow-red {
    text-shadow: 
        0 0 10px rgba(239, 68, 68, 0.5),
        0 0 20px rgba(239, 68, 68, 0.3),
        0 0 30px rgba(239, 68, 68, 0.2);
}

/* ===== ANIMATED GRADIENT BACKGROUNDS ===== */
.gradient-bg-animated {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-bg-dark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.gradient-bg-dark::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: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== PROBLEM STATEMENT SECTION ===== */
.problem-section {
    background: linear-gradient(180deg, #ffffff 0%, #fee2e2 50%, #ffffff 100%);
    position: relative;
}

.problem-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(239, 68, 68, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* ===== INSIGHT SECTION ===== */
.insight-section {
    background: linear-gradient(180deg, #f8fafc 0%, #e0f2fe 50%, #f8fafc 100%);
    position: relative;
}

.insight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* ===== NUMBERED STEPS WITH 3D EFFECT ===== */
.step-number {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.1),
        0 8px 12px rgba(0,0,0,0.08),
        inset 0 -2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: inherit;
}

.step-number:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 
        0 8px 16px rgba(0,0,0,0.15),
        0 12px 24px rgba(0,0,0,0.12),
        inset 0 -2px 4px rgba(0,0,0,0.2);
}

.step-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
}

.step-container:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ===== EMPHASIS TEXT ===== */
.emphasis-text {
    position: relative;
    display: inline-block;
}

.emphasis-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.emphasis-text.visible::after {
    transform: scaleX(1);
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: shimmerMove 3s ease-in-out infinite;
}

@keyframes shimmerMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

/* ===== PULSING ELEMENTS ===== */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(59, 130, 246, 0);
    }
}

/* ===== TYPEWRITER EFFECT ===== */
.typewriter {
    overflow: hidden;
    border-right: 3px solid #3b82f6;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #3b82f6; }
}

/* ===== FLOATING PARTICLES ===== */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: float-particle 15s infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 40%; animation-delay: 4s; }
.particle:nth-child(4) { left: 60%; animation-delay: 6s; }
.particle:nth-child(5) { left: 80%; animation-delay: 8s; }

/* ===== SECTION DIVIDER ===== */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    margin: 3rem 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* ===== QUOTE STYLING ===== */
.quote-block {
    border-left: 4px solid #3b82f6;
    padding-left: 2rem;
    font-style: italic;
    position: relative;
}

.quote-block::before {
    content: '"';
    position: absolute;
    left: -1rem;
    top: -1rem;
    font-size: 4rem;
    color: #3b82f6;
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .text-3d {
        text-shadow: 
            1px 1px 0 rgba(0,0,0,0.1),
            2px 2px 0 rgba(0,0,0,0.06);
    }
    
    .text-3d-bold {
        text-shadow: 
            2px 2px 0 rgba(0,0,0,0.12),
            4px 4px 0 rgba(0,0,0,0.08);
    }
    
    .step-container:hover {
        transform: translateX(4px);
    }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== INTERACTIVE HOVER STATES ===== */
.interactive-text {
    transition: all 0.3s ease;
    cursor: default;
}

.interactive-text:hover {
    color: #3b82f6;
    transform: scale(1.02);
}

/* ===== BRAIN PARTICLE CANVAS ===== */
.brain-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
