/* Base / Reset */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

/**Barra de Rolagem**/
::-webkit-scrollbar {
  width: 7px;
  background: transparent;
  border: 1px solid #fff;
}

/* Estilo para o trilho da barra de rolagem */
::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 20px;
}

/* Estilo para a alça da barra de rolagem */
::-webkit-scrollbar-thumb {
  background: #666f70;
  border-radius: 20px;
  border: 1px solid #fff;
}

html {
  overflow-x: hidden;
}

/*Variáveis */
:root {
  --header-h: 150px;

  --bg: #000;
  --fg: #fff;

  --container-max: 1200px;

  --pad-x: 10px;
  --pad-top: 20px;

  --title: "Bebas Neue", system-ui, sans-serif;
  --body: "Arimo", system-ui, sans-serif;
}

.blog,
.single,
.blog-surface {
  --bg: #fff;
  --fg: #000;
}

/* Global */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  transition: background 0.6s ease;
}

body.theme-green {
  --bg: #2d5420;
  --accent: #7cff6b;
  --accent-dark: #1e3f17;
}

.container {
  width: min(var(--container-max), 100% - (var(--pad-x) * 2));
  margin-inline: auto;
}

/* Seções em blocos */
section {
  padding-top: var(--pad-top);
  padding-inline: var(--pad-x);
}

body {
  padding-top: var(--header-h);
}

/* LOADER */

.loader {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: #000;
  justify-content: center;
  align-items: center;
}

.loader.is-visible {
  display: flex;
}

/* container */
.loader .wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  filter: contrast(15);
}

.loader h2 {
  font-family: var(--title);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  margin: 0;
  font-size: clamp(64px, 10vw, 128px);
  text-transform: uppercase;
  animation: nouskPulse 10s infinite alternate;
}

@keyframes nouskPulse {
  0% {
    letter-spacing: -80px;
    filter: blur(18px);
  }

  50% {
    filter: blur(2px);
  }

  100% {
    letter-spacing: 10px;
    filter: blur(0px);
  }
}

.loader.hidden {
  animation: loaderFadeOut 20s ease forwards;
}

@keyframes loaderFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/*Geral Home*/
.hero,
.projects,
.blog,
.connection,
.effects {
  min-height: 100vh;
  display: block;
}

.hero-grid {
  min-height: calc(100vh - var(--header-h));
}

.hero-left h1 {
  font-family: var(--title);
  font-size: 96px;
  letter-spacing: 10px;
  margin: 0;
}

