@font-face {
  font-family: 'Almendra';
  src: url('./fonts/Almendra_SC/AlmendraSC-Regular.ttf') format('truetype'),
    url('./fonts/Almendra_SC/AlmendraSC-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto_Sans_Meroitic';
  src: url('./fonts/Noto_Sans_Meroitic/NotoSansMeroitic-Regular.ttf') format('truetype'),
    url('./fonts/Noto_Sans_Meroitic/NotoSansMeroitic-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1209;
  --parchment: #f0e6c8;
  --parchment2: #e8d9ae;
  --gold: #c8922a;
  --gold-light: #e8b84b;
  --gold-dim: #7a5520;
  --crimson: #8b1a1a;
  --crimson2: #c0392b;
  --stone: #2c2416;
  --stone2: #3d3020;
  --aged: #5c4a2a;
  --shadow: rgba(0, 0, 0, 0.7);
  --font-titulo: 'Almendra', serif;
  --font-body: 'Noto Sans Meroitic', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--stone);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: 'IM Fell English', Georgia, serif;
  overflow-x: hidden;
}

/* Estilo dos Botõezinhos do Nav */
.nav-controls {
  display: flex;
  gap: 1rem;
}
.control-btn {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  font-family: 'Cinzel', serif;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.control-btn:hover { background: rgba(200, 146, 42, 0.1); color: var(--gold-light); }

/* --- CSS DO MODO NORMAL (Profissional) --- */
/* Muda a fonte lúdica (Cinzel/Fell) para fontes mais limpas e remove as partículas */
body.normal-mode {
  font-family: Arial, Helvetica, sans-serif; /* Fonte padrão de leitura limpa */
}
body.normal-mode h1, 
body.normal-mode h2, 
body.normal-mode h3, 
body.normal-mode .nav-links a {
  font-family: 'Segoe UI', Roboto, sans-serif; 
  letter-spacing: normal;
}
body.normal-mode .rune-particle {
  display: none; /* Esconde as runas no modo focado */
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--stone);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 2px;
}

/* ── CURSOR ── */
body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4 2 L12 22 L15 14 L22 11 Z' fill='%23c8922a' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") 4 2, auto;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 3rem;
  background: linear-gradient(to bottom, rgba(26, 18, 9, 0.97) 0%, rgba(26, 18, 9, 0.0) 100%);
  border-bottom: 1px solid rgba(200, 146, 42, 0.2);
}

.nav-sigil {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--parchment2);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
  transform-origin: left;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(200, 146, 42, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(139, 26, 26, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, #0e0b06 0%, #1a1209 40%, #2c2416 100%);
}

/* Floating rune particles */
.rune-particle {
  position: absolute;
  color: var(--gold);
  opacity: 0;
  font-size: 1.4rem;
  animation: floatRune linear infinite;
  user-select: none;
  pointer-events: none;
  font-family: 'Cinzel', serif;
}

@keyframes floatRune {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg);
  }

  15% {
    opacity: 0.15;
  }

  85% {
    opacity: 0.08;
  }

  100% {
    opacity: 0;
    transform: translateY(-60vh) rotate(180deg);
  }
}

.hero-frame {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-ornament {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 1rem;
  animation: pulseGold 3s ease-in-out infinite;
}

@keyframes pulseGold {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.8;
  }
}

.hero-subtitle-top {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--parchment);
  text-shadow: 0 0 40px rgba(200, 146, 42, 0.3), 0 4px 12px rgba(0, 0, 0, 0.8);
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
  margin-bottom: 0.4rem;
}

.hero-title span {
  color: var(--gold-light);
}

.hero-rule {
  width: 160px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1.2rem auto;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-class {
  font-family: 'IM Fell English', serif;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.25em;
  font-weight: bolder;
  text-transform: uppercase;
  color: var(--crimson2);
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
  margin-bottom: 1.5rem;
}

.hero-bio {
  font-family: var(--font-titulo);

  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.75;
  color: var(--parchment2);
  max-width: 560px;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s 1.3s forwards;
  margin-bottom: 2.5rem;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(200, 146, 42, 0.3);
  padding: 0.8rem 1.2rem;
  background: rgba(200, 146, 42, 0.04);
  min-width: 90px;
  transition: border-color 0.2s, background 0.2s;
}

.stat-box:hover {
  border-color: var(--gold);
  background: rgba(200, 146, 42, 0.10);
}

.stat-value {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-titulo), serif;
  font-size: 0.90rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--parchment2);
  margin-top: 0.3rem;
  opacity: 0.7;
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s 1.5s forwards;
}

