/* ==========================================================================
   Variáveis e Reset
   ========================================================================== */
:root {
    --bg-dark: #050505;
    --bg-surface: rgba(20, 20, 20, 0.6);
    --primary: #8B00FF;
    --secondary: #00FFFF;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Loader "pip install"
   ========================================================================== */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.terminal-loader {
    font-family: var(--font-mono);
    color: var(--secondary);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 300px;
}

.terminal-loader .command::before {
    content: '> ';
    color: var(--primary);
}

.progress-bar {
    height: 2px;
    width: 0%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: load 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes load {
    to { width: 100%; }
}

/* ==========================================================================
   Canvas Three.js (Fundo)
   ========================================================================== */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none; 
}

/* ==========================================================================
   Layout Principal e Navbar
   ========================================================================== */
#smooth-wrapper {
    position: relative;
    z-index: 1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background: transparent;
}

.nav-logo {
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary);
}

.btn-outline {
    display: inline-block;
    text-align: center;
    padding: 10px 0;
    border: 1px solid var(--primary);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(139, 0, 255, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #FF00FF);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(139, 0, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 0, 255, 0.5);
}

/* ==========================================================================
   Hero Section & Terminal Python
   ========================================================================== */
.hero-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(139, 0, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    width: fit-content;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subheadline {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.hero-terminal {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.terminal-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.file-name {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #00FF41;
    min-height: 150px;
    line-height: 1.5;
}

.terminal-line {
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(5px);
    animation: fadeInLine 0.3s forwards;
}

.terminal-line .keyword { color: #FF79C6; }
.terminal-line .string { color: #F1FA8C; }
.terminal-line .function { color: #50FA7B; }

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--secondary);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 5px;
}

@keyframes fadeInLine {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==========================================================================
   Showcase / Digital Command Center
   ========================================================================== */
.portfolio-section {
    padding: 100px 5%;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, transparent, var(--bg-dark) 10%);
    overflow: hidden; /* Evita quebras de scroll lateral com o GSAP 3D */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.portfolio-dashboard {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

/* LADO ESQUERDO (ACORDEÃO) */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
}
.project-sidebar::-webkit-scrollbar { display: none; }

.category-accordion {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.category-accordion:hover {
    box-shadow: 0 0 15px rgba(139, 0, 255, 0.1);
}

.category-title {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.4);
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.category-title:hover, .category-title.active {
    background: rgba(139, 0, 255, 0.2);
    color: var(--secondary);
}

.project-list {
    list-style: none;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.project-item {
    padding: 10px 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
}

.project-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.project-item:hover {
    color: var(--text-main);
    padding-left: 28px;
}

.project-item.active {
    color: #fff;
    padding-left: 28px;
    background: rgba(0, 255, 255, 0.05);
}

.project-item.active::before {
    width: 3px;
}

/* LADO DIREITO (PALCO) */
.device-stage {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stage-info {
    text-align: center;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stage-info h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.stage-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 600px;
    margin-inline: auto;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    justify-content: center;
}

.tech-tag {
    background: rgba(0, 255, 255, 0.05);
    color: var(--secondary);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

/* Base dos Mockups */
.stage-devices {
    position: relative;
    height: 50vh;
    min-height: 450px;
    max-height: 600px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px; 
}

/* Base dos Mockups */
.device-mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    backface-visibility: hidden;
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    outline: 1px solid transparent; 

    /* A SOLUÇÃO: Flexbox impede que a imagem estoure a altura */
    display: flex;
    flex-direction: column;
}

/* PC */
.device-pc {
    width: 85%;
    max-width: 700px;
    height: auto;
    z-index: 1;
}
.device-pc .browser-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 35px;
    flex-shrink: 0;
}
.device-pc .url-bar { margin-left: 15px; flex-grow: 1; font-family: var(--font-mono); font-size: 0.8rem; color: #888; background: #000; padding: 4px 10px; border-radius: 10px;}

/* Tablet */
.device-tablet {
    width: 240px;
    height: auto;
    z-index: 2;
    border-radius: 16px;
    border: 4px solid #222;
}

/* Mobile */
.device-mobile {
    width: 155px; 
    height: auto;
    z-index: 3;
    border-radius: 20px;
    border: 4px solid #111;
}

/* Cabeçalho do Celular */
.mobile-header {
    height: 25px; 
    flex-shrink: 0; /* Garante os 25px exatos e inibe distorções */
    background: #000;
    position: relative;
    z-index: 10;
}

.mobile-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40%; height: 18px; background: #111; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; z-index: 11;
}

.mobile-status-icons {
    display: flex; justify-content: space-between; align-items: center; padding: 5px 12px 0 12px; font-family: var(--font-mono); font-size: 0.55rem; color: #fff; pointer-events: none; 
}

.status-right { display: flex; gap: 5px; }

/* O "Notch" do Tablet */
.tablet-camera {
    position: absolute; top: 50%; right: -15px; width: 6px; height: 6px; background: #000; border-radius: 50%; z-index: 10;
}

/* Conteúdo da Tela Global (A Mágica do Flexbox) */
.screen-content {
    width: 100%;
    /* Removido o flex: 1 para o aspect-ratio funcionar perfeitamente */
    overflow: hidden;
    position: relative;
    background: #000;
}

/* A MÁGICA AQUI: Proporções exatas nas telas evitam cortes na imagem */
.device-pc .screen-content { aspect-ratio: 16/9; }
.device-tablet .screen-content { aspect-ratio: 3/4; }
.device-mobile .screen-content { aspect-ratio: 9/16; }

/* Reforço de bordas e renderização */
.device-mobile .screen-content img { border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }
.device-tablet .screen-content img { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.device-pc .screen-content img { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }

.screen-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: object-position 4s ease;
    image-rendering: -webkit-optimize-contrast; 
    image-rendering: high-quality;
    transform: translateZ(0); 
    display: block; 
}

.device-mockup:hover .screen-content img {
    object-position: bottom center;
}

/* Navegação do Carrossel 3D */
.stage-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    z-index: 100;
    position: relative;
}
.stage-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.stage-nav-btn:hover {
    background: rgba(139, 0, 255, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 0, 255, 0.3);
}
.stage-nav-indicator {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--secondary);
    width: 140px;
    text-align: center;
}

/* ==========================================================================
   Sala de Máquinas (Tech Stack Dashboard)
   ========================================================================== */
.tech-section {
    padding: 100px 5%;
    position: relative;
    z-index: 2;
    background: var(--bg-dark);
}

.tech-dashboard {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.tech-sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    padding-right: 30px;
}

.tech-mobile-tabs { display: none; }
.tech-group { display: flex; flex-direction: column; gap: 15px; }

.tech-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    transition: all 0.3s ease;
}

.tech-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.tech-btn.active {
    background: rgba(139, 0, 255, 0.15);
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(139, 0, 255, 0.2);
}

.tech-display {
    position: relative;
    min-height: 350px;
}

/* Janela de Código */
.code-window {
    background: #0f0f0f;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}

.code-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e6e6e6;
    overflow-x: auto;
}

/* ==========================================================================
   Prova Social (Depoimentos - Infinite Marquee)
   ========================================================================== */
.testimonials-section {
    padding: 100px 0; 
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, var(--bg-dark), transparent 10%);
    overflow: hidden;
}

.testimonials-section .container {
    padding: 0 5%;
    margin-bottom: 50px;
}

.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-track {
    display: flex;
    width: max-content; 
}

.marquee-group {
    display: flex;
    gap: 30px;
    padding-right: 30px; 
}

.track-left {
    animation: scrollLeft 40s linear infinite;
}
.track-right {
    animation: scrollRight 40s linear infinite;
    transform: translateX(-50%); 
}

@media (hover: hover) and (pointer: fine) {
    .marquee-wrapper:hover .track-left,
    .marquee-wrapper:hover .track-right {
        animation-play-state: paused;
    }
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.testimonial-card {
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 40px 30px;
    width: 400px; 
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.testimonial-card:hover {
    transform: scale(1.02) translateY(-5px);
    border-color: rgba(139, 0, 255, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 0, 255, 0.1);
    z-index: 10;
}

.stars { color: var(--secondary); font-size: 1.2rem; margin-bottom: 20px; letter-spacing: 2px;}
.testimonial-content p { font-style: italic; color: var(--text-muted); line-height: 1.7; margin-bottom: 30px; font-size: 1.05rem;}
.testimonial-author { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--glass-border); padding-top: 20px;}
.author-avatar { width: 55px; height: 55px; border-radius: 50%; overflow: hidden; border: 2px solid var(--primary); flex-shrink: 0;}
.author-avatar img { width: 100%; height: 100%; object-fit: cover;}
.author-info h4 { font-size: 1.1rem; color: var(--text-main); margin-bottom: 4px;}
.author-info span { font-size: 0.85rem; color: var(--secondary); font-family: var(--font-mono);}

/* ==========================================================================
   Final CTA e Footer
   ========================================================================== */
.final-cta-section {
    padding: 120px 5%;
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-box {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(139, 0, 255, 0.3);
    border-radius: 20px;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(139, 0, 255, 0.1);
}

.cta-pulse-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 0, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    animation: pulseBg 4s infinite alternate;
}

.cta-box h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 20px;}
.cta-box p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px;}

.urgency-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}
.urgency-badges span {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--secondary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

a.fix-color, .fix-color, .pulse-btn {
    color: #FFFFFF !important; 
    text-decoration: none !important;
    font-size: 1.2rem;
    padding: 20px 40px;
    border-radius: 50px;
    display: inline-block;
    animation: buttonPulse 2s infinite;
}

@keyframes pulseBg {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}
@keyframes buttonPulse {
    0% { box-shadow: 0 0 0 0 rgba(139, 0, 255, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(139, 0, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 0, 255, 0); }
}

.site-footer {
    background: #020202;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 5% 30px;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-logo { height: 40px; margin-bottom: 20px;}
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6;}
.footer-contact h4 { font-size: 1.2rem; margin-bottom: 20px; color: var(--text-main);}
.footer-contact a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 10px; transition: color 0.3s ease;}
.footer-contact a:hover { color: var(--secondary);}
.footer-bottom { text-align: center; color: rgba(255, 255, 255, 0.3); font-size: 0.85rem;}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--secondary); 
    box-shadow: 0 0 10px var(--secondary);
    z-index: 99999;
}

/* ==========================================================================
   Glitch Effect
   ========================================================================== */
.glitch-text { position: relative; display: inline-block;}
.glitch-text::before, .glitch-text::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-dark);}
.glitch-text::before { left: 2px; text-shadow: -1px 0 red; clip: rect(44px, 450px, 56px, 0); animation: glitch-anim 5s infinite linear alternate-reverse;}
.glitch-text::after { left: -2px; text-shadow: -1px 0 blue; clip: rect(44px, 450px, 56px, 0); animation: glitch-anim2 5s infinite linear alternate-reverse;}
@keyframes glitch-anim { 0% { clip: rect(10px, 9999px, 31px, 0); transform: skew(0.2deg); } 5% { clip: rect(70px, 9999px, 12px, 0); transform: skew(0.2deg); } 10% { clip: rect(32px, 9999px, 98px, 0); transform: skew(0.8deg); } 15% { clip: rect(0, 0, 0, 0); transform: skew(0deg); } 100% { clip: rect(0, 0, 0, 0); transform: skew(0deg); }}
@keyframes glitch-anim2 { 0% { clip: rect(65px, 9999px, 100px, 0); transform: skew(0.4deg); } 5% { clip: rect(12px, 9999px, 50px, 0); transform: skew(0.4deg); } 10% { clip: rect(89px, 9999px, 2px, 0); transform: skew(0.1deg); } 15% { clip: rect(0, 0, 0, 0); transform: skew(0deg); } 100% { clip: rect(0, 0, 0, 0); transform: skew(0deg); }}