.effects-strip {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.blog-inner {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.blog-cats {
  text-align: left;
  margin-top: 48px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

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

.hero-avatar {
  width: clamp(180px, 15vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  margin: auto;
}

.hero-card {
  text-align: center;
}

.hero-actions a {
  font-weight: bold;
  text-decoration: underline;
  letter-spacing: 1px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: transparent;
}

.header-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.site-brand {
  grid-column: 2;
  justify-self: center;
  font-family: var(--title);
  letter-spacing: 2px;
  font-size: 64px;
  line-height: 1;
}

/* Menu */
.navigation {
  position: absolute;
  top: 30%;
  right: 20px;
  height: 50px;
  width: 50px;
  z-index: 10000;
  overflow: hidden;
  transition:
    width 0.5s,
    height 0.5s;
  transition-delay: 0s, 0.75s;
}

.navigation.active {
  width: 250px;
  height: 350px;
  transition:
    height 0.5s,
    width 0.5s;
  transition-delay: 0s, 0.75s;
}

.navigation .menuToggle {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  transition: 0.5s;
  cursor: pointer;
}

.navigation .menuToggle::before {
  content: "=";
  position: absolute;
  font-size: 2em;
  display: flex;
  justify-content: center;
  color: #fff;
  width: 50px;
  height: 50px;
  font-weight: 400;
  transition: 0.5s;
}

.navigation .menuToggle.active::before {
  transform: rotate(360deg);
}

.navigation ul {
  position: absolute;
  left: 50px;
  width: 100%;
  margin: 0;
}

.navigation ul li {
  position: relative;
  list-style: none;
  width: 100%;
  display: flex;
  justify-content: center;
}

.navigation ul li a {
  position: relative;
  display: flex;
  text-decoration: none;
  color: #fff;
  justify-content: center;
}

.navigation ul li a .title {
  position: relative;
  display: block;
  line-height: 50px;
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
  opacity: 0.6;
}

.lang-btn:hover {
  border-color: #fff;
}

.lang-btn.is-active {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.lang-btn.is-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.blog .navigation ul li a,
.single .navigation ul li a,
.blog-surface .navigation ul li a,
.blog .navigation .menuToggle::before,
.single .navigation .menuToggle::before,
.blog-surface .navigation .menuToggle::before,
.blog .site-brand,
.single .site-brand,
.blog-surface .site-brand {
  color: #000;
}

.blog .lang-btn.is-active,
.single .lang-btn.is-active,
.blog-surface .lang-btn.is-active {
  border-color: #000;
}

body.post-type-archive-efeitos .navigation {
  display: none;
}

/* Botão de Tema */
.theme-toggle input[type="checkbox"] {
  position: relative;
  width: 90px;
  height: 10px;
  margin: 10px;
  outline: none;
  background: #111;
  -webkit-appearance: none;
  cursor: pointer;
  border-radius: 20px;
  box-shadow:
    -5px -5px 20px rgba(255, 255, 255, 0.1),
    5px 5px 10px rgba(255, 255, 255, 0.1),
    inset -2px -2px 5px rgba(255, 255, 255, 0.1),
    inset 2px 2px 5px rgba(255, 255, 255, 0.5),
    0 0 0 2px #00ff00;
  transition: 0.5s;
}

.theme-toggle input[type="checkbox"]:checked {
  background-color: #00ff00;
  box-shadow:
    -5px -5px 20px rgba(0, 255, 0, 0.5),
    5px 5px 10px rgba(0, 255, 0, 0.5),
    inset -2px -2px 5px rgba(0, 255, 0, 0.5),
    inset 2px 2px 5px rgba(0, 255, 0, 0.5),
    0 0 0 2px #00ff00;
  transition: 0.5s;
}

.theme-toggle input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 10px;
  background: linear-gradient(to top, #000, #555);
  border-radius: 20px;
  box-shadow: 0 0 0 2px #00ff00;
  transform: scale(0.98, 0.96);
  transition: 0.5s;
}

.theme-toggle input[type="checkbox"]:checked::before {
  left: 30px;
  box-shadow: none;
}

/* tema preto */
.avatar-green {
  display: none;
}

/* tema verde */
body.theme-green .avatar-dark {
  display: none;
}

body.theme-green .avatar-green {
  display: block;
}

.effect-item {
  display: none;
}

.effect-item.is-active {
  display: block;
}

.title-green {
  display: none;
}

body.theme-green .title-default {
  display: none;
}

body.theme-green .title-green {
  display: block;
}

/*Noise Effect*/
.noise-effect {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("../img/noise-nousk.jpg");
  background-repeat: repeat;
  background-size: auto;
  animation: noiseMove 1s steps(10) infinite;
  overflow: hidden;
}

.noise-effect .background-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  animation: fadeInOut 30s ease-in-out infinite;
}

@keyframes noiseMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 100%;
  }
}

@keyframes fadeInOut {
  0%,
  100% {
    background-color: rgba(0, 0, 0, 0.4);
  }
  33.33% {
    background-color: rgba(0, 0, 0, 0.6);
  }
  66.66% {
    background-color: rgba(0, 0, 0, 0.9);
  }
  80% {
    background-color: rgba(0, 0, 0, 0.6);
  }
}

#effect-green {
  position: relative;
  width: 100%;
  height: 100vh;
}

/*Green Effect*/
.green-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  animation: changerColor 5s linear infinite;
  display: none;
}

@keyframes changerColor {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(260deg);
  }
}

.green-grid span {
  position: relative;
  width: 40px;
  height: 40px;
  display: block;
}

.green-grid span::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #05e10e;
  transform: scale(0.1);
  border-radius: 50px;
  transition: 1.2s;
  box-shadow:
    0 0 10px #00f00a,
    0 0 20px #00f00a,
    0 0 40px #00f00a,
    0 0 50px #00f00a,
    0 0 100px #00f00a;
}

.green-grid span.active::before {
  transform: scale(1);
  transition: 0s;
}

