body {
    margin: 0;
    background: #fff;
    font-family: 'Poppins', sans-serif;
}


/* container estilo masonry */

.row {
    column-count: 4;
    /* quantidade de colunas */
    column-gap: 15px;
    padding: 20px;
}


/* imagens */

.row img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 10px;
    /* 🔥 ESSENCIAL pra não quebrar */
    break-inside: avoid;
}

@media (max-width: 1200px) {
    .row {
        column-count: 3;
    }
}

@media (max-width: 800px) {
    .row {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .row {
        column-count: 1;
    }
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #fff;
}


/* Container de Filtros */

.filtros {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 30px 20px;
    flex-wrap: wrap;
    /* Garante que funcione bem no mobile */
}


/* Estilização Base dos Botões */

.filtros button {
    padding: 8px 22px;
    border: 1px solid #e2e8f0;
    /* Borda sutil em vez de "none" */
    background: #ffffff;
    color: #64748b;
    /* Cinza elegante em vez de preto puro */
    cursor: pointer;
    border-radius: 50px;
    /* Estilo "pílula" clássico */
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    /* Transição mais suave */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}


/* Efeito de Hover */

.filtros button:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    /* Leve elevação ao passar o mouse */
}


/* Estado Ativo (Selecionado) */

.filtros button.active {
    background: #0f172a;
    /* Azul muito escuro ou preto */
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    /* Sombra de destaque */
}


/* Ajuste para telas menores */

@media (max-width: 480px) {
    .filtros {
        gap: 8px;
        padding: 15px;
    }
    .filtros button {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}


/* masonry */

.row {
    column-count: 4;
    column-gap: 15px;
    padding: 20px;
}

.row img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
    break-inside: avoid;
    /* animação inicial */
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s ease;
}


/* quando aparece */

.row img.show {
    opacity: 1;
    transform: translateY(0);
}


/* responsivo */

@media (max-width: 1000px) {
    .row {
        column-count: 3;
    }
}

@media (max-width: 700px) {
    .row {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .row {
        column-count: 1;
    }
}

.hero {
    padding-top: 150px !important;
    position: relative;
    width: 100%;
    height: 120vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    overflow: hidden;
    background: #0b0f1a;
    color: white;
}


/* conteúdo */

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 600;
}

.hero h1 span {
    color: #4f7cff;
}

.hero p {
    margin-top: 20px;
    font-size: 18px;
    color: #cfcfcf;
    line-height: 1.6;
}


/* botões */

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.btn.primary {
    background: #4f7cff;
    color: white;
}

.btn.primary:hover {
    background: #3c63d9;
}

.btn.secondary {
    border: 1px solid #4f7cff;
    color: #4f7cff;
}

.btn.secondary:hover {
    background: #4f7cff;
    color: white;
}


/* fundo artístico */

.hero-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4f7cff33, transparent 70%);
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    filter: blur(80px);
    z-index: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #070b14;
    color: white;
    overflow-x: hidden;
}

.servicos {
    padding: 100px 6%;
    background: #070b14;
    text-align: center;
}

.servicos-header h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.servicos-header p {
    color: #94a3b8;
    margin-bottom: 50px;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.servico-card {
    background: linear-gradient(145deg, #0f172a, #020617);
    padding: 30px;
    border-radius: 18px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.3s;
}


/* ÍCONE */

.icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(62, 108, 255, 0.1);
    border-radius: 12px;
    color: #3e6cff;
}

.icon svg {
    width: 24px;
    height: 24px;
}

.servico-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.servico-card p {
    font-size: 14px;
    color: #94a3b8;
}


/* HOVER */

.servico-card:hover {
    transform: translateY(-8px);
    border-color: #3e6cff;
}


/* WRAP DA IMAGEM */

.img-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 14px;
}


/* overlay escuro */

.img-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: 0.3s;
    z-index: 1;
}


/* ícone lupa */