/* ==========================================================================
   Ajustes Globais e Responsividade
   ========================================================================== */

/* 5. CENTRALIZAR FOOTER NO DESKTOP, TABLET E MOBILE */
.footer-content {
    display: flex;
    flex-direction: column; /* Força os elementos a ficarem um abaixo do outro */
    align-items: center;    /* Centraliza horizontalmente */
    text-align: center;     /* Centraliza o texto interno */
    gap: 30px;
}
.footer-brand, .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Oculta as abas mobile e mostra os grupos em Desktop */
.tech-mobile-tabs { display: none; }
.tech-group { display: flex !important; flex-direction: column; gap: 15px; } /* !important garante exibição no PC */

@media (max-width: 768px) {
    .testimonial-card { width: 300px; padding: 30px 20px;}
    .marquee-group { gap: 15px; padding-right: 15px;}
    .marquee-wrapper { gap: 15px;}
    
    .nav-links .btn-primary { display: none; }
    .nav-links { gap: 1rem; }
}

@media (max-width: 992px) {
    .portfolio-dashboard, .tech-dashboard { grid-template-columns: 1fr; }
    .stage-devices { height: 450px; perspective: 800px; }
    .device-pc { width: 95%; max-width: 500px; }
    .device-tablet { width: 180px; }
    .device-mobile { width: 110px; }
    
    .device-stage {
        display: flex;
        flex-direction: column;
    }
    .stage-devices { order: 1; }
    .stage-nav { order: 2; margin-bottom: 20px; }
    .stage-info { order: 3; }

    /* 4. Ajustes da Sala de Máquinas EXCLUSIVOS para Mobile */
    .tech-sidebar { border-right: none; padding-right: 0; padding-bottom: 20px; gap: 0;}
    
    .tech-mobile-tabs {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
    }
    .tech-tab-btn {
        flex: 1;
        padding: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        color: var(--text-muted);
        border-radius: 8px;
        font-weight: 600;
    }
    .tech-tab-btn.active {
        background: rgba(139, 0, 255, 0.15);
        border-color: var(--primary);
        color: var(--text-main);
    }
    .tech-group { display: none !important; } /* Esconde grupos não ativos no mobile */
    .tech-group.active { display: flex !important; }
    .desktop-only { display: none; }
    .hide-mobile { display: none !important; }
}

/* ==========================================================================
   Custom Cursor (Néon e Efeito Magnético)
   ========================================================================== */
@media (pointer: fine) { 
    /* ATENÇÃO: Todas as classes interativas foram blindadas aqui */
    body, a, button, .project-card, .tech-btn, .filter-btn, .device-btn, .project-item, .category-title, .stage-nav-btn, .device-mockup {
        cursor: none !important; 
    }

    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 24px;
        height: 24px;
        border: 2px solid var(--secondary); 
        border-radius: 50%;
        pointer-events: none; 
        z-index: 999999;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
        transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    }

    .custom-cursor.hover {
        width: 45px;
        height: 45px;
        background-color: rgba(0, 255, 255, 0.1);
        border-color: var(--primary); 
        box-shadow: 0 0 15px rgba(139, 0, 255, 0.5);
    }
}