/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: white;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Screen Management */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    z-index: 1;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* Loading Screen */
#loading-screen {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.loading-content {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Start Screen */
#start-screen {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

.start-content {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}

/* Logo Styles */
.logo h1 {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.logo p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 2rem;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    margin: 1rem 0;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Instructions */
.instructions {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Marker Info */
.marker-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.marker-info p {
    margin: 0.5rem 0;
    color: #aaa;
    font-size: 0.9rem;
}

.marker-link {
    display: inline-block;
    background: #00d4ff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.marker-link:hover {
    background: #0099cc;
    transform: translateY(-2px);
}

/* AR Instructions */
.ar-instructions {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    color: white;
    font-size: 0.9rem;
}

.ar-instructions p {
    margin: 0.5rem 0;
}

/* AR Container */
#ar-container {
    background: transparent;
}

#ar-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* AR Overlay */
.ar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.ar-overlay > * {
    pointer-events: auto;
}

/* AR Controls */
.ar-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.control-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 2rem;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #00d4ff;
}

/* Video Modal */
#modal-video {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.video-info h3 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.video-info p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Contact Form */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 300px;
}

#contact-form input,
#contact-form textarea {
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #aaa;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Fallback Screen */
#fallback-screen {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.fallback-content {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.error-message h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.error-message ul {
    text-align: left;
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.error-message li {
    margin: 0.5rem 0;
    color: #aaa;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .logo p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .ar-controls {
        top: 10px;
        right: 10px;
    }
    
    .control-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    #contact-form {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .start-content,
    .fallback-content {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    #contact-form {
        min-width: 200px;
    }
}
