/* OCTONEX - Official Stylesheet 2026
   Focus: Premium Tech, Clean Interface & Glassmorphism, CRO & SEO
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary-purple: #7c3aed;
    --accent-purple: #a855f7;
    --bg-dark: #000000;
    --glass-bg: rgba(10, 10, 10, 0.9);
    --border-subtle: rgba(124, 58, 237, 0.2);
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Reset & Scroll Fix --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important; 
    overflow-y: auto !important; 
    height: auto !important; 
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    background-color: var(--bg-dark);
}

body {
    font-family: 'Inter', sans-serif;
    color: white;
    padding-top: 80px; 
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 20% 20%, #14001f 0%, #000 40%),
                radial-gradient(circle at 80% 80%, #1a0033 0%, #000 50%) no-repeat fixed !important;
}

main {
    width: 100%;
    overflow-x: hidden;
}

#octo-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none; 
}

nav, button, .card, .footer-social a {
    user-select: none;
}

h1, h2, h3 { text-wrap: balance; }
p { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

/* --- Header & Navigation --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all var(--transition);
    background: transparent;
}

#main-header.scrolled {
    padding: 0.8rem 5%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.logo-link { display: flex; align-items: center; gap: 15px; text-decoration: none; color: inherit; }
.logo-area { display: flex; align-items: center; gap: 15px; }
.logo-area img { height: 55px; width: auto; object-fit: contain; transition: var(--transition); }
.logo-area .nome-logo { display: block; font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1100;
}

.menu-toggle:hover { background: rgba(255,255,255,0.08); transform: scale(1.03); }

nav ul { display: flex; list-style: none; gap: 25px; margin: 0; align-items: center; }
nav a { text-decoration: none; color: rgba(255, 255, 255, 0.7); font-size: 15px; font-weight: 500; transition: color 0.3s ease; }
nav a:hover { color: #a855f7; }

.nav-btn {
    background: #a855f7;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-btn:hover { transform: scale(1.05); opacity: 0.95; }

/* --- Hero Section --- */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden; 
    width: 100%;
}

.hero::before {
    content: "";
    position: absolute;
    width: 150vmin;
    height: 150vmin;
    background: url("../Imagens/logos.png") no-repeat center; 
    background-size: contain;
    opacity: 0.18 !important; 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    filter: blur(1px) brightness(1.1);
    animation: led-pulsar-polvo 10s infinite alternate ease-in-out;
}

@keyframes led-pulsar-polvo {
    0% { filter: drop-shadow(0 0 5px rgba(124, 58, 237, 0.2)) blur(2px); opacity: 0.12; }
    50% { filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.7)) blur(1px); opacity: 0.25; }
    100% { filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3)) blur(2px); opacity: 0.15; }
}

.hero-slider { position: relative; width: 100%; min-height: 82vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; z-index: 2; }
.carousel-track-wrapper { width: 100%; min-height: 65vh; overflow: hidden; position: relative; }
.carousel-track { display: flex; min-height: 65vh; transition: transform 0.75s cubic-bezier(0.23, 1, 0.32, 1); transform: translateX(0%); will-change: transform; width: 100%; }

.hero-slide { flex: 0 0 100%; min-height: 65vh; display: flex; align-items: center; justify-content: space-between; gap: 4rem; padding: 0 8rem; box-sizing: border-box; width: 100%; }
.hero-slide-content { flex: 1; max-width: 52rem; text-align: left; }
.hero-slide-content h1 { font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.03; letter-spacing: -0.04em; margin-bottom: 1.25rem; }
.hero-slide-content p { font-size: 1.1rem; line-height: 1.8; color: #d1d5db; max-width: 38rem; margin-bottom: 2rem; }

.hero-slide-content .button {
    margin-top: 10px;
    margin-left: 0; 
}

.hero-slide-icon { flex: 1; display: flex; justify-content: center; align-items: center; min-height: 100%; }
.hero-slide-icon i { font-size: clamp(7rem, 12vw, 12rem); color: #a855f7; filter: drop-shadow(0 0 35px rgba(168, 85, 247, 0.35)); }

/* CORREÇÃO DAS SETAS DO CARROSSEL */
.carousel-arrow {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 64px; 
    height: 64px; 
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12); 
    background: rgba(255, 255, 255, 0.08); 
    color: #fff; 
    font-size: 1.7rem;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 100; 
    cursor: pointer; 
    transition: all 0.3s ease;
}
.carousel-arrow:hover { 
    background: rgba(168, 85, 247, 0.92); 
    border-color: rgba(255, 255, 255, 0.24); 
    transform: translateY(-50%) scale(1.05); 
}
.carousel-prev { left: 2rem; }
.carousel-next { right: 2rem; }

/* --- Oferta Clara --- */
.oferta-clara { 
    padding: 100px 5%; 
    text-align: center; 
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(124, 58, 237, 0.05) 100%); 
    position: relative; 
    z-index: 2; 
    width: 100%; 
}

