/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Demo container styles */
#demoContainer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1001;
    flex-direction: column;
}

#demoHeader {
    background-color: #06053a; /* Secondary color */
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

#demoFrame {
    flex-grow: 1;
    border: none;
    background-color: #f3f4f6;
}

.demo-controls {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

/* Disable text selection in demo mode */
.demo-mode {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Carousel styles */
.carousel {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.carousel-item {
    scroll-snap-align: start;
}

/* Preloader styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#preloader img {
    width: min(90vw, 600px);
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

/* Color scheme updates */
.bg-primary {
    background-color: #fb7b2c; /* Primary orange */
}

.bg-secondary {
    background-color: #06053a; /* Deep navy */
}

.text-primary {
    color: #fb7b2c;
}

.text-secondary {
    color: #06053a;
}

/* Buttons */
.btn-primary {
    background-color: #fb7b2c;
    color: white;
}

.btn-primary:hover {
    background-color: #e06d25;
}

.btn-secondary {
    background-color: #06053a;
    color: white;
}

.btn-secondary:hover {
    background-color: #040427;
}

/* Links */
a {
    color: #06053a; /* Link color */
    transition: color 0.2s;
}

a:hover {
    color: #fb7b2c; /* Primary color on hover */
}

/* Media Queries */
@media (max-width: 768px) {
    #preloader img {
        width: min(80vw, 400px);
    }
    
    #demoHeader {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    #preloader img {
        width: min(70vw, 300px);
    }
}

/* Fallback animation */
@keyframes pulse {
    0% { opacity: 0.8; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.8; transform: scale(0.95); }
}

.preloader-fallback {
    animation: pulse 1.5s infinite;
    width: 100px;
    height: 100px;
    background: #fb7b2c; /* Primary color */
    border-radius: 50%;
}

/* Gradient background update */
.bg-gradient-brand {
    background: linear-gradient(135deg, #fb7b2c 0%, #06053a 100%);
}