@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');

.banner{
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.banner .slider{
    position: absolute;
    width: 200px;
    height: 250px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    --carousel-depth: 550px;
    transform: perspective(1000px);
    animation: autoRun 20s linear infinite;
    z-index: 2;
}
@keyframes autoRun{
    from{
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }to{
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
}

.portal-overlay{
    position: fixed;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 5;
}
.portal-overlay::before{
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.65) 0%, rgba(210,210,210,0.15) 45%, rgba(37,40,59,0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.portal-ring{
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 0 25px rgba(255,255,255,0.6), inset 0 0 20px rgba(255,255,255,0.4);
    transform: scale(0.05);
    opacity: 0;
}
body.portal-active .portal-overlay{
    opacity: 1;
}
body.portal-active .portal-overlay::before{
    opacity: 1;
}
body.portal-active .portal-ring{
    animation: portalExpand 1.1s ease-out forwards;
}

@keyframes itemReveal{
    0%{
        opacity: 0;
        transform:
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(var(--carousel-depth))
            scale(0.6);
    }
    70%{
        opacity: 1;
    }
    100%{
        opacity: 1;
        transform:
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(var(--carousel-depth))
            scale(1);
    }
}
@keyframes portalExpand{
    0%{
        opacity: 1;
        transform: scale(0.05);
    }
    60%{
        opacity: 1;
        transform: scale(4);
        box-shadow: 0 0 40px rgba(255,255,255,0.9), inset 0 0 25px rgba(255,255,255,0.5);
    }
    100%{
        opacity: 0;
        transform: scale(20);
    }
}

.banner .slider .item{
    position: absolute;
    inset: 0 0 0 0;
    transform: 
        rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
        translateZ(var(--carousel-depth))
        scale(0.85);
    opacity: 0;
    animation: itemReveal 1s ease forwards;
    animation-delay: calc((var(--position) - 1) * 0.12s);
}
.banner .slider .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner .content{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}
.banner .content h1{
    font-family: 'ICA Rubrik';
    font-size: 16em;
    line-height: 1em;
    color: #25283B;
    position: relative;
}
.banner .content h1::after{
    position: absolute;
    inset: 0 0 0 0;
    content: attr(data-content);
    z-index: 2;
    -webkit-text-stroke: 2px #d2d2d2;
    color: transparent;
}
.banner .content .author{
    font-family: Poppins;
    text-align: right;
    max-width: 200px;
}
.banner .content h2{
    font-size: 3em;
}
.banner .content .model{
    background-image: url(images_intro/mainmodel.png);
    width: 100%;
    height: 75vh;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: auto 130%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
}
.enter-hint{
    position: absolute;
    top: 32vh;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #25283b;
    opacity: 0.75;
    cursor: pointer;
    animation: hintPulse 1.4s ease-in-out infinite;
}
@keyframes hintPulse{
    0%{
        opacity: 0.35;
        transform: translate(-50%, -50%) scale(0.94);
        text-shadow: 0 0 10px rgba(255,255,255,0.2);
    }
    50%{
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
        text-shadow: 0 0 25px rgba(255,255,255,0.6);
    }
    100%{
        opacity: 0.35;
        transform: translate(-50%, -50%) scale(0.94);
        text-shadow: 0 0 10px rgba(255,255,255,0.2);
    }
}
@media screen and (max-width: 1023px) {
    .banner .slider{
        width: 160px;
        height: 200px;
        left: calc(50% - 80px);
        --carousel-depth: 300px;
    }
    .banner .slider .item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(var(--carousel-depth))
            scale(0.85);
    }
    .banner .content h1{
        text-align: center;
        width: 100%;
        text-shadow: 0 10px 20px #000;
        font-size: 7em;
    }
    .banner .content .author{
        color: #fff;
        padding: 20px;
        text-shadow: 0 10px 20px #000;
        z-index: 2;
        max-width: unset;
        width: 100%;
        text-align: center;
        padding: 0 30px;
    }
}
@media screen and (max-width: 767px) {
    .banner .slider{
        width: 100px;
        height: 150px;
        left: calc(50% - 50px);
        --carousel-depth: 180px;
    }
    .banner .slider .item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(var(--carousel-depth))
            scale(0.85);
    }
    .banner .content h1{
        font-size: 5em;
    }
}
