/* VARIÁVEIS DE COR */
:root {
  --preto: #000000;
  --dourado: #d4af37;
  --dourado-claro: #f2d675;
  --vermelho: #7a1f1f;
  --cinza: #b5b5b5;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--preto);
}

* {
  cursor: url("img/icons8-cursor-32.png") 0 0, auto;
}

/* NAVBAR */
.navbar {
  display: flex;
  gap: 1.2rem;
  justify-content: center;

  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  padding: 1.2rem 0;

  background-color: var(--preto);

  z-index: 100;
}

.navbar a {
  position: relative;

  font-size: 0.7rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;

  color: var(--dourado);
  text-decoration: none;

  padding-bottom: 4px;
  opacity: 0.85;

  transition: opacity 0.3s ease;
}

.navbar a:hover {
  opacity: 1;
}

/* tracinho fino */
.navbar a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;

  width: 0;
  height: 1px;
  background-color: var(--dourado);

  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

/* ids do navbar */
#home {
  scroll-margin-top: 7rem;
}

#desenhos {
  scroll-margin-top: 5rem;
}

#sobre {
  scroll-margin-top: 3rem;
}

#contato {
  scroll-margin-top: 3rem;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: var(--preto);
  padding: 2rem;
  padding-top: 4rem;
  position: relative;
  z-index: 1;
}

/* RETÂNGULO DOURADO */
.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  max-width: 720px; /* largura do retângulo */

  padding: 3rem 4rem;
  gap: 2.5rem;

  background-color: var(--preto);
  border: 1.5px solid var(--dourado);
  border-radius: 10px;
}

/* COLUNAS */
.hero-content,
.hero-image {
  flex: 1;
}

/* TEXTO */
.hero-content {
  display: flex;
  flex-direction: column;
  max-width: 420px;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  color: var(--dourado);
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.1;
  white-space: nowrap;  /* mantém em uma linha */
}

.hero-top {  /* visual diary */
  font-size: 0.60rem;
  letter-spacing: 0.18rem;
  color: var(--dourado);
  margin-bottom: 0.5rem;
  line-height: 1;
  text-align: left;
  opacity: 0.85;
}

.hero-subtitle { /* sketches */
  align-self: flex-end;
  margin-top: 0.6rem;

  font-size: 0.75rem;
  letter-spacing: 0.18rem;
  color: var(--dourado);
  position: relative;
}

.hero-subtitle::after {
  content: "";
  display: block;
  width: 65px;
  height: 1px;
  margin-top: 0.3rem;
  margin-left: auto;
  background: var(--dourado);
}

/* BOTÃO */
.hero-button {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--dourado);
  color: var(--dourado);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.hero-button:hover {
  background-color: var(--dourado);
  color: var(--preto);
}

/* IMAGEM */
.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: clamp(120px, 30vw, 300px);
  height: auto;
}

.hero-wrapper {
  display: flex;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;

  width: min(92vw, 720px);
  height: auto;

  padding: 1rem clamp(1.2rem, 3vw, 2rem);
  gap: 1.2rem;

  background-color: var(--preto);
  border: 1.5px solid var(--dourado);
  border-radius: 10px;

  overflow: hidden;
}

.hero-content,
.hero-image {
  flex: 0 0 auto;
}

/* TÍTULO EXPLORE POR CATEGORIAS */
.explore-categories {
  position: relative;
  z-index: 3;

  max-width: 1200px;
  margin: -200px auto 40px;
  padding-inline: clamp(16px, 4vw, 48px);
  margin-left: 1.0rem;
}

.explore-top {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.18rem;
  color: var(--dourado);
  opacity: 0.8;
  margin-bottom: 6px;
}

.explore-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--dourado);
  margin: 0;
  line-height: 1.1;
  position: relative;
}

.explore-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 1px;
  margin-top: 10px;
  background-color: var(--dourado);
}

/* FILTROS — selecionar categorias */
.filters {
  display: flex;
  justify-content: flex-start;
  gap: 2.5rem;
  position: relative;
  padding-left: 4rem;
  z-index: 4;
}

.filters select {
  background-color: rgba(20, 20, 20, 0.75);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  width: 270px;
  font-size: 1.0rem;
  letter-spacing: 0.1rem;
  padding: 1.2rem 4.5rem 1.2rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(202, 164, 106, 0.45);
  cursor: pointer;

  transition:
    border 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

.filters select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 5rem;
  padding: 0.7rem 3.2rem 0.7rem 1.4rem;
  border-radius: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.8rem center;
  background-size: 1.3rem;
}

/* hover */
.filters select:hover {
  border-color: rgba(202, 164, 106, 0.8);
  box-shadow: 0 8px 25px rgba(202, 164, 106, 0.15);
  transform: translateY(-2px);
}