.oferta-grid { 
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 30px; 
    margin-top: 50px; 
    max-width: 1200px; 
    margin-inline: auto; 
}

.oferta-card { 
    background: rgba(255, 255, 255, 0.03); 
    padding: 40px 30px; 
    border-radius: 20px; 
    border: 1px solid rgba(168, 85, 247, 0.1); 
    transition: 0.3s; 
    animation: fadeInUp 0.8s ease backwards; 
    width: calc(33.33% - 30px);
    min-width: 280px;
}

.oferta-card i { font-size: 2.5rem; color: var(--accent-purple); margin-bottom: 20px; }
.oferta-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.oferta-card:hover { transform: translateY(-10px); border-color: var(--accent-purple); background: rgba(168, 85, 247, 0.05); }

/* --- Cases --- */
.cases-section { padding: 100px 5%; background: #000; position: relative; z-index: 2; width: 100%; }
.titulo-secao { font-size: clamp(2rem, 4vw, 2.5rem); color: var(--accent-purple); margin-bottom: 20px; font-weight: 800; text-align: center; }
.subtitulo-secao { color: #a1a1aa; text-align: center; margin-bottom: 60px; max-width: 700px; margin-inline: auto; }

.cases-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-bottom: 60px; max-width: 1200px; margin-inline: auto; }
.case-card { background: #0a0a0a; border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 35px; display: flex; flex-direction: column; gap: 20px; animation: fadeInUp 0.8s ease backwards; }
.case-client { color: var(--accent-purple); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

.case-image { width: 100%; margin-bottom: 10px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(168, 85, 247, 0.2); }
.case-image img { width: 100%; height: auto; display: block; object-fit: cover; transition: transform 0.5s ease; }
.case-card:hover .case-image img { transform: scale(1.05); }

.case-info { margin-bottom: 15px; }
.label { display: block; font-weight: bold; margin-bottom: 5px; font-size: 0.9rem; }
.problema { color: #ff4d4d; }
.solucao { color: #4dff88; }
.resultado { color: #4db8ff; }
.case-quote { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); font-style: italic; color: #d1d5db; font-size: 0.95rem; }

/* --- Botões Secundários --- */
.github-cta { text-align: center; padding: 40px; background: rgba(255,255,255,0.02); border-radius: 12px; max-width: 800px; margin: 0 auto; }
.btn-github { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 25px; background: #24292e; color: white; text-decoration: none; border-radius: 8px; font-weight: 600; transition: 0.3s; }
.btn-github:hover { background: #404448; transform: scale(1.05); }

/* --- Atendimento --- */
.atendimento { padding: 4rem 5%; display: flex; justify-content: center; align-items: center; background: rgba(10, 10, 15, 0.8); backdrop-filter: blur(20px); position: relative; z-index: 2; width: 100%; }
.atendimento-panel { width: min(1200px, 100%); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: stretch; }
.atendimento-copy { display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
.tag-atendimento { text-transform: uppercase; letter-spacing: 0.3em; color: #a855f7; font-size: 0.8rem; font-weight: 700; display: block; }
.atendimento-copy h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1.05; margin: 0; }
.atendimento-copy p { color: #d1d5db; font-size: 1rem; line-height: 1.8; max-width: 36rem; }
.atendimento-cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.atendimento-card { padding: 2rem; border-radius: 28px; background: rgba(18, 10, 35, 0.85); border: 1px solid rgba(168, 85, 247, 0.18); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22); transition: all 0.3s ease; animation: fadeInUp 0.8s ease backwards; }
.atendimento-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 25px 60px rgba(0,0,0,0.35); }
.atendimento-card h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.atendimento-card p { color: #c7c7d9; line-height: 1.75; }

/* --- Equipe --- */
#sobre { padding: 120px 5%; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 2; width: 100%; }
.equipe-container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto; text-align: left; }
.equipe-texto p { margin-bottom: 1.5rem; line-height: 1.8; color: #d1d5db; font-size: 1.1rem; max-width: none; }
.cards-equipe { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.card-equipe { display: flex; flex-direction: column; align-items: center; width: 220px; animation: fadeInUp 0.8s ease backwards; }
.card-equipe img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border-subtle); padding: 8px; transition: var(--transition); margin-bottom: 20px; }
.card-equipe:hover img { border-color: var(--accent-purple); box-shadow: 0 0 30px rgba(168, 85, 247, 0.5); transform: scale(1.05); }
.card-equipe h3 { font-size: 1.4rem; color: #fff; margin-bottom: 5px; }
.card-equipe span { color: var(--accent-purple); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- CTA Final --- */
#contato { padding: 120px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: transparent; position: relative; z-index: 2; width: 100%; }
#contato h2 { 
    font-size: clamp(30px, 5vw, 42px); 
    margin-bottom: 20px; 
    font-weight: 800; 
    background: linear-gradient(to right, #fff, var(--accent-purple)); 
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
#contato p { margin: 0 auto 50px auto; color: #c084fc; max-width: 600px; line-height: 1.6; font-size: 1.1rem; }

/* --- Footer --- */
.footer { background: #000000 !important; padding: 80px 10% 0px; border-top: 1px solid var(--border-subtle); margin-top: auto; position: relative; z-index: 10; width: 100%; }
.footer-top { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand .nome-logo { display: block !important; font-size: 1.5rem; margin: 0; }
.footer-brand p { width: 100%; margin-top: 10px; color: #a1a1aa; font-size: 0.9rem;}
.footer-menu { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-menu a { color: #a1a1aa; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.footer-menu a:hover { color: #fff; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { color: #fff; font-size: 1.5rem; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-subtle); border-radius: 12px; transition: all 0.4s ease; }
.footer-social a:hover { color: var(--accent-purple); background: rgba(124, 58, 237, 0.1); border-color: var(--accent-purple); transform: translateY(-5px); }
.footer-bottom { text-align: center; color: #555; font-size: 13px; padding: 40px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: 40px;}

/* --- Botão Premium Animado --- */
.button {
  --black-700: hsla(0 0% 12% / 1); --border_radius: 9999px; --transtion: 0.3s ease-in-out;
  cursor: pointer; position: relative; display: flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2.5rem; background-color: transparent; border: none; border-radius: var(--border_radius);
  transition: transform var(--transtion); z-index: 10; margin: 0 auto;
}
.button:is(:hover, :focus-visible) { --active: 1; }
.button:active { transform: scale(0.95); }
.button::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; background-color: var(--black-700); border-radius: var(--border_radius);
  box-shadow: inset 0 0.5px hsl(0, 0%, 100%), inset 0 -1px 2px 0 hsl(0, 0%, 0%), 0px 4px 10px -4px hsla(0 0% 0% / calc(1 - var(--active, 0))), 0 0 0 calc(var(--active, 0) * 0.375rem) hsl(260 97% 50% / 0.75);
  transition: all var(--transtion); z-index: 0;
}
.button::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; background-color: hsla(260 97% 61% / 0.75);
  background-image: radial-gradient(at 51% 89%, hsla(266, 45%, 74%, 1) 0px, transparent 50%), radial-gradient(at 100% 100%, hsla(266, 36%, 60%, 1) 0px, transparent 50%), radial-gradient(at 22% 91%, hsla(266, 36%, 60%, 1) 0px, transparent 50%);
  opacity: var(--active, 0); border-radius: var(--border_radius); transition: opacity var(--transtion); z-index: 2;
}
.button .dots_border {
  --size_border: calc(100% + 2px); overflow: hidden; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: var(--size_border); height: var(--size_border); border-radius: var(--border_radius); z-index: -10;
}
.button .dots_border::before {
  content: ""; position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 2rem; background-color: white; mask: linear-gradient(transparent 0%, white 120%); animation: rotate 2s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

.button .text_button { 
    position: relative; 
    z-index: 10; 
    background-image: linear-gradient(90deg, #fff 0%, rgba(255,255,255, var(--active, 0)) 120%); 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: #ffffff; 
    font-weight: bold; 
}

/* Animações Globais */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Scrollbar Customizada */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-purple); }


/* ==============================================================
    RESPONSIVIDADE E CORREÇÕES MOBILE
============================================================== */

@media (max-width: 980px) {
    .hero-slide { padding: 0 4rem; gap: 2rem; }
    .hero-slide-content h1 { font-size: clamp(2.7rem, 7vw, 3.6rem); }
    .atendimento-panel { grid-template-columns: 1fr; }
    .equipe-container { grid-template-columns: 1fr; text-align: center; }
    .cards-equipe { justify-content: center; }
}

@media (max-width: 768px) {
    h1, h2, h3 { text-wrap: normal; }

    .menu-toggle { display: flex; }
    nav ul {
        position: fixed; 
        top: 0; 
        right: -100%; 
        flex-direction: column;
        background: rgba(10,10,15,0.98); 
        width: 280px; 
        height: 100vh;
        padding: 100px 30px 30px; 
        transition: right 0.35s ease; 
        box-shadow: -10px 0 40px rgba(0,0,0,0.6);
        align-items: flex-start;
    }
    nav ul.active { right: 0; }

    .hero { 
        min-height: auto; 
        padding-top: 20px; /* Mantém o topo próximo ao menu */
        padding-bottom: 0; 
        overflow: hidden; 
    }
    
    .hero-slider { 
        padding-bottom: 100px; /* Cria uma "área segura" apenas no fundo para as setas */
        position: relative; 
    } 
    
    .hero-slide { 
        flex-direction: column; 
        justify-content: flex-start; /* Garante que o texto comece lá de cima */
        text-align: center; 
        padding: 0 1.5rem; 
    }
    
    .hero-slide-content { 
        margin-top: 1rem; /* Preserva o alinhamento superior do texto que você gostou */
    }
    
    /* ÍCONE MENOR E COM MARGEM CONTROLADA */
    .hero-slide-icon { 
        margin-top: 20px; 
        margin-bottom: 10px; 
        min-height: auto; 
    }
    .hero-slide-icon i { 
        font-size: 4rem; /* Diminuído para não "brigar" com as setas */
    }
/* SETAS FIXADAS NO FUNDO DA ÁREA SEGURA */
    .carousel-arrow { 
        width: 45px; 
        height: 45px; 
        font-size: 1.2rem;
        top: auto; 
        bottom: 20px; 
        transform: none;
        background: rgba(255, 255, 255, 0.1); 
        border: 1px solid rgba(255,255,255,0.3);
        z-index: 20;
    }

    /* CORREÇÃO: Remove o pulo quando o usuário toca no botão */
    .carousel-arrow:hover {
        transform: scale(1.05);
    }

    .carousel-prev { left: 25%; }
    .carousel-next { right: 25%; }
/*     
    .hero { min-height: auto; padding-top: 40px; padding-bottom: 40px; overflow: hidden; width: 100%; }
    .hero-slider { padding-bottom: 80px; position: relative; width: 100%; overflow: hidden; } 
    
    .carousel-track-wrapper { min-height: auto; height: auto; width: 100%; overflow: hidden; }
    .hero-slide { 
        flex-direction: column; 
        padding: 0 1.5rem; 
        width: 100vw;
    }
    
    .hero-slide-content .button {
        margin-top: 10px;
        margin-inline: auto;
    }

    .hero-slide-content h1 { font-size: clamp(2rem, 8vw, 2.5rem); line-height: 1.2; }
    .hero-slide-icon i { font-size: 5rem; } */

    /* CORREÇÃO DAS SETAS MOBILE */
    /* .carousel-arrow { 
        width: 48px; 
        height: 48px; 
        font-size: 1.2rem;
        top: 50%; 
        transform: translateY(-50%);
        bottom: auto; 
    }
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; } */

    .button .text_button { 
        font-size: 0.85rem; 
        -webkit-text-fill-color: #ffffff; 
        color: #ffffff;
    }

    .oferta-card { width: 100%; }
}