:root {
    --cor-primaria: #262626;
    --cor-secundaria: #a0d2db;
    --cor-lime: #c5ff1a;
    --cor-branco: #ffffff;
    --cor-preto: #000000;
}

html, body {
    background-color: var(--cor-primaria);
    color: var(--cor-secundaria);
    position: relative;
    overflow-x: hidden; /* Evita qualquer rolagem horizontal no layout do site */
    width: 100%;
}

main {
    padding: 0 5% 3rem 5% ; /* Removido padding-top para permitir centralização perfeita */
    margin: 0 auto ;
    max-width: 1440px;
}

/* Canvas de Partículas Dinâmicas (Fundo Inteiro) */
#particlesCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Manchas desfocadas (Blur Blobs) minimalistas para o fundo */
.bg-blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px); /* Desfoque alto para transição suave */
    z-index: -1; /* Fica atrás de todo o conteúdo */
    pointer-events: none; /* Garante que não interfira nos cliques */
}

.blob-1 {
    background-color: var(--cor-secundaria);
    width: 300px;
    height: 300px;
    top: 12%;
    left: -80px;
    opacity: 0.13; /* Intensidade ligeiramente aumentada */
    animation: floatBlob1 22s infinite ease-in-out;
}

.blob-2 {
    background-color: var(--cor-secundaria);
    width: 400px;
    height: 400px;
    top: 65%;
    right: -120px;
    opacity: 0.09; /* Intensidade ligeiramente aumentada */
    animation: floatBlob2 28s infinite ease-in-out;
}

/* Animações de flutuação suave para os blobs */
@keyframes floatBlob1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, -30px) scale(1.08);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes floatBlob2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-50px, 40px) scale(1.05);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(38, 38, 38, 0.75); /* Cor original primária #262626 com transparência */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15); /* Sombreamento sutil */
}

.navbar .container-fluid {
    padding-left: 5%;
    padding-right: 5%;
    max-width: 1440px;
}

.navbar-brand, .nav-link {
    color: var(--cor-secundaria);
    font-weight: 500;
}

.logo-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--cor-branco);
}

.nav-link {
    font-size: 11px;
    letter-spacing: 0.1em;
}

.nav-link.active-link {
    color: var(--cor-branco);
}

.nav-link:hover, .nav-link:focus {
    color: var(--cor-branco);
}

/* Hero Display Section */
.hero-display {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 80px; /* Compensa a altura do menu de navegação fixo */
    min-height: 100vh; /* Ocupa 100% da viewport real da tela */
    display: flex;
    align-items: center; /* Centraliza verticalmente o conteúdo no espaço restante */
    box-sizing: border-box;
}

.hero-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--cor-secundaria);
    letter-spacing: 0.15em;
    display: inline-block;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 800; /* Extra bold para maior impacto */
    letter-spacing: -0.045em; /* Mais condensado */
    margin: 0;
    line-height: 0.85; /* Linhas mais juntas e diretas */
    text-transform: uppercase;
}

.title-white {
    color: var(--cor-branco);
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) both;
    animation-delay: 0.1s;
}

.title-accent {
    color: var(--cor-secundaria);
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) both;
    animation-delay: 0.2s;
    display: inline-block;
}

/* Animação Hi-Tech Caça-Níqueis (Slot Machine) para a palavra Dados */
.slot-word-container {
    display: inline-flex;
    vertical-align: 0.02em; /* Corrigido alinhamento vertical milimétrico para coincidir com a palavra STACK */
    height: 1.1em;
    overflow: hidden;
}

.slot-letter-wrap {
    display: inline-block;
    height: 1.1em;
    line-height: 1.1em;
    overflow: hidden;
    position: relative;
    text-align: center;
    width: 0.68em; /* Aumentado para 0.68em para evitar que letras largas como 'D' fiquem cortadas nas laterais */
}

.slot-letter-column {
    display: flex;
    flex-direction: column;
    transform: translateY(-15.4em); /* Alinhado ao topo da coluna de 15 caracteres */
}

.slot-letter-column span {
    display: block;
    height: 1.1em;
    line-height: 1.1em;
    text-align: center;
}

