/* ==========================================
   RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:'Poppins',sans-serif;

    background:#050816;

    color:white;

    overflow:hidden;

}

/* ==========================================
   HEADER
========================================== */

.header{

    height:75px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 35px;

    background:rgba(15,22,42,.58);

    backdrop-filter:blur(22px);

    -webkit-backdrop-filter:blur(22px);

    border-bottom:1px solid rgba(255,255,255,.08);

    box-shadow:0 10px 30px rgba(0,0,0,.22);
}

.logo{

    font-size:30px;

    font-weight:700;

    color:#7B8CFF;

    letter-spacing:1px;

}

.search-bar{

    width:340px;

    padding:14px 20px;

    border:none;

    outline:none;

    border-radius:40px;

    background:rgba(255,255,255,.08);

    color:white;

    font-size:15px;

    transition:.3s;

}

.search-bar:focus{

    background:rgba(255,255,255,.14);

    box-shadow:0 0 25px rgba(90,130,255,.35);

}

/* ==========================================
   LAYOUT
========================================== */

.container{

    display:grid;

    grid-template-columns:270px minmax(0,1fr) 330px;

    height:calc(100vh - 75px);
    height:calc(100dvh - 75px);
    padding-bottom:20px;

    overflow:hidden;

}

/* ==========================================
   SIDEBAR
========================================== */

.sidebar{

    background:rgba(15,23,41,.72);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    padding:34px;

    padding-bottom:100px;

    border-right:1px solid rgba(255,255,255,.08);

    overflow-y:auto;

    -webkit-overflow-scrolling:touch;

}

.sidebar h2{

    margin-bottom:25px;

    color:#67c6ff;

}

.sidebar ul{

    list-style:none;

}

.sidebar li{

    background:rgba(255,255,255,.06);

    margin-bottom:15px;

    padding:16px;

    border-radius:16px;

    cursor:pointer;

    transition:.35s;

    font-weight:500;

    border:1px solid rgba(255,255,255,.04);

}

.sidebar li:hover{

    transform:translateX(8px) scale(1.03);

    background:rgba(100,140,255,.18);

}

