/* =========================================
   SERVIÇOS - CHAVEIRO GOIÂNIA 24H
   CSS com prefixo 'srv-' para evitar conflitos
   Design futurista, moderno e responsivo
   ========================================= */

/* ===== VARIÁVEIS DE CORES ===== */
:root {
    --srv-primary: #012A55;
    --srv-secondary: #FC791A;
    --srv-accent: #15B239;
    --srv-dark: #0a0e27;
    --srv-light: #ffffff;
    --srv-gray: #64748b;
    --srv-gradient-1: linear-gradient(135deg, #012A55 0%, #014a8f 100%);
    --srv-gradient-2: linear-gradient(135deg, #FC791A 0%, #ff9d4d 100%);
    --srv-gradient-3: linear-gradient(135deg, #15B239 0%, #1ed14d 100%);
}

/* ===== SESSÃO PRINCIPAL ===== */
.srv-services-section {
    position: relative;
    padding: 30px 0;
    background: #012A55;
    overflow: hidden;
    min-height: 100vh;
}

/* ===== PARTÍCULAS DE FUNDO ===== */
.srv-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* ===== EFEITO LUZ NEON PASSANDO ===== */
.srv-neon-light {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(252, 121, 26, 0.1) 25%, 
        rgba(21, 178, 57, 0.2) 50%, 
        rgba(252, 121, 26, 0.1) 75%, 
        transparent 100%
    );
    animation: srv-neon-sweep 8s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes srv-neon-sweep {
    0%, 100% {
        left: -100%;
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        left: 100%;
    }
}

/* ===== CIRCUITOS DECORATIVOS ===== */
.srv-circuit-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 400px;
    z-index: 1;
    opacity: 0.1;
    pointer-events: none;
}

.srv-circuit-svg {
    width: 100%;
    height: 100%;
}

.srv-circuit-path {
    fill: none;
    stroke: var(--srv-secondary);
    stroke-width: 2;
    stroke-dasharray: 10, 5;
    animation: srv-circuit-flow 3s linear infinite;
}

.srv-circuit-node {
    fill: var(--srv-accent);
    animation: srv-node-pulse 2s ease-in-out infinite;
}

@keyframes srv-circuit-flow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -100;
    }
}

@keyframes srv-node-pulse {
    0%, 100% {
        opacity: 0.5;
        r: 5;
    }
    50% {
        opacity: 1;
        r: 7;
    }
}

/* ===== CONTAINER ===== */
.srv-services-section .container {
    position: relative;
    z-index: 3;
}

/* ===== CABEÇALHO DA SESSÃO ===== */
.srv-section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.srv-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--srv-secondary);
    padding: 8px 24px;
    background: rgba(252, 121, 26, 0.1);
    border: 1px solid var(--srv-secondary);
    border-radius: 50px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.srv-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(252, 121, 26, 0.3), transparent);
    animation: srv-subtitle-shine 3s infinite;
}

@keyframes srv-subtitle-shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.srv-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--srv-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.srv-highlight {
    background: var(--srv-gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.srv-description {
    font-size: 18px;
    color: var(--srv-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== GRID DE SERVIÇOS ===== */
.srv-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

/* ===== CARDS DE SERVIÇOS ===== */
.srv-service-card {
    position: relative;
    height: 420px;
    perspective: 1000px;
    cursor: pointer;
}

.srv-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.srv-service-card:hover .srv-card-inner {
    transform: rotateY(180deg);
}

.srv-card-front,
.srv-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.srv-card-front::before,
.srv-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--srv-gradient-1);
    opacity: 0.05;
    z-index: 0;
}

.srv-card-back {
    transform: rotateY(180deg);
    background: var(--srv-gradient-1);
}

/* ===== ÍCONE ===== */
.srv-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.srv-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--srv-gradient-2);
    border-radius: 50%;
    opacity: 0.2;
    animation: srv-icon-pulse 3s ease-in-out infinite;
}

@keyframes srv-icon-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

.srv-icon {
    position: relative;
    font-size: 50px;
    color: var(--srv-secondary);
    z-index: 1;
    animation: srv-icon-float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes srv-icon-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== TEXTOS DO CARD ===== */
.srv-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--srv-light);
    margin-bottom: 15px;
    z-index: 1;
}

.srv-card-description {
    font-size: 15px;
    color: var(--srv-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    z-index: 1;
}

/* ===== BADGE TECNOLÓGICO ===== */
.srv-tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(252, 121, 26, 0.2);
    border: 1px solid var(--srv-secondary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--srv-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.srv-tech-badge-premium {
    background: rgba(21, 178, 57, 0.2);
    border-color: var(--srv-accent);
    color: var(--srv-accent);
    animation: srv-premium-glow 2s ease-in-out infinite;
}

@keyframes srv-premium-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(21, 178, 57, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(21, 178, 57, 0.6);
    }
}

/* ===== LISTA DE RECURSOS (VERSO) ===== */
.srv-card-back h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--srv-light);
    margin-bottom: 25px;
    z-index: 1;
}

.srv-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    width: 100%;
    z-index: 1;
}

.srv-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.srv-features-list li:last-child {
    border-bottom: none;
}

.srv-features-list li i {
    color: var(--srv-accent);
    font-size: 14px;
}

/* ===== BOTÃO DO CARD ===== */
.srv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--srv-gradient-2);
    color: var(--srv-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 50px;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.srv-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.srv-btn:hover::before {
    width: 300px;
    height: 300px;
}

.srv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(252, 121, 26, 0.4);
}

