/* ====================================
   404 PAGE - CHAVEIRO GOIÂNIA 24H
   Prefixo: .p404-
   ==================================== */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.p404-section {
    position: relative;
    min-height: 100vh;
    background: #012A55;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Partículas de fundo */
.p404-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.p404-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(21, 178, 57, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: p404-float 20s infinite ease-in-out;
}

@keyframes p404-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -100px) scale(1.2); }
    50% { transform: translate(-50px, 100px) scale(0.8); }
    75% { transform: translate(150px, 50px) scale(1.1); }
}

/* Luzes circulantes */
.p404-scanning-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.p404-light {
    position: absolute;
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #FC791A 50%, transparent 100%);
    box-shadow: 0 0 20px #FC791A, 0 0 40px #FC791A;
    animation: p404-scan-horizontal 4s infinite ease-in-out;
}

.p404-light-1 {
    top: 20%;
    animation-delay: 0s;
}

.p404-light-2 {
    top: 50%;
    animation-delay: 1.3s;
    background: linear-gradient(90deg, transparent 0%, #15B239 50%, transparent 100%);
    box-shadow: 0 0 20px #15B239, 0 0 40px #15B239;
}

.p404-light-3 {
    top: 80%;
    animation-delay: 2.6s;
    background: linear-gradient(90deg, transparent 0%, #012A55 50%, transparent 100%);
    box-shadow: 0 0 20px #012A55, 0 0 40px #012A55;
}

@keyframes p404-scan-horizontal {
    0%, 100% { left: -300px; opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { left: 50%; transform: translateX(-50%); }
    100% { left: 100%; opacity: 0; }
}

/* Container principal */
.p404-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* Scanner de chave */
.p404-scanner-wrapper {
    margin: 0 auto 40px;
    max-width: 400px;
}

.p404-scanner-frame {
    position: relative;
    background: rgba(1, 42, 85, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(252, 121, 26, 0.3);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 
        0 0 40px rgba(252, 121, 26, 0.2),
        inset 0 0 40px rgba(1, 42, 85, 0.3);
}

/* Cantos do scanner */
.p404-scanner-corners {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.p404-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #FC791A;
    box-shadow: 0 0 15px #FC791A;
}

.p404-corner-tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    border-radius: 20px 0 0 0;
}

.p404-corner-tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 20px 0 0;
}

.p404-corner-bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 20px;
}

.p404-corner-br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 20px 0;
}

/* Chave holográfica */
.p404-key-hologram {
    position: relative;
    display: inline-block;
    animation: p404-hologram-float 3s ease-in-out infinite;
}

.p404-key-icon {
    width: 120px;
    height: 120px;
    color: #15B239;
    filter: drop-shadow(0 0 20px #15B239);
    animation: p404-pulse 2s ease-in-out infinite;
}

@keyframes p404-hologram-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes p404-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.p404-hologram-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(21, 178, 57, 0.1) 3px,
            rgba(21, 178, 57, 0.1) 6px
        );
    border-radius: 50%;
    animation: p404-rotate 10s linear infinite;
    pointer-events: none;
}

@keyframes p404-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Linha de scan */
.p404-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #FC791A 50%, transparent 100%);
    box-shadow: 0 0 20px #FC791A;
    animation: p404-scan-vertical 3s ease-in-out infinite;
}

@keyframes p404-scan-vertical {
    0%, 100% { top: 0; opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { top: 100%; }
}

/* Status do scanner */
.p404-scanner-status {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(252, 121, 26, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.p404-status-dot {
    width: 10px;
    height: 10px;
    background: #FC791A;
    border-radius: 50%;
    box-shadow: 0 0 10px #FC791A;
    animation: p404-blink 1s ease-in-out infinite;
}

@keyframes p404-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.p404-status-text {
    font-size: 12px;
    font-weight: 700;
    color: #FC791A;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Código de erro */
.p404-error-code {
    position: relative;
    margin: 40px 0;
}

.p404-error-number {
    font-size: 150px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px #FC791A;
    text-shadow: 
        0 0 20px rgba(252, 121, 26, 0.5),
        0 0 40px rgba(252, 121, 26, 0.3);
    display: block;
    line-height: 1;
    position: relative;
    z-index: 5;
}

/* Efeito Glitch */
.p404-glitch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 150px;
    font-weight: 900;
    color: #15B239;
    opacity: 0.3;
    animation: p404-glitch 3s infinite;
    line-height: 1;
    z-index: 4;
}

@keyframes p404-glitch {
    0%, 100% { 
        transform: translate(-50%, -50%); 
        opacity: 0.3; 
    }
    10% { 
        transform: translate(-48%, -52%); 
        opacity: 0.5; 
    }
    20% { 
        transform: translate(-52%, -48%); 
        opacity: 0.2; 
    }
    30% { 
        transform: translate(-50%, -50%); 
        opacity: 0.3; 
    }
}

/* Mensagem */
.p404-message {
    margin: 40px 0;
    position: relative;
    z-index: 10;
}

.p404-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(21, 178, 57, 0.5);
}

.p404-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de serviços */
.p404-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 50px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.p404-service-card {
    position: relative;
    background: rgba(1, 42, 85, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(21, 178, 57, 0.2);
    border-radius: 15px;
    padding: 30px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.p404-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(21, 178, 57, 0.2), transparent);
    transition: left 0.5s ease;
}

.p404-service-card:hover::before {
    left: 100%;
}

.p404-service-card:hover {
    border-color: #15B239;
    box-shadow: 0 0 30px rgba(21, 178, 57, 0.4);
    transform: translateY(-5px);
}

.p404-service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    color: #15B239;
    transition: all 0.3s ease;
}

.p404-service-card:hover .p404-service-icon {
    color: #FC791A;
    transform: scale(1.1) rotate(5deg);
}

.p404-service-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px currentColor);
}