/* Animações sequenciais ultra-rápidas individuais infinitas com 6.2s de ciclo total (0.4s de rotação ativa por letra com delay de 0.2s, loop e 5s de pausa) */
.slot-letter-1 {
    animation: slotDrop1 6.2s infinite cubic-bezier(0.15, 0.85, 0.35, 1.01);
}
.slot-letter-2 {
    animation: slotDrop2 6.2s infinite cubic-bezier(0.15, 0.85, 0.35, 1.01);
}
.slot-letter-3 {
    animation: slotDrop3 6.2s infinite cubic-bezier(0.15, 0.85, 0.35, 1.01);
}
.slot-letter-4 {
    animation: slotDrop4 6.2s infinite cubic-bezier(0.15, 0.85, 0.35, 1.01);
}
.slot-letter-5 {
    animation: slotDrop5 6.2s infinite cubic-bezier(0.15, 0.85, 0.35, 1.01);
}

@keyframes slotDrop1 {
    0% { transform: translateY(-15.4em); filter: blur(6px); opacity: 0; animation-timing-function: linear; }
    0.5% { opacity: 1; }
    6.45%, 100% { transform: translateY(0); filter: blur(0); opacity: 1; } /* Queda concluída de forma ultra-rápida em 0.4s */
}

@keyframes slotDrop2 {
    0%, 3.23% { transform: translateY(-15.4em); filter: blur(6px); opacity: 0; animation-timing-function: linear; }
    3.73% { opacity: 1; }
    9.68%, 100% { transform: translateY(0); filter: blur(0); opacity: 1; } /* Trava aos 0.6s */
}

@keyframes slotDrop3 {
    0%, 6.45% { transform: translateY(-15.4em); filter: blur(6px); opacity: 0; animation-timing-function: linear; }
    6.95% { opacity: 1; }
    12.9%, 100% { transform: translateY(0); filter: blur(0); opacity: 1; } /* Trava aos 0.8s */
}

@keyframes slotDrop4 {
    0%, 9.68% { transform: translateY(-15.4em); filter: blur(6px); opacity: 0; animation-timing-function: linear; }
    10.18% { opacity: 1; }
    16.13%, 100% { transform: translateY(0); filter: blur(0); opacity: 1; } /* Trava aos 1.0s */
}

@keyframes slotDrop5 {
    0%, 12.9% { transform: translateY(-15.4em); filter: blur(6px); opacity: 0; animation-timing-function: linear; }
    13.4% { opacity: 1; }
    19.35%, 100% { transform: translateY(0); filter: blur(0); opacity: 1; } /* Trava aos 1.2s */
}

.hero-description {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: #a8a8a8;
    line-height: 1.6;
    max-width: 580px;
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) both;
    animation-delay: 0.3s;
}

.hero-ctas {
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) both;
    animation-delay: 0.4s;
}

.btn-hero-primary {
    background-color: var(--cor-secundaria);
    color: var(--cor-preto);
    border: 1px solid var(--cor-secundaria);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 14px 28px;
    border-radius: 0px;
    transition: all 0.25s ease-in-out;
}

.btn-hero-primary:hover {
    background-color: transparent;
    color: var(--cor-secundaria);
    border-color: var(--cor-secundaria);
    box-shadow: 0 0 15px rgba(160, 210, 219, 0.3);
}

.btn-hero-secondary {
    background-color: transparent;
    color: var(--cor-branco);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 14px 28px;
    border-radius: 0px;
    transition: all 0.25s ease-in-out;
}

.btn-hero-secondary:hover {
    background-color: var(--cor-branco);
    color: var(--cor-preto);
    border-color: var(--cor-branco);
}

/* Coluna da Direita: Formas Abstratas de Tecnologia e Dados */
.hero-graphics-container {
    height: 620px; /* Aumentado para acomodar as órbitas sem cortes */
}

.hero-graphics-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    animation: fadeIn 1.5s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.abstract-shape {
    position: absolute;
}

/* Grade de fundo substituída por Órbitas Consecutivas */
.shape-orbits {
    width: 580px; /* Aumentado de 480px para 580px */
    height: 580px;
    top: -2%;
    right: -2%;
    left: auto;
    z-index: 1;
}

.orbits-svg {
    width: 100%;
    height: 100%;
}

.orbit {
    fill: none;
    stroke: rgba(160, 210, 219, 0.16); /* Aumentada visibilidade das órbitas */
    stroke-width: 1.2px; /* Linhas levemente mais espessas */
    stroke-dasharray: 6 9;
    transform-origin: center;
}

