:root {
  --radius-xl: 1.5rem;
  --transition-fast: 0.3s ease;
  --transition-spring: cubic-bezier(0.25, 1, 0.5, 1);
}

/* === Tentativa de Consertar o Layout no MOBILE === */
html, body {
  width: 100%;
  max-width: 100%; /* Remove a restrição de max-width */
  overflow-x: auto; /* Permite o scroll horizontal quando necessário */
  overflow-y: auto; /* Garante que a rolagem vertical esteja disponível */
  padding: 0; /* Remover padding extra */
  margin: 0; /* Remover margem extra */
}

/* Responsividade para celular */
@media (max-width: 768px) {
  .text-lg.italic {
    font-size: 1.2rem; /* Ajuste para dispositivos móveis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Sombra ajustada para telas pequenas */
  }
}

/* Ajustes no texto principal */
/* Melhorando a visibilidade do texto */

/* === CARD === */
/* === CARD === */
.card-css {
  background-color: #0f172a;
  background-image: 
    repeating-linear-gradient(
      45deg,
      rgba(85, 172, 105, 0.15) 0px, /* Verde suave */
      rgba(85, 172, 105, 0.15) 1px,
      transparent 1px,
      transparent 5px
    ),
    radial-gradient(circle at top left, rgba(85, 172, 105, 0.25), transparent),
    radial-gradient(circle at bottom right, rgba(135, 206, 235, 0.1), transparent);
  background-size: 200% 200%; /* Permite animação fluida */
  background-position: 0 0;
  animation: bgFlow 15s linear infinite;
  border: 1px solid rgba(85, 172, 105, 0.15); /* Neon suave */
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-spring);
  box-shadow:
    0 0 12px rgba(85, 172, 105, 0.1), /* Suavizar o brilho */
    inset 0 0 6px rgba(85, 172, 105, 0.1);
}

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

.card-css::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(0, 255, 180, 0.1) 50%, transparent 60%);
  animation: scanline 4s infinite linear;
  pointer-events: none;
  z-index: 1;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.card-css:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(0, 255, 180, 0.1); /* Menos brilho ao passar o mouse */
}

.card-css::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #10b981, #3b82f6, #10b981);
  animation: moveLine 3s linear infinite;
  box-shadow: 0 0 8px #10b981;
}

@keyframes moveLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff; /* Branco puro */
  text-shadow: 0 0 4px rgba(0, 255, 180, 0.15); /* Leve brilho para destaque */
  letter-spacing: 0.5px;
}

.card-body {
  font-size: 0.875rem;
  color: #d1d5db;
}

/* === TEXTO GRADIENTE === */
.gradient-text-refinada {
  background-image: linear-gradient(90deg, #00b38f, #aea724, #00cba0);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  font-weight: 800;
  letter-spacing: 1px;

  text-shadow:
  1px 1px 2px rgba(0, 0, 0, 0.4),
  0 0 4px rgba(174, 167, 36, 0.25),
  0 0 6px rgba(0, 179, 143, 0.2);
}

/* === ESTILOS GERAIS + ÁRVORE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(to right, #6c8e3e, #9abf76, #b7d69b, #9abf76, #6c8e3e); /* Gradiente suave */
  font-family: "Martel Sans", sans-serif;
}

h1 {
  font-size: 5.25vmin;
  text-align: center;
  color: white;
}

p {
  font-size: max(10pt, 2.5vmin);
  line-height: 1.4;
  color: #0e390e;
  margin-bottom: 1.5rem;
}