.green-blob {
  position: absolute;
  inset: 0;
  display: none;
}

.green-blob.is-active {
  display: block;
}

.green-grid.is-active {
  display: flex;
}

/* efeito green psy 2 */

.pattern-container {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: transparent;
  filter: contrast(50) brightness(1.2);
}

.blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;

  background: radial-gradient(
    circle,
    #ff0000 0% 20%,
    #00f2ff 20% 50%,
    #ff00ff 50% 80%,
    transparent 80%
  );

  filter: blur(27px);
  animation: move 70s infinite alternate ease-in-out;
}

.blob:nth-child(2) {
  top: 20%;
  left: 10%;
  animation-duration: 50s;
  width: 400px;
  height: 400px;
}

.blob:nth-child(3) {
  bottom: 10%;
  right: 15%;
  animation-duration: 80s;
}

.blob:nth-child(4) {
  top: 50%;
  left: 60%;
  animation-duration: 30s;
  width: 250px;
  height: 250px;
}

@keyframes move {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(100px, 50px) scale(2.2);
  }
}

/*Project*/
.projects {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.projects-inner {
  width: min(var(--container-max), 100% - (var(--pad-x) * 2));
  margin-inline: auto;
}

.projects-inner h2 {
  text-align: center;
  margin-bottom: 20px;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  touch-action: pan-y;
}

.item {
  min-width: 100%;
  min-height: 80vh;
  background: #333;
  color: #fff;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  height: 80px;
  width: 80px;
  font-size: 48px;
  transform: translateY(-50%);
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

@media (hover: none) and (pointer: coarse) {
  .prev,
  .next {
    display: none;
  }
}

.projects-page-card__summary {
  background-color: rgba(51, 51, 51, 0.9);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

/*Blog na Home*/
.blog-post-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 32px;
  max-width: 700px;
  margin: 48px auto 0;
  text-align: left;
}

.blog-post-column {
  display: flex;
  flex-direction: column;
}

.blog-post-link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.blog-post-link:hover {
  opacity: 0.8;
}

.blog-view-all {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.projects-actions {
  text-align: center;
  margin-bottom: 20px;
}

.projects-view-all,
.single-post-back a,
.single-project__back a {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.blog-view-all:hover,
.projects-view-all:hover,
.single-post-back a:hover,
.single-project__back a:hover {
  transform: translateX(5px);
}

.single-post-back a:hover,
.single-project__back a:hover {
  transform: translateX(-5px);
}

/**Redes Sociais**/
.connection {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connection-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.connection-inner a img {
  width: auto;
  height: 100px;
  object-fit: contain;
  opacity: 0.7;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.connection-inner a:hover img {
  transform: scale(1.1);
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(0, 255, 120, 0.6));
}

/*Not Found*/
.not-found {
  height: 55vh;
}

.not-found-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.not-found-content p {
  font-family: var(--title);
  font-size: clamp(40px, 8vw, 100px);
  letter-spacing: 4px;
  opacity: 0.6;
}

.error404 .noise-effect {
  height: 100%;
}

.error404 .noise-effect .background-overlay {
  animation: none;
  background-color: rgba(0, 0, 0, 0.4);
}

/**Footer**/
.site-footer {
  width: 100%;
  padding: 20px;
  margin-top: 60px;
  font-size: 14px;
}

.footer-inner {
  width: min(var(--container-max), 100% - (var(--pad-x) * 2));
  margin-inline: auto;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-left {
  justify-self: start;
}

.footer-center {
  justify-self: center;
}

.footer-center a {
  transition: opacity 0.3s ease;
}

.footer-center a:hover {
  opacity: 0.7;
}

.footer-right {
  justify-self: end;
  text-align: right;
}

/*Blog-Home*/
.blog-page {
  height: calc(7 * 55px);
}

.blog-layout {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  height: 100%;
  gap: 0;
}

/* coluna esquerda */
.blog .blog-sidebar,
.blog-sidebar {
  border-right: 2px solid rgba(0, 0, 0, 0.2);
  text-align: end;
  padding-right: 30px;
  padding-top: 20px;
}

/* coluna direita */
.blog-extra {
  padding: 20px;
}

/* coluna do meio */
.blog-content {
  height: 100%;
  overflow-y: auto;
  padding: 20px;
}
.blog-filter.active {
  font-weight: 700;
}

/* lista de posts */
.blog-posts {
  max-height: 100%;
  transition: opacity 0.2s ease;
}

/* posts */
.blog-post-item {
  margin-bottom: 16px;
}

.blog-post-item a {
  display: block;
  font-size: 24px;
  padding-bottom: 6px;
  width: fit-content;
}

/* menu lateral */
.blog-menu h3 {
  margin-top: 24px;
}

.blog-tags {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-tags li {
  margin-bottom: 8px;
}

.blog-tags li button,
.blog-menu button.blog-filter {
  background: transparent;
  border: none;
}

.blog-tags li button:hover,
.blog-menu button.blog-filter:hover {
  font-size: large;
  cursor: pointer;
  font-style: oblique;
}

.blog-post-item a:hover {
  font-weight: bolder;
  font-style: oblique;
}

.blog-empty {
  font-size: 18px;
}

.blog-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-search-label {
  font-size: 16px;
}

.blog-search-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  color: inherit;
  font: inherit;
}

.blog-search-input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.5);
}

.projects-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.projects-page-carousel {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-h));
  overflow: hidden;
  padding: 0 10%;
  box-sizing: border-box;
}

.projects-page-carousel .carousel-track {
  display: flex;
  align-items: center;
  height: 100%;
  transition: transform 0.3s ease;
}

.projects-page-carousel .item {
  min-width: 60%;
  margin: 0 20px;
  height: 80vh;
  background: #333;
  color: #fff;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0.5;
  transform: scale(0.9);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.projects-page-carousel .item.active {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
}

.projects-page-carousel .item:not(.active) {
  transform: scale(0.85);
  opacity: 0.4;
}

.projects-page-carousel .prev,
.projects-page-carousel .next {
  position: absolute;
  top: 50%;
  height: 100px;
  width: 100px;
  font-size: xxx-large;
  transform: translateY(-50%);
  background: #212121;
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.projects-page-carousel .prev {
  left: 10px;
}

.projects-page-carousel .next {
  right: 10px;
}

@media (hover: none) and (pointer: coarse) {
  .projects-page-carousel .prev,
  .projects-page-carousel .next {
    display: none;
  }
}

.single-post-page {
  padding-top: 40px;
  padding-bottom: 80px;
}

.single-post-inner {
  max-width: 900px;
}

.single-post-header {
  margin-bottom: 40px;
}

.single-post-title {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  margin: 0 0 24px;
}

.single-post-excerpt {
  font-size: 22px;
  line-height: 1.5;
  max-width: 760px;
  margin: 0 0 24px;
}

.single-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.single-post-tags li {
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  font-size: 14px;
}

.single-post-content {
  font-size: 20px;
  line-height: 1.75;
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol,
.single-post-content blockquote {
  margin-bottom: 24px;
}

.single-post-back,
.single-project__back {
  margin-top: 64px;
}

.single-post-back a,
.single-project__back a {
  font-size: 16px;
}

.single-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.single-related-item a {
  display: block;
  line-height: 1.5;
}

body.single.single-post .connection,
body.about-surface .connection {
  min-height: auto;
}

.page-default {
  padding-top: 40px;
  padding-bottom: 80px;
}

.page-default-inner {
  max-width: 900px;
}

.page-default-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin: 0 0 32px;
}

.page-default-content {
  font-size: 22px;
  line-height: 1.7;
}

.page-default-content p,
.page-default-content ul,
.page-default-content ol,
.page-default-content blockquote {
  margin-bottom: 24px;
}

.page-default-content h2,
.page-default-content h3,
.page-default-content h4 {
  margin-top: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-default-content ul,
.page-default-content ol {
  padding-left: 24px;
}

.page-default-content li {
  margin-bottom: 10px;
}

/*Página Sobre mim*/
body.about-surface {
  position: relative;
  background: #000;
}

body.about-surface::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 255, 120, 0.32),
      transparent 45%
    ),
    radial-gradient(circle at 20% 70%, rgba(0, 255, 120, 0.32), transparent 45%);
  filter: blur(90px);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

body.about-surface::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/noise-nousk.jpg");
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

body.about-surface main,
body.about-surface .page-default,
body.about-surface .page-default-inner,
body.about-surface .page-default-article {
  position: relative;
  z-index: 1;
}

.about-page {
  padding-bottom: 120px;
}

.about-page-inner {
  max-width: 1220px;
}

.about-section {
  margin-bottom: 96px;
}

.about-hero {
  padding-top: 40px;
  margin-bottom: 96px;
}

.about-hero-title {
  max-width: 900px;
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.98;
  margin: 0 0 24px;
  font-family: var(--body);
  font-weight: 700;
}

.about-hero-subtitle {
  max-width: 760px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
  margin: 0;
  opacity: 0.88;
}

.about-section h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 28px;
}

.about-section h3 {
  font-size: 28px;
  margin: 0 0 14px;
}

.about-section p {
  font-size: 24px;
  line-height: 1.7;
  margin: 0;
}

.about-intro-grid,
.about-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-card,
.about-block {
  border: 1px solid rgba(124, 255, 107, 0.18);
  background: rgba(10, 10, 10, 0.32);
  backdrop-filter: blur(3px);
  padding: 28px;
}

.about-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-contact-email {
  margin-top: 18px;
}

.about-contact-email a {
  font-size: 24px;
}

/*Mobile*/

@media (max-width: 768px) {
  :root {
    --header-h: 96px;
    --pad-x: 20px;
    --pad-top: 16px;
  }

  body {
    padding-top: var(--header-h);
  }

  .site-header {
    height: var(--header-h);
  }

  .header-inner {
    padding: 12px 16px;
    grid-template-columns: 1fr auto 1fr;
  }

  .lang-switch {
    gap: 8px;
  }

  .lang-btn {
    padding: 6px 8px;
    font-size: 11px;
  }

  .theme-toggle input[type="checkbox"] {
    width: 72px;
    margin: 8px auto;
    display: block;
  }

  .theme-toggle input[type="checkbox"]::before {
    width: 46px;
  }

  .theme-toggle input[type="checkbox"]:checked::before {
    left: 26px;
  }

  /*Efeito entrada*/
  .loader h2 {
    font-size: 178px;
  }
  /*Fim efeito entrada*/

  /*Efeito psy green*/
  .pattern-container {
    overflow-x: hidden;
  }
  /*Fim*/

  .hero,
  .projects,
  .blog,
  .connection,
  .effects {
    min-height: auto;
  }

  .hero-grid,
  .grid-2,
  .about-intro-grid,
  .about-bottom-grid,
  .about-cards-grid,
  .about-projects-grid,
  .about-experience-grid,
  .footer-inner,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: 32px;
  }

  .hero-left h1 {
    font-size: 56px;
    letter-spacing: 2px;
    line-height: 0.95;
    word-break: break-word;
    text-align: center;
  }

  .hero-avatar {
    width: 180px;
    margin: 0 auto 20px;
  }

  .projects-inner h2,
  .blog-inner h2,
  .about-section h2 {
    margin-bottom: 16px;
  }

  .carousel .item {
    min-height: 52vh;
    font-size: 28px;
  }

  .projects-page-carousel {
    height: auto;
    padding: 0 8%;
  }

  .projects-page-carousel .item {
    min-width: 80%;
    height: 52vh;
    font-size: 28px;
  }

  .connection-inner a img {
    opacity: 1;
    animation: glowPulse 10s ease-in-out infinite;
  }

  @keyframes glowPulse {
    0%,
    100% {
      filter: none;
    }

    10%,
    60% {
      filter: drop-shadow(0 0 6px rgba(0, 255, 120, 0.4));
    }

    20%,
    70% {
      filter: drop-shadow(0 0 10px rgba(0, 255, 120, 0.7));
    }
  }

  .site-footer {
    margin-top: 32px;
    padding: 20px 16px 32px;
  }

  .footer-inner {
    gap: 12px;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    justify-self: center;
    text-align: center;
  }

  .blog-page {
    height: auto;
  }

  .blog-layout {
    height: auto;
  }

  .blog-sidebar,
  .blog .blog-sidebar {
    border-right: 0;
    text-align: left;
    padding: 0 0 20px;
  }

  .blog-extra {
    padding: 20px 0 0;
  }

  .blog-content {
    height: auto;
    overflow-y: visible;
    padding: 20px 0;
  }

  .blog-post-item a {
    font-size: 20px;
  }

  .single-post-title {
    font-size: 40px;
  }

  .single-post-excerpt,
  .single-post-content,
  .page-default-content,
  .about-section p,
  .about-contact-email a {
    font-size: 18px;
  }

  .about-hero-title {
    font-size: 52px;
  }

  .about-hero-subtitle {
    font-size: 22px;
  }

  .about-card,
  .about-block {
    padding: 20px;
    height: fit-content;
  }

  .blog-post-columns {
    grid-template-columns: 1fr;
    gap: unset;
  }

  .blog-view-all,
  .projects-view-all {
    animation: subtleSlide 5s infinite;
  }
  @keyframes subtleSlide {
    0% {
      transform: translateX(0);
    }
    10% {
      transform: translateX(5px);
    }
    20% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(0);
    }
  }

  .single-post-back a,
  .single-project__back a {
    animation: subtleSlideLeft 10s infinite;
  }
  @keyframes subtleSlideLeft {
    0%,
    100% {
      transform: translateX(0);
    }
    10% {
      transform: translateX(-5px);
    }
    20% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(0);
    }
  }

  body.about-surface .about-page-inner.container {
    width: 100vw;
  }

  .single-post-header {
    text-align: center;
  }

  .single-post-tags {
    justify-content: center;
  }

  .blog-menu {
    text-align: center;
  }

  .blog-tags {
    display: flex;
    justify-content: center;
  }

  .archive-plugins__container {
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .about-intro-grid,
  .about-bottom-grid,
  .about-cards-grid,
  .about-projects-grid,
  .about-experience-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    margin-bottom: 72px;
  }

  .about-section p {
    font-size: 20px;
  }
}

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  width: min(360px, calc(100vw - 40px));
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner-inner {
  background: #fff;
  color: #000;
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cookie-banner-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: #d60000;
}