.orbit-1 {
    animation: rotateOrbitCW 60s linear infinite;
}

.orbit-2 {
    stroke-dasharray: 4 6;
    animation: rotateOrbitCCW 45s linear infinite;
}

.orbit-3 {
    stroke-dasharray: 2 4;
    animation: rotateOrbitCW 30s linear infinite;
}

/* Linhas de conexão */
.shape-line-1 {
    width: 1px;
    height: 250px;
    background: linear-gradient(to bottom, transparent, rgba(160, 210, 219, 0.25), transparent);
    transform: rotate(45deg);
    top: 5%;
    right: 40%;
    left: auto;
    animation: pulseLine 6s infinite ease-in-out;
}

.shape-line-2 {
    width: 1px;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(160, 210, 219, 0.2), transparent);
    transform: rotate(-35deg);
    bottom: 10%;
    right: 50%;
    left: auto;
    animation: pulseLine 8s infinite ease-in-out;
}

/* Brackets de Código (Inclinadas) */
.shape-bracket-open {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 7.5rem;
    font-weight: 300;
    color: rgba(160, 210, 219, 0.22); /* Aumentada a opacidade */
    top: 5%; /* Movido mais para cima e para a esquerda para sair de trás do painel alto */
    right: 72%;
    left: auto;
    z-index: 6;
    transform: rotate(-15deg); /* Levemente inclinada */
    animation: floatBracketOpen 8s infinite ease-in-out;
    user-select: none;
}

.shape-bracket-close {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 7.5rem;
    font-weight: 300;
    color: rgba(160, 210, 219, 0.22); /* Aumentada a opacidade */
    bottom: 5%; /* Movido mais para baixo e para a direita */
    right: 5%;
    left: auto;
    z-index: 6;
    transform: rotate(15deg); /* Levemente inclinada */
    animation: floatBracketClose 9s infinite ease-in-out;
    user-select: none;
}

/* Nós de dados pulsantes */
.shape-node {
    width: 8px;
    height: 8px;
    background-color: var(--cor-secundaria);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cor-secundaria);
}

.node-1 {
    top: 25%;
    right: 45%;
    left: auto;
    animation: pulseNode 3s infinite ease-in-out;
}

.node-2 {
    top: 55%;
    right: 25%;
    left: auto;
    animation: pulseNode 4s infinite ease-in-out 1s;
}

.node-3 {
    bottom: 25%;
    right: 55%;
    left: auto;
    animation: pulseNode 3.5s infinite ease-in-out 0.5s;
}

/* Wrapper para o Painel de Terminal (Gerencia o Float da Animação) */
.shape-terminal-panel-wrapper {
    position: absolute;
    top: 20%;
    right: 12%;
    left: auto;
    z-index: 5;
    animation: floatPanel 7s infinite ease-in-out;
}

/* Painel de terminal flutuante (Estilo JSON Editor - Gerencia o Hover de forma isolada e suave) */
.shape-terminal-panel {
    width: 400px; /* Redimensionado levemente para encaixar dentro do diâmetro das órbitas */
    max-width: 100%; /* Garante que o painel encolha sem quebrar em celulares pequenos */
    height: 385px;
    background-color: rgba(28, 28, 28, 0.98); /* Fundo quase sólido e escuro para contraste máximo */
    border: 1px solid rgba(160, 210, 219, 0.35); /* Borda mais nítida e brilhante */
    padding: 20px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.25, 1, 0.3, 1), border-color 0.5s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.shape-terminal-panel:hover {
    transform: translateY(-10px) scale(1.025);
    border-color: rgba(160, 210, 219, 0.45);
    box-shadow: 0 25px 50px rgba(160, 210, 219, 0.18);
}

.panel-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
    margin-bottom: 10px;
    width: 100%;
}

.panel-dots {
    display: flex;
    gap: 6px;
}

.panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-r { background-color: #ff5f56; }
.dot-y { background-color: #ffbd2e; }
.dot-g { background-color: #27c93f; }

.panel-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #8c8c8c;
    letter-spacing: 0.05em;
}

.panel-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #b8b8b8;
    line-height: 1.65;
    letter-spacing: -0.01em;
    margin-top: 0;
}

.code-key {
    color: var(--cor-secundaria);
    font-weight: 500;
}

.code-val {
    color: #e5c07b; /* Cor amarelada premium de string do VS Code */
}

.code-link {
    color: #a0d2db;
    text-decoration: none;
    background: linear-gradient(90deg, #a0d2db 0%, #a0d2db 30%, #ffffff 46%, #ffffff 54%, #a0d2db 70%, #a0d2db 100%) no-repeat;
    background-size: 300% 100%;
    background-position: 100% 0; /* Posição de repouso no ciano sólido */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: opacity 0.2s ease-in-out, text-shadow 0.3s ease;
}

.code-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* Animações sequenciais lentas com tempo de ciclo total de 9s */
.code-link-github {
    animation: shineGithub 5s infinite linear;
}

.code-link-linkedin {
    animation: shineLinkedin 5s infinite linear;
}

.code-link-instagram {
    animation: shineInstagram 5s infinite linear;
}

@keyframes shineGithub {
    0% { background-position: 100% 0; text-shadow: none; }
    12% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 4px var(--cor-secundaria); }
    25% { background-position: 0% 0; text-shadow: none; }
    100% { background-position: 0% 0; text-shadow: none; }
}

@keyframes shineLinkedin {
    0%, 33% { background-position: 100% 0; text-shadow: none; }
    45% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 4px var(--cor-secundaria); }
    58% { background-position: 0% 0; text-shadow: none; }
    100% { background-position: 0% 0; text-shadow: none; }
}

@keyframes shineInstagram {
    0%, 66% { background-position: 100% 0; text-shadow: none; }
    78% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 4px var(--cor-secundaria); }
    91% { background-position: 0% 0; text-shadow: none; }
    100% { background-position: 0% 0; text-shadow: none; }
}

/* Redes Sociais no Info Section */
.info-social-icons {
    display: flex;
    align-items: center;
    height: 100%;
}

.social-icon-link {
    color: var(--cor-branco);
    font-size: 1.2rem;
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
    display: inline-block;
}

.social-icon-link:hover {
    color: var(--cor-secundaria);
    transform: translateY(-2px);
}

/* Animações e Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rotateOrbitCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateOrbitCCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes pulseLine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes pulseNode {
    0%, 100% { transform: scale(1); opacity: 0.5; box-shadow: 0 0 5px var(--cor-secundaria); }
    50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 15px var(--cor-secundaria); }
}

@keyframes floatPanel {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes floatBracketOpen {
    0%, 100% { transform: translate(0, 0) rotate(-15deg); }
    50% { transform: translate(-8px, -5px) rotate(-18deg); }
}

@keyframes floatBracketClose {
    0%, 100% { transform: translate(0, 0) rotate(15deg); }
    50% { transform: translate(8px, 5px) rotate(18deg); }
}

@keyframes blinkCursor {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Sessão de informação */
.info-section {
    margin-top: 2rem;
}

.info-block {
    max-width: max-content;
}

.info-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #a8a8a8; /* Cinza mais claro para maior destaque e contraste */
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.info-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem); /* Tamanho reduzido para melhor equilíbrio visual */
    font-weight: 500; /* Peso ligeiramente reduzido para elegância */
    color: var(--cor-branco);
    letter-spacing: -0.02em;
}

@media (min-width: 992px) {
    .info-value {
        white-space: nowrap; /* Impede a quebra de linha em telas grandes */
    }
}

/* Padronização de espaçamento lateral em todas as seções para desktop */
@media (min-width: 1024px) {
    .hero-display,
    .about-section,
    .projects-section,
    .contact-section {
        padding-left: 65px !important;
        padding-right: 65px !important;
    }
}

/* Seção Sobre */
.about-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-image: radial-gradient(rgba(160, 210, 219, 0.04) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-attachment: fixed;
    background-color: var(--cor-primaria);
}

.about-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--cor-branco);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.about-highlight {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2.3vw, 1.7rem);
    font-weight: 500;
    color: var(--cor-secundaria);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.about-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: #a8a8a8;
    line-height: 1.6;
}

/* Seção de Projetos */
.projects-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-image: radial-gradient(rgba(160, 210, 219, 0.04) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-attachment: fixed;
    background-color: var(--cor-primaria);
}

.projects-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--cor-branco);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