.srv-btn-premium {
    background: var(--srv-gradient-3);
}

.srv-btn-premium:hover {
    box-shadow: 0 10px 30px rgba(21, 178, 57, 0.4);
}

/* ===== BRILHO DO CARD ===== */
.srv-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(252, 121, 26, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.srv-service-card:hover .srv-card-glow {
    opacity: 1;
}

.srv-glow-premium {
    background: radial-gradient(circle, rgba(21, 178, 57, 0.2) 0%, transparent 70%);
}

/* ===== CARD DESTAQUE (FECHADURA DIGITAL) ===== */
.srv-featured {
    position: relative;
}

.srv-featured::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--srv-gradient-3);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.3;
    animation: srv-featured-pulse 3s ease-in-out infinite;
}

/* Texto branco no card destaque para melhor contraste */
.srv-featured .srv-card-description {
    color: rgba(255, 255, 255, 0.9) !important;
}

@keyframes srv-featured-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

.srv-featured-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--srv-gradient-3);
    color: var(--srv-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(21, 178, 57, 0.4);
    animation: srv-badge-bounce 2s ease-in-out infinite;
}

@keyframes srv-badge-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.srv-featured-badge i {
    margin-right: 5px;
}

/* ===== CALL TO ACTION ===== */
.srv-cta-section {
    position: relative;
    background: var(--srv-gradient-1);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    overflow: hidden;
    border: 2px solid rgba(252, 121, 26, 0.3);
}

.srv-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(252,121,26,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.5;
}

.srv-cta-content {
    position: relative;
    z-index: 2;
}

.srv-cta-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--srv-light);
    margin-bottom: 15px;
}

.srv-cta-text {
    font-size: 18px;
    color: var(--srv-gray);
    margin-bottom: 35px;
}

.srv-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.srv-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.srv-cta-btn-phone {
    background: var(--srv-gradient-2);
    color: var(--srv-light);
    border: 2px solid var(--srv-secondary);
}

.srv-cta-btn-whatsapp {
    background: var(--srv-gradient-3);
    color: var(--srv-light);
    border: 2px solid var(--srv-accent);
}

.srv-cta-btn:hover {
    transform: translateY(-5px);
}

.srv-cta-btn-phone:hover {
    box-shadow: 0 15px 40px rgba(252, 121, 26, 0.5);
}

.srv-cta-btn-whatsapp:hover {
    box-shadow: 0 15px 40px rgba(21, 178, 57, 0.5);
}

.srv-cta-btn i {
    font-size: 20px;
}

/* ===== DECORAÇÃO CTA ===== */
.srv-cta-decoration {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    z-index: 1;
}

.srv-pulse-circle {
    width: 150px;
    height: 150px;
    border: 2px solid var(--srv-secondary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: srv-pulse 3s ease-out infinite;
}

.srv-pulse-delay-1 {
    animation-delay: 1s;
}

.srv-pulse-delay-2 {
    animation-delay: 2s;
}

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

/* ========================================
   RESPONSIVIDADE - TABLETS
   ======================================== */
@media (max-width: 991px) {
    .srv-services-section {
        padding: 40px 0;
    }

    .srv-title {
        font-size: 40px;
    }

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

    .srv-service-card {
        height: 400px;
    }

    .srv-cta-title {
        font-size: 32px;
    }

    .srv-cta-decoration {
        display: none;
    }
}

/* ========================================
   RESPONSIVIDADE - MOBILE
   ======================================== */
@media (max-width: 767px) {
    .srv-services-section {
        padding: 30px 0;
    }

    .srv-section-header {
        margin-bottom: 40px;
    }

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

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

    .srv-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 50px;
    }

    /* Cards em mobile NÃO viram (melhor usabilidade) */
    .srv-service-card {
        height: auto;
        min-height: 380px;
        perspective: none;
    }

    .srv-card-inner {
        transform: none !important;
    }

    .srv-card-back {
        display: none;
    }

    .srv-card-front {
        position: relative;
        backface-visibility: visible;
        padding: 35px 25px;
    }

    /* Reduz efeitos 3D em mobile para melhor performance */
    .srv-icon-bg {
        animation: none;
    }

    .srv-icon {
        animation: none;
    }

    .srv-card-glow {
        display: none;
    }

    /* CTA Section */
    .srv-cta-section {
        padding: 40px 25px;
        border-radius: 20px;
    }

    .srv-cta-title {
        font-size: 26px;
    }

    .srv-cta-text {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .srv-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .srv-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
    }

    /* Ajusta badge do card destaque */
    .srv-featured-badge {
        top: -12px;
        right: 15px;
        padding: 6px 15px;
        font-size: 11px;
    }

    /* Ajusta tech badge */
    .srv-tech-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    /* Reduz animação de luz neon em mobile */
    .srv-neon-light {
        animation-duration: 12s;
        opacity: 0.5;
    }

    /* Oculta circuitos em mobile */
    .srv-circuit-bg {
        display: none;
    }
}

@media (max-width: 480px) {
    .srv-title {
        font-size: 28px;
    }

    .srv-card-title {
        font-size: 22px;
    }

    .srv-card-description {
        font-size: 14px;
    }

    .srv-icon {
        font-size: 45px;
    }

    .srv-icon-wrapper {
        width: 90px;
        height: 90px;
    }
}

/* ========================================
   ANIMAÇÕES AOS (Animate On Scroll)
   ======================================== */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}