.btn-primary {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--crimson);
  color: var(--parchment);
  border: 1px solid var(--crimson2);
  padding: 0.85rem 2rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
}

.btn-primary:hover {
  background: var(--crimson2);
  box-shadow: 0 0 20px rgba(192, 57, 43, 0.4);
}

.btn-outline {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.85rem 2rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 16px rgba(200, 146, 42, 0.2);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SECTION BASE ── */
section {
  padding: 6rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--parchment);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim));
}

.section-divider::after {
  background: linear-gradient(to left, transparent, var(--gold-dim));
}

.divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ── ABOUT ── */
#about {
  background: #110e07;
}

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.character-sheet {
  border: 1px solid var(--gold-dim);
  padding: 2rem;
  background: rgba(200, 146, 42, 0.03);
  position: relative;
}

.character-sheet::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(200, 146, 42, 0.12);
  pointer-events: none;
}

.sheet-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  text-align: center;
}

.sheet-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--stone2);
  border: 2px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}

.avatar-placeholder {
  font-size: 4rem;
  opacity: 0.2;
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
}

.avatar-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--parchment2);
  text-align: center;
  padding: 0.4rem;
  text-transform: uppercase;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sheet-attrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.attr-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-bottom: 1px solid rgba(200, 146, 42, 0.15);
  padding-bottom: 0.5rem;
}

.attr-name {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.attr-val {
  font-family: 'IM Fell English', serif;
  font-size: 1rem;
  color: var(--parchment);
}

.about-text h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.about-text p {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--parchment2);
  margin-bottom: 1.2rem;
}

.skill-bars {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.skill-name {
  color: var(--parchment2);
}

.skill-level {
  color: var(--gold-dim);
}

.skill-bar-track {
  height: 4px;
  background: rgba(200, 146, 42, 0.15);
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold-dim), var(--gold-light));
  transition: width 1.2s ease;
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
}

/* ── QUESTS / PROJECTS ── */
#projects {
  background:
    linear-gradient(180deg, #110e07 0%, #1a1209 30%, #2c2416 100%);
}

.projects-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.quest-card {
  border: 1px solid rgba(200, 146, 42, 0.25);
  background: rgba(200, 146, 42, 0.03);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.quest-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(200, 146, 42, 0.1);
}

.quest-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.quest-card:hover::before {
  opacity: 1;
}

.quest-banner {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--stone2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-family: 'Uncial Antiqua', serif;
  color: var(--gold);
  position: relative;
  overflow: hidden;
}

.quest-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10, 8, 4, 0.9) 100%);
}

.quest-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  background: rgba(10, 8, 4, 0.85); 
  backdrop-filter: blur(4px);
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  z-index: 10;
  border: 1px solid;
}

.badge-main {
  color: var(--gold-light);
  border-color: var(--gold-dim);
}

.badge-side {
  color: #7ec8e3;
  border-color: #3a6a7a;
}

.badge-done {
  color: #4ade80; 
  border-color: rgba(74, 222, 128, 0.4);
}

.quest-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quest-rank {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson2);
  margin-bottom: 0.5rem;
}

.quest-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--parchment);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.quest-desc {
  font-family: 'IM Fell English', serif;
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(240, 230, 200, 0.7);
  flex: 1;
  margin-bottom: 1.2rem;
}

.quest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.tag {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(200, 146, 42, 0.25);
  color: var(--parchment2);
  background: rgba(200, 146, 42, 0.05);
}

.quest-footer {
  display: flex;
  gap: 0.7rem;
  border-top: 1px solid rgba(200, 146, 42, 0.15);
  padding-top: 1rem;
}

.quest-link {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.quest-link:hover {
  color: var(--gold-light);
}

.quest-link-icon {
  font-size: 0.8rem;
}

/* ── SKILLS ── */
#skills {
  background: #110e07;
}

.skills-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-tome {
  border: 1px solid rgba(200, 146, 42, 0.2);
  /* 1. Zeramos o padding para a imagem poder encostar no topo */
  padding: 0;
  background: rgba(200, 146, 42, 0.02);
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
  /* Garante que a imagem não vaze dos limites do card */
}

.skill-tome::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--crimson);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s;
  z-index: 5;
  /* Garante que a barra de destaque fique acima da imagem */
}

