/* =========================================
   1. VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
========================================= */
:root {
    /* Paleta Core */
    --bg-deep: #020205;
    --bg-surface: #0a0b10;
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Paleta Gold Standard */
    --gold-primary: #D4AF37;
    --gold-light: #F2E299;
    --gold-dark: #AA8C2C;
    --gold-glow: rgba(212, 175, 55, 0.3);

    /* Texto */
    --text-main: #ffffff;
    --text-muted: #888899;
    --text-dark: #000000;

    /* Fontes */
    --font-ui: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-code: 'Space Mono', monospace;

    /* IDE Colors (Syntax Highlighting) */
    --code-bg: #141414;
    --syntax-kwd: #c586c0;
    /* Pink/Purple */
    --syntax-func: #dcdcaa;
    /* Yellow */
    --syntax-str: #ce9178;
    /* Orange */
    --syntax-var: #9cdcfe;
    /* Blue */
    --syntax-cmt: #6a9955;
    /* Green */
    --syntax-num: #b5cea8;
    /* Light Green */
    --syntax-prop: #4fc1ff;
    /* Light Blue */

    /* Layout */
    --nav-height: 80px;
    --border-radius-lg: 16px;
    --border-radius-sm: 4px;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Moderno */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

a,
button,
[role="button"],
input[type="submit"] {
    cursor: pointer !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-ui);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.is-loading {
    overflow: hidden;
    /* Trava scroll durante preloader */
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* =========================================
   2. CURSOR PERSONALIZADO
========================================= */
.cursor-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 20000;
    /* Increased to stay above lateral drawer */
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--text-main);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Estados do Cursor (Controlados via JS) */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

body.hovering-text .cursor-outline {
    width: 2px;
    height: 30px;
    border-radius: 2px;
    background: var(--gold-primary);
    border: none;
}

/* =========================================
   3. PRELOADER
========================================= */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-container {
    text-align: center;
    width: 300px;
}

.loader-logo-wrap {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.loader-brand {
    color: var(--text-main);
}

.loader-dot {
    color: var(--gold-primary);
    animation: blink 1s infinite;
}

.loader-progress-wrapper {
    width: 100%;
    height: 2px;
    background: #222;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.loader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--gold-primary);
    transform: translateX(-100%);
    animation: loadBar 2.5s cubic-bezier(0.83, 0, 0.17, 1) forwards;
}

.loader-status-text {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* --- IA CHAT WIDGET & MODAL (PREMIUM RE-TOUCH) --- */
.floating-chat-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    z-index: 9999;
    /* Garante que fique no topo */
    cursor: pointer !important;
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s;
    background: transparent;
    padding: 0;
    border: none;
    outline: none;
}

.chat-btn-inner {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gold-primary);
    background: rgba(8, 9, 14, 0.8);
    backdrop-filter: blur(15px);
    border: 2px solid var(--gold-primary);
    position: relative;
    box-shadow: 0 0 20px var(--gold-glow), inset 0 0 10px rgba(212, 175, 55, 0.2);
    box-sizing: border-box;
}

.floating-chat-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.floating-chat-btn:hover .chat-btn-inner {
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 35px var(--gold-primary);
}

/* Red Dot Animation */
.chat-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    background: #ff3b30;
    border: 2px solid #000;
    border-radius: 50%;
    z-index: 2;
}

/* --- IA CHAT MODAL (LATERAL DRAWER) --- */
.chat-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100vh;
    background: rgba(8, 9, 14, 0.95);
    backdrop-filter: blur(40px);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: -30px 0 60px rgba(0, 0, 0, 0.8);
    pointer-events: all;
    visibility: hidden;
    /* Prevent interaction when hidden */
}

.chat-modal.active {
    transform: translateX(0);
    visibility: visible;
}

.chat-modal-header {
    background: linear-gradient(to right, rgba(212, 175, 55, 0.1), transparent);
    padding: 30px 25px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Sub-page Global Wrapper */
.subpage-container {
    padding-top: 140px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subpage-header {
    text-align: center;
    margin-bottom: 60px;
    z-index: 2;
}

.subpage-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
}


.bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    position: relative;
    width: 40px;
    height: 40px;
}

.bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--gold-glow));
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #27c93f;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
}

.bot-text {
    display: flex;
    flex-direction: column;
}

.bot-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gold-primary);
}

.bot-status {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.chat-actions button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

.chat-actions button:hover {
    opacity: 1;
    color: var(--gold-primary);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) transparent;
}

.chat-body::-webkit-scrollbar {
    width: 4px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
}

.msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}

.bot-msg {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 2px;
}