.img-item::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 42px;
    height: 42px;
    opacity: 0;
    transition: 0.3s;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}


/* PRELOADER FUNDO */

#preloader {
    position: fixed;
    inset: 0;
    background: #070b14;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s;
}


/* CÍRCULO */

.loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #3e6cff;
    animation: spin 0.8s linear infinite;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    color: white;
}

.logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links svg {
    width: 16px;
    height: 16px;
}

.footer-links a:hover {
    color: white;
}


/* animação */

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


/* esconder */

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}


/* hover */

.img-item:hover::before {
    opacity: 1;
}

.img-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* imagem */

.img-item img {
    width: 100%;
    display: block;
    transition: 0.4s;
}

.img-item:hover img {
    transform: scale(1.05);
}


/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}


/* DESTAQUE */

.servico-card.destaque {
    border: 1px solid #3e6cff;
    box-shadow: 0 10px 30px rgba(62, 108, 255, 0.2);
}


/* RESPONSIVO */

@media (max-width: 1000px) {
    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .servicos-grid {
        grid-template-columns: 1fr;
    }
}


/* HERO */

.hero {
    position: relative;
    min-height: auto;
    padding: 80px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 30%, rgba(60, 100, 255, 0.18), transparent 30%), radial-gradient(circle at 80% 20%, rgba(0, 153, 255, 0.12), transparent 28%), radial-gradient(circle at 70% 80%, rgba(125, 80, 255, 0.14), transparent 30%), linear-gradient(180deg, #070b14 0%, #0a1020 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 45px 45px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
    pointer-events: none;
}

.hero-left,
.hero-right {
    position: relative;
    z-index: 2;
}

.hero-left {
    max-width: 620px;
}

.hero-tag {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #b8c7ff;
    font-size: 14px;
    letter-spacing: 0.4px;
    backdrop-filter: blur(10px);
}

.hero-left h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -2px;
}

.hero-left h1 span {
    color: #7da2ff;
    text-shadow: 0 0 20px rgba(125, 162, 255, 0.25);
}

.hero-left p {
    margin-top: 22px;
    font-size: 18px;
    line-height: 1.7;
    color: #b8bfd3;
    max-width: 560px;
}

.hero-buttons {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 600;
    transition: transform .35s ease, box-shadow .35s ease, background .35s ease, border-color .35s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: linear-gradient(135deg, #3e6cff, #6690ff);
    color: white;
    box-shadow: 0 18px 40px rgba(72, 113, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 22px 48px rgba(72, 113, 255, 0.42);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: white;
    backdrop-filter: blur(12px);
}


/* MOCKUP */

.hero-right {
    flex: 1;
    min-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    border-radius: 42px;
    padding: 14px;
    background: linear-gradient(145deg, #101625, #05070d);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(4deg);
    animation: floatPhone 5s ease-in-out infinite;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 28px;
    background: #05070d;
    border-radius: 0 0 18px 18px;
    z-index: 5;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(180deg, #11192e, #090d18);
    position: relative;
}

.screen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 48px 10px 10px;
    height: 100%;
    overflow: hidden;
}

.screen-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    transition: transform .4s ease;
}

.screen-grid img:hover {
    transform: scale(1.04);
}

.floating-card {
    position: absolute;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.floating-card span {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #9fb8ff;
}

.floating-card p {
    font-size: 13px;
    color: #c8d0e4;
    margin-top: 4px;
}

.card-1 {
    top: 90px;
    right: -20px;
    animation: floatCard 4s ease-in-out infinite;
}

.card-2 {
    bottom: 80px;
    left: -20px;
    animation: floatCard 4.8s ease-in-out infinite;
}


/* PARTÍCULAS */

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.28) 1px, transparent 1px), radial-gradient(circle, rgba(120, 160, 255, 0.20) 1px, transparent 1px), radial-gradient(circle, rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px);
    background-size: 140px 140px, 220px 220px, 180px 180px;
    background-position: 0 0, 40px 60px, 100px 20px;
    animation: drift 18s linear infinite;
    opacity: 0.8;
}


