   PATRICK SONATA - CSS ROBUSTO E LIMPO
   Estrutura preservada • Performance máxima
   ======================================== */
   RESET E CONFIGURAÇÕES GLOBAIS
   ---------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    background: #000;
    color: #fff;
    font-family: 'Courier New', Courier, -apple-system, monospace;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    color: inherit;
}
   HUB PRINCIPAL - CENTRALIZAÇÃO PERFEITA
   ---------------------------------------- */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}
.profile-img {
    width: clamp(150px, 20vw, 180px);
    height: clamp(150px, 20vw, 180px);
    border-radius: 50%;
    border: 1px solid #333;
    margin-bottom: 20px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.profile-img:hover {
    transform: scale(1.02);
}
h1 {
    font-weight: 200;
    letter-spacing: 4px;
    font-size: clamp(24px, 5vw, 28px);
    text-transform: uppercase;
    margin-bottom: 30px;
}
   MENU SUPERIOR DIREITO
   ---------------------------------------- */
.nav-top-right {
    position: absolute;
    top: clamp(20px, 4vw, 30px);
    right: clamp(20px, 4vw, 40px);
    display: flex;
    gap: clamp(15px, 3vw, 25px);
    flex-wrap: wrap;
    justify-content: flex-end;
    z-index: 100;
}
.nav-top-right button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    text-transform: uppercase;
    font-size: clamp(11px, 2vw, 12px);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 5px;
}
.nav-top-right button:hover {
    color: #fff;
}
   PATIKA - DESTAQUE VERDE (PRESERVADO)
   ---------------------------------------- */
.patika-btn {
    background: #6c9a8f !important;
    color: black !important;
    border-color: #6c9a8f !important;
    font-weight: bold;
    position: relative;
    transition: all 0.3s;
}
.patika-btn:hover {
    background: black !important;
    color: #6c9a8f !important;
    border-color: #6c9a8f !important;
    box-shadow: 0 0 15px rgba(108, 154, 143, 0.5);
}
.patika-btn::after {
    content: "●";
    position: absolute;
    top: -5px;
    right: -5px;
    color: #6c9a8f;
    font-size: 12px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
   MENU INFERIOR CENTRAL
   ---------------------------------------- */
.nav-bottom-center {
    display: flex;
    gap: clamp(15px, 3vw, 20px);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}
.nav-bottom-center button {
    background: none;
    border: 1px solid #333;
    color: #fff;
    padding: clamp(10px, 2vw, 12px) clamp(20px, 4vw, 30px);
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: clamp(10px, 2vw, 11px);
    transition: all 0.3s ease;
}
.nav-bottom-center button:hover {
    background: #fff;
    color: #000;
}
   SEÇÕES FINAL DRAFT - FOLHA DE ROTEIRO
   ---------------------------------------- */
.script-page {
    background: #e5e5e5;
    padding: clamp(40px, 8vw, 100px) 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}
.script-content {
    background: #fff;
    width: min(210mm, 100% - 40px);
    padding: clamp(30px, 6vw, 80px) clamp(25px, 5vw, 100px);
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    font-family: 'Courier New', Courier, monospace;
    color: #111;
    line-height: 1.2;
    box-sizing: border-box;
}
.script-scene {
    font-weight: bold;
    text-transform: uppercase;
    margin: 25px 0 10px 0;
}
.script-char {
    text-align: center;
    width: 60%;
    margin: 20px auto 0 auto;
    text-transform: uppercase;
}
.script-dialog {
    width: 70%;
    margin: 0 auto 15px auto;
}
.script-transition {
    text-align: right;
    text-transform: uppercase;
    margin: 30px 0;
    font-weight: bold;
}
   PAINEL TRABALHO - TELA CHEIA (CORRIGIDO)
   ---------------------------------------- */
.side-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a0a;
    z-index: 9999;
    overflow-y: auto;
    padding: clamp(40px, 6vw, 80px) clamp(30px, 5vw, 50px);
    display: none;
    border: none;
    box-sizing: border-box;
}
.side-panel.active {
    display: block !important;
}
.close-btn {
    position: fixed;
    top: clamp(20px, 4vw, 30px);
    right: clamp(20px, 4vw, 30px);
    background: transparent;
    border: 2px solid #6c9a8f;
    color: #6c9a8f;
    padding: clamp(10px, 2vw, 12px) clamp(20px, 3vw, 24px);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    z-index: 10000;
    transition: all 0.3s;
    letter-spacing: 2px;
}
.close-btn:hover {
    background: #6c9a8f;
    color: #000;
}
.content-title {
    color: #6c9a8f;
    font-size: clamp(1.8rem, 5vw, 2rem);
    font-weight: 200;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 4px;
    border-left: 4px solid #6c9a8f;
    padding-left: 20px;
}
.content-text {
    color: #aaa;
    line-height: 1.6;
}
   SUBMENU PORTFÓLIO
   ---------------------------------------- */