.user-msg {
    align-self: flex-end;
    background: var(--gold-primary);
    color: #000;
    border-bottom-right-radius: 2px;
}

.msg-time {
    font-size: 0.65rem;
    opacity: 0.5;
    margin-top: 5px;
    display: block;
    text-align: right;
}

.chat-footer {
    padding: 20px 25px 35px;
    background: rgba(8, 9, 14, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.chat-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer !important;
    transition: all 0.3s var(--transition-smooth);
    white-space: nowrap;
}

.chip:hover {
    background: var(--gold-primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--gold-glow);
}

.chat-input-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.chat-input-wrapper:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
    background: rgba(255, 255, 255, 0.05);
}

#chat-input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    resize: none;
    font-family: var(--font-ui);
    max-height: 120px;
    outline: none;
}

.chat-input-wrapper button {
    background: var(--gold-primary);
    color: #000;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.chat-input-wrapper button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--gold-glow);
}

@media (max-width: 480px) {
    .chat-modal-overlay {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .floating-chat-btn {
        bottom: 20px;
        right: 20px;
    }
}

@keyframes loadBar {
    to {
        transform: translateX(0);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* =========================================
   4. BACKGROUND & UTILITÁRIOS
========================================= */
.global-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-canvas {
    opacity: 0.4;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

.vignette-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #000 120%);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.text-gold {
    color: var(--gold-primary);
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   5. NAVBAR
========================================= */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: all var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.main-navbar.scrolled {
    background: rgba(2, 2, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 70px;
}

.main-navbar .container-fluid {
    width: 100%;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- CORREÇÃO DE TAMANHO DA LOGO --- */

/* Se a logo for uma IMAGEM (previne que fique gigante) */
/* =========================================
   5. NAVBAR - LOGO AJUSTE
========================================= */
.nav-logo-img {
    max-height: 50px;
    /* Ajuste este valor conforme necessário */
    width: auto;
    /* Mantém proporção */
    object-fit: contain;
}

/* Para quando a navbar estiver com scroll */
.main-navbar.scrolled .nav-logo-img {
    max-height: 40px;
    /* Um pouco menor quando scrollado */
}

/* Logo no footer (se também estiver grande) */
.footer-logo-img {
    max-height: 60px;
    /* Ajuste para o footer */
    width: auto;
    margin-bottom: 20px;
}

/* Garantir que o link da logo tenha altura adequada */
.brand-logo {
    display: flex;
    align-items: center;
    height: 100%;
    /* Altura total da navbar */
}

/* Ajuste responsivo */
@media (max-width: 768px) {
    .nav-logo-img {
        max-height: 40px;
        /* Menor em dispositivos móveis */
    }

    .footer-logo-img {
        max-height: 50px;
    }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-number {
    color: var(--gold-primary);
    margin-right: 5px;
    font-family: var(--font-code);
    font-size: 0.75rem;
}

.nav-link:hover {
    color: var(--text-main);
}

.btn-outlined {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-outlined:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.btn-cta {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    border: none;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
}

.mobile-toggle {
    display: none;
}

/* =========================================
   6. HERO SECTION
========================================= */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

/* Tech Badge */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    margin-bottom: 30px;
}

.indicator-light {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
}

.badge-text {
    font-family: var(--font-code);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Glitch Title */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 600;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.glitch-wrapper::before,
.glitch-wrapper::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-deep);
}

.glitch-wrapper::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip-path: inset(44% 0 61% 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch-wrapper::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip-path: inset(50% 0 30% 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip-path: inset(30% 0 20% 0);
    }

    20% {
        clip-path: inset(80% 0 5% 0);
    }

    40% {
        clip-path: inset(10% 0 70% 0);
    }

    60% {
        clip-path: inset(50% 0 10% 0);
    }

    80% {
        clip-path: inset(20% 0 40% 0);
    }

    100% {
        clip-path: inset(60% 0 30% 0);
    }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 50px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Botão Principal */
.btn-primary {
    position: relative;
    padding: 18px 40px;
    background: var(--gold-primary);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-5px);
    color: #000;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

@keyframes shine {

    0%,
    80% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.btn-text {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--gold-primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    pointer-events: none;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-main);
    border-radius: 12px;
    position: relative;
}

.wheel-dot {
    width: 2px;
    height: 6px;
    background: var(--text-main);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

.scroll-text {
    font-family: var(--font-code);
    font-size: 0.6rem;
    letter-spacing: 2px;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* =========================================
   7. TICKER (MARQUEE)
========================================= */
.tech-ticker-section {
    background: var(--gold-primary);
    padding: 20px 0;
    overflow: hidden;
    transform: rotate(-2deg) scale(1.05);
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 80px;
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: marquee 20s linear infinite;
}

.ticker-item {
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.separator {
    font-size: 0.5rem;
    vertical-align: middle;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   8. IDE SECTION (CODE EXPERIENCE)
========================================= */
.code-experience-section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center-align {
    text-align: center;
}

.overline-text {
    font-family: var(--font-code);
    color: var(--gold-primary);
    font-size: 0.8rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

.italic-serif {
    font-style: italic;
    font-family: var(--font-display);
}

/* IDE Window Styling */
.ide-window {
    background: #0e0e0e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s, box-shadow 0.4s;
    max-width: 1000px;
    margin: 0 auto;
}

.ide-window:hover {
    transform: scale(1.02);
    box-shadow: 0 60px 120px -20px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.ide-topbar {
    background: #1f1f1f;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2d2d2d;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close {
    background: #ff5f56;
}

.minimize {
    background: #ffbd2e;
}

.maximize {
    background: #27c93f;
}

.file-tabs {
    display: flex;
    gap: 2px;
    flex: 1;
    margin-left: 20px;
}

.tab {
    background: #141414;
    padding: 8px 15px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 2px solid var(--gold-primary);
    border-radius: 4px 4px 0 0;
}

.tab:not(.active) {
    background: transparent;
    border-top-color: transparent;
    opacity: 0.6;
}

.text-yellow {
    color: #f1e05a;
}

.text-blue {
    color: #569cd6;
}

.close-tab {
    font-size: 0.7rem;
    margin-left: 10px;
    opacity: 0.5;
}

.btn-run {
    background: #27c93f;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.btn-run:hover {
    background: #20a534;
    box-shadow: 0 0 15px rgba(39, 201, 63, 0.4);
}

.ide-body-layout {
    display: flex;
    height: 450px;
}

.ide-gutter {
    background: #141414;
    width: 50px;
    padding: 20px 0;
    text-align: right;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: #444;
    border-right: 1px solid #2d2d2d;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ide-gutter span {
    padding-right: 15px;
    line-height: 1.5;
}

.ide-editor {
    flex: 2;
    background: var(--code-bg);
    padding: 20px;
    overflow: auto;
    font-family: var(--font-code);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ide-editor pre {
    white-space: pre;
}

/* Syntax Simulation Colors */
.kwd {
    color: var(--syntax-kwd);
}

.var {
    color: var(--syntax-var);
}

.str {
    color: var(--syntax-str);
}

.func {
    color: var(--syntax-func);
}

.cmt {
    color: var(--syntax-cmt);
    font-style: italic;
}

.prop {
    color: var(--syntax-prop);
}

.num {
    color: var(--syntax-num);
}

.ide-terminal {
    flex: 1;
    background: #111;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    padding: 10px;
    border-bottom: 1px solid #333;
    display: flex;
    gap: 15px;
}

.terminal-header span {
    font-size: 0.7rem;
    color: #777;
    text-transform: uppercase;
    cursor: pointer;
}

.terminal-header span:first-child {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.terminal-content {
    padding: 15px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #ccc;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* =========================================
   9. ECOSYSTEM (CARDS)
========================================= */
.services-section {
    padding: 100px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-10px);
}

.card-border-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0;
    transition: 0.4s;
}

.glass-card:hover .card-border-glow {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold-primary);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 25px;
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.card-features {
    list-style: none;
}

.card-features li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
   10. TIMELINE (METODOLOGIA)
========================================= */
.timeline-section {
    padding: 100px 0;
    background: #050508;
}

.split-container {
    display: flex;
    gap: 80px;
}

.sticky-content {
    flex: 1;
    position: sticky;
    top: 150px;
    height: fit-content;
}

.text-outlined {
    -webkit-text-stroke: 1px var(--text-main);
    color: transparent;
}

.section-desc {
    margin: 30px 0 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn-secondary {
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-secondary:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.timeline-column {
    flex: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
    padding-left: 40px;
    margin-bottom: 60px;
    position: relative;
    opacity: 0.4;
    transition: 0.4s;
}

.timeline-item:hover,
.timeline-item.active {
    opacity: 1;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 9px;
    height: 9px;
    background: var(--bg-deep);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transition: 0.3s;
}

.timeline-item:hover::before {
    border-color: var(--gold-primary);
    background: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    left: -15px;
    top: -25px;
    z-index: 0;
    transition: 0.6s var(--transition-smooth);
}

.timeline-item:hover .step-number {
    color: rgba(212, 175, 55, 0.15);
    transform: translateX(10px) scale(1.1);
}

.step-content {
    position: relative;
    z-index: 2;
    margin-top: 10px;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* =========================================
   11. CTA & FORM
========================================= */
.cta-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(212, 175, 55, 0.15);
    top: 10%;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(0, 50, 255, 0.1);
    bottom: 10%;
    right: -50px;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-card {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.input-group {
    position: relative;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 0;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.form-label {
    position: absolute;
    left: 0;
    top: 12px;
    color: #666;
    pointer-events: none;
    transition: 0.3s;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -10px;
    font-size: 0.75rem;
    color: var(--gold-primary);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-primary);
    transition: 0.4s;
}

.form-input:focus~.focus-border {
    width: 100%;
}

#company-size {
    color: #888;
}

/* Select reset styling */

.btn-submit-block {
    width: 100%;
    padding: 18px;
    background: var(--gold-primary);
    border: none;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
    position: relative;
}

.btn-submit-block:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   12. FOOTER
========================================= */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px;
    background: #020203;
    font-size: 0.9rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.brand-col {
    max-width: 300px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gold-primary);
}

.brand-col p {
    color: #666;
    line-height: 1.6;
}

/* --- PREMIUM JOB LIST (CAREERS) --- */
.job-list-real {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s var(--transition-smooth);
}

.job-card-premium:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold-primary);
    transform: translateY(-5px);
}

.job-info h3 {
    font-size: 1.4rem;
    color: var(--gold-primary);
    margin-bottom: 5px;
}

.job-info p {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-jobs {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-jobs i {
    font-size: 3rem;
    color: var(--gold-primary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.no-jobs p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.loading-jobs {
    text-align: center;
    padding: 40px;
    color: var(--gold-primary);
    font-family: var(--font-code);
}

/* Sub-page Glass Panel Enhancement */
.subpage-container .glass-panel {
    border: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(8, 9, 14, 0.6);
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.hover-link {
    text-decoration: none;
    color: #888;
    transition: 0.3s;
}

.hover-link:hover {
    color: var(--gold-primary);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--gold-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 0.8rem;
}

/* =========================================
   13. RESPONSIVO
========================================= */
@media (max-width: 992px) {
    .split-container {
        flex-direction: column;
    }

    .sticky-content {
        position: static;
        margin-bottom: 50px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    /* Mobile Menu seria implementado via JS aqui */
    .mobile-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 25px;
        height: 2px;
        background: #fff;
        margin: 6px 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .ide-body-layout {
        flex-direction: column;
        height: auto;
    }

    .ide-editor {
        height: 300px;
    }

    .ide-gutter {
        display: none;
    }

    .footer-top {
        flex-direction: column;
    }

    /* Desativar cursor custom no touch */
    .cursor-wrapper {
        display: none;
    }

    * {
        cursor: auto;
    }
}

/* Animações Utilitárias */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   MEGA HUB - V3
========================================= */
.mega-hub-section {
    padding: 100px 0;
    position: relative;
    z-index: 5;
}

.hub-trigger-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.hub-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.hub-btn i {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 15px;
    display: block;
    transition: 0.4s;
}

.hub-btn span {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hub-btn:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold-primary);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.hub-btn:hover i {
    transform: scale(1.1);
    color: #fff;
}

/* =========================================
   TECH MODAL (MacBook Mockup) - V3
========================================= */
.tech-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.tech-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.tech-modal-window {
    width: 90%;
    max-width: 1000px;
    height: 70vh;
    background: #0d0d0d;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s ease;
}

.tech-modal-overlay.active .tech-modal-window {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: #1a1a1a;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mac-dots {
    display: flex;
    gap: 8px;
}

.mac-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.mac-dots .dot.red { background: #ff5f56; }
.mac-dots .dot.yellow { background: #ffbd2e; }
.mac-dots .dot.green { background: #27c93f; }

.modal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: #888;
    margin-right: 40px; /* offset mac dots */
}

.modal-body {
    display: flex;
    flex: 1;
    background: #000;
}

.modal-code-zone {
    flex: 1;
    border-right: 1px solid #222;
    padding: 20px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: #00ff88;
    background: #050505;
    overflow-y: auto;
}

.modal-code-zone .code-header {
    color: #555;
    margin-bottom: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-code-zone pre {
    white-space: pre-wrap;
    line-height: 1.6;
}

.modal-ui-zone {
    flex: 1;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transition: opacity 1s ease;
}

.modal-ui-zone.fade-in {
    opacity: 1;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }
    .modal-code-zone {
        border-right: none;
        border-bottom: 1px solid #222;
    }
}
