/* General Styles */
body {
    margin: 0;
    font-family: "Arial", sans-serif;
    background: #121212;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow-x: hidden;
}

/* Main Container */
.container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    background: #1E1E1E;
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

/* Left Side - 3D Model */
.model-section {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #222;
}

model-viewer {
    width: 100%;
    height: 100%;
}

/* Right Side - Info Section */
.info-section {
    width: 40%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #1A1A1A;
    text-align: center;
}

h1 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #ff4c4c;
}

p {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Buttons */
button {
    margin-top: 10px;
    padding: 12px 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    width: 100%;
}

#startAR {
    background: #ff4c4c;
    color: #fff;
}

#startAR:hover {
    background: #e43b3b;
}

#generateQR {
    background: #007bff;
    color: #fff;
}

#generateQR:hover {
    background: #0056b3;
}

/* QR Code Section */
#qrContainer {
    margin-top: 20px;
    padding: 10px;
    background: #292929;
    border-radius: 8px;
    text-align: center;
}

#qrcode {
    margin-top: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        height: auto;
        padding: 10px;
    }

    .container {
        flex-direction: column;
        width: 100%;
        height: auto;
        border-radius: 0;
        box-shadow: none;
    }

    .model-section {
        width: 100%;
        padding: 10px;
    }

    model-viewer {
        height: 350px;
    }

    .info-section {
        width: 100%;
        padding: 20px;
    }

    h1 {
        font-size: 22px;
    }

    p {
        font-size: 15px;
    }

    button {
        padding: 14px;
        font-size: 16px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .container {
        width: 100%;
        border-radius: 0;
    }

    model-viewer {
        height: 280px;
    }

    .info-section {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }

    button {
        font-size: 14px;
        padding: 12px;
    }

    #qrContainer {
        padding: 8px;
    }
}
