/* Importações externas */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;500;500&display=swap');


/* Importações internas */
@import url(./sections/hero.css);
@import url(./sections/about.css);
@import url(./sections/services.css);
@import url(./sections/projects.css);
@import url(./sections/blog.css);
@import url(./sections/cta.css);
@import url(./icons.css);

@font-face {
    font-family: 'Sherman Display';
    src: url('../Assets/fonts/Sherman-Display.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    font-synthesis: none;
}


/* ==========================================================================
   ZERO1 · SOLUÇÕES TECNOLÓGICAS
   Design tokens + estilos globais
   ========================================================================== */

:root {
    /* ---- Cores de marca ---- */
    --color-bg: #252525;
    --color-bg-soft: #eeeeee;
    --color-bg-soft-2: #efeff2;

    /* ---- Cores de fundo transparentes ---- */
    --color-t-bg: rgba(37, 37, 37, 0.5);
    --color-t-bg-2: rgba(37, 37, 37, 0.3);
    --color-t-bg-soft: rgba(246, 246, 248, 0.5);
    --color-t-bg-soft-2: rgba(239, 239, 242, 0.5);

    --color-dark: #16171b;
    /* grafite / preto principal */
    --color-dark-2: #202127;
    /* grafite um pouco mais claro (cards sobre o dark) */
    --color-dark-3: #2b2c33;

    --color-text: #0a0b0e;
    --color-text-muted: #6c6d76;
    --color-text-soft: #9a9ba3;

    --color-on-dark: #f5f5f7;
    --color-on-dark-muted: #a7a8b1;

    --color-accent: #ec0b29;
    /* vermelho-rosado vibrante (logo) */
    --color-accent-2: #e00e4d;
    /* rosa mais claro, usado em gradientes */
    --color-accent-dark: #c8123f;

    --color-border: #e8e8ec;
    --color-border-dark: #33343c;

    --gradient-accent: linear-gradient(120deg, var(--color-accent) 0%, var(--color-accent-2) 100%);

    /* ---- Sombras ---- */
    --shadow-soft: 0 10px 30px rgba(22, 23, 27, 0.08);
    --shadow-medium: 0 16px 48px rgba(22, 23, 27, 0.14);
    --shadow-accent: 0 14px 32px rgba(255, 22, 83, 0.28);
    --shadow-dark: 0 10px 10px rgba(0, 0, 0, 0.35);

    /* ---- Raios ---- */
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;

    /* ---- Tipografia ---- */
    --font-display: 'Sherman Display', sans-serif;
    --font-body: 'Poppins', 'Segoe UI', sans-serif;

    /* ---- Layout ---- */
    --container-w: 1180px;
    --header-h: 84px;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ==========================================================================
   RESET
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

svg {
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}


img,
svg {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    margin: 0;
    line-height: 1;
    color: var(--color-text);
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

p {
    margin: 0;
}

section {
    position: relative;
    min-height: 100dvh;
    background: var(--color-bg-soft);
    overflow: hidden;
}

.shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: var(--container-w);
    margin-inline: auto;
    padding-inline: 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    background: var(--color-accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    z-index: 999;
    transition: top .2s var(--ease);
}

.skip-link:focus {
    top: 16px;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   ELEMENTOS REUTILIZÁVEIS
   ========================================================================== */
.eyebrow {
    position: absolute;
    top: 92px;
    left: 46px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--color-on-dark);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
}

.eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gradient-accent);
    flex-shrink: 0;
}

.eyebrow-dark {
    color: var(--color-text);
    background: var(--color-bg-soft);
    border-color: var(--color-accent);
}

.badge-pill {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-on-dark-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 9px 18px;
    border-radius: var(--radius-pill);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 15px 26px;
    border-radius: var(--radius-pill);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
    white-space: nowrap;
}

.btn-accent {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(255, 22, 83, 0.36);
}

.btn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.btn-pill {
    border-radius: var(--radius-pill);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--color-accent);
    transition: gap .2s var(--ease);
}

