body {
    margin:0;
    font-family: Arial, sans-serif;
    background:#f6f7fb;
    color:#111;
}


/* HERO */
.hero {
    background: linear-gradient(135deg,#0f172a,#1e293b);
    color:white;
    padding:80px 20px;
    text-align:center;
}

.hero-inner {
    max-width:900px;
    margin:auto;
}

.brand {
    font-size:14px;
    opacity:.8;
    margin-bottom:10px;
}

.hero h1 {
    font-size:48px;
    margin:10px 0;
}

.hero p {
    opacity:.8;
    font-size:18px;
}

.cta-btn {
    display:inline-block;
    margin-top:20px;
    padding:14px 26px;
    background:#2563eb;
    color:white;
    border-radius:10px;
    text-decoration:none;
}

/* SEARCH */
.search-bar {
    max-width:900px;
    margin:30px auto;
    padding:0 20px;
}

.search-bar input {
    width:100%;
    padding:16px;
    border-radius:12px;
    border:1px solid #ddd;
    font-size:16px;
}

/* CATEGORIES */
.categories {
    display:flex;
    overflow-x:auto;
    gap:10px;
    padding:10px 20px;
    max-width:1200px;
    margin:auto;
}

.cat {
    padding:10px 16px;
    background:white;
    border-radius:30px;
    cursor:pointer;
    white-space:nowrap;
    border:1px solid #eee;
}

.cat.active {
    background:#2563eb;
    color:white;
}

/* FEATURED */
.featured {
    max-width:1200px;
    margin:20px auto;
    padding:0 20px;
}

.featured-card {
    background:white;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

.featured-card img {
    width:100%;
    height:320px;
    object-fit:cover;
}

/* GRID */
.grid {
    max-width:1200px;
    margin:20px auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:20px;
}

.card {
    background:white;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 4px 15px rgba(0,0,0,0.06);
    transition:0.2s;
}

.card:hover {
    transform:translateY(-4px);
}

.card img {
    width:100%;
    height:180px;
    object-fit:cover;
}

.card-content {
    padding:14px;
}

.card h3 {
    font-size:16px;
    margin:0;
}

.card-meta {
    font-size:12px;
    color:#777;
    margin-top:8px;
}

/* LOAD MORE */
.load-more-wrap {
    text-align:center;
    padding:30px;
}

#loadMoreBtn {
    padding:12px 20px;
    border:none;
    border-radius:10px;
    background:#111;
    color:white;
    cursor:pointer;
}

/* PROMO */
.promo {
    background:#111827;
    color:white;
    text-align:center;
    padding:60px 20px;
    margin-top:40px;
}

.promo a {
    display:inline-block;
    margin-top:15px;
    background:#2563eb;
    color:white;
    padding:12px 20px;
    border-radius:10px;
    text-decoration:none;
}

.card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

/* IMAGE WRAPPER (fix broken images) */
.card-img {
    width: 100%;
    height: 190px;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* real image */
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* fallback icon when missing image */
.card-img.placeholder {
    font-size: 40px;
    color: #94a3b8;
}

/* CONTENT */
.card-content {
    padding: 14px 16px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #0f172a;
}

.card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 12px;
}

/* META */
.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 10px;
}

/* OPEN BUTTON */
.card a {
    display: inline-block;
    margin-top: 10px;
    font-size: 15px;
    color: #b3b3b3;
    text-decoration: none;
    font-weight: 700;
}

/* IMAGE WRAPPER */
.card-img {
    width: 100%;
    height: 190px;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #94a3b8;
    overflow: hidden;
}

/* REAL IMAGE */
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* FALLBACK STATE */
.card-img.placeholder {
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}
.scroll-loader {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 14px;
}
/* WRAPPER */
.cat-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    overflow-x: auto;
}

/* PILL INDICATOR */
#activePill {
    position: absolute;
    top: 8px;
    left: 0;
    height: 36px;
    border-radius: 30px;
    background: #2563eb;
    transition: all 0.35s ease;
    z-index: 0;
}

/* CHIPS */
.cat {
    position: relative;
    z-index: 1;
    padding: 10px 16px;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    color: #333;
    transition: color 0.2s ease;
}

.cat.active {
    color: white;
}

.featured-img {
    width: 100%;
    height: 260px;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #999;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-img.placeholder {
    background: #eaeaea;
}

.open-btn {
    display: inline-block !important;
    margin-top: 10px !important;
    padding: 8px 14px !important;
    background: #d48eff !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: 0.2s ease !important;
}

.open-btn:hover {
    background: #dfdfdf !important;
}


#introLoader{
    position:fixed;
    inset:0;
    background:#030712;
    z-index:999999;
    overflow:hidden;
}

#introCanvas{
    width:100%;
    height:100%;
    display:block;
}

.loader-center{

    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    text-align:center;
    color:white;
    pointer-events:none;
}

.loader-logo{

    font-size:18px;
    letter-spacing:6px;
    opacity:.7;
}

.loader-title{

    margin-top:10px;
    font-size:72px;
    font-weight:900;
    letter-spacing:10px;
}

.loader-subtitle{

    margin-top:20px;
    opacity:.65;
    font-size:18px;
}

#introLoader.hide{

    animation:loaderFade 1.2s forwards;
}

@keyframes loaderFade{

    to{

        opacity:0;
        visibility:hidden;
    }

}