/* Carrossel de Projetos */
.projects-carousel-container {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-direction: column; /* Wrapper no topo e controles abaixo no mobile/tablet */
    align-items: center;
    padding: 0; /* Cards com largura total */
}

@media (min-width: 1024px) {
    .projects-carousel-container {
        display: block; /* No desktop, deixa fluir em bloco para as setas flutuarem nas laterais */
        padding: 0; /* Removido padding para alinhar com o restante do site */
    }
}

.projects-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-top: -12px;
    margin-bottom: -12px;
}

.projects-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.project-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0 10px;
    display: flex;
}

@media (min-width: 768px) {
    .project-slide {
        flex: 0 0 50%;
        padding: 0 12px;
    }
}

@media (min-width: 1024px) {
    .project-slide {
        flex: 0 0 33.3333%;
        padding: 0 15px;
    }
}

/* Área de Controles (Setas + Dots) */
.projects-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 2rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .projects-carousel-controls {
        display: block;
        position: static;
        margin-top: 0;
    }
}

/* Botões de Navegação */
.carousel-nav-btn {
    background-color: rgba(38, 38, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--cor-secundaria);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    font-size: 1rem;
    border-radius: 0; /* Cantos retos brutalistas */
}

.carousel-nav-btn:hover:not(:disabled) {
    background-color: var(--cor-secundaria);
    color: var(--cor-preto);
    border-color: var(--cor-secundaria);
    box-shadow: 0 0 15px rgba(160, 210, 219, 0.3);
}

.carousel-nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    color: #555;
    border-color: rgba(255, 255, 255, 0.03);
}

/* No desktop, as setas voltam para as laterais */
@media (min-width: 1024px) {
    .carousel-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .prev-btn {
        left: -60px; /* Posiciona o botão na área de padding externo do desktop */
    }
    
    .next-btn {
        right: -60px; /* Posiciona o botão na área de padding externo do desktop */
    }
}

.project-card {
    background-color: #2b2b2b; /* Tom de cinza levemente contrastante com o fundo */
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.25rem 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 1024px) {
    .project-card {
        padding: 2.2rem;
    }
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--cor-secundaria);
    background-color: #303030;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.project-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    width: 100%;
}

.project-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: var(--cor-secundaria);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.8rem;
}

.project-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cor-branco);
    margin-bottom: 0.8rem;
}

@media (min-width: 1024px) {
    .project-name {
        font-size: 1.4rem;
    }
}

.project-description {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: #a8a8a8;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

@media (min-width: 1024px) {
    .project-description {
        margin-bottom: 1.8rem;
    }
}

.project-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--cor-branco);
    text-decoration: none;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: color 0.2s ease;
    margin-top: auto;
}

.project-link i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.project-card:hover .project-link {
    color: var(--cor-secundaria);
}

.project-card:hover .project-link i {
    transform: translateX(4px);
}

/* Card de Em Construção */
.coming-soon-card {
    background-color: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    cursor: default;
    transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    .coming-soon-card {
        padding: 2.2rem;
    }
}

.coming-soon-card:hover {
    transform: none;
    background-color: transparent;
    box-shadow: none;
}

/* Bolinhas indicadoras (dots) */
.projects-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

@media (min-width: 1024px) {
    .projects-carousel-dots {
        margin-top: 2.5rem;
    }
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.carousel-dot.active {
    width: 24px;
    background-color: var(--cor-secundaria);
    box-shadow: 0 0 12px rgba(160, 210, 219, 0.5);
}

/* Animação do Plus */
@keyframes pulse-gentle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
        text-shadow: 0 0 8px rgba(160, 210, 219, 0.3);
    }
}

.coming-soon-plus {
    font-size: 2.8rem;
    line-height: 1;
    color: var(--cor-secundaria);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    margin-bottom: 0;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
    animation: pulse-gentle 2.5s infinite ease-in-out;
}

.coming-soon-card:hover .coming-soon-plus {
    color: var(--cor-branco);
    transform: rotate(90deg) scale(1.2);
}

/* Animação das Reticências */
.dot-animation::after {
    content: '';
    display: inline-block;
    width: 1em;
    text-align: left;
    animation: dots 3s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Customização dos Modais (Estilo Premium Escuro & Brutalista) */
.custom-modal {
    background-color: var(--cor-primaria);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0px; /* Bordas retas brutalistas */
}

.custom-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-modal .modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--cor-branco);
    letter-spacing: -0.02em;
}

