/*CONFIGURAÇÕES*/
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

* {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

:root {
    --glass-border: rgba(255, 255, 255, 0.06);
    --accent: #60a5fa;
    --accent-2: #22d3ee;
}

body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

section,
header,
footer {
    padding: 0px 60px;
}

@media (max-width: 768px) {

    section,
    header,
    footer {
        padding: 0px;
    }
}

.logo {
    width: 250px;
    height: auto;
}

.glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.hero-bg {
    background: radial-gradient(circle at 0% 0%, #1e40af 0%, #020617 40%);
}

.card-hover:hover {
    transform: translateY(-10px);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px -20px rgba(59, 130, 246, 0.22);
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-header {
    animation: fadeInUp 4s ease-out infinite;
    display: flex;
    flex-direction: row;
}

@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(20px);
    }
}

.zoomInUp {
    animation: zoomInUp 4s ease-in-out infinite;
}

@keyframes zoomInUp {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.typewriter-effect {
    display: inline-flex;
    align-items: center;
    border-right: 3px solid #f97316;
    /* Cursor Laranja Francistech */
    white-space: nowrap;
    overflow: hidden;
}

.typewriter-effect .text {
    display: inline-block;
    max-width: 0;
    vertical-align: bottom;
    /* steps() faz o efeito letra por letra */
    animation: typing 3s steps(var(--characters)) infinite;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes typing {

    0%,
    10% {
        max-width: 0;
    }

    40%,
    60% {
        max-width: calc(var(--characters) * 1ch);
    }

    /* Mantém a palavra visível */
    90%,
    100% {
        max-width: 0;
    }

    /* Apaga a palavra */
}

/* Piscar do cursor */
.typewriter-effect {
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #f97316;
    }
}

.text-spacing {
    animation: text-spacing 3s ease-in-out infinite;
}

@keyframes text-spacing {
    0% {
        letter-spacing: 0;
    }

    50% {
        letter-spacing: 0.1em;
    }

    100% {
        letter-spacing: 0;
    }
}

/*PROCESSO OPERACIONSL EFEITOS*/
/* Estados Iniciais (Escondidos) */
.reveal {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up {
    transform: translateY(50px);
}

/* Estado Ativo (Quando aparece no scroll) */
.reveal.active {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/*LINHAS DE SUPER TITULO*/
.titulo-top::before {
    content: "";
    border: solid 2px #60a5fa;
    border-top-style: dashed;
    padding: 2px 30px;
    border-left: transparent;
    border-right: transparent;
    border-top-left-radius: 50px;
    position: absolute;
    bottom: 8px;
    margin-left: -74px;
}

.titulo-top::after {
    content: "";
    border: solid 2px #60a5fa;
    border-top-style: dashed;
    padding: 2px 30px;
    border-left: transparent;
    border-right: transparent;
    border-top-right-radius: 50px;
    position: absolute;
    bottom: 8px;
    margin-left: 10px;
}

@keyframes border-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.neon-border {
    position: relative;
    z-index: 0;
    overflow: hidden;
    padding: 2px;
    /* Esta é a espessura da linha neon */
}

.neon-border::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            #3b82f6,
            /* Azul Francistech */
            transparent 30%,
            #f97316,
            /* Laranja Francistech */
            transparent 60%);
    animation: border-rotate 4s linear infinite;
}

.neon-border::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 2px;
    top: 2px;
    right: 2px;
    bottom: 2px;
    background: #020617;
    /* Cor de fundo do seu site */
    border-radius: inherit;
    /* Copia o arredondamento do elemento pai */
}

@keyframes ping {

    75%,
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Garante que o scroll para o topo seja suave através do JS ou CSS */
html {
    scroll-behavior: smooth;
}

/* =========================
   BLOG / ARTIGOS
========================= */

.blog-article {
    position: relative;
    overflow: hidden;
    padding: 32px;
    border-radius: 28px;
    color: #ffffff;
    text-align: justify;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    line-height: 1.9;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    isolation: isolate;
}

/* brilho sutil de fundo */
.blog-article::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.10), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 35%);
    pointer-events: none;
    z-index: 0;
}

.blog-article > * {
    position: relative;
    z-index: 1;
}

.blog-header,
.blog-section,
.blog-grid,
.blog-faq,
.blog-cta {
    color: #fff;
}

.blog-kicker {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    margin-bottom: 14px;
    backdrop-filter: blur(8px);
}

.blog-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
}

.blog-lead {
    font-size: 18px;
    line-height: 1.9;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.92);
    max-width: 72ch;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.blog-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.blog-section {
    margin: 30px 0;
}

/* Novas Animações Avançadas */
@keyframes floatUp {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.6); }
}

