@import url('https://fonts.googleapis.com/css2?family=VT323&family=Space+Mono:wght@400;700&display=swap');

:root{
  --bg: #fdfbf6;
  --bg-dot: #e9e2f7;
  --ink: #17151f;
  --lilac: #8a6bd1;
  --lilac-soft: #c9b6f2;
  --pink: #ff9fc7;
  --line: #17151f;
  --card-bg: #ffffff;
  --shadow: 0 10px 34px rgba(23,21,31,0.10);
  --radius: 2px;
}

*{
  box-sizing: border-box;
}

::selection{
  background: var(--lilac);
  color: #fff;
}

::-webkit-scrollbar{ width: 10px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{
  background: var(--lilac-soft);
  border: 2px solid var(--ink);
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Mono', 'Poppins', monospace;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(var(--bg-dot) 1px, transparent 1px);
  background-size: 18px 18px;
  position: relative;
  overflow-x: hidden;
}

/* effects.js */
.background{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(255,159,199,0.25), transparent 40%),
    radial-gradient(circle at 92% 88%, rgba(138,107,209,0.22), transparent 40%);
}

.content{
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 48px auto;
  padding: 32px 28px 40px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--content-shadow);
}

h1, .title{
  font-family: 'VT323', monospace;
  font-size: 2.4rem;
  letter-spacing: 1px;
  text-transform: lowercase;
  margin: 28px 0 12px;
  color: var(--ink);
}

.title::before{
  content: "// ";
  color: var(--lilac);
}


.profile-section{
  display: flex;
  justify-content: center;
  margin: 8px 0 20px;
}

.profile-img{
  max-width: 100%;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  border-radius: 6px;
}


.profile-section::before{
  content: "";
  display: none;
}

.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 1.5rem 0;
}
.separator-img {
    width: 100%;
    height: auto;
    opacity: 0.7;
    object-fit: contain;
}
.separator-img.small {
    max-width: 150px;
}
.separator-img.large {
    max-width: 500px;
}
.separator.wide {
    margin: 3rem 0;
}

/* Separador 100% ASCII/CSS: <img class="separator-img" ...> por: <div class="divider-ascii">· ⋆ ✦ ⋆ · ⋆ ✦ ⋆ ·</div> */
.divider-ascii{
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  letter-spacing: 6px;
  color: var(--lilac);
  margin: 22px auto;
  max-width: 320px;
  user-select: none;
}

.description1,
.description2{
  background: transparent;
  border: none;
  border-left: 3px solid var(--lilac-soft);
  box-shadow: none;
  padding: 4px 0 4px 16px;
  margin: 18px 0;
  line-height: 1.7;
  font-size: 0.98rem;
}

.description2{
  text-align: center;
  border-left: none;
  padding: 4px 0;
}

.description1 strong,
.description2 strong{
  color: var(--lilac);
}

.description1 a,
.description2 a,
.content a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px dotted var(--lilac);
  transition: color .15s ease, border-color .15s ease;
}

.content a:hover{
  color: var(--lilac);
  border-bottom-style: solid;
}

main > a[href="#"]{
  display: inline-block;
  margin: 4px 0 12px;
  font-family: 'VT323', monospace;
  font-size: 1.4rem;
  border: none !important;
}

.nav-menu{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
  margin: 24px 0;
  padding: 10px 6px;

}