.custom-modal .carousel-item {
    background-color: transparent; /* Remove o fundo preto das margens */
}

.custom-modal .carousel-item img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
}

.modal-project-desc {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: #a8a8a8;
    line-height: 1.6;
}

.modal-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--cor-secundaria);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0px;
    padding: 6px 12px;
}

/* Botões do Modal (Estilo Minimalista & Cantos Retos) */
.btn-modal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 10px 20px;
    border-radius: 0px; /* Cantos retos brutalistas */
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    text-transform: uppercase;
}

/* Botão Secundário (Ex: Repositório) */
.btn-modal-sec {
    background-color: transparent;
    color: #a8a8a8;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-modal-sec:hover {
    color: var(--cor-branco);
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.03);
}

/* Botão Principal (Ex: Acessar Site) */
.btn-modal-pri {
    background-color: transparent;
    color: var(--cor-secundaria);
    border: 1px solid var(--cor-secundaria);
}

.btn-modal-pri:hover {
    background-color: var(--cor-secundaria);
    color: var(--cor-preto);
}


/* Seção de Habilidades (Skills) */
.skills-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.skills-main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.85rem; /* Aumentado de 1.5rem */
    font-weight: 600;
    color: var(--cor-branco); /* Usando o branco original do projeto */
    letter-spacing: -0.02em;
    margin: 0 !important;
    text-transform: uppercase;
    text-align: left;
}

.skills-dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cor-secundaria);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
    animation: blink-arrow 1.5s infinite ease-in-out;
}

/* Quando ativo, rotaciona a seta e para a animação */
.skills-header.active .skills-dropdown-btn {
    transform: rotate(180deg);
    animation: none;
    color: var(--cor-branco);
}

@keyframes blink-arrow {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(4px);
    }
}

.skills-container {
    display: flex;
    flex-wrap: wrap; /* Permite que as colunas quebrem linha se não houver espaço */
    justify-content: center; /* Centraliza as colunas de skills na seção */
    gap: 3rem; /* Espaço confortável entre as colunas/cards */
    
    /* Configuração de colapso */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

.skills-container.active {
    max-height: 1200px; /* valor alto o suficiente */
    opacity: 1;
    margin-top: 1rem;
    overflow: visible; /* para permitir sombras e efeitos de translação nos cards */
}

/* Caixa/Card das Skills (Estilo idêntico ao dos cards de projetos) */
.skills-card {
    background-color: #2b2b2b; /* Tom de cinza levemente contrastante com o fundo */
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 2.2rem 1.2rem; /* Padding lateral menor para estreitar ainda mais */
    flex: 1 1 180px; /* Reduzido de 230px */
    max-width: 230px; /* Reduzido de 290px */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza o conteúdo horizontalmente */
    gap: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.skills-card:hover {
    transform: translateY(-6px);
    border-color: var(--cor-secundaria);
    background-color: #303030;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.skills-category-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px; /* Aumentado de 14px */
    font-weight: 700;
    color: var(--cor-secundaria); /* Usando a cor secundária original do projeto */
    letter-spacing: 0.1em;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}

.skills-list {
    display: flex;
    flex-direction: column; /* Organização vertical */
    align-items: center; /* Centraliza os quadradinhos horizontalmente */
    gap: 0.8rem; /* Espaçamento vertical confortável entre as tags */
    width: 100%;
}

.skill-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--cor-branco); /* Usando o branco original do projeto */
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Linha sublinhada simples */
    padding: 4px 8px; /* Padding reduzido para um visual mais limpo */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: fit-content;
}

.skill-tag:hover {
    color: var(--cor-secundaria); /* Texto com a cor do tema */
    border-bottom-color: var(--cor-secundaria); /* Linha sublinhada com a cor do tema */
    transform: translateY(-1px); /* Leve destaque de elevação */
}


/* Seção de Contato */
.contact-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-big-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6.5vw, 4.5rem);
    font-weight: 700;
    color: var(--cor-branco);
    line-height: 0.9;
    text-transform: uppercase;
}

.contact-big-title .accent-text {
    color: var(--cor-secundaria);
}

.contact-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    color: #a8a8a8;
    line-height: 1.5;
    max-width: 460px;
}

