@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(45deg, #27287c, #351386, #680e83, #9b1389);
    background-size: 400% 400%;
    animation: gradientAnimation 7s ease infinite;
    background-color: #313131;
    margin: 0;
    overflow-x: hidden;

    min-width: 1200px;
    overflow-x: auto;
}

#content {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#content.fade-out {
    opacity: 0;
}

h1 {
    color: white;
    font-family: "Funnel Display", sans-serif;
    align-items: center;
    text-align: center;
    font-size: 50px;
}


@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.header {
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #00000065;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.yobimoLogo {
    width: 80px;
    margin-left: 20px;
}

.navigation {
    margin-right: 60px;
    gap: 30px;
    display: flex;
    text-align: right;
    font-family: "Funnel Display", sans-serif;
    font-weight: 600;
}

.navigation a {
    font-family: "Funnel Display", sans-serif;
    font-style: normal;
    text-decoration: none;
    color: #ffffff;
}

.container {
    
    width: 100%;
    min-width: 2%;
    margin-top: 100px;
    margin-bottom: 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 2 columns */
    justify-content: left;
    padding-left: 50px;
    height: 500px;
    min-height: 10%;
    gap: 13px;
    font-family: "Funnel Display", sans-serif;

    animation-fill-mode: forwards;
    animation-name: carouselAnimation;
    animation-duration: 2s;
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1) forwards;

  
    > div {
        flex: 0 0 180px;
        border-radius: 0.5rem;
        transition: 0.5s ease-in-out;
        box-shadow: 1px 5px 15px #00000065;
        overflow: hidden;
  
      &:nth-of-type(1) {
        background: url(carousel/carousel1.jpg)
          no-repeat 50% / cover;
      }
      &:nth-of-type(2) {
        background: url(carousel/carousel2.jpg)
          no-repeat 50% / cover;
      }
      &:nth-of-type(3) {
        background: url(carousel/carousel3.jpg)
          no-repeat 50% / cover;
      }
      &:nth-of-type(4) {
        background: url(carousel/carousel4.jpg)
          no-repeat 50% / cover;
      }
  
      .content {
        font-size: 1.1vw;
        text-align: center;
        color: #fff;
        display: flex;
        align-items: center;
        opacity: 0;
        flex-direction: column;
        height: 100%;
        justify-content: flex-end;
        background: rgb(255, 255, 255);
        background: linear-gradient(
          0deg,
          rgba(172, 172, 172, 0.676) 0%,
          rgba(0, 0, 0, 0) 100%
        );
        transform: translatey(100%);
        transition: opacity 0.5s ease-in-out, transform 0.5s 0.2s;
        visibility: hidden;
  
        span {
          display: block;
          margin-top: 5px;
          font-size: 1.2rem;
        }
      }
  
      &:hover {
        flex: 0 0 250px;
        border: 1px solid #ffffff;
        box-shadow: 1px 3px 15px #ffffff;
        transform: scale(1.07);
      }
  
      &:hover .content {
        opacity: 1;
        transform: translatey(0%);
        visibility: visible;
      }
    }
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    filter: brightness(50%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
}

.introductionSection {
    background-color: #bebebe70;
    padding-top: 2%;
    padding-bottom: 4%;
}


.webIntroSection {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px 0;
    max-width: 80%;
    height: 600px;
    overflow: hidden;
    border-radius: 20px;
    margin: 20px auto;
    margin-top: 160px;

    box-shadow: 1px 5px 15px #00000075;
}

.expertiseSection {
    position: relative;
    background-color: #0000007c;
    padding-top: 2%;
    padding-bottom: 4%;
    z-index: -1;
}

.featuredSection {
    position: relative;
    background-color: #222;
    padding-top: 1%;
    padding-left: 10%;
    padding-bottom: 4%;
    z-index: 1;
    > h1 {
        text-align: left;
    }
}

.intro-text {
    max-width: 80%;
    width: 50%;
    font-size: 1vw;
    margin: 0 auto;
    text-align: center;
}


.welcome {
    font-family: "Funnel Display", sans-serif;
	font-size: 5vw;
    text-shadow: #000000 0px 0px 20px;
    color: #ffffff;
    opacity: 0%;

    animation-fill-mode: forwards;
    animation-name: welcomeAnimation;
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1) forwards;
    animation-delay: 0.5s;
}

.paragraph {
    font-family: "Funnel Display", sans-serif;
	font-size: 1.4vw;
    text-shadow: #000000 0px 0px 20px;
    color: #ffffff;
    opacity: 0%;

    animation-fill-mode: forwards;
    animation-name: welcomeAnimation;
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1) forwards;
    animation-delay: 0.6s;
}