.sidebar li.active{

    background:linear-gradient(135deg,#5865ff,#7b61ff);

    box-shadow:

        0 0 20px rgba(90,100,255,.35),

        0 0 40px rgba(90,100,255,.15);

}

/* ==========================================
   VIEWER
========================================== */

.viewer{

    padding:30px 35px;

    min-width:0;

}

.viewer h1{

    margin-bottom:18px;

    font-size:42px;

    font-weight:700;

    line-height:1.1;

}

.viewer-box{

    position:relative;

    width:100%;

    height:calc(100vh - 155px);
    height:calc(100dvh - 155px);
    
    min-height:450px;

    border-radius:20px;

    overflow:hidden;

    background:linear-gradient(180deg,#131c32,#0a1020);

    border:1px solid rgba(255,255,255,.08);

}

model-viewer{

    width:100%;

    height:100%;

    touch-action: none;

    overscroll-behavior:contain;

    -webkit-user-select:none;

    user-select:none;

}

/* ==========================================
   INFO PANEL
========================================== */

.info-panel{

    background:rgba(15,23,41,.72);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    padding:34px;

    padding-bottom:100px;

    border-left:1px solid rgba(255,255,255,.08);

    overflow-y:auto;

    overflow-wrap:break-word;

    word-wrap:break-word;

    -webkit-overflow-scrolling:touch;

}

.info-panel h2{

    color:#67c6ff;

    margin-bottom:25px;

}

.info-panel h3{

    margin-bottom:18px;

    font-size:24px;

}

.info-panel p{

    color:#d8d8d8;

    line-height:1.8;

    margin-bottom:25px;

}

.info-panel h4{

    margin-bottom:15px;

}

.info-panel ul{

    padding-left:18px;

}

.info-panel li{

    margin-bottom:12px;

}

/* ==========================================
   SCROLLBAR
========================================== */

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-thumb{

    background:#404d7d;

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:#0b1120;

}

/* ==========================================
   RESPONSIVE
========================================== */


#particles{

    position:fixed;

    inset:0;

    width:100%;

    height:100%;

    pointer-events:none;

    z-index:-1;

}

.logo{

    background:linear-gradient(90deg,#7b61ff,#67c6ff);

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;

}

.viewer h1{

    font-size:38px;

    margin-bottom:26px;

}

.info-panel h2{

    font-size:28px;

}

.info-panel h3{

    color:#74bfff;

}

.info-panel li{

    padding:8px 0;

}

.model-card{

position:relative;

overflow:hidden;

transition:all .3s ease;

padding:18px;

margin-bottom:0;

border-radius:18px;

background:rgba(255,255,255,.05);

border:1px solid rgba(255,255,255,.08);

cursor:pointer;

transition:.35s;

}

.model-card:hover{

    transform:translateY(-4px);

    box-shadow:0 12px 28px rgba(104,140,255,.18);

    border-color:rgba(120,150,255,.45);

}


.model-card.active{

    border-color:#6B8CFF;

    background:linear-gradient(
        135deg,
        rgba(107,140,255,.22),
        rgba(255,255,255,.05)
    );

    box-shadow:
        0 0 0 1px rgba(107,140,255,.35),
        0 14px 32px rgba(107,140,255,.22);

}

.model-card h3{

margin-bottom:8px;

font-size:18px;

}

.model-card p{

font-size:14px;

opacity:.8;

margin-bottom:12px;

}

.model-card span{

font-size:13px;

color:#b7d9ff;

font-weight:600;

}

#model-list{

    display:flex;

    flex-direction:column;

    gap:20px;

    padding-bottom:25px;

}

/* ==========================
   LOADING OVERLAY
========================== */

.loading-overlay{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:18px;

    background:
    radial-gradient(circle at center,
   rgba(30,45,90,.45),
   rgba(7,10,20,.92));

    backdrop-filter:blur(10px);

    -webkit-backdrop-filter:blur(10px);

    z-index:15;

    opacity:0;

    visibility:hidden;

    transition:opacity .35s ease, visibility .35s ease;

    pointer-events:none;

    user-select:none;
    -webkit-user-select:none;

}

.loading-overlay.show{

    opacity:1;

    visibility:visible;

    pointer-events:auto;

}

.loader{

    width:60px;

    height:60px;

    border:4px solid rgba(255,255,255,.18);

    border-top:4px solid #67c6ff;

    border-radius:50%;

    box-shadow:

    0 0 20px rgba(103,198,255,.30);

    animation:spin .8s linear infinite;

}

.loading-overlay p{

    color:white;

    font-size:15px;

    letter-spacing:.7px;

    animation:loadingPulse 1.5s ease-in-out infinite;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

@keyframes loadingPulse{

    0%,100%{

        opacity:.55;

    }

    50%{

        opacity:1;

    }

}

/* ==========================
   VIEWER CONTROLS
========================== */

.viewer-controls{

    position:absolute;

    top:18px;

    right:18px;

    display:flex;

    gap:12px;

    z-index:20;

}

.viewer-btn{

    width:46px;

    height:46px;

    border:none;

    border:1px solid rgba(255,255,255,.08);

    border-radius:14px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(255,255,255,.10);

    backdrop-filter:blur(12px);

    -webkit-backdrop-filter:blur(12px);

    color:white;

    font-size:22px;

    cursor:pointer;

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.viewer-btn:hover{

    background:rgba(105,140,255,.32);

    transform:translateY(-3px) scale(1.08);

    box-shadow:
        0 14px 34px rgba(90,110,255,.35);

    border-color:rgba(135,170,255,.65);

}

/* ==========================
   MODEL TRANSITION
========================== */

model-viewer{

    transition:opacity .35s ease;

}

model-viewer.fade-out{

    opacity:0;

}

model-viewer.fade-in{

    opacity:1;

}

/* Active indicator */

.model-card::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:4px;

    height:100%;

    background:#6B8CFF;

    transform:scaleY(0);

    transform-origin:top;

    transition:.3s;

}

.model-card.active::before{

    transform:scaleY(1);

}

/* ==========================
   INFO PANEL ANIMATION
========================== */

.info-panel{

    transition:opacity .25s ease,
               transform .25s ease;

}

.info-panel.updating{

    opacity:0;

    transform:translateY(10px);

}

.info-panel::after{

    content:"";

    display:block;

    height:40px;

}

/* ==========================
   CUSTOM SCROLLBARS
========================== */

/* Left sidebar */
.sidebar::-webkit-scrollbar{

    width:6px;

}

/* Right info panel */
.info-panel::-webkit-scrollbar{

    width:6px;

}

.sidebar::-webkit-scrollbar-track,
.info-panel::-webkit-scrollbar-track{

    background:transparent;

}

.sidebar::-webkit-scrollbar-thumb,
.info-panel::-webkit-scrollbar-thumb{

    background:rgba(107,140,255,.35);

    border-radius:20px;

    transition:.3s;

}

.sidebar::-webkit-scrollbar-thumb:hover,
.info-panel::-webkit-scrollbar-thumb:hover{

    background:#6B8CFF;

}

/* ==========================
   HOTSPOTS
========================== */

.hotspot{

    display:flex;

    align-items:center;

    gap:0;

    background:rgba(12,18,35,.92);

    color:white;

    border:1px solid rgba(107,140,255,.55);

    border-radius:999px;

    padding:10px;

    font-size:13px;

    font-weight:600;

    cursor:pointer;

    backdrop-filter:blur(10px);

    -webkit-backdrop-filter:blur(10px);

    box-shadow:0 8px 24px rgba(0,0,0,.35);

    transition:all .25s ease;

    animation:
        hotspotFloat 3s ease-in-out infinite,
        hotspotGlow 2.5s ease-in-out infinite;

}

.hotspot::before{

    content:"";

    width:10px;

    height:10px;

    border-radius:50%;

    background:#67c6ff;

    box-shadow:
        0 0 8px #67c6ff,
        0 0 16px #67c6ff;

}

.hotspot:hover{

    animation:none;

    transform:translateY(-2px) scale(1.05);

    border-color:#67c6ff;

    box-shadow:
        0 12px 30px rgba(103,198,255,.35);

    padding:10px 16px;

}


.hotspot.active{

    background:#67c6ff;

    color:#08111f;

    border-color:#67c6ff;

    font-weight:700;

}

.hotspot.active::before{

    background:white;

    box-shadow:
        0 0 10px white,
        0 0 20px white;

}

.hotspot-label{

    max-width:0;

    overflow:hidden;

    white-space:nowrap;

    opacity:0;

    margin-left:0;

    transition:
        max-width .3s ease,
        opacity .25s ease,
        margin-left .25s ease;

}

.hotspot:hover .hotspot-label,
.hotspot.active .hotspot-label{

    max-width:120px;

    opacity:1;

    margin-left:8px;

}

/* ==========================
   HOTSPOT FLOAT ANIMATION
========================== */

@keyframes hotspotFloat{

    0%,100%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-6px);

    }

}

