@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

:root {
  --blog-card-bg: #2a2a2a;
  --blog-card-border: #3a3a3a;
  --blog-muted: #888;
  --cor-fundo: #1e1e1e;
  --cor-texto: #f0f0f0;
  --cor-destaque: rgb(143, 36, 36);
  --cor-secundaria: #a0a0a0;
}

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

button{
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

li {
  text-decoration: none;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.8s ease;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--cor-fundo);
  justify-content: center;
  color: var(--cor-texto);
  font-family: "Inter", serif;
  padding: 1.5rem;
}

/* Navbar */
nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  position: sticky;
  padding: 1.6rem 3rem;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 10px;
}

.logo-container{
  padding-left: 1rem;
  display: flex;
}

.logo-container p{
  font-family: "Playfair Display", serif;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo{
  color: var(--cor-destaque);
  font-size: 2rem;
  padding-right: 0.5rem;
  border-right: 1px solid var(--cor-destaque);
}

a:hover {
  color: var(--cor-destaque);
}

nav ul {
  display: flex;
  justify-content: space-between;
  font-weight: 100;
  transition: all 0.4s ease-in-out;
  align-items: center;
  gap: 1.5rem;
}

.toggleMenu{
  cursor: pointer;
  display: none;
  filter: invert(1)
}



/* Hero section */
#mainSection {
  background: linear-gradient(
      to bottom,
      rgba(30, 30, 30, 0) 70%,
      var(--cor-fundo) 100%
    ),
    url(assets/fundo.jpg) no-repeat 75% center;
  background-size: contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: var(--cor-texto);
  text-align: center;
  padding: 40px 20px;
}

.text h1,
.text p {
  text-shadow: 0px 4px 15px rgba(0,0,0,0.5);
}

.text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.text h1 {
  font-family: "Playfair Display", serif;
  color: var(--cor-texto);
  font-size: clamp(3rem, 10vw, 8rem);

}

.text p {
  color: var(--cor-texto);
  font-weight: 200;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  padding: 0 1rem;
  border-radius: 0.5rem;
}

.separador {
  font-size: 2rem;
  color: var(--cor-destaque);
  align-content: center;
}

.mouseIcon {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 3s infinite;
}

.sobre,
.experiences,
.gallery {
  margin-top: 100px;
  font-weight: 200;
  text-align: justify;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sobre h2,
.experiences h2,
.gallery h2,
.contact h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3rem);

}

/* Sobre */
.sobre p {
  width: 35%;
  margin-top: 2rem;
  line-height: 1.8rem;
  padding: 0 1rem;
}

.cardContainer {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
}

.cards h3 {
  font-family: "Playfair Display", serif;
  color: var(--cor-destaque);
  font-size: 1.5rem;
}

.cardInfo {
  border-left: 1px solid var(--cor-destaque);
  margin: 1rem;
  padding-left: 1rem;
  text-align: left;
}

.cardInfo p {
  margin: 0.3rem;
}

.cardInfo .year,
.cardInfo .local {
  color: var(--cor-secundaria);
  font-size: 0.9rem;
}

.cardInfo .name {
  font-family: "Playfair Display", serif;
  color: var(--cor-destaque);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Galeria */
.gallery img {
  margin-top: 2rem;
  width: 350px;
  height: 350px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.8s ease;
}

.gallery img:hover {
  filter: grayscale(0%);
}

/*  Contato */
.contact {
  height: 250px;
  background-color: var(--cor-texto);
  color: var(--cor-fundo);
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 1rem;
  text-align: center;
}

.contactInfo {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contactIcon {
  width: 60px;
  height: 60px;
  border: 2px solid var(--cor-destaque);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s;
}

.contactIcon:hover {
  background-color: var(--cor-destaque);
  transform: translateY(-3px);
}

.contactIcon img {
  width: 28px;
  transition: .3s;
}

.contactIcon:hover img {
  filter: brightness(0) invert(1);
}

/* Footer */
footer {
  display: flex;
  justify-content: center;
}

/* Animações */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}


/* Media Queries */
@media (max-width: 769px){

  #nav:has(.active) {
    min-height: 90vh;
    top: 10px;
    align-items: flex-start;
    position: sticky;
  }

  nav ul{
    flex-direction: column;
    position: absolute;
    top: 90px;
    padding: 1rem;
    gap: 1rem;
    text-align: right;
    min-width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
  }

  nav ul.active{
    display: flex;
    opacity: 1;
    visibility: visible;
  }



  .toggleMenu{
    display: block;
  }

  .sobre p{
    width: 100%;
  }

  .images{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}