.containerP1 {
    font-family: "Funnel Display", sans-serif;
    border-radius: 20px;
    border: 2px solid #ffffff56;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin: 5% auto 0;
    max-width: 70%;
    min-height: 60vh;
    background-color: #ffffff80;
    box-shadow: 0px 0px 20px #fdfbfbb2;
    color: rgb(0, 0, 0);
    z-index: 1;
    flex-wrap: wrap;
    padding: 0 1%;

    .text-content {
        max-width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hParagraph1 {
        font-size: clamp(2rem, 5vw, 3.9rem);
        padding-left: 50px;
        text-align: left;

        margin-bottom: auto;
    }

    .cP1paragraph1 {
        font-size: clamp(1rem, 3vw, 1.4rem);
        padding-left: 50px;
        text-align: left;
    }

    .p1Image {
        width: 44%;
        height: auto;
        object-fit: contain;
        align-self: center;
        margin-right: 50px;
        margin-top: 20px;
    }

    @media (max-width: 768px) {
        .containerP1 {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .text-content {
            max-width: 100%;
        }
        .hParagraph1, .cP1paragraph1 {
            margin-left: 0;
            margin-inline-start: 0;
        }
        .p1Image {
            margin: 20px 0;
        }

    }

    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease-out;
}

.containerP2 {
    font-family: "Funnel Display", sans-serif;
    border-radius: 20px;
    border: 2px solid #ffffff56;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin: 5% auto 0;
    max-width: 70%;
    min-height: 40vh;
    background-color: #ffffff80;
    box-shadow: 0px 0px 20px #fdfbfbb2;
    color: rgb(0, 0, 0);
    z-index: 1;
    flex-wrap: wrap;
    padding: 0 1%;

    .text-content {
        max-width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hParagraph1 {
        font-size: clamp(2rem, 5vw, 3.9rem);
        margin-right: 100px;
        text-align: right;

        margin-bottom: auto;
    }

    .cP1paragraph1 {
        font-size: clamp(1rem, 3vw, 1.4rem);
        margin-right: 100px;
        text-align: right;
    }

    .p1Image {
        width: 44%;
        height: auto;
        object-fit: contain;
        align-self: center;
        margin-right: 50px;
        margin-top: 20px;
    }

    @media (max-width: 768px) {
        .containerP1 {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .text-content {
            max-width: 100%;
        }
        .hParagraph1, .cP1paragraph1 {
            margin-left: 0;
            margin-inline-start: 0;
        }
        .p1Image {
            margin: 20px 0;
        }

    }

    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease-out;
}

.containerP3 {
    font-family: "Funnel Display", sans-serif;
    border-radius: 3vw;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin: 5% auto 0;
    max-width: 50vw;
    min-height: 2vh;
    background-color: #d2b0ffbd;
    box-shadow: 0px 0px 200px #a058ff;
    color: rgb(0, 0, 0);
    z-index: 1;
    flex-wrap: wrap;
    padding: 0 1%;

    .text-content {
        color: white;
        max-width: 100%;
        display: contents;
    }

    .hParagraph1 {
        font-size: 4vw;
        text-align: left;
        padding-left: 2vw;
        padding-right: 2vw;
        padding-top: 4vw;
        margin: 0;
    }

    .cP1paragraph1 {
        font-size: 1vw;
        text-align: left;
        padding-left: 2vw;
        padding-right: 2vw;
        padding-bottom: 4vw;
        margin: 0;
    }

    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease-out;
}

.containerP3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: brightness(40%) blur(2px);
    z-index: -1;
    border-radius: 3vw;
}

#target-music {
    background: url('images/cP3_img1.png') no-repeat center center/cover;
}

#target-animation {
    background: url('images/cP3_img2.png') no-repeat center center/cover;
}

#target-games {
    background: url('images/cP3_img3.png') no-repeat center center/cover;
}

#target-entertainment {
    background: url('images/cP3_img4.png') no-repeat center center/cover;
}

.featuredSection {
    text-align: center;
}

.joinSection {
    background-color: white;

    font-family: "Funnel Display", sans-serif;
    padding: 0.1%;
    text-align: center;

    > h3 {
        color: black;
    }
}

.featuredP1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: left;
}

.imageContainer {
    position: relative;
    display: inline-block;
    max-width:100%;
    padding-bottom: 60px;
}

.featuredImage {
    display: block;
    width: 80%;
    height: auto;

    border: 2px solid #ffffff00;
    border-radius: 30px;
    box-shadow: 0px 0px 20px #ffffff00;

    transition: 0.3s ease-in-out;

    &:hover {
        transform: scale(1.03);
        border: 1.5px solid #ffffff;
        box-shadow: 0px 0px 10px #ffffffb4;
    }
}

.imageText {
    position: absolute;
    top: 35%;
    left: 2%;
    color: white;
    max-width: 60%;
    padding: 10px 20px;
    text-align: left;
    font-family: "Funnel Display", sans-serif;
    font-size: 2vw;
    font-weight: bold;
    text-shadow: #000000 0px 0px 15px;
    border-radius: 5px;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    font-family: "Funnel Display", sans-serif;
    width: 100%;
    background: #181818;
    color: #fff;
    padding: 15px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo p {
    margin-left: 30px;
    height: 20px;
}

.footer-links a {
    margin-right: 20px;
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}


@keyframes welcomeAnimation {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 100%;
    }
}

@keyframes carouselAnimation {
    from {
        transform: scale(80%);
        opacity: 0;
    }
    to {
        transform: scale(100%);
        opacity: 100%;
    }
}