@import url('https://fonts.googleapis.com/css2?family=Victor+Mono&display=swap');

/* RESET & BASE */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Victor Mono', monospace;
  font-weight: 300;
  background-color: #000;
  color: #f0f0f0;
  overflow-x: hidden;
}

main {
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 10;
}

/* TIPOGRAFIA */
h1, h2, h3 {
  margin: 1rem 0 0.5rem;
  color: #fff;
  font-weight: 300;
  text-align: left;
}

p {
  max-width: 700px;
  text-align: left;
  line-height: 1.6;
}

/* LINKS */
a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #00000070;
  border-bottom: 1px solid #222;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  color: #fff;
  padding: 0.3rem 0.6rem;
  line-height: 1;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
  .nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

.nav-menu li a.active {
  background-color: #fff;
  color: #000;
}

/* FOOTER */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #00000070;
  border-top: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  color: #fff;
  z-index: 1000;
}

.footer-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.footer-center {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-logo {
  height: 20px;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 0.6;
}

.footer-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}

.footer-icon:hover {
  opacity: 0.6;
}

/* LOGO NA SESSÃO ADA */
.ada-logo {
  width: 100px;
  max-width: 30vw;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.ada-logo:hover {
  opacity: 0.7;
}

/* SEÇÕES SPA */
.spa-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem;
  scroll-margin-top: 80px;
}

/* WORKS GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

/* CARDS */
.card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
  z-index: 1;
}

.card h3,
.card p {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-weight: 300;
  z-index: 2;
}

.card h3 {
  top: 0;
  font-size: 1rem;
}

.card p {
  bottom: 0;
  font-size: 0.9rem;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
  }

  .card:hover h3,
  .card:hover p {
    opacity: 1;
  }
}

/* GALERIA */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.galeria img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

/* VÍDEO EMBED */
.video-wrapper {
  margin-top: 2rem;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* MODAL */
#modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

#modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #111;
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  border-radius: 8px;
  overflow-y: auto;
  max-height: 90vh;
  color: #fff;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

/* ESTILOS ESPECÍFICOS ADA/INFO */
#ada h2 {
  font-size: 2.8rem;
  letter-spacing: 0.05em;
  background-color: #00000070;
}

#ada p {
  font-size: 1.3rem;
  line-height: 1.8;
  background-color: #00000070;
}

#info h2 {
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  background-color: #00000070;
}

#info p {
  font-size: 1.1rem;
  line-height: 1.7;
  background-color: #00000070;
}

/* FUNDO CANVAS */
#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ANIMAÇÃO */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .spa-section {
    justify-content: flex-start;
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
}