.skill-tome:hover {
  border-color: rgba(200, 146, 42, 0.5);
  background: rgba(200, 146, 42, 0.06);
}

.skill-tome:hover::after {
  transform: scaleY(1);
}


.tome-icon {
  width: 100%;
  height: 200px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(200, 146, 42, 0.15);
  background: rgba(0, 0, 0, 0.13);
}

.tome-icon .avatar-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}

.tome-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin: 1.5rem 1.5rem 0.6rem 1.5rem;
}

.tome-list {
  list-style: none;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05rem;
  font-size: 0.85rem;
  color: var(--parchment2);
  line-height: 2;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.tome-list li::before {
  content: '✦ ';
  color: var(--gold-dim);
  font-size: 0.6rem;
}

/* ── TIMELINE ── */
#journey {
  background: linear-gradient(180deg, #110e07 0%, #1a1209 100%);
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim) 10%, var(--gold-dim) 90%, transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
  transition: transform 0.3s ease;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -2.3rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  background: var(--gold-dim);
  transform: rotate(45deg);
  transition: background 0.2s;
}

.tl-item:hover {
  transform: translateX(10px);
}
.tl-item::before{
  content: '';
  position: absolute;
  left: -2.3rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  transition: background 0.3s ease, transform 0.3s ease;
}

.tl-item:hover::before {
  background: var(--gold);
  transform: rotate(45deg) scale(1.2);
  animation: magic-wave 1.5s infinite;
}
.tl-item .tl-date,
.tl-item .tl-title,
.tl-item .tl-desc {
  transition: transform 0.3s ease;
}

.tl-item:hover .tl-date,
.tl-item:hover .tl-title,
.tl-item:hover .tl-desc {
  transform: translateX(10px);
}

.tl-date {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  font-weight: bold;
  color: var(--crimson2);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.tl-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--parchment);
  margin-bottom: 0.5rem;
}

.tl-desc {
  font-family: 'IM Fell English', serif;
  font-size: 1.1rem;
  color: var(--parchment2);
  line-height: 1.7;
}

/* ── CONTACT ── */
#contact {
  background: #0e0b06;
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid rgba(200, 146, 42, 0.2);
  padding: 3.5rem;
  background: rgba(200, 146, 42, 0.02);
  position: relative;
}

.contact-inner::before,
.contact-inner::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(200, 146, 42, 0.08);
  pointer-events: none;
}

.contact-intro {
  font-family: 'IM Fell English', serif;
  font-size: 1.35rem;
  line-height: 1.8;
  color: var(--parchment2);
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid rgba(200, 146, 42, 0.2);
  padding: 0.8rem 1.5rem;
  background: rgba(200, 146, 42, 0.02);
  color: var(--gold-light);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: rgba(200, 146, 42, 0.1);
  border-color: var(--gold-light);
}

.contact-img-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--gold-dark);
  transition: transform 0.3s ease;
}


.contact-link:hover .contact-img-icon {
  transform: scale(1.1) rotate(5deg);
}