.submenu-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}
.submenu-btn {
    padding: 15px 30px;
    font-size: 1rem;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}
.submenu-btn:hover {
    background: #fff;
    color: #000;
}
   PORTFÓLIO - GRADE 3x3 RESPONSIVA
   ---------------------------------------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
.portfolio-card {
    background: #111;
    border: 1px solid #333;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}
.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}
.portfolio-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.portfolio-info {
    padding: 20px;
}
.portfolio-info h3 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: #fff;
}
.portfolio-role {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.portfolio-info p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.4;
}
   BOTÃO VOLTAR PADRÃO (PRESERVADO)
   ---------------------------------------- */
.back-button-padrao {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0a0a0a;
    color: #c0c0c0;
    border: 1px solid #2a2a2a;
    padding: 12px 24px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.back-button-padrao:hover {
    border-color: #6c9a8f;
    color: #6c9a8f;
    background: rgba(108, 154, 143, 0.1);
    transform: translateY(-2px);
}
.back-button-padrao .back-arrow {
    margin-right: 8px;
    font-size: 1.1rem;
}
   CARROSSEL (NÃO USADO - MANTIDO)
   ---------------------------------------- */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}
.carousel-item:hover img {
    filter: grayscale(0%);
}
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    text-align: left;
}
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}
.carousel-nav button {
    background: rgba(255,255,255,0.1);
    border: 1px solid #333;
    color: #fff;
    padding: 8px 20px;
    font-size: 10px;
    letter-spacing: 2px;
    transition: 0.3s;
}
.carousel-nav button:hover {
    background: #fff;
    color: #000;
}
   ABAS DE TEXTO (CDD, PATIKA, AULAS)
   ---------------------------------------- */
.text-content-box {
    padding: 60px 40px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
   RESPONSIVO - OTIMIZADO
   ---------------------------------------- */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}