.form-label-custom {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #a8a8a8;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.form-control-custom {
    width: 100%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    padding: 8px 0;
    color: var(--cor-branco);
    outline: none;
    transition: border-color 0.25s ease-in-out;
}

.form-control-custom::placeholder {
    color: #555555;
    font-size: 1.05rem;
}

.form-control-custom:focus {
    border-color: var(--cor-secundaria);
}

/* Área de Mensagem (Textarea) */
textarea.form-control-custom {
    resize: none;
}

.btn-contact-submit {
    background-color: var(--cor-secundaria);
    color: var(--cor-preto);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--cor-secundaria);
    border-radius: 0px;
    padding: 12px 28px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.btn-contact-submit:hover {
    background-color: transparent;
    color: var(--cor-secundaria);
    border-color: var(--cor-secundaria);
}

.btn-contact-submit .arrow-icon {
    font-size: 1.1rem;
    font-weight: bold;
}


/* Detalhes de Email e Redes Sociais no Contato */
.contact-email {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 500;
    color: var(--cor-branco);
    text-decoration: none;
    display: inline-block;
    border-bottom: 2px solid var(--cor-secundaria); /* Linha destacada com a cor do tema */
    padding-bottom: 6px;
    transition: all 0.25s ease-in-out;
}

.contact-email:hover {
    color: var(--cor-secundaria);
    border-bottom-color: var(--cor-branco);
}

.contact-socials {
    display: flex;
    gap: 1.5rem;
}

.contact-socials a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #a8a8a8;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s ease-in-out;
}

.contact-socials a:hover {
    color: var(--cor-secundaria);
}


/* Rodapé (Footer) */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #8c8c8c;
    letter-spacing: 0.06em;
}

.footer-totop {
    color: var(--cor-secundaria);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease-in-out;
}

.footer-totop:hover {
    color: var(--cor-branco);
}

.footer-totop i {
    font-size: 1.1rem;
    vertical-align: middle;
}

.footer .accent-text {
    color: var(--cor-secundaria);
    font-weight: 500;
}


/* --- REGRAS DE RESPONSIVIDADE E ADAPTABILIDADE (MEDIA QUERIES) --- */