.p404-service-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* Botões de ação */
.p404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 50px 0;
    position: relative;
    z-index: 10;
}

.p404-btn {
    position: relative;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.p404-btn-primary {
    background: linear-gradient(135deg, #012A55 0%, #0047AB 100%);
    color: #ffffff;
    border: 2px solid #012A55;
    box-shadow: 0 0 20px rgba(1, 42, 85, 0.5);
}

.p404-btn-primary:hover {
    box-shadow: 0 0 40px rgba(1, 42, 85, 0.8);
    transform: translateY(-3px);
}

.p404-btn-whatsapp {
    background: linear-gradient(135deg, #15B239 0%, #1ed760 100%);
    color: #ffffff;
    border: 2px solid #15B239;
    box-shadow: 0 0 20px rgba(21, 178, 57, 0.5);
}

.p404-btn-whatsapp:hover {
    box-shadow: 0 0 40px rgba(21, 178, 57, 0.8);
    transform: translateY(-3px);
}

.p404-btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.p404-btn:hover .p404-btn-glow {
    opacity: 1;
    animation: p404-glow-move 1.5s ease-in-out infinite;
}

@keyframes p404-glow-move {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 10px); }
}

.p404-btn-text {
    position: relative;
    z-index: 1;
}

.p404-whatsapp-icon {
    width: 24px;
    height: 24px;
}

/* Informações de contato */
.p404-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.p404-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.p404-contact-icon {
    width: 24px;
    height: 24px;
    color: #15B239;
}

/* Código binário flutuante - REMOVIDO */
.p404-binary-code {
    display: none;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .p404-section {
        padding: 30px 15px;
    }

    .p404-scanner-frame {
        padding: 40px 30px;
    }

    .p404-key-icon {
        width: 80px;
        height: 80px;
    }

    .p404-hologram-lines {
        width: 100px;
        height: 100px;
    }

    .p404-corner {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }

    .p404-error-number,
    .p404-glitch {
        font-size: 100px;
    }

    .p404-title {
        font-size: 32px;
    }

    .p404-description {
        font-size: 16px;
    }

    .p404-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .p404-service-card {
        padding: 25px 15px;
    }

    .p404-service-icon {
        width: 50px;
        height: 50px;
    }

    .p404-service-title {
        font-size: 14px;
    }

    .p404-actions {
        flex-direction: column;
        gap: 15px;
    }

    .p404-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
        font-size: 15px;
    }

    .p404-contact-info {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .p404-contact-item {
        font-size: 14px;
    }

    /* Simplificar animações no mobile */
    .p404-light {
        display: none;
    }

    .p404-scan-line {
        animation-duration: 4s;
    }

    .p404-hologram-float {
        animation-duration: 4s;
    }
}

@media (max-width: 480px) {
    .p404-error-number,
    .p404-glitch {
        font-size: 80px;
    }

    .p404-title {
        font-size: 28px;
    }

    .p404-description {
        font-size: 15px;
    }

    .p404-services-grid {
        grid-template-columns: 1fr;
    }

    .p404-scanner-frame {
        padding: 30px 20px;
    }

    .p404-key-icon {
        width: 70px;
        height: 70px;
    }
}








.p404-btn-phone {
    background: linear-gradient(135deg, #FC791A 0%, #ff9500 100%);
    color: #ffffff;
    border: 2px solid #FC791A;
    box-shadow: 0 0 20px rgba(252, 121, 26, 0.5);
}

.p404-btn-phone:hover {
    box-shadow: 0 0 40px rgba(252, 121, 26, 0.8);
    transform: translateY(-3px);
}

.p404-phone-icon {
    width: 24px;
    height: 24px;
}