@font-face{
  font-family:'AlexBrush';

  src:url('./fonts/AlexBrush.ttf')
  format('truetype');

  font-weight:normal;
}

@font-face{
  font-family:'ameclab';

  src:url('./fonts/ameclab.ttf')
  format('truetype');

  font-weight:normal;
}

@font-face{
  font-family:'ebrima';

  src:url('./fonts/ebrima.ttf')
  format('truetype');

  font-weight:normal;
}

@font-face{
  font-family:'ebrima';

  src:url('./fonts/ebrimabd.ttf')
  format('truetype');

  font-weight:bold;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: 'ebrima', 'ameclab', 'AlexBrush', sans-serif;
}

html{
  scroll-behavior:smooth;
}

body{
  display:flex;
  background:#23686c;
  color:#fff;
}

.left-section{
  position:fixed;

  left:0;
  top:0px;

  width: 30%;
  height:100vh;

  background:#17575b;

  display:flex;
  justify-content:left;
  align-items:bottom;
  z-index: 0;

  box-shadow: 0 -10px 25px rgba(0,0,0,0.08);
  
}

.left-section img{
  width: 950px;
  position:absolute;
  z-index: 0;

  left:0;
  bottom:0;
}

.right-section{
  margin-left:30%;
  width:70%;
  min-height:100vh;
  background:#17575b;
}

nav{
  position:sticky;
  top:0;

  background:#23686c;

  padding-left: 20px;
  padding-right: 60px;

  display:flex;
  justify-content:space-between;
  align-items:center;

  gap:20px;

  border-bottom:1px solid #17575b;
  border-radius: 0 0 10px 10px ;
  max-height: 90px;

  z-index:1000;
  box-shadow: 0 25px 25px rgba(0,0,0,0.08);
}

.nav-logo{
  width:200px;
  margin-left:20px;
}

/* Apenas links recebem espaçamento */
.nav-links{
  flex:1;

  display:flex;

  justify-content:space-evenly;

  padding:20px 40px;
}

nav a{
  text-decoration:none;
  color:#222;
  font-weight:bold;
  font-size:21px;

  transition:0.3s;
}

nav a:hover{
  color:#cce2d5;
}

section{
  min-height:45vh;

  padding:20px;
  padding-left: 10%;

  display:flex;
  flex-direction:column;
  justify-content:center;

  box-shadow: 0 -10px 25px rgba(0,0,0,0.08);
}

.text-columns{
  display:grid;

  grid-template-columns:repeat(3, 1fr);

  gap:25px;

  margin-top:25px;
}

.column{
  padding:20px;

  background:#23686c;

  border-radius:20px;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.08);
}

.column h2{
  margin-bottom:20px;

  text-align:center;

  font-size:26px;
}

.column p{
  text-align:left;

  line-height:1.2;

  font-size:16px;
}

h1{
  font-size:42px;
  margin-bottom:20px;
}

p{
  font-size:18px;
  line-height:1.7;
}

.download-link{
  font-weight:bold;

  text-decoration:none;

  color:#cce2d5;

  transition:0.3s;
}

.download-link:hover{
  color:#8AABA5;
  text-decoration:underline;
}

ul{
  padding-top:10px;
  padding-left:25px;
  text-align:left;
}

.carousel-container{
  position:relative;

  width:100%;

  display:flex;
  justify-content:center;
  align-items:center;

  overflow:hidden;
}

.carousel{
  position:relative;

  width:100%;
  height:400px;

  display:flex;
  justify-content:center;
  align-items:center;

  perspective:1200px;
}

.carousel-item{
  position:absolute;

  width:280px;
  height:280px;

  transition:
    transform 1s cubic-bezier(0, 1, 0, 1),
    opacity 0.5s ease,
    filter 0.9s ease;

  transform-style:preserve-3d;

  backface-visibility:hidden;
  will-change: transform;
}

.carousel-item img{
  width:100%;
  height:100%;

  object-fit:cover;

  border-radius:30px;

  box-shadow:
    0 20px 40px rgba(0,0,0,0.18);
}

/* IMAGEM CENTRAL */

.carousel-item.active{
  transform:
    translateX(0)
    rotateY(0deg)
    scale(1);

  opacity:1;

  z-index:5;

  filter:none;
}
/* ESQUERDA */

.carousel-item.left{
  transform:
    translateX(-300px)
    rotateY(-35deg)
    scale(1)
    scaleX(0.88);

  transform-origin:right center;

  opacity:0.55;

  z-index:2;

  filter:
    brightness(0.6);

  box-shadow:
    20px 20px 50px rgba(0,0,0,0.25);
}

/* DIREITA */

.carousel-item.right{
  transform:
    translateX(300px)
    rotateY(35deg)
    scale(1)
    scaleX(0.88);

  transform-origin:left center;

  opacity:0.55;

  z-index:2;

  filter:
    brightness(0.6);

  box-shadow:
    -20px 20px 50px rgba(0,0,0,0.25);
}


/* ESCONDIDOS */

.carousel-item.hidden{
  transform:scale(0.9);

  opacity:0;

  z-index:1;
}

/* escondidos fora do carrossel */

.carousel-item.offscreen-left{
    transform:
        translateX(-800px)
        rotateY(85deg)
        scale(0.6);

    opacity:0;

    z-index:0;
}

.carousel-item.offscreen-right{
    transform:
        translateX(800px)
        rotateY(-85deg)
        scale(0.6);

    opacity:0;

    z-index:0;
}


/* entrando */

.carousel-item.incoming-left{
    transform:
        translateX(-260px)
        rotateY(-65deg)
        scale(0.8);

    opacity:0;

    z-index:0;

    filter:brightness(0.6);
}

.carousel-item.incoming-right{
    transform:
        translateX(260px)
        rotateY(65deg)
        scale(0.8);

    opacity:0;

    z-index:0;

    filter:brightness(0.6);
}
/* BOTÕES */

.carousel-btn{
  top:50%;

  transform:translateY(-50%);

  background:rgba(0,0,0,0.5);

  color:white;

  border:none;

  width:50px;
  height:50px;

  cursor:pointer;

  font-size:24px;

  z-index:100;

  transition:0.3s;
}

.carousel-btn:hover{
  background:rgba(0,0,0,0.8);
}


/* Estado inicial invisível */
.hidden{
  opacity:0;
  transform:translateY(30px);
}

/* Fade da seção esquerda */
.fade-left{
  animation:fadeIn 1.2s ease forwards;
}

/* Fade das seções da direita */
.fade-up{
  animation:fadeUp 0.8s ease forwards;
}

/* Keyframes */

@keyframes fadeIn{
  from{
    opacity:0;
  }

  to{
    opacity:1;
  }
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(30px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}
@media(max-width:1450px){
  .left-section img{
    width: 650px;
    right: -60%;
    left: auto;
  }
}

@media(max-width:900px){

  body{
    flex-direction:column;
  }

  .left-section{
    position:relative;

    width:100%;
    height:300px;
  }

  .left-section img{
    height: auto;
    width: 150%;
    left: 0;
  }

  .right-section{
    margin-left:0;
    width:100%;
  }

  section{
    padding:50px 30px;
  }
}