@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');
#bg-video{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;

    filter:
        brightness(.68)
        blur(1px)
        saturate(.9);
}

body{
    margin: 0;
    overflow-x: hidden;
}
body::before{
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(207, 6, 214, 0.4);
    z-index: -1;
    pointer-events:none;
}
.banner{
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
     --radius: 550px;
    
    
}

.banner .slider {
    position:absolute;
    width: 350px;
    height: 250px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autorun 20s linear infinite;
    z-index: 2;
}

.banner,
.top-nav{
    position:relative;
    z-index:2;
}

@keyframes autorun {
    from{
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }to{
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
    
}
.banner .slider .item{
    position: absolute;
    inset: 0 0 0 0;
    transform: 
            rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) *1deg))
            translateZ(var(--radius));
}
.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: 6em;
    line-height: 1em;
    color: #25283B;
    position: relative;
    left: 0px;
    top: 0px;
}
.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: 90%;
}
.banner .content h3{
    font-size: 2em;
    color: azure;
    
}
.banner .content .model{
    background-image: url(loom.png);
    width: 100%;
    height: 75vh;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: auto 80%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
}
@media (max-width: 768px) {
    .banner .slider{
        width: 140px;
        height: 100px;
        left: calc(50% - 70px);
        top: 35%;
    }
}
@media (max-width: 768px){
    .banner{
        --radius: 180px;
    }
}
@media (max-width:768px){

    .banner .content h1{
        position: relative;
        top: -300px;
        text-align: center;
        font-size: 3rem;
    }

    .banner .content h2{
        position: relative;
        top: -360px; /* slightly less negative than h1 */
        text-align: center;
        font-size: 2rem;
        color: aliceblue;
    }

}
@media (max-width:768px){

    .banner .content{
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        padding-bottom: 30px;
    }

}
/* @media (max-width:768px){

    .banner .content .author{
        text-align: center;
        max-width: 90%;
        margin-top: 10px;
    }

    .banner .content h3{
        font-size: 1.2rem;
        
    }

} */
 @media (max-width: 768px) {
 
    .banner .content h3 {
        font-size: 1.2rem;
        position: absolute;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        width: 100%;
        margin: 0;
    }

    .banner .content .author {
        text-align: center;
        max-width: 90%;
        margin-top: 50px; /* adjust based on h3 height */
    }
}
@media (max-width:768px){

    @keyframes autorun {
        from{
            transform: perspective(700px)
                       rotateX(-10deg)
                       rotateY(0deg);
        }
        to{
            transform: perspective(700px)
                       rotateX(-10deg)
                       rotateY(360deg);
        }
    }

}

@media (max-width:768px){

    .banner .content .model{
        height: 60vh;
        background-size: contain;
        background-position: bottom center;
    }

}

.top-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.top-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.top-nav a:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

.top-nav i {
    font-size: 16px;
}

@media (max-width:768px) {
    .top-nav {
        top: 10px;
        right: 10px;
        gap: 10px;
    }

    .top-nav a {
        padding: 8px 14px;
        font-size: 14px;
    }

    .top-nav i {
        font-size: 14px;
    }
}

.home-btn {
    position: fixed;
    top: 50%;
    right: 670px;      /* Change later for responsiveness */
    transform: translateY(-50%);
     margin-right:8px;
    padding: 14px 32px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-decoration: none;
    color: #3b2400;

    background: linear-gradient(
        145deg,
        #fff7c2 0%,
        #ffe36a 15%,
        #ffd700 35%,
        #c89b00 55%,
        #ffd84a 75%,
        #fff1a6 100%
    );

    border: 2px solid #ffe88a;
    border-radius: 50px;

    box-shadow:
        inset 0 2px 2px rgba(255,255,255,.9),
        inset 0 -3px 6px rgba(120,80,0,.25),
        0 0 10px rgba(255,215,0,.4),
        0 8px 25px rgba(255,180,0,.45);

    overflow: hidden;
    z-index: 9999;
    transition: all .35s ease;
}
.home-btn::before{
    content:"";
    position:absolute;
    top:-60%;
    left:-120%;
    width:60%;
    height:220%;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.85),
        transparent
    );

    transform:rotate(25deg);
    animation:goldShine 3s infinite;
}

.home-btn:hover{
    transform:translateY(-50%) scale(1.08);

    box-shadow:
        inset 0 2px 3px rgba(255,255,255,1),
        inset 0 -4px 8px rgba(120,80,0,.3),
        0 0 20px rgba(255,223,0,.8),
        0 12px 35px rgba(255,170,0,.7);

    color:#000;
}
@keyframes goldShine{
    0%{
        left:-150%;
    }
    100%{
        left:220%;
    }
}
@media (max-width: 768px) {
    .home-btn {
        right: 125px;
        padding: 10px 18px;
        font-size: 14px;
    }
}
/* Sound Overlay */

#sound-overlay{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    z-index:999999;
}

#sound-btn{
    display:flex;
    align-items:center;
    gap:10px;

    padding:15px 28px;

    border:none;
    border-radius:50px;

    background:rgba(0,0,0,.75);
    color:#fff;

    font-size:18px;
    cursor:pointer;

    backdrop-filter:blur(10px);

    transition:.3s;
}

#sound-btn:hover{
    transform:scale(1.05);
}

#sound-overlay.hidden{
    display:none;
}

@media(max-width:768px){

    #sound-btn{
        padding:12px 22px;
        font-size:16px;
    }

}