@import url("./base/variables.css");
@import url("./base/animations.css");
@import url("./base/typography.css");
@import url("./components/contact-next-project.css");

section {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  scroll-snap-align: start; /* Cada sección encaja al hacer scroll */
}

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero video {
  position: absolute;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.6);
  z-index: -1;
}
/* Body */
body {
  margin: 0;
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  width: calc(100% - 100px);
  margin-left: 100px;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  background-color: var(--color-bg-dark);
  color: var(--color-bg-light);
}

/* Secciones generales */
section {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
}

/* Hero - sección 1: oscuro */
.hero {
  color: var(--color-bg-light);
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  z-index: -1;
}

.hero-text h2 {
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  font-size: 2.5rem;
  max-width: 800px;
  text-align: center;
  line-height: 1.3;
}

/* Intro - sección 2: claro */
.intro {
  background-color: var(--color-bg-light);
  color: var(--color-bg-dark);
  text-align: center;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.intro img {
  display: block;
  margin: 3rem auto 0;
  max-width: 250px;
  width: 100%;
  height: auto;
}

/* Statement - sección 3: oscuro */
.statement {
  background-color: var(--color-bg-dark);
  color: var(--color-bg-light);
  text-align: center;
  padding: 4rem 10%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reveal-text {
  opacity: 0;
}

.list {
  background-color: var(--color-bg-light);
  color: var(--color-bg-dark);
  height: 100vh;
  display: flex; /* ✅ centrado más preciso */
  justify-content: center; /* ✅ centrado horizontal */
  align-items: center; /* ✅ centrado vertical */
  text-align: center;
  overflow: hidden;
  position: relative;
}

.list .phrase {
  max-width: 800px;
  font-size: 1.6rem;
  line-height: 1.5;
  opacity: 0;
  color: inherit;
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  transition: opacity 0.6s ease;
}

.list span {
  font-weight: 400; /* resalta la parte destacada */
  color: inherit;
}

/* Closing - sección 5: oscuro */
.closing {
  background-color: var(--color-bg-dark);
  text-align: center;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.closing p {
  color: var(--color-bg-light);
  text-align: center;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 800px;
  font-size: 1.6rem;
}

.reveal-text {
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  font-size: 1.8rem;
  max-width: 800px;
  line-height: 1.4;
}

/* Efecto noise para todos los fondos claros (#eee / var(--color-bg-light)) */
.intro::before,
.list::before,
section[style*="background-color: #eee"]::before,
section[style*="background-color: var(--color-bg-light)"]::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: url("../../../img/noise.png") repeat;
  opacity: 0.2; /* sutil para elegancia */
  pointer-events: none;
  animation: grain 8s steps(10) infinite;
  z-index: 0;
}

/* Asegurar que el contenido esté encima del noise */

/* Animación grain existente */
/* Animación grain (Imported from animations.css) */

.secundary-brand {
  all: unset;
  position: fixed;
  top: 0;
  left: 10px;
  z-index: 10001;
  background: transparent;
  pointer-events: auto; /* Allows clicking on the logo */
  width: 80px;
  max-width: 80px;
}

.secundary-brand img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: auto; /* Allows interaction with the logo if needed */
}

.INDI path {
  fill: #eee;
}

.LAB path {
  fill: #eee;
}

.colorkey path {
  fill: rgb(226, 70, 43);
}

.secundary-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  max-width: 800px;
  text-align: center;
}

.hero h2 {
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  font-size: 2rem;
  max-width: 800px;
  text-align: center;
}

.indi-lab-logo {
  max-width: 250px;
  width: 100%;
  height: auto;
}

.intro p {
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  max-width: 800px;
}

.intro span {
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  max-width: 800px;
}

.intro .secundary-logo .indi-lab-logo svg .INDI path {
  fill: var(--color-bg-dark); /* Cambia INDI */
}

.intro .secundary-logo .indi-lab-logo svg .LAB path {
  fill: var(--color-bg-dark); /* Cambia LAB */
}

.navigation-arrows-whatwedo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.our-projects {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.our-projects:hover {
  transform: scale(1.05);
  color: var(--color-bg-light);
}

.brand-icon-back {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  display: block;
}

.brand-icon-back {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  display: block;
}

.corner-icon {
  position: absolute;
}
.statement {
  /* position: relative; */
  height: 100vh; /* solo para que tengas scroll */
  background: var(--color-bg-dark);
}

.content-text {
  max-width: 800px;
  margin: 0 auto;
  color: #fff;
  /* background-color: aqua; */
  position: relative; /* MUY IMPORTANTE para calcular bien */
}
.content-text h2 {
  font-family: "Figtree", sans-serif;
  font-weight: 400;
}

.corner {
  position: absolute;
  width: 50px;
  height: 50px;
  pointer-events: none;
  /* background-color: red; */
}

.top-bar {
  display: none;
}
@media (max-width: 768px) {
  body {
    margin: 0;
    line-height: 1.6;
    width: 100%;
    height: calc(100% - 100px);
    margin-top: 100px;
  }

  h3 {
    font-size: 1.2rem;
    max-width: 500px;
    line-height: 1.4;
  }

  .list .phrase {
    max-width: 500px;
    font-size: 1.4rem;
  }

  .intro p,
  .intro p span {
    font-size: 1.5rem !important;
    max-width: 80%;
  }
  .closing p {
    font-size: 1.8rem !important;
    max-width: 80%;
  }

  .hero-text h2 {
    font-size: 2.2rem;
    max-width: 500px;
    text-align: center;
    line-height: 1.3;
  }

  .reveal-text {
    font-size: 1.6rem;
    max-width: 600px;
    line-height: 1.4;
  }

  .secundary-brand {
    position: fixed;
    top: -0.5rem;
    left: 0.5;
    width: 80px;
    max-width: 90px;
    padding: 8px;
    background: transparent;
    pointer-events: none; /* Prevents interference with other elements */
    z-index: 310;
  }
}
@media (max-width: 500px) {
  .hero-text {
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    display: block; /* Make span a block element to allow margin: auto for centering */
    margin-left: auto;
    margin-right: auto;
  }

  .intro p,
  .intro p span {
    font-size: 1rem !important;
    max-width: 85%;
    margin: 0 auto;
    text-align: center;
  }
  .hero h1 {
    font-size: 2rem !important;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
  }
  .hero h2 {
    font-size: 1.8rem !important;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
  }

  .statement h2 {
    font-size: 1.2rem !important;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
  }
  .list span {
    font-size: 1rem !important;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
  }
  .list .phrase {
    font-size: 1rem !important;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
  }
  .closing p {
    font-size: 1.2rem !important;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
  }

  .indi-lab-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
  }

  .corner {
    width: 25px;
    height: 25px;
  }
}