/* Telas Médias e Pequenas (Tablets e Celulares - max-width: 991px) */
@media (max-width: 991px) {
    body {
        padding-top: 56px; /* Compensação de altura para a navbar fixa */
    }
    
    .navbar {
        background-color: rgba(38, 38, 38, 0.96); /* Fundo mais opaco no mobile para leitura legível */
    }
    
    .navbar-collapse {
        padding: 1.2rem 0;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Alterar cor dos traços do menu hamburguer (navbar-toggler-icon) para a cor secundária */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23a0d2db' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .navbar-toggler {
        border-color: rgba(160, 210, 219, 0.3);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(160, 210, 219, 0.25);
    }

    /* Exibição limpa do terminal e redução do espaço superior no Mobile/Tablet */
    .hero-display {
        padding-top: 0 !important; /* Reduz o espaçamento superior sob a navbar */
        min-height: auto;
    }
    
    .hero-graphics-container {
        height: auto !important;
        margin-top: 3.5rem !important; /* Aumenta o espaço entre os botões do hero e o topo do terminal */
        justify-content: center !important;
        padding: 0 !important;
    }
    
    .hero-graphics-wrapper {
        height: auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .shape-terminal-panel-wrapper {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        margin: 0 auto;
        animation: floatPanel 7s infinite ease-in-out;
    }
    
    /* Ocultar elementos decorativos que causam overflow horizontal ou poluem telas pequenas */
    .shape-orbits, 
    .shape-line-1, 
    .shape-line-2, 
    .shape-bracket-open, 
    .shape-bracket-close, 
    .shape-node {
        display: none !important;
    }
}

/* Telas Pequenas (Celulares - max-width: 767px) */
@media (max-width: 767px) {
    main {
        padding-left: 2.5rem ; /* Aumentado de 1.5rem para 2.5rem para afastar o conteúdo das bordas */
        padding-right: 2.5rem ;
        padding-top: 1rem; /* Reduzido padding superior do main */
    }

    .navbar .container-fluid {
        padding-left: 2.5rem; /* Alinhando a navbar no mobile com o mesmo recuo do main */
        padding-right: 2.5rem;
    }

    .hero-display {
        margin-top: 0 !important; /* Zerado para colar e reduzir ao máximo o espaço abaixo do menu no mobile */
        margin-bottom: 1.5rem;
    }

    #inicio {
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Centralização de Título e Texto do Hero */
    .display-text-container {
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
    }
 
    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.4rem); /* Ajustado para caber na tela sem estourar as margens */
        line-height: 0.85;
    }
 
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .info-section {
        margin-top: 3rem;
    }

    .info-block {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .info-value {
        font-size: 0.88rem;
        white-space: normal; /* Permite quebra em telas muito pequenas */
    }

    /* Centralizar botões de chamada para ação */
    .hero-ctas {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.8rem;
    }
 
    .hero-ctas .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        display: inline-flex;
    }

    /* Centralizar a seção Sobre */
    .about-title {
        text-align: center;
    }

    .about-highlight {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .about-text {
        text-align: center;
    }

    /* Centralizar a seção de Habilidades (Skills) */
    .skills-main-title {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .skills-container {
        justify-content: center;
        gap: 1.8rem;
    }

    .skills-category {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .skills-list {
        justify-content: center;
    }

    /* Centralizar a seção de Projetos */
    .projects-title {
        text-align: center;
    }

    .project-card {
        max-width: 100%;
        flex: 1 1 auto; /* Impede que force 300px fixos em viewports menores */
        padding: 1.5rem;
    }

    /* Centralizar a seção de Contato */
    .contact-section {
        margin-top: 3rem;
        padding-top: 3rem;
        text-align: center;
    }

    .contact-big-title {
        text-align: center;
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .contact-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-details {
        margin-top: 2rem;
        margin-bottom: 2rem;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .contact-email {
        font-size: clamp(0.9rem, 4.8vw, 1.1rem);
        margin-bottom: 1.8rem;
    }

    .contact-socials {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: center;
        justify-items: center;
        gap: 1rem 2.5rem;
        margin-top: 1rem;
    }

    .btn-contact-submit {
        width: 100%;
        justify-content: center;
    }

    /* Ajuste da altura das imagens no modal para celulares */
    .custom-modal .carousel-item img {
        max-height: 240px;
    }
}

/* Celulares ultra pequenos (max-width: 380px) */
@media (max-width: 380px) {
    .hero-title {
        font-size: 2.4rem; /* Reduzido para celulares ultra pequenos */
    }
    
    .about-title, .projects-title, .contact-big-title {
        font-size: 1.8rem;
    }
}

/* --- LIGHTBOX (ZOOM DE IMAGEM DO PROJETO) --- */

/* Torna as imagens do carrossel clicáveis */
.custom-modal .carousel-item img {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.custom-modal .carousel-item img:hover {
    opacity: 0.95;
}

/* Container do Lightbox */
.image-lightbox {
    position: fixed;
    z-index: 2000; /* Garante que fique acima de todos os elementos e modais */
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(18, 18, 18, 0.95); /* Fundo escuro opaco combinando com o tema */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px); /* Efeito de blur no fundo do modal */
    animation: fadeInLightbox 0.2s ease-out;
}

/* Imagem Ampliada */
.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    user-select: none;
    -webkit-user-drag: none;
}

/* Botão Fechar no Canto Superior Direito */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--cor-secundaria);
    font-size: 45px;
    font-weight: 300;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--cor-branco);
    transform: scale(1.1);
}

@keyframes fadeInLightbox {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- ANIMAÇÕES DE ENTRADA AO ROLAR A PÁGINA (REVEAL ON SCROLL) --- */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: transform, opacity;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: transform, opacity;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: transform, opacity;
}

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* Delays para efeito cascata (zas e zas) */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* --- RESPONSIVIDADE ADICIONAL PARA TELAS ULTRA ESTREITAS --- */
@media (max-width: 480px) {
    main {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .navbar .container-fluid {
        padding-left: 1.2rem !important;
        padding-right: 1.2rem !important;
    }
    
    .shape-terminal-panel {
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;
        padding: 15px 16px !important;
    }
    
    .panel-content {
        font-size: 10px !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 360px) {
    .shape-terminal-panel {
        max-width: 280px !important;
        padding: 10px 10px !important;
    }
    
    .panel-content {
        font-size: 9.2px !important;
        line-height: 1.4 !important;
    }
}

