* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navbar */
.navbar-container {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  position: absolute;
  top: 0;
}

.navbar-container ul {
  display: flex;
  list-style: none;
  /* gap: 20px;
    padding: 20px; */
}

.navbar-container ul li {
  text-transform: uppercase;
  margin-right: 40px;
  color: white;
  letter-spacing: 0.1rem;
  opacity: 50%;
  transition: 0.5s;
}

.navbar-container ul li:hover {
  opacity: 100%;
  cursor: pointer;
}

/* Showcase */
.showcase-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: black;
  color: white;
  background-image: url("../images/showcase.jpg");
  background-size: cover;
  background-position: center;

  /* Overlay */
  background-color: rgba(0, 0, 0, 0.7);
  background-blend-mode: color;
}

.showcase-container h1 {
  font-weight: 600;
  font-size: 4rem;
}

.showcase-container p {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.25rem;
  color: #eee;
  border-bottom: 1.5px solid white;
  padding-bottom: 8px;
  padding-right: 8px;
  letter-spacing: 0.15rem;
}

/* SOBRE MIM */
.about-me-content {
  display: flex;
  align-items: center;
  margin-top: 50px;
  margin-right: 50px;
}

.about-me-content img {
  width: 320px;
  right: 320px;
  margin-right: 50px;
  margin-left: 50px;
}

.about-me-content p {
  color: white;
  line-height: 1.5rem;
  font-size: 1.25rem;
}

/* HABILIDADES */
.skills-content {
  margin-top: 108px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-left: 50px;
  margin-right: 50px;
}

.skill-item {
  background-color: #202020;
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}

.skill-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.skill-item span {
  margin-top: 15px;
  margin-bottom: 15px;
  color: white;
  font-weight: 500;
}

.skill-item p {
  color: white;
  opacity: 75%;
  line-height: 1.6;
}

/* PROJETOS */
.projects-content {
  margin-top: 118px;
}

.projects-content .project-item:nth-child(odd) {
  margin-left: 50px;
}

.projects-content .project-item:nth-child(even) {
  justify-content: flex-end;
}

.projects-content .project-item:nth-child(even) .project-item-image {
  order: 2;
  margin-left: 50px;
}

.projects-content .project-item:nth-child(even) .project-text {
  order: 1;
  text-align: right;
}

.project-item {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.projects-content .project-item:hover {
  transform: translateY(-4px);
  opacity: 0.95;
}

.project-item img {
  width: 350px;
  border-radius: 15px;
  margin-right: 50px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.project-item-image {
  width: 250px;
  height: 400px;
  border-radius: 15px;
  margin-right: 50px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  background-size: cover;
  background-position: center;
}

/* PROJETOS EM DESTAQUE */

.project-item-home-4 {
  background-image: url("../images/aparatus.jpg");
}

.project-item-home-3 {
  background-image: url("../images/treinos.jpg");
}

.project-item-home-2 {
  background-image: url("../images/psique2.png");
}

.project-item-home-1 {
  background-image: url("../images/pizzaria1.png");
}

/* DEMAIS PROJETOS */
.project-item-6 {
  background-image: url("../images/rag_documents.jpeg");
}

.project-item-5 {
  background-image: url("../images/task-list.jpg");
}

.project-item-4 {
  background-image: url("../images/dietas.png");
}

.project-item-3 {
  background-image: url("../images/chatbot3.png");
}

.project-item-2 {
  background-image: url("../images/dslist4.svg");
}

.project-item-1 {
  background-image: url("../images/primeflix5.svg");
}

.project-text {
  max-width: 800px;
}

.project-item p {
  color: white;
  opacity: 75%;
  line-height: 1.75rem;
  font-size: 1.25rem;
}

.project-item h2 {
  color: white;
  font-weight: 500;
  font-size: 1.5rem;
}

.project-page-main {
  min-height: 100vh;
}

.project-page-content {
  margin-top: 40px;
  padding-left: 24px;
  padding-right: 24px;
}

.project-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.project-meta {
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  margin-bottom: 30px;
  text-align: center;
}

.project-back-link {
  display: inline-block;
  margin-top: 40px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 12px 18px;
  transition: background-color 0.25s ease;
}

.project-back-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.project-detail-card,
.project-detail-section {
  background-color: #181818;
  border-radius: 18px;
  padding: 32px;
  color: white;
}

.project-detail-section {
  margin-top: 24px;
}

.project-detail-card h2,
.project-detail-section h2,
.project-module-card h3 {
  color: white;
}

.project-detail-card h2,
.project-detail-section h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.project-detail-list,
.project-detail-steps {
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.82);
}

.project-detail-list li,
.project-detail-steps li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.project-detail-list li code,
.project-detail-steps li code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Consolas", "Courier New", monospace;
}