/* ANIMAÇÃO TIPO APPLE */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    animation: revealUp 1s cubic-bezier(.2, .8, .2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.18s;
}

.delay-2 {
    animation-delay: 0.34s;
}

.delay-3 {
    animation-delay: 0.5s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatPhone {
    0%,
    100% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(4deg) translateY(0);
    }
    50% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(4deg) translateY(-12px);
    }
}

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

@keyframes drift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-40px);
    }
}


/* CONTAINER DO RESTO DO SITE */


/* CONTAINER PRINCIPAL */

.container {
    position: relative;
    z-index: 2;
    padding: 60px 6% 100px;
    background-color: #05070a;
    /* Integrando com o tema escuro */
}


/* FILTROS (Navegação Minimalista) */

.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    /* Espaçamento maior para respirar */
    margin-bottom: 50px;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Linha de base bem sutil */
    padding-bottom: 10px;
}


/* BOTÃO BASE */

.filtros button {
    position: relative;
    background: transparent;
    color: #64748b;
    /* Cinza médio */
    border: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    /* Toque de design profissional */
    letter-spacing: 1.2px;
    cursor: pointer;
    padding: 12px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* LINHA ANIMADA (Indicador) */

.filtros button::after {
    content: "";
    position: absolute;
    left: 50%;
    /* Começa do centro */
    bottom: -11px;
    /* Alinha exatamente sobre a borda da div pai */
    width: 0%;
    height: 2px;
    background: #3e6cff;
    /* Cor de destaque */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}


/* HOVER */

.filtros button:hover {
    color: #000000;
}

.filtros button:hover::after {
    width: 30px;
    /* Linha curta no hover */
}


/* ATIVO (Selecionado) */

.filtros button.active {
    color: #3e6cff;
    font-weight: 600;
}

.filtros button.active::after {
    width: 100%;
    /* Linha completa no ativo */
    background: #3e6cff;
}


/* RESPONSIVIDADE DO HERO (Ajustada para clareza) */

@media (max-width: 1100px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        gap: 40px;
    }
    .hero-left {
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .phone-mockup {
        transform: rotateY(0deg) rotateX(0deg);
        /* Remove inclinação no mobile */
        margin: 0 auto;
    }
}


/* CONTATO */

.contato {
    padding: 80px 20px;
    background: #070b14;
    display: flex;
    justify-content: center;
}

.contato-box {
    max-width: 700px;
    text-align: center;
    background: linear-gradient(145deg, #0f172a, #020617);
    padding: 50px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contato-box h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.contato-box p {
    color: #94a3b8;
    margin-bottom: 25px;
}

.btn-contato {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3e6cff, #6690ff);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-contato:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(62, 108, 255, 0.4);
}


/* FOOTER */

.footer {
    padding: 30px 20px;
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer p {
    color: #64748b;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    .filtros {
        gap: 20px;
    }
    .filtros button {
        font-size: 12px;
        letter-spacing: 1px;
    }
    .hero {
        height: auto !important;
    }
}


/* HEADER BASE */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: 0.4s ease;
}


/* NAV */

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 1px;
    color: white;
}


/* MENU */

.menu {
    display: flex;
    gap: 28px;
}

.menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.menu a:hover {
    color: white;
}


/* BOTÃO */

.cta {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.cta:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* SCROLL EFFECT (APPLE STYLE) */

.header.scrolled {
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


/* MOBILE */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: white;
}


/* RESPONSIVO */

@media (max-width: 900px) {
    .menu {
        position: absolute;
        top: 70px;
        right: 20px;
        background: rgba(10, 15, 30, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-radius: 12px;
        display: none;
    }
    .menu.active {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
    .cta {
        display: none;
    }
}