.profile-avatar-container {
  width: 150px;
  height: 150px;
  position: relative;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold-dark);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.avatar-animation {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ── FOOTER ── */
footer {
  background: #0a0804;
  padding: 2rem;
  border-top: 1px solid rgba(200, 146, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

footer p {
  font-family: 'Cinzel', serif;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-ornament {
  margin: 0 0.8rem;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── CODICES DE CONHECIMENTO (Pesquisa) ── */
#codices {
  background: linear-gradient(180deg, #110e07 0%, #1a1209 50%, #2c2416 100%);
}

.codices-list {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.codex-item {
  display: flex;
  flex-direction: row;
  border: 1px solid rgba(200, 146, 42, 0.25);
  background: rgba(200, 146, 42, 0.03);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.codex-item:hover {
  border-color: var(--gold);
  transform: translateX(8px); /* Desliza o códice para a direita ao passar o mouse */
  box-shadow: -8px 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(200, 146, 42, 0.1);
}

/* Fio de energia mágico à esquerda no hover */
.codex-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.codex-item:hover::before {
  opacity: 1;
}

.codex-seal {
  width: 180px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(200, 146, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  flex-shrink: 0; /* Impede que o selo seja espremido */
}

.seal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.codex-item:hover .seal-img {
  transform: scale(1.15) rotate(-5deg);
  opacity: 1;
}

.codex-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.codex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.codex-event {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson2);
  font-weight: bold;
}

.codex-date {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
}

.codex-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.4rem;
  color: var(--parchment);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.codex-abstract {
  font-family: 'IM Fell English', serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(240, 230, 200, 0.75);
  margin-bottom: 1.5rem;
  flex: 1;
}

.codex-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(200, 146, 42, 0.15);
  padding-top: 1.2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.codex-author {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-dim);
}

/* Modificador do botão menor para caber bem no rodapé do artigo */
.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.65rem;
}

/* ── ESTILO DO CÓDICE FUTURO (Slot bloqueado) ── */
.codex-future {
  border: 1px dashed var(--gold-dim);
  background: transparent;
  opacity: 0.55;
}

.codex-future:hover {
  opacity: 0.9;
  border-style: solid;
  transform: translateX(4px);
}

.codex-future .codex-title {
  color: var(--gold-dim);
}

.codex-status {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  text-transform: uppercase;
}

/* ── RESPONSIVE: TABLETS & TELAS MÉDIAS (até 850px) ── */
@media (max-width: 850px) {
  /* Força a seção "Sobre Mim" a empilhar a ficha e o texto */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  /* Reduz o espaçamento geral das seções */
  section {
    padding: 4rem 1.5rem;
  }
}

/* ── RESPONSIVE: CELULARES (até 700px) ── */
@media (max-width: 700px) {
  /* 1. NAVEGAÇÃO: Empilha a logo (KAIQUE) e os links */
  nav {
    flex-direction: column;
    padding: 1rem;
    gap: 0.8rem;
    background: rgba(26, 18, 9, 0.95); /* Fundo um pouco mais sólido para leitura */
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.85rem; /* Texto levemente menor */
  }

  /* 2. HERO SECTION: Ajuste de botões e status */
  #hero {
    padding: 8rem 1.5rem 4rem; /* Mais espaço no topo por conta do menu empilhado */
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-box {
    flex: 1 1 40%; /* Faz as caixas de status ficarem 2 por linha no mobile */
  }

  .hero-cta {
    flex-direction: column; /* Botões ficam um em cima do outro */
    width: 100%;
  }

  .btn-primary, .btn-outline {
    width: 100%;
    text-align: center;
  }

  /* 3. GRIDS: Projetos e Habilidades viram coluna única */
  .projects-grid,
  .skills-inner {
    grid-template-columns: 1fr;
  }

  /* 4. JORNADA (Timeline): Dá mais respiro para o texto espremido */
  .timeline {
    padding-left: 1.5rem;
  }
  
  .tl-item {
    padding-left: 1.5rem;
  }
  
  .tl-item::before {
    left: -1.8rem; /* Reajusta o losango brilhante para a nova margem */
  }

  /* 5. CONTATO: Reduz o bloco interno */
  .contact-inner {
    padding: 2rem 1.5rem;
  }
  
  .contact-link {
    font-size: 0.8rem;
    padding: 0.8rem 1rem;
  }

  /* 6. FOOTER: Quebra o texto e as espadas para não transbordar */
  footer p {
    font-size: 0.75rem;
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }
  
  .footer-ornament {
    margin: 0;
  }
  /* 7. CÓDICES: Passa de formato horizontal (linha) para vertical (coluna) */
  .codex-item {
    flex-direction: column;
  }
  
  .codex-seal {
    width: 100%;
    height: 120px;
    border-right: none;
    border-bottom: 1px solid rgba(200, 146, 42, 0.15);
  }
  
  .codex-seal .seal-img {
    max-width: 60px; /* Reduz um pouco o ícone no celular */
  }
  
  .codex-content {
    padding: 1.5rem;
  }
  
  .codex-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
}

/* ── RESPONSIVE: CELULARES PEQUENOS (até 400px) ── */
@media (max-width: 400px) {
  .hero-title {
    font-size: 2.8rem; /* Garante que o nome grande não quebre feio */
  }
  
  .stat-box {
    flex: 1 1 100%; /* Caixas de status viram 1 por linha em telas muito finas */
  }
}

/* --- DEFINIÇÃO DA ANIMAÇÃO DE ONDA --- */
@keyframes magic-wave {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 146, 42, 0.6); 
  }
  70% {
    box-shadow: 0 0 0 15px rgba(200, 146, 42, 0); 
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 146, 42, 0); 
  }
}