/* Detection Section */
.detection {
    background: #f0f0f0;
    padding: 50px 0;
}

.detection-header {
    background: #666;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-weight: bold;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px #666, 0 0 10px #666, 0 0 15px #666;
    }
    to {
        box-shadow: 0 0 10px #62B3AF, 0 0 20px #62B3AF, 0 0 30px #62B3AF;
    }
}

.detection-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.detection-diagram {
    display: flex;
    justify-content: center;
}

.detection-zones {
    position: relative;
    width: 400px;
    height: 400px;
}

.zone {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #666;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-weight: bold;
    padding-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.zone.outer {
    width: 400px;
    height: 400px;
    top: 0;
    left: 0;
    background: rgba(255, 200, 200, 0.3);
}

.zone.inner {
    width: 200px;
    height: 200px;
    top: 100px;
    left: 100px;
    background: rgba(255, 150, 150, 0.3);
}

.safety-card-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cardVibrate 8s ease-out infinite;
}

.safety-card-center-svg {
    width: 35px;
    height: 50px;
    object-fit: contain;
    animation: cardGlow 8s ease-out infinite;
}

.detection-text {
    font-family: 'Inter', sans-serif;
}

.anchor-highlight {
    background: #62B3AF;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detection-description {
    background: white;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detection-note {
    background: white;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Animated forklift and safety card */
.animated-forklift {
    position: absolute;
    bottom: 40px;
    left: -100px;
    width: 80px;
    height: 60px;
    animation: forkliftMove 8s ease-out infinite;
}

.moving-forklift-svg {
    width: 80px;
    height: 60px;
    object-fit: contain;
    animation: forkliftGlow 8s ease-out infinite;
}

@keyframes forkliftMove {
    0% {
        left: -100px;
        opacity: 1;
        transform: scale(1);
        animation-timing-function: ease-in;
    }
    20% {
        left: 120px;
        opacity: 1;
        transform: scale(1);
        animation-timing-function: ease-out;
    }
    40% {
        left: 150px;
        opacity: 1;
        transform: scale(1);
        animation-timing-function: ease-out;
    }
    50% {
        left: 180px;
        opacity: 1;
        transform: scale(1);
        animation-timing-function: ease-out;
    }
    65% {
        left: 210px;
        opacity: 1;
        transform: scale(1);
        animation-timing-function: ease-out;
    }
    80% {
        left: 240px;
        opacity: 1;
        transform: scale(1);
    }
    90% {
        left: 260px;
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        left: 280px;
        opacity: 0;
        transform: scale(1);
    }
}

@keyframes cardVibrate {
    0%, 15% {
        transform: translate(-50%, -50%);
    }
    20%, 22%, 24%, 26%, 28%, 30%, 32%, 34%, 36%, 38%, 40%, 42%, 44%, 46%, 48%, 50%, 52%, 54%, 56%, 58%, 60%, 62%, 64%, 66%, 68%, 70% {
        transform: translate(-52%, -50%);
    }
    21%, 23%, 25%, 27%, 29%, 31%, 33%, 35%, 37%, 39%, 41%, 43%, 45%, 47%, 49%, 51%, 53%, 55%, 57%, 59%, 61%, 63%, 65%, 67%, 69% {
        transform: translate(-48%, -50%);
    }
    75%, 100% {
        transform: translate(-50%, -50%);
    }
}

@keyframes cardGlow {
    0%, 15% {
        filter: drop-shadow(0 0 0 rgba(255, 0, 0, 0));
    }
    20%, 22%, 24%, 26%, 28%, 30%, 32%, 34%, 36%, 38%, 40%, 42%, 44%, 46%, 48%, 50%, 52%, 54%, 56%, 58%, 60%, 62%, 64%, 66%, 68%, 70% {
        filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.8)) drop-shadow(0 0 12px rgba(255, 0, 0, 0.6));
    }
    21%, 23%, 25%, 27%, 29%, 31%, 33%, 35%, 37%, 39%, 41%, 43%, 45%, 47%, 49%, 51%, 53%, 55%, 57%, 59%, 61%, 63%, 65%, 67%, 69% {
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.9)) drop-shadow(0 0 15px rgba(255, 0, 0, 0.7));
    }
    75%, 100% {
        filter: drop-shadow(0 0 0 rgba(255, 0, 0, 0));
    }
}

@keyframes forkliftGlow {
    0%, 15% {
        filter: drop-shadow(0 0 0 rgba(255, 0, 0, 0));
    }
    20% {
        filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.8)) drop-shadow(0 0 12px rgba(255, 0, 0, 0.6));
    }
    65% {
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.9)) drop-shadow(0 0 15px rgba(255, 0, 0, 0.7));
    }
    80%, 100% {
        filter: drop-shadow(0 0 0 rgba(255, 0, 0, 0));
    }
}