/* focus */
.filters select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(202, 164, 106, 0.25);
}

/* opções */
.filters option {
  background-color: #111;
  color: #fff;
}

/* GALERIA DE DESENHOS */
.gallery-grid {
  margin-left: 1.0rem;
  margin-right: 1.0rem;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
  z-index: 4;
}

/* CARD */
.drawing-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.3s ease;
}

.drawing-card:hover {
  transform: translateY(-6px);
}

/* IMAGEM */
.drawing-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* LEGENDA */
.drawing-caption {
  font-size: 0.75rem;
  color: #c9c9c9;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

/* EXPANDIR */ 
.drawing-image-wrapper {
  position: relative;
}

.expand-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;

  width: 34px;
  height: 34px;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.6);
  color: #fff;

  border: none;
  cursor: pointer;

  font-size: 1rem;

  display: flex;
  align-items: center;
  justify-content: center;

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

  line-height: 1;
  padding-bottom: 1px;
}

.drawing-card:hover .expand-btn {
  opacity: 1;
  transform: scale(1);
}

.expand-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;

  z-index: 999;
}

.image-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;

  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* SOBRE */
.about {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.4rem;
  margin-top: 6.8rem;
  position: relative;

  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.about.show {
  opacity: 1;
  transform: translateY(0);
}

.about-frame {
  position: relative;
  width: 100%;
  max-width: 820px;
  padding: 2.6rem 2.8rem;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.18);

  /* layout lateral */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* brilho */
.about-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: radial-gradient(
    circle at top left,
    rgba(212, 175, 55, 0.10),
    transparent 30%
  );
  pointer-events: none;
}

.about-text {
  max-width: 60%; 
}

.about-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.28rem;
  color: var(--dourado);
  margin-bottom: 0.9rem;
  opacity: 0.75;
}

.about-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  line-height: 1.25;
  margin-bottom: 1.6rem;
  font-weight: 500;
  color: var(--dourado);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.2rem;
}

.about-image {
  width: 40%;
  display: flex;
  justify-content: flex-end;
}

.about-image img {
  width: 100%;     
  max-width: 300px;
  height: auto;
}

/*LINHA VERTICAL*/
.about::before {
  content: "";
  position: absolute;
  left: 1.8rem;
  top: 26%;
  bottom: 26%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(212, 175, 55, 0.25),
    transparent
  );
}

/*  CONTATO */
.footer,
.creditos {
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer.active,
.creditos.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* REDES SOCIAIS */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 0 3rem;
}

.share {
  display: flex;
  gap: 3.5rem;
}

.share a img {
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.share a:hover img {
  opacity: 1;
  transform: scale(1.15);
}

/* direitos reservados */
.creditos {
  text-align: center;
  padding-bottom: 3rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ADAPTAÇÃO MOBILE */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .hero-wrapper {
    padding: 2rem 1.4rem;
  }

  .explore-categories {
    margin-top: 1.5rem;
    text-align: left;
    padding-left: 0.3rem;
  }

  .category-covers {
    margin-top: 1rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .header section {
    display: flex;
    justify-content: center;
  }

  .navbar {
    justify-content: center;
  }

  /* FILTROS */
  .filters {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;

    align-items: center;
    justify-content: center;

    padding-left: 0;
    margin: 0;
  }

  .filters select {
    font-size: 0.7rem;
    padding: 0.7rem 5rem 0.7rem 1.3rem;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }

  .gallery-section { /* GALERIA */
    padding: 3rem 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }

  /* SOBRE */
  .about {
    min-height: auto;
    padding: 1.8rem 1rem;

    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .about.show {
    opacity: 1;
    transform: translateY(0);
  }

  .about::before {
    display: none;
  }

  .about-frame {
    padding: 1.2rem 1.4rem;
    border-radius: 16px;
    max-width: 100%;
  }

  .about-frame::before {
    border-radius: 16px;
    background: radial-gradient(circle at top left,
        rgba(212, 175, 55, 0.06),
        transparent 65%);
  }

  .about-text {
    max-width: 100%;
  }

  .about-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.22rem;
    margin-bottom: 0.6rem;
  }

  .about-text h2 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.9rem;
  }

  .about-text p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .about-text p:last-child {
    margin-bottom: 0;
  }

  .about-image {
    display: none;
  }  

  .footer {
    padding: 3rem 0 1.5rem; 
  }

  /* REDES SOCIAIS */
  .share {
    gap: 1.8rem; 
  }

  .share a img {
    width: 28px;  
    height: auto;
  }

  .creditos {   /* direitos reservados */
    font-size: 0.8rem;
    padding-bottom: 1.5rem;
  }
}