@keyframes hotspotGlow{

    0%,100%{

        box-shadow:
            0 8px 24px rgba(0,0,0,.35);

    }

    50%{

        box-shadow:
            0 10px 34px rgba(103,198,255,.35);

    }

}

.hotspot{

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        opacity .25s ease,
        border-color .25s ease,
        padding .25s ease;

}

/* ==========================
   NO RESULTS MESSAGE
========================== */

#noResults{

    display:none;

    text-align:center;

    padding:40px 18px;

    color:#d8d8d8;

    animation:fadeIn .3s ease;

}

#noResults h3{

    font-size:26px;

    margin-bottom:10px;

    color:white;

}

#noResults p{

    font-size:15px;

    line-height:1.6;

    opacity:.8;

}

/* ==========================================
   WELCOME ANIMATIONS
========================================== */

.header,
.sidebar,
.viewer,
.info-panel{

    opacity:0;

}

.header{

    transform:translateY(-20px);

}

.sidebar{

    transform:translateX(-35px);

}

.viewer{

    transform:scale(.97);

}

.info-panel{

    transform:translateX(35px);

}

/* Active State */

.header.show,
.sidebar.show,
.viewer.show,
.info-panel.show{

    opacity:1;

    transform:none;

}

/* Individual timing */

.header{

    transition:
        opacity .6s ease,
        transform .6s ease;

}

.sidebar{

    transition:
        opacity .7s ease,
        transform .7s ease;

}

.viewer{

    transition:
        opacity .8s ease,
        transform .8s ease;

}

.info-panel{

    transition:
        opacity .9s ease,
        transform .9s ease;

}

/* ==========================================
   PREMIUM LOADING OVERLAY
========================================== */

#loadingSubtext{

    margin-top:8px;

    color:rgba(255,255,255,.72);

    font-size:14px;

    letter-spacing:.6px;

}

.loading-dots{

    display:flex;

    gap:8px;

    margin-top:18px;

}

