/* =================================
   BASE STYLES (Desktop First)
   ================================= */

/* Large Desktop: 1200x675 (16:9) */
#demo_container {
    text-align: center;
    margin: 0 auto 80px auto;
    border-radius: 10px;
    overflow: hidden;
    
}

#demo_container>p {
    width: 100%;
    margin: auto;
    text-align: left;

}

.demo-wrapper {
    position: relative;
    width: 1200px;
    height: 675px;
    margin-top: 40px;
    margin: auto;
    border: 1px solid var(--acc)
    
}

#demo {
    width: 99%;
    height: 99%;
    margin: auto;
    filter: blur(5px);
    transition: filter 0.3s ease;
    
}

.start-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--acc);
    color: var(--bg);
    border: none;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.start-btn:hover {
    background: var(--text);
    transform: translate(-50%, -50%) scale(1.05);
}



#demo.active {
    filter: blur(0px);
}

.exit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-btn:hover {
    background: rgba(0,0,0,0.9);
}

.demo-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh;
    z-index: 1000;
    background: var(--bg);
    margin: 0 !important;
}

.demo-wrapper.fullscreen #demo {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    transform: none !important;
}

/* =================================
   RESPONSIVE BREAKPOINTS
   ================================= */

/* Desktop: 1025px - 1199px */
@media (max-width: 1199px) and (min-width: 1025px) {
    .demo-wrapper {
        width: 960px;
        height: 540px;
        margin: 20px auto;
    }
}

/* Tablet Landscape: 768px - 1024px */
@media (max-width: 1024px) and (orientation: landscape) {
    .demo-wrapper {
        width: 768px;
        height: 432px;
        margin: 20px auto;
    }
    
    .start-btn {
        padding: 16px 32px;
        font-size: 17px;
    }
}

/* Tablet Portrait: 768px - 1023px */
@media (max-width: 1023px) and (orientation: portrait) {
    .demo-wrapper {
        width: 85vw;
        height: calc(85vw * 0.5625);
        max-width: 680px;
        max-height: 383px;
        margin: 20px auto;
    }
    
    .start-btn {
        padding: 16px 32px;
        font-size: 17px;
    }
}

/* Mobile Landscape: 320px - 767px */
@media (max-width: 767px) and (orientation: landscape) {
    .demo-wrapper {
        width: 360px;
        height: 203px;
        margin: 20px auto 40px auto;
    }
    
    .start-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Mobile Portrait: 320px - 767px */
@media (max-width: 767px) and (orientation: portrait) {
    .demo-wrapper {
        width: 90vw;
        height: calc(90vw * 0.5625); /* 16:9 aspect ratio */
        max-width: 360px;
        max-height: 203px;
        margin: 20px auto 40px auto;
    }
    
    .start-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Small Mobile Landscape: 320px - 479px */
@media (max-width: 479px) and (orientation: landscape) {
    .demo-wrapper {
        width: 320px;
        height: 180px;
    }
    
    .start-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Small Mobile Portrait: 320px - 479px */
@media (max-width: 479px) and (orientation: portrait) {
    .demo-wrapper {
        width: 85vw;
        height: calc(85vw * 0.5625); /* 16:9 aspect ratio */
        max-width: 320px;
        max-height: 180px;
    }
    
    .start-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}