@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*, ::before, ::after {
    box-sizing: border-box;
     font-family: "Poppins", sans-serif;
     margin: 0;
}

body {
    margin: 0;
}

header {
    position: fixed;
    top: 0;
    z-index: 3;
    width: 100%;
    height: 50px;
}

header nav {
    padding: 2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header nav a {
    text-decoration: none;
    color: white;
    font-size: 2rem;
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 9px;
}

header nav a img{
  width: 58px;
  background: #ffd84d;
  border-radius: 5px;
  padding: .2em;
}

header nav ul li a{
   color: white;
   font-size: 1.2rem;
}

.carousel {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #2b0b6f, #1b0645);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
}

.carousel .bg{
      transition-delay: 200ms;
  background-image: url("../assets/ings/bg.png");
  background-size: contain;
background-position: center;
  opacity: .2;
  position:absolute;
  inset: 0;
  min-height: 100vh;
  animation: moveBg 50s infinite ease-in-out;
  /* z-index: 99; */
}

@keyframes moveBg {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position:1000px -1000px;
  }
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.carousel-button {
    position: absolute;
    z-index: 2;
    background: none;
    border: none;
    top: 50%;
    transform: translateY(50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: .2s;
}

.carousel-button:hover,
.carousel-button:focus {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.carousel-button:focus {
    outline: 1px solid white;
}

.carousel-button.prev {
    left: 1rem;
}
.carousel-button.next {
    right: 1rem;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 200ms opacity ease-in-out;
    transition-delay: 200ms;
}

.slide[data-active] {
    opacity: 1;
    transition-delay: 0ms;
}

.slide img{
 display: block; 
 width: 100%;
 height: 100%;
 object-fit: cover; 
 object-position: center;
}

.slide div {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%);
    color: white;
    padding: 20px;
    /* max-width: 50%; */
    width: 99%;
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
  transform-style: preserve-3d;
}

.slide div h1 {
    font-size: 3.5rem;
    /* margin: 0 0 20px 0; */
    text-align: center;
    width: 60%;
    line-height:1.3 ;
}


.slide div p {
    font-size: 1.3rem;
    font-weight: 400;
    width: 50%;
    text-align: center;
    margin-top: 1.2em;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #000;
    text-decoration: none;
    margin-top: .9em;
    background: linear-gradient(135deg, #ffd84d, #ffb703);
    box-shadow:
        0 10px 25px #ffd84d81,
        inset 0 0 0 1px #ffb8036e;

    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: 2em;
    transform: rotateY(9deg);
  transform-origin: right top;
}

.hero-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );
    transform: translateX(-120%);
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 16px 35px rgba#ffd84d96,
        inset 0 0 0 1px #ffb8038f;
        transform: rotateY(0);
}

.hero-btn:hover::before {
    animation: shine 0.9s ease;
}

.hero-btn:active {
    transform: scale(0.96);
}

@keyframes shine {
    to {
        transform: translateX(120%);
    }
}

@media only screen and (max-width: 1024px) {

    .slide div h1 {
width: 70%;
font-size: 3rem;
    }

    .slide div p {
width: 70%;
    }
}

@media only screen and (max-width: 992px) {

    .slide div p {
width: 70%;
    }
}


@media only screen and (max-width: 560px) {

header nav a img{
  width: 42px;
}

header nav a {
font-size: 1.5rem;

}

    .slide div h1 {
        width: 98%;
    font-size: 2.5rem;
}

.slide div p {
    font-size: 1.1rem;
    width: 98%;
}

.hero-btn {
padding: 0.7rem 2rem;
    font-size: .9rem;

}

}