.project-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-module-card {
  background-color: #202020;
  border-radius: 14px;
  padding: 24px;
}

.project-module-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.project-module-card p,
.project-detail-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  font-size: 1.05rem;
}

.project-module-card p code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Consolas", "Courier New", monospace;
}

.project-detail-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  font-size: 1.05rem;
}

.project-detail-text code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Consolas", "Courier New", monospace;
}

.project-json-block {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: linear-gradient(145deg, #111111, #1b1b1b);
  overflow-x: auto;
}

.project-json-block pre {
  margin: 0;
  padding: 20px;
}

.project-json-block code {
  display: block;
  color: #d7fdd0;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.96rem;
  line-height: 1.7;
  white-space: pre;
}

.see-more-projects h2 {
  font-weight: 500;
  font-size: 1.5rem;
  text-align: center;
  text-decoration: underline;
  background-color: #111;
  color: #fff;
}

.code-block {
  background: #0f172a;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  max-width: 100%;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre;
}

.code-block pre {
  margin: 0;
}

.project-detail-section pre {
  max-width: 100%;
  margin: 0;
}

.comment {
  color: #94a3b8;
}

.key {
  color: #f59e0b;
}

.value {
  color: #f8fafc;
}

.install-section {
  max-width: 900px;
  color: #f8fafc;
}

.install-section h3 {
  margin: 2rem 0 1rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.requirements {
  margin-bottom: 2rem;
}

.requirements li {
  margin-bottom: .75rem;
  line-height: 1.6;
}

.requirements a {
  color: #60a5fa;
  text-decoration: underline;
}

.code-container {
  background: #111827;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  max-width: 100%;
}

.code-container pre {
  margin: 0;
  white-space: pre;
}

.code-block code,
.code-container code {
  display: block;
  width: max-content;
  min-width: 100%;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #f8fafc;
}

.comment {
  color: #94a3b8;
}

/* POSTAGENS */
.posts-content {
  margin-top: 108px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-left: 50px;
  margin-right: 50px;
}

.post-item {
  background-color: #202020;
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  transition: transform 0.25s ease;
}

.post-item:hover {
  transform: translateY(-4px);
}

.post-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.post-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.post-item span {
  margin: 0;
  color: white;
  font-weight: 500;
  line-height: 1.3;
}

.post-item p {
  color: white;
  opacity: 75%;
  line-height: 1.6;
}

.post-page-main {
  min-height: 100vh;
  background-color: #111;
}

.post-page-content {
  margin-top: 40px;
  padding-left: 24px;
  padding-right: 24px;
}

.post-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.post-meta {
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  margin-bottom: 30px;
  text-align: center;
}

.post-hero-image {
  display: block;
  width: 250px;
  height: 400px;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

.post-highlight-quote {
  margin: 18px 0;
  padding: 16px 20px;
  border-left: 4px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.post-highlight-quote p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
}

.post-back-link {
  display: inline-block;
  margin-top: 40px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 12px 18px;
  transition: background-color 0.25s ease;
}

.post-back-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.post-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.post-detail-card,
.post-detail-section {
  background-color: #181818;
  border-radius: 18px;
  padding: 32px;
  color: white;
}

.post-detail-section {
  margin-top: 24px;
}

.post-detail-card h2,
.post-detail-section h2,
.post-module-card h3 {
  color: white;
}

.post-detail-card h2,
.post-detail-section h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.post-detail-list,
.post-detail-steps {
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.82);
  list-style: none;
  padding-left: 0;
}

.post-detail-list li,
.post-detail-steps li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.post-detail-list li code,
.post-detail-steps li code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Consolas", "Courier New", monospace;
}

.post-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.post-module-card {
  background-color: #202020;
  border-radius: 14px;
  padding: 24px;
}

.post-module-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.post-module-card p,
.post-detail-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  font-size: 1.05rem;
}