.cookie-banner-text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #444;
}

.cookie-banner-link {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 700;
  text-decoration: underline;
  color: #d60000;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cookie-btn {
  min-width: 110px;
  padding: 14px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn-secondary {
  background: transparent;
  border: 1px solid #4a5860;
  color: #4a5860;
}

.cookie-btn-primary {
  background: #d60000;
  border: 1px solid #d60000;
  color: #fff;
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-btn {
    width: 100%;
  }
}

.page-default-content pre,
.single-post-content pre {
  background: #111;
  color: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: monospace;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.page-default-content code,
.single-post-content code {
  font-family: monospace;
}

.page-default-content p code,
.single-post-content p code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

pre {
  padding: 24px;
  padding-right: 72px;
}

.code-block {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s ease;
  z-index: 2;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.copy-btn:active {
  transform: scale(0.96);
}

.copy-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.copy-btn.is-copied {
  color: #fff;
}

/*efeitos*/
.archive-efeitos__container {
  max-width: 1100px;
  margin: 0 auto;
}

.archive-efeitos__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.archive-efeitos__select {
  min-width: 260px;
  padding: 10px 14px;
}

.archive-efeitos__random {
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 20px;
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.archive-efeitos__preview {
  margin-bottom: 24px;
}

/**.archive-efeitos__preview-inner {
  min-height: 500px;
}**/

.archive-efeitos__info {
  text-align: center;
}

.archive-efeitos__title {
  margin-bottom: 16px;
  margin-top: 0;
  font-size: 32px;
  text-align: center;
}

.archive-efeitos__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.archive-efeitos__icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.archive-efeitos__icon-link {
  text-decoration: none;
}

.archive-efeitos__posts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-efeitos__post-item {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.archive-efeitos__icon-link img,
.archive-plugins__github-link img,
.plugin-card__icon-link img {
  display: block;
  width: 80px;
  height: auto;
}

/* Archive: Nousk - Plugins*/
.archive-plugins__container {
  max-width: 1100px;
  margin: 0 auto;
}

.archive-plugins__header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.archive-plugins__page-title {
  margin: 0;
  font-size: 40px;
}

.archive-plugins__github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/**.archive-plugins__github-link img {
  display: block;
  width: 24px;
  height: 24px;
}
  **/

.archive-plugins__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.plugin-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plugin-card__media video {
  width: 100%;
  display: block;
}

.plugin-card__title {
  margin: 0;
  font-size: 22px;
}

.plugin-card__summary {
  margin: 0;
}

.plugin-card__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plugin-card__icons {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
/*
.plugin-card__icon-link img {
  display: block;
  width: 24px;
  height: 24px;
} */

.plugin-card__links {
  display: grid;
  justify-content: center;
}

.plugin-card__post-link a {
  text-decoration: none;
}

.plugin-card__icon-link img {
  margin: auto;
}

/**Revisar projetos**/
.projects-page-carousel .item {
  position: relative;
  min-width: 60%;
  margin: 0 20px;
  height: 80vh;
  background: #333;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 40px;
  text-decoration: none;
  overflow: hidden;

  opacity: 0.5;
  transform: scale(0.9);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.projects-page-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
  z-index: 1;
}

.projects-page-card__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.projects-page-card__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

.projects-page-card__summary {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .projects-page-carousel .item {
    min-width: 80%;
    height: 52vh;
    padding: 24px;
  }

  .projects-page-card__title {
    font-size: 30px;
  }

  .projects-page-card__summary {
    font-size: 16px;
    line-height: 1.4;
  }

  .projects-page .projects-page-card__content {
    transform: translateY(-50vh);
  }
}

.single-project__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.single-project__back {
  margin-bottom: 20px;
  margin-top: unset;
}

.single-project__back a {
  text-decoration: none;
  font-size: 14px;
}

.single-project__title {
  font-size: 42px;
  margin-bottom: 24px;
}

.single-project__media {
  margin-bottom: 24px;
}

.single-project__media img,
.single-project__media video {
  width: 100%;
  border-radius: 12px;
}

.single-project__summary {
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.6;
}

.single-project__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.single-project__links a {
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid #fff;
  border-radius: 6px;
}

.single-project__post a {
  text-decoration: underline;
}

.canvas-game__options {
  display: grid;
  gap: 10px;
  grid-template-columns: 2fr 2fr;
}

.canvas-game__options button {
  background: transparent;
  padding: 12px;
  font-size: 18px;
  border: 1px solid #000;
}

button#restartButton,
button#backToMenuButton {
  background: transparent;
  border: 1px solid #000;
}

.canvas-game__options button:hover,
button#restartButton:hover,
button#backToMenuButton:hover {
  cursor: pointer;
  box-shadow:
    0 0 10px #024024,
    0 0 50px #024024;
}

@media (max-width: 768px) {
  .canvas-game__options {
    grid-template-columns: 1fr;
  }
  .canvas-game__options button {
    animation: autoGlow 13s ease-in-out infinite;
  }
  .canvas-game__options button:nth-child(1) {
    animation-delay: 3s;
  }
  .canvas-game__options button:nth-child(2) {
    animation-delay: 4.5s;
  }
  .canvas-game__options button:nth-child(3) {
    animation-delay: 6s;
  }
  .canvas-game__options button:nth-child(4) {
    animation-delay: 7.5s;
  }
  @keyframes autoGlow {
    0% {
      box-shadow: 0 0 0px #024024;
    }
    30% {
      box-shadow:
        0 0 10px #024024,
        0 0 50px #024024;
    }
    100% {
      box-shadow: 0 0 0px #024024;
    }
  }
}

#collisionCanvas {
  display: none;
}

.canvas-game__area {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

#restartButton,
#backToMenuButton {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 10px 18px;
}

#restartButton {
  top: 64%;
}

#backToMenuButton {
  top: 74%;
}

.aster-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.aster-overlay.is-active {
  display: flex;
}

.aster-overlay video {
  display: block;
  max-width: min(90vw, 960px);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
}

.aster-mobile-prompt {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 24px;
}

.aster-mobile-prompt.is-active {
  display: flex;
}

#aster-mobile-input {
  width: min(90vw, 320px);
  padding: 14px 16px;
  border: 1px solid #444;
  background: #111;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.single-project__content {
  max-width: 800px;
  margin: 40px auto 0;
  line-height: 1.7;
}

.single-project__content p {
  margin-bottom: 1.2em;
}

.single-project__content h2,
.single-project__content h3 {
  margin: 1.5em 0 0.7em;
}

.single-project__content a {
  text-decoration: underline;
}