.text-link:hover {
    gap: 12px;
}

.tag-pill {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
    backdrop-filter: blur(6px);
}

/* ---- CORREÇÃO 1: Animação Reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    will-change: opacity, transform;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    /* Altere de 'translateY(0)' para 'none'.
       Isso remove o elemento da GPU e devolve o texto ao renderizador vetorial original */
    transform: none !important;
    will-change: auto;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: absolute;
    top: 35px;
    left: 50px;
    right: 50px;
    border-radius: var(--radius-pill);
    z-index: 500;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: var(--color-t-bg-2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--color-t-bg);
    border-bottom: 1px solid var(--color-t-bg-soft);
    transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header.scrolled {
    background: rgba(22, 23, 27, 0.92);
    box-shadow: var(--shadow-dark);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
    padding-inline: 24px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: inline-block;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-on-dark-muted);
    transition: color .2s var(--ease), background .2s var(--ease);
}

.nav-link:hover {
    color: var(--color-on-dark);
}

.nav-link.active {
    color: var(--color-accent-2);
    filter: drop-shadow(0 0 10px var(--color-accent));
    scale: 1.1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-cta {
    padding: 12px 22px;
    font-size: 0.88rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--color-on-dark);
    margin-inline: auto;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(22, 23, 27, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 24px 28px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
    z-index: 490;
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    display: block;
    padding: 14px 4px;
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--color-on-dark-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav .btn {
    margin-top: 18px;
    width: 100%;
}

/* Vertical scrollspy dot-nav (desktop) */
.dot-nav {
    position: fixed;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 400;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.dot-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot-nav-item .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-border);
    border: 1px solid rgba(22, 23, 27, 0.1);
    transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}

.dot-nav-item em {
    font-style: normal;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--color-on-dark);
    background: var(--color-bg);
    box-shadow: var(--shadow-soft);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    white-space: nowrap;
}

.dot-nav-item:hover em,
.dot-nav-item:focus-visible em {
    opacity: 1;
    transform: translateX(0);
}

.dot-nav-item.active .dot {
    background: var(--gradient-accent);
    transform: scale(1.35);
    box-shadow: 0 0 0 4px rgba(255, 22, 83, 0.16);
}



/* ==========================================================================
   FOOTER
   (Estilos do footer agora vivem em pages/cta.css, dentro de
   .contact-footer — a seção de contato e o rodapé foram unificados.)
   ========================================================================== */

/* Back to top */
.back-to-top {
    position: fixed;
    right: 46px;
    bottom: 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    z-index: 450;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   RESPONSIVE — TABLET
   ========================================================================== */
@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-card-cover {
        height: 200px;
    }

    .footer-bottom-line-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ==========================================================================
   RESPONSIVE — DESKTOP
   ========================================================================== */
@media (min-width: 900px) {
    .hero-inner {
        position: relative;
        min-height: 480px;
    }

    .hero-content {
        padding-right: 280px;
    }

    .hero-cluster {
        position: absolute;
        right: 0;
        top: 4%;
        flex-direction: column;
        width: 240px;
        gap: 16px;
    }

    .about-grid {
        grid-template-columns: 1fr 0.8fr;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: 1.4fr 1fr;
    }

    .method-row {
        grid-template-columns: 0.75fr 1.25fr;
    }

    .blog-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-footer-main {
        grid-template-columns: 0.85fr 1.15fr;
        align-items: start;
    }
}

/* ==========================================================================
   RESPONSIVE — 4K / TELAS GRANDES
   ========================================================================== */
@media (min-width: 1800px) {
    :root {
        --container-w: 1400px;
    }
}

@media (min-width: 2400px) {
    :root {
        --container-w: 1620px;
        --header-h: 96px;
    }
}

@media (min-width: 1000px) {
    .main-nav {
        display: block;
    }

    .header-actions .hamburger {
        display: none;
    }

    .dot-nav {
        display: flex;
    }
}

@media (max-width: 999px) {
    .main-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }
}
