@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');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    color: #fff;
}

body {
    height: 100%;
    width: 100%;
    background-image: url(./images/main.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body::after {
    content: "";
    position: absolute;
    background: black;
    width: 100%;
    height: 500vh;
    top: 0;
    left: 0;
    opacity: 0.5;
}

.title {
    position: absolute;
    top: 15%;
    left: 50%;
    font-size: 2rem;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0;
}

.title.active {
    opacity: 1;
    transition: 3s;
}

section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.img-wrap {
    position: relative;
    top: 40%;
    height: 40%;
    width: 1px;
    overflow: hidden;
    opacity: 0;
}

.img-wrap.active {
    width: 40vw;
    opacity: 1;
    transition: opacity 1s, width 2s;
}

.img {
    position: absolute;
    top: 0;
    left: 0;
    width: 40vw;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.6);
}

.img-wrap.active > .img {
    transform: scale(1);
    transition: 1s ease-out;
}

h2 {
    position: absolute;
    font-size: 2rem;
    top: 70%;
    z-index: 2;
    opacity: 0;
    transition: 0.2s;
}

h2.active {
    opacity: 1;
    transition: opacity 3s;
}



@media screen and (max-width: 780px) {

    .title {
        font-size: 0.78rem;
    
    }

    h2 {
        font-size: 1.5rem;
    }

    
}