@media (max-width: 768px) {
    .nav-top-right {
        position: static;
        justify-content: center;
        margin-bottom: 30px;
        width: 100%;
    }
    
    .nav-top-right button {
        flex: 1 1 calc(50% - 20px);
        text-align: center;
    }
    
    .nav-bottom-center button {
        flex: 1 1 calc(50% - 20px);
        min-width: 140px;
    }
    
    h1 {
        font-size: 24px;
        letter-spacing: 3px;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .side-panel {
        padding: 30px 20px;
    }
    
    .content-title {
        font-size: 1.5rem;
        padding-left: 15px;
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
        padding: 8px 16px;
    }
    
    .back-button-padrao {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 0.75rem;
    }
    
    .patika-btn::after {
        top: -2px;
        right: -2px;
    }
}
@media (max-width: 480px) {
    .nav-top-right button,
    .nav-bottom-center button {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    h1 {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .profile-img {
        width: 130px;
        height: 130px;
    }
    
    .script-content {
        padding: 30px 20px;
    }
    
    .content-title {
        font-size: 1.3rem;
    }
}
@media (max-width: 320px) {
    h1 {
        font-size: 18px;
    }
    
    .profile-img {
        width: 110px;
        height: 110px;
    }
    
    .nav-top-right button,
    .nav-bottom-center button {
        font-size: 10px;
        padding: 8px 12px;
    }
}
@media (min-width: 1920px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1800px;
    }
    
    h1 {
        font-size: 32px;
    }
}
@media (min-width: 2560px) {
    .portfolio-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 2200px;
    }
}
   ACESSIBILIDADE
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
   IMPRESSÃO
   ---------------------------------------- */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .nav-top-right,
    .nav-bottom-center,
    .side-panel,
    .back-button-padrao {
        display: none !important;
    }
    
    .script-page {
        background: white;
        padding: 0;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
.logo-p {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999999;
    padding: 10px;
    color: #ffffff;
    text-decoration: none; /* Remove sublinhado do link */
}
.logo-p:hover {
    background: #ffffff;
    transform: scale(1.1);
}
.logo-p:hover svg path {
    stroke: #000000;
}
.logo-p svg {
    width: 100%;
   height: 100%;
}
.logo-p:hover svg path {
    stroke: #000;
}
@media (max-width: 768px) {
    .logo-p {
        top: 15px;
        left: 15px;
        width: 38px;
        height: 38px;
    }
}
   LOGO P - NAVEGAÇÃO PROFISSIONAL
   ======================================== */
.logo-p {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999999;
    padding: 10px;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
}
.logo-p:hover {
    background: #ffffff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 20px rgba(108, 154, 143, 0.3);
}
.logo-p:hover svg path {
    stroke: #000000;
}
.logo-p svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}
   MOBILE - TELA PEQUENA
   ======================================== */
@media (max-width: 768px) {
    .logo-p {
        top: 12px;
        left: 12px;
        width: 42px;
        height: 42px;
        padding: 8px;
        border-width: 1.8px;
    }
}
   MOBILE - TELA MUITO PEQUENA
   ======================================== */
@media (max-width: 480px) {
    .logo-p {
        top: 10px;
        left: 10px;
        width: 38px;
        height: 38px;
        padding: 7px;
    }
}
   ANIMAÇÃO DE CLIQUE
   ======================================== */
@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.logo-p:active {
    animation: clickPulse 0.2s ease;
}
.logo-p {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    padding: 8px;
    color: #fff;
    text-decoration: none;
}
.logo-p:hover {
    background: #fff;
}
.logo-p:hover svg path {
    stroke: #000;
}
.logo-p svg {
    width: 100%;
    height: 100%;
}
@media (max-width: 768px) {
    .logo-p {
        top: 15px;
        left: 15px;
        width: 38px;
        height: 38px;
    }
}
.logo-p {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    padding: 8px;
    color: #fff;
    text-decoration: none;
}
.logo-p:hover {
    background: #fff;
}
.logo-p:hover svg path {
    stroke: #000;
}
.logo-p svg {
    width: 100%;
    height: 100%;
}
@media (max-width: 768px) {
    .logo-p {
        top: 15px;
        left: 15px;
        width: 38px;
        height: 38px;
    }
}

/* UNIVERSO CDD */

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
margin-top:40px;
}

.grid a{
background:#111;
color:white;
padding:30px;
text-align:center;
text-decoration:none;
border-radius:10px;
font-weight:bold;
transition:0.3s;
}

.grid a:hover{
background:#333;
transform:scale(1.05);
}

}

/* ESTILOS DA BUSCA */
#busca {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px;
  font-size: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  margin-bottom: 30px;
}

#resultados {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.resultado-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  text-align: left;
}

.resultado-item:hover {
  border-color: var(--accent);
  background: rgba(108, 154, 143, 0.1);
}

.titulo {
  font-weight: 500;
}

/* ========================================
   MELHORIAS DE RESPONSIVIDADE
   ======================================== */

/* Ajuste para telas médias (tablets) */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .hero h1 {
        font-size: clamp(3rem, 9vw, 5rem);
    }
}