/* === COMPONENTE ANIMADO === */
.wrap {
  display: flex;
  flex-direction: column; /* Ajuste flexível para telas pequenas */
  justify-content: center;
  width: 90%; /* Ajusta a largura para caber melhor em dispositivos móveis */
  max-width: 100%;
  height: auto; /* Ajuste de altura */
  margin: 2rem auto;
  border: 8px solid;
  border-image: linear-gradient(-50deg, green, #00b300, forestgreen, green, lightgreen, #00e600, green) 1;
  transition: 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.overlay {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 1rem 0.75rem;
  background: #186218;
  transition: 0.4s ease-in-out;
  z-index: 1;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 15vmin;
  height: 100%;
  padding: 0.5rem 0 0 0.5rem;
  border: 3px solid;
  border-image: linear-gradient(to bottom, #aea724 5%, forestgreen 35% 65%, #aea724 95%) 0 0 0 100%;
  transition: 0.3s ease-in-out 0.2s;
  z-index: 1;
}

.image-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 60vmin;
  height: 100%;
  background-image: url("https://assets.codepen.io/4787486/trees.png");
  background-size: cover;
  transition: 0.3s ease-in-out;
}

.inset {
  max-width: 50%;
  margin: 0.25em 1em 1em 0;
  border-radius: 0.25em;
  float: left;
}

.dots {
  position: absolute;
  bottom: 1rem;
  right: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 70px;
  height: 4vmin;
  transition: 0.3s ease-in-out 0.3s;
}

.dot {
  width: 1rem;
  height: 1rem;
  background: yellow;
  border: 1px solid indigo;
  border-radius: 50%;
  transition: 0.3s ease-in-out 0.3s;
}

/* Ajustes no texto principal */
/* Ajustes no texto principal */
/* Ajustes no texto principal */
.text-lg.italic {
  font-size: 1.5rem;
  color: #00b38f; /* Cor suave, mas visível */
  background: rgba(0, 0, 0, 0.3); /* Fundo suave e transparente */
  padding: 0.5rem 1rem; /* Deixa o fundo ao redor do texto */
  border-radius: 0.25rem; /* Bordas arredondadas */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Sombra suave para destacar o texto */
  font-style: italic;
  letter-spacing: 0.5px;
  display: inline-block; /* Restrige o fundo ao tamanho do texto */
  max-width: 100%; /* Limita a largura do elemento ao seu conteúdo */
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
  .text-lg.italic {
    font-size: 1.2rem; /* Ajuste para dispositivos móveis */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Sombra ajustada para dispositivos móveis */
  }
}

.tree {
  place-self: center;
  width: calc(50px + 2vw);
}

.wrap:hover .overlay {
  transform: translateX(-60vmin);
}

.wrap:hover .image-content {
  width: 30vmin;
}

.wrap:hover .overlay-content {
  border: none;
  transition-delay: 0.2s;
  transform: translateX(60vmin);
}

.wrap:hover .dots {
  transform: translateX(1rem);
}

.wrap:hover .dots .dot {
  background: white;
}

/* === ANIMAÇÕES === */
.animate {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.26, 0.53, 0.74, 1.48);
  animation-fill-mode: backwards;
}

.pop {
  animation-name: pop;
}

@keyframes pop {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

.slide {
  animation-name: slide;
}

@keyframes slide {
  0% { opacity: 0; transform: translate(4em, 0); }
  100% { opacity: 1; transform: translate(0, 0); }
}

.slide-left {
  animation-name: slide-left;
}

@keyframes slide-left {
  0% { opacity: 0; transform: translate(-40px, 0); }
  100% { opacity: 1; transform: translate(0, 0); }
}

.slide-up {
  animation-name: slide-up;
}

@keyframes slide-up {
  0% { opacity: 0; transform: translateY(3em); }
  100% { opacity: 1; transform: translateY(0); }
}

/* === DELAYS === */
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }
.delay-5 { animation-delay: 1.5s; }
.delay-6 { animation-delay: 1.8s; }
.delay-7 { animation-delay: 2.1s; }
.delay-8 { animation-delay: 2.4s; }

/* === SIDE BAR // MENU === */
#sidebar nav a.active {
  background: linear-gradient(to right, #10b981, #059669);
  color: #fff;
  font-weight: bold;
  border-radius: 0.375rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

#sidebar nav a:hover {
  background-color: rgba(52, 211, 153, 0.1);
  color: #34d399;
  transform: translateX(4px);
}

/* FOOTER EFFECTS */
#contato img:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
  will-change: transform, filter;
}

/* Ícones com classe .icon */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 6px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icon:hover .icon-img {
  transform: scale(1.1);
  filter: invert(52%) sepia(78%) saturate(640%) hue-rotate(114deg) brightness(93%) contrast(96%);
}

.icon-github .icon-img  { transform: scale(1.18); margin-top: 1px; }
.icon-mastodon .icon-img { transform: scale(1.18); margin-top: 2px; }
.icon-gmail .icon-img    { transform: scale(1.18); margin-top: 2px; }
.icon-site .icon-img     { transform: scale(1.18); margin-top: 2px; }

.divider {
  color: #4B5563;
  font-size: 1.2rem;
  margin: 0 4px;
  line-height: 0;
  position: relative;
  top: 1px;
}

.ritual-moldura {
  padding: 6px;
  border-radius: 9999px;
  background: conic-gradient(
    from 0deg,
    #a8a36b 0%,
    #3a5130 25%,
    #2d3a26 50%,
    #3a5130 75%,
    #a8a36b 100%
  );
  box-shadow:
  0 0 12px rgba(168, 163, 107, 0.2),
  inset 0 0 6px rgba(58, 81, 48, 0.2);
  transition: all 0.4s ease-in-out;
}