#discoverTitle {

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: clamp(2.2rem, 9vw, 5.5rem);

    font-weight: 900;
    letter-spacing: clamp(4px, 1vw, 12px);

    color: white;
    text-align: center;
    white-space: nowrap;

    opacity: 0;
    transition: 2s;

    text-shadow:
        0 0 20px #4cc9ff,
        0 0 50px #4cc9ff;
}

#discoverTitle.show {

    opacity: 1;

    letter-spacing: clamp(6px, 1.5vw, 20px);

}

@media (max-width: 768px) {

    #discoverTitle {

        font-size: 2.8rem;
        letter-spacing: 4px;

    }

    #discoverTitle.show {

        letter-spacing: 6px;

    }

}

/* NAVBAR */

.navbar{
    position:sticky;
    top:0;
    z-index:1000;

    background:rgba(15,23,42,.85);
    backdrop-filter:blur(15px);

    border-bottom:1px solid rgba(255,255,255,.08);
}

.nav-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:80px;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:white;
    font-size:1.4rem;
    font-weight:800;
}

.logo-icon{
    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:12px;

    background:linear-gradient(
        135deg,
        #3b82f6,
        #8b5cf6
    );

    font-size:20px;
}

.navbar{
    position:sticky;
    top:0;
    z-index:1000;
}

.nav-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:15px;
    padding:12px 20px;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
}

.nav-links{
    display:flex;
    gap:24px;
    flex-wrap:wrap;
}

.nav-actions{
    display:flex;
    gap:12px;
    align-items:center;
}

/* Mobile */

@media (max-width: 768px){

    .nav-container{
        flex-direction:column;
        text-align:center;
    }

    .nav-links{
        display:none;
    }

    .nav-actions{
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
    }

    .login-btn,
    .signup-btn{
        flex:1;
        min-width:140px;
        text-align:center;
    }

    .logo span{
        font-size:1.2rem;
    }
}

.nav-links{
    display:flex;
    gap:30px;
}

.nav-links a{
    color:rgba(255,255,255,.8);
    text-decoration:none;
    transition:.3s;
}

.nav-links a:hover{
    color:white;
}

.nav-actions{
    display:flex;
    align-items:center;
    gap:15px;
}

.login-btn{
    color:white;
    text-decoration:none;
    padding:10px 18px;
    border-radius:10px;
}

.signup-btn{
    text-decoration:none;
    background:#3b82f6;
    color:white;
    padding:12px 20px;
    border-radius:12px;
    font-weight:700;
}

.signup-btn:hover{
    transform:translateY(-2px);
}

.mobile-menu-btn{
    display:none;
}

@media(max-width:768px){

    .mobile-menu-btn{
        display:block;
        background:none;
        border:none;
        font-size:28px;
        cursor:pointer;
    }

    .nav-links{
        display:none;
        width:100%;
        flex-direction:column;
        padding-top:15px;
    }

    .nav-links.active{
        display:flex;
    }
}
.mobile-menu-btn{
    display:none;
}

.mobile-buttons{
    display:none;
}

@media (max-width:768px){

    .nav-container{
        display:block;
        padding:15px;
    }

    .logo{
        display:inline-flex;
    }

    .mobile-menu-btn{
        display:block;
        float:right;
        background:none;
        border:none;
        color:white;
        font-size:30px;
        cursor:pointer;
        margin-top:5px;
    }

    .desktop-actions{
        display:none;
    }

    .nav-links{
        display:none;
        width:100%;
        margin-top:20px;
        flex-direction:column;
        gap:15px;
        text-align:center;
    }

    .nav-links.active{
        display:flex;
    }

    .mobile-buttons{
        display:flex;
        flex-direction:column;
        gap:10px;
        margin-top:15px;
    }

    .signup-btn,
    .login-btn{
        display:block;
        width:100%;
    }

    .hero h1{
        font-size:2.5rem;
    }

    .section-title{
        font-size:2rem;
    }

    .cta h2{
        font-size:2rem;
    }
    
    .nav-links{
        background:rgba(17,24,39,.98);
        backdrop-filter:blur(20px);
        border:1px solid rgba(255,255,255,.08);
        border-radius:20px;
        padding:20px;
        box-shadow:0 20px 40px rgba(0,0,0,.35);
    }
}



footer{
    text-align:center;
    padding:40px;
    border-top:1px solid rgba(255,255,255,.1);
    opacity:.6;
}



@media (max-width: 768px) {

    .hero {
        display: none;
    }

    .search-bar {
        margin-top: 12px;
        padding-top: 12px;
        width: 100;
    }
 

}





.card-actions{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:15px;
}

.jli-btn{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#1976d2;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.25s;
    text-decoration:none;
    box-shadow:0 2px 6px rgba(0,0,0,.2);
}

.jli-btn:hover{
    transform:scale(1.08);
    background:#1565c0;
}

.jli-btn img{
    width:22px;
    height:22px;
}

/* Hidden on desktop/tablet */
.jli-btn {
    display: none;
}

/* Show on phones */
@media (max-width: 768px) {
    .jli-btn {
        /* display: flex;  or inline-flex */
            display: none;
}
    }
html{
    overflow-x:hidden;
}

* {
    box-sizing: border-box;
}

/**{
    outline:1px solid red;
}*/