.nav-link{
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  letter-spacing: .5px;
  text-transform: lowercase;
  color: var(--lilac-soft);
  text-decoration: none;
  padding: 2px 4px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover{
  color: var(--lilac);
}

.nav-link.active{
  color: var(--ink);
  background: var(--lilac-soft);
  padding: 2px 8px;
}

.nav-link.active::before{
  content: "▸ ";
}

.nav-divider{
  color: var(--pink);
}

.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.gallery img{
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 4px;
  box-shadow: none;
  cursor: zoom-in;
  transition: transform .15s ease, opacity .15s ease;
}

.gallery img:hover{
  transform: translateY(-2px);
  opacity: .9;
}

.gallery img:focus-visible{
  outline: 3px solid var(--lilac);
  outline-offset: 2px;
}

@media (max-width: 380px){
  .gallery{ grid-template-columns: repeat(4, 1fr); }
}

.lightbox-dialog{
  border: none;
  padding: 0;
  background: transparent;
}

.lightbox-dialog[open]{
  position: fixed;
  inset: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-fade .15s ease;
}

.lightbox-dialog::backdrop{
  background: rgba(23,21,31,0.92);
}

@keyframes lightbox-fade{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

@media (prefers-reduced-motion: reduce){
  .lightbox-dialog[open]{ animation: none; }
}

.lightbox-figure{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: min(92vw, 780px);
  max-height: 90vh;
  margin: 0;
  padding: 50px 56px;
  background: #fdfbf6;
  box-shadow: 0 16px 50px rgba(0,0,0,0.55);
}

.lightbox-figure img{
  display: block;
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next{
  position: absolute;
  background: transparent;
  border: none;
  color: var(--lilac);
  font-family: 'VT323', monospace;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  transition: color .15s ease, transform .15s ease;
}

.lightbox-close{
  top: 10px;
  right: 12px;
  font-size: 1.9rem;
}

.lightbox-prev,
.lightbox-next{
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
}

.lightbox-prev{ left: 10px; }
.lightbox-next{ right: 10px; }

.lightbox-close:hover{
  color: var(--pink);
  transform: scale(1.15);
}

.lightbox-prev:hover,
.lightbox-next:hover{
  color: var(--pink);
  transform: translateY(-50%) scale(1.15);
}

@media (max-width: 560px){
  .lightbox-figure{ padding: 40px 42px; }
  .lightbox-close{ font-size: 1.6rem; }
  .lightbox-prev,
  .lightbox-next{ font-size: 1.9rem; }
}

main > img[src*="shields.io"]{
  margin: 2px 3px;
  filter: grayscale(35%);
  transition: filter .15s ease;
}

main > img[src*="shields.io"]:hover{
  filter: grayscale(0%);
}

footer{
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  padding: 24px 12px 40px;
  
  max-width: 640px;
  margin: 0 auto;
}

footer::before{
  content: "© 2026 Thaise Oliveira. Feito com HTML, CSS, JavaScript e café.";
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

footer p{
  margin: 4px 0;
}

/* sparkle effects.js */
.sparkle{
  position: fixed;
  pointer-events: none;
  z-index: 2;
  color: var(--lilac);
  font-size: 14px;
  animation: twinkle 1.8s ease-in-out infinite;
  user-select: none;
}

@keyframes twinkle{
  0%, 100%{ opacity: .15; transform: scale(.8); }
  50%{ opacity: 1; transform: scale(1.15); }
}

.cursor-star{
  position: fixed;
  pointer-events: none;
  z-index: 999;
  font-size: 14px;
  color: var(--pink);
  animation: floatUp .7s ease-out forwards;
}

@keyframes floatUp{
  to{ transform: translateY(-24px); opacity: 0; }
}
/* Tema escuro */
:root[data-theme="dark"]{
  --bg: #15131c;
  --bg-dot: #2a2438;
  --ink: #f2eefc;
  --lilac: #b39ef0;
  --lilac-soft: #6b5a99;
  --pink: #ffb3d6;
  --card-bg: #1e1b29;
  --content-shadow: 0 10px 34px rgba(0,0,0,0.45);
}

body,
.content,
.gallery img,
.separator-img{
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.theme-toggle{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 500;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: .55;
  transition: opacity .15s ease, transform .15s ease;
}

.theme-toggle:hover{
  opacity: 1;
  transform: scale(1.08);
}

.theme-toggle img{
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
}
img{
  max-width: 100%;
  height: auto;
}

.grafico{
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 16px auto 0;
}