/* Telas pequenas (celulares em paisagem) */
@media (max-width: 768px) {
    .nav-top a {
        font-size: 10px;
        padding: 4px 8px;
    }
    .hamburger {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .hero {
        padding: 100px 20px 60px;
    }
    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
        line-height: 1.1;
    }
    .hero-sub {
        font-size: 10px;
        margin-bottom: 30px;
    }
    .nav-abas {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .nav-abas button {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 14px 24px;
        font-size: 12px;
    }
    .nav-abas button:last-child {
        border-bottom: none;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .portfolio-card {
        margin: 0 10px;
    }
    .mobile-sidebar .m-item {
        padding: 10px 14px;
        font-size: 11px;
    }
    .secao {
        padding: 40px 16px;
    }
    .script-card {
        padding: 30px 20px;
    }
}

/* Telas muito pequenas (celulares em retrato) */
@media (max-width: 480px) {
    .hero {
        padding: 80px 16px 40px;
    }
    .hero h1 {
        font-size: clamp(2rem, 7vw, 3rem);
    }
    .hero-eyebrow {
        font-size: 9px;
    }
    .nav-top a {
        font-size: 9px;
        padding: 3px 6px;
    }
    .hamburger {
        width: 36px;
        height: 36px;
        font-size: 14px;
        top: 12px;
        right: 12px;
    }
    .logo-p {
        width: 38px;
        height: 38px;
        top: 12px;
        left: 12px;
    }
    .nav-abas button {
        padding: 12px 20px;
        font-size: 11px;
    }
    .portfolio-header h2 {
        font-size: 1.8rem;
    }
    .portfolio-header p {
        font-size: 9px;
    }
    .portfolio-info h3 {
        font-size: 1rem;
    }
    .portfolio-info p {
        font-size: 11px;
    }
    .back-button-padrao {
        bottom: 15px;
        right: 15px;
        padding: 8px 16px;
        font-size: 0.7rem;
    }
}

/* Telas muito grandes (acima de 1440px) */
@media (min-width: 1440px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1400px;
        margin: 0 auto;
    }
    .hero h1 {
        font-size: 7rem;
    }
}

/* ========================================
   CORREÇÕES FORÇADAS - FONTE E ABAS
   ======================================== */

/* Garantir fonte monoespaçada em TODOS os textos */
body, button, input, textarea, .nav-top a, .nav-abas button, .mobile-sidebar .m-item,
h1, h2, h3, p, a, .hero, .hero-eyebrow, .hero-sub, .script-card, .scene-heading,
.action, .transition, .credits, .perfil-nome, .perfil-cargo, .perfil-meta,
.portfolio-tag, .portfolio-info h3, .portfolio-info p {
    font-family: 'Courier New', Courier, monospace !important;
}

/* Ajuste específico para títulos que usavam serifada */
.hero h1, .perfil-nome, .portfolio-header h2, .portfolio-info h3 {
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: bold; /* opcional, para dar destaque */
}

/* Melhorias nas abas para evitar sobreposição */
.nav-abas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 5px;
}

.nav-abas button {
    flex: 0 1 auto;
    min-width: 100px;
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 12px;
    border-right: none !important;
    border-bottom: none !important;
}

/* Para telas pequenas, empilhar e ocupar largura total */
@media (max-width: 768px) {
    .nav-abas {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .nav-abas button {
        width: 100%;
        min-width: auto;
        white-space: normal;
        padding: 12px 24px;
        border-bottom: 1px solid var(--border);
    }
    .nav-abas button:last-child {
        border-bottom: none;
    }
}

/* Ajuste no menu superior para não invadir */
.nav-top {
    position: fixed;
    top: 20px;
    right: 30px;
    left: auto;
    display: flex;
    gap: 8px;
    z-index: 1000;
    background: transparent;
    padding: 10px 15px;
    border-radius: 4px;
}

.nav-top a {
    color: #888;
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

@media (max-width: 1024px) {
    .nav-top a {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Garantir que o conteúdo das seções não apareça sobreposto */
.secao, #painel-portfolio {
    position: relative;
    z-index: 1;
    background: var(--bg);
    margin-top: 20px;
}