@keyframes slide-in-left {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes bounce-slow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wiggle {
    0%, 7% { transform: rotateZ(0); }
    15% { transform: rotateZ(-15deg); }
    20% { transform: rotateZ(10deg); }
    25% { transform: rotateZ(-10deg); }
    30% { transform: rotateZ(6deg); }
    35% { transform: rotateZ(-4deg); }
    40%, 100% { transform: rotateZ(0); }
}

@keyframes scale-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes sway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes float-vertical {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes glow-in-out {
    0%, 100% { text-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
    50% { text-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.6); }
}

@keyframes tilt-in {
    0% { transform: rotateY(-90deg) scale(0.8); opacity: 0; }
    100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-up {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes flip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

/* Classes de Animação */
.animate-floatUp { animation: floatUp 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-slide-in-left { animation: slide-in-left 0.8s ease-out; }
.animate-slide-in-right { animation: slide-in-right 0.8s ease-out; }
.animate-bounce-slow { animation: bounce-slow 2s infinite; }
.animate-rotate-slow { animation: rotate-slow 8s linear infinite; }
.animate-wiggle { animation: wiggle 1s ease-in-out; }
.animate-scale-pulse { animation: scale-pulse 2s ease-in-out infinite; }
.animate-sway { animation: sway 4s ease-in-out infinite; }
.animate-float-vertical { animation: float-vertical 3s ease-in-out infinite; }
.animate-shimmer { animation: shimmer 2s linear infinite; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); background-size: 200% 100%; }
.animate-glow-in-out { animation: glow-in-out 2s ease-in-out infinite; }
.animate-tilt-in { animation: tilt-in 0.6s ease-out; }
.animate-pop-in { animation: pop-in 0.5s ease-out; }
.animate-slide-up { animation: slide-up 0.8s ease-out; }
.animate-flip { animation: flip 2s ease-in-out infinite; }

/* Estados Revelados */
.revealed {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Hover Effects */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.logo-hover {
    transition: all 0.3s ease;
}

.logo-hover:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Background */
.parallax-bg {
    will-change: transform;
}

.blog-section h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
}

.blog-section p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.90);
}

.blog-section strong {
    color: #fff;
    font-weight: 800;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.blog-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.blog-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.blog-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.blog-highlight {
    margin: 18px 0;
    padding: 16px 18px;
    border-left: 5px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-weight: 600;
    color: #fff;
}

.blog-quote {
    margin: 26px 0;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 18px;
    font-style: italic;
    color: #fff;
}

.blog-faq {
    margin: 24px 0;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.blog-faq h2 {
    margin-top: 0;
}

.blog-cta {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* =========================
   TEMAS POR ARTIGO
   Aplicar no <article class="blog-article theme-orange">
========================= */

.blog-article.theme-orange {
    background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #0f172a 100%);
}

.blog-article.theme-blue {
    background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
}

.blog-article.theme-pink {
    background: linear-gradient(135deg, #be185d 0%, #111827 100%);
}

.blog-article.theme-indigo {
    background: linear-gradient(135deg, #4338ca 0%, #111827 100%);
}

.blog-article.theme-cyan {
    background: linear-gradient(135deg, #0e7490 0%, #0f172a 100%);
}

.blog-article.theme-purple {
    background: linear-gradient(135deg, #7e22ce 0%, #111827 100%);
}

.blog-article.theme-amber {
    background: linear-gradient(135deg, #b45309 0%, #111827 100%);
}

.blog-article.theme-sky {
    background: linear-gradient(135deg, #0369a1 0%, #0f172a 100%);
}

.blog-article.theme-rose {
    background: linear-gradient(135deg, #be123c 0%, #111827 100%);
}

.blog-article.theme-emerald {
    background: linear-gradient(135deg, #047857 0%, #111827 100%);
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 768px) {
    .blog-article {
        padding: 22px;
        border-radius: 22px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-title {
        font-size: 30px;
    }

    .blog-lead {
        font-size: 16px;
    }

    .blog-section h2 {
        font-size: 21px;
    }
}
/* =========================
   SIDEBAR E CONTEÚDO
========================= */

.glass-sidebar {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-sidebar:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(60, 130, 246, 0.3);
}

.post-content {
    word-spacing: 0.1em;
}

.post-content p {
    text-align: justify;
    text-justify: inter-word;
}

.post-content blockquote {
    border-left: 4px solid #60a5fa;
    padding-left: 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.post-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
}

.post-content strong {
    color: white;
    font-weight: 700;
}

.post-content em {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

.post-content ul,
.post-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Barra de Progresso */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #22d3ee);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(60, 130, 246, 0.5);
}

/* Melhor spacing para título do post */
#post-title {
    margin-bottom: 2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

#post-excerpt {
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Paginação de Posts */
.post-nav-item {
    transition: all 0.3s ease;
}

.post-nav-item:hover {
    color: #3b82f6;
    transform: translateX(5px);
}

/* Categorias na Sidebar */
.sidebar-category {
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-category:hover {
    background: rgba(60, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Imagem do Post */
.post-image-wrapper {
    overflow: hidden;
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-image-wrapper img {
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
    width: 100%;
    height: auto;
}

.post-image-wrapper:hover img {
    transform: scale(1.08);
}

/* Recent Posts na Sidebar */
.recent-post-link {
    transition: all 0.3s ease;
}

.recent-post-link:hover {
    transform: translateX(8px);
}

.recent-post-link img {
    transition: all 0.5s ease;
}

.recent-post-link:hover img {
    filter: grayscale(0);
}

/* =========================
   FILTROS DE BLOG
========================= */

.filter-btn {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.filter-btn:hover {
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 8px 20px -5px rgba(59, 130, 246, 0.4);
}

/* Animação de fade-in para posts */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeInCard 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================
   PAGINAÇÃO
========================= */

.pagination-btn {
    min-width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pagination-btn:active {
    transform: translateY(0);
}