.loading-dots span{

    width:8px;

    height:8px;

    border-radius:50%;

    background:#7ccfff;

    animation:loadingDots 1.2s infinite ease-in-out;

}

.loading-dots span:nth-child(2){

    animation-delay:.2s;

}

.loading-dots span:nth-child(3){

    animation-delay:.4s;

}

@keyframes loadingDots{

    0%,
    80%,
    100%{

        transform:scale(.4);

        opacity:.35;

    }

    40%{

        transform:scale(1);

        opacity:1;

    }

}

/* ==========================================
   RESPONSIVE DESIGN (v1.1)
========================================== */

/* ---------- Large Laptops ---------- */

@media (max-width:1400px){

.container{

    grid-template-columns:260px 1fr 340px;

}

.viewer{

    padding:25px;

}

.viewer h1{

    font-size:36px;

}

}


/* ---------- Tablets ---------- */

@media (max-width:1024px){

body{

    overflow-y:auto;

    overflow-x:hidden;

}

.container{

    display:flex;

    flex-direction:column;

    height:auto;

    min-height:calc(100dvh - 75px);

    overflow:visible;

    padding-bottom:24px;

}

.info-panel{

    width:100%;

    margin:20px;

    padding:28px;

    height:auto;

    max-height:none;

    overflow:visible;

}

.viewer-box{

    height:60vh;

    min-height:360px;

    max-height:500px;

}

.viewer{

    padding:20px;

    height:auto;

    min-width:0;

}

.viewer h1{

    font-size:32px;

}

.sidebar{

    padding:24px;

    max-height:none;
    
    overflow:visible;

}

.model-card{

    padding:16px;

}

.info-panel h2{

    font-size:26px;

}

.info-panel h3{

    font-size:22px;

}

.info-panel p,
.info-panel li{

    font-size:15px;

    line-height:1.7;

}

.sidebar{

    width:100%;

    height:auto;

    max-height:none;

    overflow:visible;

 }

}


/* ---------- Mobile ---------- */

@media (max-width:768px){

body{

    overflow-y:auto;

    overflow-x:hidden;

}

.header{

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:14px;

    height:auto;

    padding:18px;

}

.logo{

    text-align:center;

    font-size:26px;

}

.search-bar{

    width:100%;

    max-width:100%;

    font-size:15px;

}

.container{

    display:flex;

    flex-direction:column;

    height:auto;

    min-height:calc(100dvh - 75px);

    overflow:visible;

    padding-bottom:20px;

}

.sidebar{

    width:100%;

    height:auto;

    max-height:none;

    overflow:visible;

    border-radius:0 0 20px 20px;

}

.viewer{

    padding:18px;

    width:100%;

    height:auto;
    
    min-width:0;

}

.viewer h1{

    font-size:28px;

    text-align:center;

    line-height:1.2;

    margin-bottom:18px;

}

.viewer-box{

    width:100%;

    height:50vh;

    min-height:300px;

    max-height:420px;

    border-radius:18px;

}

.info-panel{

    width:100%;

    margin:18px;

    padding:22px;

    height:auto;

    max-height:none;

    overflow:visible;

}

.model-card{

    padding:14px;

}

.viewer-controls{

    gap:12px;

}

.viewer-btn{

    width:50px;

    height:50px;

    font-size:20px;

}

.model-card{

    min-height:72px;

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.viewer-btn{

    touch-action:manipulation;

}

.hotspot{

    padding:12px;

}

.hotspot-label{

    font-size:14px;

}

}


/* ---------- Small Phones ---------- */

@media (max-width:480px){

.header{

    padding:16px;

}

.logo{

    font-size:22px;

}

.search-bar{

    padding:12px 16px;

    font-size:14px;

}

.viewer{

    padding:15px;

}

.viewer h1{

    font-size:24px;

}

.viewer-box{

    width:100%;

    height:42vh;

    min-height:280px;

}

.info-panel{

    margin:15px;

    padding:18px;

}

.info-panel h2{

    font-size:22px;

}

.info-panel p{

    font-size:15px;

    line-height:1.7;

}

.model-card h3{

    font-size:17px;

}

.viewer-btn{

    width:46px;

    height:46px;

}

}

.hotspot{

    padding:10px;

}

.hotspot-label{

    font-size:13px;

    max-width:100px;

}

.viewer-controls{

    top:14px;

    right:14px;

}