/* =========================================================
   TECNODUA - SERVIÇOS
   Página: Serviços
   Descrição: Estilos gerais
========================================================= */


/* =========================================================
   RESET
========================================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   VARIÁVEIS
========================================================= */
:root {
    --teal: #1CC7C5;
    --teal-dark: #13A8A6;
    --accent: #2EF0D1;

    --text: #E5E7EB;
    --muted: #9CA3AF;

    --bg: #0F172A;
    --card-bg: #111827;

    --radius: 16px;

    --shadow-card: 0 12px 32px rgba(0,0,0,.35);
    --shadow-hover: 0 18px 40px rgba(0,0,0,.45);

    --transition: .30s ease;
}


/* =========================================================
   LAYOUT
========================================================= */
.page-wrapper {
    width: 100%;
}

.servicos-content {
    max-width: 1200px;
    margin: auto;
    padding: 70px 24px;
}

.section-title {
    text-align: center;
    color: var(--accent);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 50px;
    background: var(--accent);
}


/* =========================================================
   HERO
========================================================= */
.servicos-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 110px 24px 90px;
}

.servicos-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 20%, rgba(28,199,197,.25), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(46,240,209,.18), transparent 70%);
    animation: heroPulse 7s infinite alternate;
}

@keyframes heroPulse {
    from { transform: scale(1); opacity: .8; }
    to   { transform: scale(1.15); opacity: 1; }
}

.servicos-title {
    position: relative;
    display: inline-block;
    color: var(--accent);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.servicos-glow {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(46,240,209,.25);
    filter: blur(28px);
    z-index: -1;
    animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
    from { opacity: .45; }
    to   { opacity: 1; }
}

.servicos-subtitle {
    max-width: 760px;
    margin: auto;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.8;
}


/* =========================================================
   SERVIÇOS
========================================================= */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.servico-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(17,24,39,.65);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.08);
    padding: 26px;
    min-height: 240px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.servico-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.servico-card h3 {
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 14px;
    min-height: 56px;
    display: flex;
    align-items: center;
}

.servico-card p {
    color: var(--muted);
    line-height: 1.7;
}


/* =========================================================
   PROJETOS & CLIENTES
========================================================= */
.projetos-section {
    width: 100%;
    padding: 70px 24px;
    overflow: hidden;
}

.projetos-intro {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
    color: var(--muted);
    line-height: 1.8;
}


/* =========================================================
   SLIDER
========================================================= */
.projetos-grid {
    display: flex;
    align-items: stretch;
    gap: 28px;
    width: max-content;
    animation: slideLeft 28s linear infinite;
}

.projetos-grid:hover {
    animation-play-state: paused;
}

@keyframes slideLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}



/* =========================================================
   CARD PROJETO — versão mais clara
========================================================= */
.projeto-card {
    width: 280px;
    min-width: 280px;
    height: 340px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    padding: 24px;

    /* CINZA MODERNO — MAIS CLARO */
    background: rgba(40,40,45,0.45);   /* ← mais claro que antes */
    backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius);

    /* sombra suave e limpa */
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);

    transition: var(--transition);
    overflow: hidden;
}



.projeto-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}


/* =========================================================
   IMAGEM
========================================================= */
.projeto-img {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow: 0 0 12px rgba(46,240,209,.35);
    transition: var(--transition);
}

.projeto-card:hover .projeto-img {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(46,240,209,.55);
}

.projeto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   TÍTULO
========================================================= */
.projeto-card h3 {
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 14px;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   DESCRIÇÃO
========================================================= */
.projeto-desc {
    color: var(--muted);
    line-height: 1.6;
    margin-top: auto;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;          /* Limita a exibição a 4 linhas */
    line-clamp: 4;
    overflow: hidden;
}


/* =========================================================
   ACESSIBILIDADE
========================================================= */
.servico-card:focus-within,
.projeto-card:focus-within {
    border-color: var(--accent);
    outline: none;
}


/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 992px) {
    .servicos-title { font-size: 2.5rem; }
    .servicos-grid { gap: 22px; }
}

@media (max-width: 768px) {
    .servicos-hero { padding: 80px 20px 60px; }
    .servicos-title { font-size: 2.2rem; }
    .servicos-subtitle { font-size: 1rem; }

    .projetos-section { padding: 60px 20px; }

    .projeto-card {
        width: 250px;
        min-width: 250px;
        height: 320px;
    }
}

@media (max-width: 600px) {
    .servicos-title { font-size: 2rem; }
    .section-title { font-size: 1.7rem; }

    .servico-card {
        min-height: auto;
        padding: 20px;
    }

    .projeto-card {
        width: 220px;
        min-width: 220px;
        height: 300px;
        padding: 18px;
    }

    .projeto-img {
        width: 75px;
        height: 75px;
    }
}