.post-module-card p code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Consolas", "Courier New", monospace;
}

.post-detail-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  font-size: 1.05rem;
}

.post-detail-text code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Consolas", "Courier New", monospace;
}

.post-json-block {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: linear-gradient(145deg, #111111, #1b1b1b);
  overflow-x: auto;
}

.post-json-block pre {
  margin: 0;
  padding: 20px;
}

.post-json-block code {
  display: block;
  color: #d7fdd0;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.96rem;
  line-height: 1.7;
  white-space: pre;
}

.mobile-only {
  display: none;
}

.posts-list-content {
  margin-top: 32px;
}

.posts-theme-group {
  max-width: 960px;
  margin: 0 auto;
}

.posts-theme-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.posts-theme-description {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  font-size: 1.08rem;
}

.posts-list-item {
  display: block;
  max-width: 960px;
  margin: 0 auto 50px;
  text-decoration: none;
  color: inherit;
  background-color: #181818;
  border-radius: 18px;
  padding: 32px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.posts-list-item:hover {
  transform: translateY(-4px);
  opacity: 0.95;
}

.posts-list-item h2 {
  color: white;
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.posts-list-item p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 1.2rem;
}

/* FORMULÁRIO */
.contact-form {
  display: flex;
  flex-direction: column;
  margin-top: 100px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form .form-input {
  margin-bottom: 20px;
}

/* FOOTER */
.footer-container {
  width: 100%;
  background-color: black;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  justify-content: space-between;
  padding: 50px;
}

.footer-container .social-items {
  margin-bottom: 20px;
}

.footer-container .social-items a {
  margin-right: 15px;
  color: rgba(255, 255, 255, 0.75);
  transition: 0.5s;
}

.footer-container .social-items i:hover {
  cursor: pointer;
}

/* Utilities */
.section-container {
  width: 100%;
  background-color: #111;
  padding-top: 120px;
  padding-bottom: 120px;
  scroll-margin-top: 80px;
}

.section-content {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-weight: 600;
  font-size: 3rem;
  letter-spacing: 0.15rem;
  color: #fff;
  text-transform: uppercase;
  padding-bottom: 8px;
  padding-left: 8px;
  padding-right: 8px;
  border-bottom: 1.5px solid #fff;
  text-align: center;
  width: fit-content;
  margin: auto;
}

.form-input {
  border: none;
  border-radius: 10px;
  background-color: #202020;
  padding: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
  resize: none;
}

.form-input:focus {
  outline: 1px solid rgba(255, 255, 255, 0.5);
}

.form-button {
  border: none;
  padding: 20px;
  border-radius: 10px;
  background-color: black;
  color: white;
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 500;
}

.form-button:hover {
  background-color: #202020;
  cursor: pointer;
}

.form-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-honeypot {
  display: none;
}

.form-status {
  margin-top: 14px;
  min-height: 1.4rem;
  font-size: 1rem;
}

.form-status.success {
  color: #7ee787;
}

.form-status.error {
  color: #ff7b72;
}