@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    color:#ffffff;

    overflow-x:hidden;

    background:
    radial-gradient(circle at top left,#6d28d9 0%,transparent 28%),
    radial-gradient(circle at bottom right,#ff6b00 0%,transparent 25%),
    #090914;

    min-height:100vh;

}

/*======================================================
                    SCROLLBAR
======================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#111122;

}

::-webkit-scrollbar-thumb{

    background:linear-gradient(180deg,#8b5cf6,#ff6b00);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#9d4edd;

}

/*======================================================
                    NAVBAR
======================================================*/

.navbar{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:82px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 8% 0 24px;

    backdrop-filter:blur(18px);
 
    background:rgba(10,10,22,.75);

    border-bottom:1px solid rgba(255,255,255,.08);

    z-index:9999;

}

/*======================================================
                    LOGO
======================================================*/

.logo{

    display:flex;

    align-items:center;

}

.logo-ci {
    font-size: 30px;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(to right, #f9620b, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background-color: #14142a;
    transition: .4s;
}

.logo-ci:hover {
    transform: scale(1.05);
}

/*======================================================
                    SEARCH BOX
======================================================*/

.search-box{

    width:480px;

    display:flex;

    align-items:center;

    background:#141425;

    border:1px solid rgba(255,255,255,.08);

    border-radius:40px;

    overflow:hidden;

    transition:.35s;

}

.search-box:hover{

    border-color:#8b5cf6;

    box-shadow:0 0 30px rgba(139,92,246,.35);

}

.search-box input{

    flex:1;

    border:none;

    outline:none;

    background:transparent;

    color:white;

    font-size:15px;

    padding:16px 22px;

}

.search-box input::placeholder{

    color:#999999;

}

.search-box button{

    width:60px;

    height:54px;

    border:none;

    cursor:pointer;

    background:linear-gradient(135deg,#7c3aed,#ff6b00);

    color:white;

    font-size:18px;

    transition:.35s;

}

.search-box button:hover{

    transform:scale(1.05);

}

/*======================================================
                    NAVIGATION
======================================================*/

nav ul{

    display:flex;

    gap:32px;

    list-style:none;

}

nav ul li a{

    color:white;

    text-decoration:none;

    font-size:16px;

    font-weight:500;

    position:relative;

    transition:.35s;

}

nav ul li a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-7px;

    width:0;

    height:2px;

    background:#ff6b00;

    transition:.35s;

}

nav ul li a:hover{

    color:#ff6b00;

}

nav ul li a:hover::after{

    width:100%;

}

nav ul li a.active{

    color:#ff6b00;

}

/*======================================================
                    HERO
======================================================*/

.hero{

    position:relative;

    overflow:hidden;

    width:100%;

    padding-top:140px;

    padding-bottom:90px;

    text-align:center;

}

.hero h1{

    font-size:54px;

    font-weight:700;

    background:linear-gradient(90deg,#ffffff,#8b5cf6,#ff6b00);

    background-clip:text;
    -webkit-background-clip:text;

    color:transparent;
    -webkit-text-fill-color:transparent;

    margin-bottom:20px;

}

.hero p{

    width:760px;

    max-width:92%;

    margin:auto;

    font-size:18px;

    line-height:1.9;

    color:#bdbdbd;

}

/*======================================================
                HERO GLOW
======================================================*/

.hero::before{

    content:"";

    position:absolute;

    width:420px;

    height:420px;

    background:#7c3aed;

    filter:blur(180px);

    opacity:.18;

    top:100px;

    left:-120px;

    z-index:-1;

}

.hero::after{

    content:"";

    position:absolute;

    width:420px;

    height:420px;

    background:#ff6b00;

    filter:blur(180px);

    opacity:.16;

    right:-120px;

    top:220px;

    z-index:-1;

}

/*======================================================
                CATEGORY SECTION
======================================================*/

.category-section{

    width:90%;

    margin:auto;

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:18px;

    margin-bottom:70px;

}

.category{

    border:none;

    outline:none;

    cursor:pointer;

    padding:14px 28px;

    border-radius:30px;

    background:#18182b;

    color:white;

    font-size:15px;

    border:1px solid rgba(255,255,255,.08);

    transition:.35s;

}

.category:hover{

    transform:translateY(-4px);

    background:linear-gradient(135deg,#7c3aed,#ff6b00);

    box-shadow:0 15px 40px rgba(124,58,237,.35);

}

.category.active{

    background:linear-gradient(135deg,#7c3aed,#ff6b00);

}

/*======================================================
                SHORTS GRID
======================================================*/

.shorts-container{

    width:90%;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));

    gap:35px;

    justify-items:center;

    padding-bottom:80px;

}

/*======================================================
                SHORT CARD
======================================================*/

.short-card{

    width:100%;

    max-width:290px;

    background:#151527;

    border-radius:24px;

    overflow:hidden;

    cursor:pointer;

    position:relative;

    border:1px solid rgba(255,255,255,.08);

    transition:.45s;

    display: flex;
    flex-direction: column;
    height: 100%;

}

.short-card:hover{

    transform:translateY(-12px);

    border-color:#8b5cf6;

    box-shadow:
        0 20px 60px rgba(124,58,237,.28);

}

/*======================================================
                SHORT IMAGE
======================================================*/

.short-card img{

    width:100%;

    aspect-ratio:9/16;

    object-fit:cover;

    display:block;

    transition:.45s;

}

.short-card:hover img{

    transform:scale(1.08);

}

/*======================================================
                CONTENT
======================================================*/

.short-content{
    padding:22px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    flex-grow:1;
    gap:10px;
}

.short-content h3{
    font-size:24px;
    font-weight:600;
    line-height:1.3;
    
    display:-webkit-box;
    -webkit-line-clamp:2;
    line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;

    min-height:62px;
    margin-bottom:10px;
}

.short-content p{
    color:#b9b9b9;
    font-size:15px;
    line-height:1.6;

    display:-webkit-box;
    -webkit-line-clamp:2;
    line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;

    min-height:48px;
}

/*======================================================
                WATCH BUTTON
======================================================*/

.watch-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:12px 24px;

    border-radius:40px;

    background:linear-gradient(135deg,#7c3aed,#ff6b00);

    color:white;

    font-weight:600;

    transition:.35s;

}

.short-card:hover .watch-btn{

    transform:translateX(6px);

}

/*======================================================
                DURATION BADGE
======================================================*/

.duration{

    position:absolute;

    right:15px;

    top:15px;

    background:rgba(0,0,0,.75);

    color:white;

    padding:6px 12px;

    border-radius:20px;

    font-size:13px;

    font-weight:500;

    z-index:5;

}

/*======================================================
                CATEGORY BADGE
======================================================*/

.badge{

    position:absolute;

    left:15px;

    top:15px;

    background:linear-gradient(135deg,#7c3aed,#ff6b00);

    color:white;

    padding:7px 16px;

    border-radius:25px;

    font-size:13px;

    font-weight:600;

    z-index:5;

}

/*======================================================
                PLAY ICON
======================================================*/

.short-card::after{

    content:"\f04b";

    font-family:"Font Awesome 6 Free";

    font-weight:900;

    position:absolute;

    top:42%;

    left:50%;

    transform:translate(-50%,-50%);

    width:74px;

    height:74px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:rgba(0,0,0,.45);

    color:white;

    font-size:28px;

    backdrop-filter:blur(8px);

    opacity:0;

    transition:.35s;

}

.short-card:hover::after{

    opacity:1;

}

/*======================================================
                FOOTER
======================================================*/

footer{

    margin-top:80px;

    padding:60px 20px;

    text-align:center;

    border-top:1px solid rgba(255,255,255,.08);

    background:rgba(10,10,22,.7);

    backdrop-filter:blur(10px);

}

footer h3{

    font-size:30px;

    margin-bottom:10px;

    background:linear-gradient(90deg,#8b5cf6,#ff6b00);

    background-clip:text;
    -webkit-background-clip:text;

    color:transparent;
    -webkit-text-fill-color:transparent;

}

footer p{

    color:#b9b9b9;

    font-size:16px;

}

/*======================================================
                FADE ANIMATION
======================================================*/

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.hero,
.category-section,
.short-card{

    animation:fadeUp .8s ease forwards;

}

/*======================================================
                TABLET RESPONSIVE
======================================================*/

@media(max-width:992px){

    .navbar{

        padding:0 4%;

    }

    .search-box{

        width:320px;

    }

    nav ul{

        gap:20px;

    }

    .hero h1{

        font-size:42px;

    }

    .hero p{

        font-size:16px;

    }

    .shorts-container{

        grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

        gap:28px;

    }

}

/*======================================================
                MOBILE RESPONSIVE
======================================================*/

@media(max-width:768px){

    .navbar{

        height:auto;

        padding:15px 4%;

        flex-wrap:wrap;

        gap:15px;

    }

    .logo img{

        width:52px;

        height:52px;

    }

    .search-box{

        order:3;

        width:100%;

    }

    nav{

        width:100%;

    }

    nav ul{

        justify-content:center;

        flex-wrap:wrap;

        gap:16px;

    }

 .hero{
    margin-top: 120px;
    padding-bottom:90px;
    text-align:center;
     }

    .hero h1{

        font-size:34px;

        line-height:1.2;

    }

    .hero p{

        font-size:15px;

        line-height:1.7;

    }

    .category-section{

        width:94%;

        gap:12px;

    }

    .category{

        padding:12px 20px;

        font-size:14px;

    }

    .shorts-container{

        width:94%;

        grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

        gap:24px;

    }

    .short-card{

        max-width:260px;

    }

    .short-content{

        padding:20px;

    }

    .short-content h3{

        font-size:22px;

    }

    .watch-btn{

        width:100%;

    }

}

/*======================================================
                SMALL MOBILE
======================================================*/

@media(max-width:480px){

    .hero h1{

        font-size:28px;

    }

    .hero p{

        font-size:14px;

    }

    .shorts-container{

        grid-template-columns:1fr;

    }

    .short-card{

        max-width:300px;

        width:100%;

    }

    .short-content h3{

        font-size:20px;

    }

    .short-content p{

        font-size:14px;

    }

    .duration{

        font-size:12px;

        padding:5px 10px;

    }

    .badge{

        font-size:12px;

        padding:6px 12px;

    }

    .watch-btn{

        font-size:14px;

        padding:11px 18px;

    }

    footer h3{

        font-size:24px;

    }

    footer p{

        font-size:14px;

    }

}

/*======================================================
                SCROLL ANIMATION
======================================================*/

.hidden-card{

    opacity:0;

    transform:translateY(50px);

    transition:.7s ease;

}

.show-card{

    opacity:1;

    transform:translateY(0);

}

/*======================================================
                OPTIONAL HOVER GLOW
======================================================*/

.short-card::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:24px;

    background:linear-gradient(135deg,
        rgba(124,58,237,.12),
        rgba(255,107,0,.12));

    opacity:0;

    transition:.35s;

    pointer-events:none;

}

.short-card:hover::before{

    opacity:1;

}