/* 
 * MODAL STYLES
 * Styling for solution detail modals and interactive components
 */

/* Solution Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 25px;
    max-width: 92vw;
    max-height: 92vh;
    width: 1000px;
    height: auto;
    min-height: 750px;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: var(--transition-bounce);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, var(--deep-space) 0%, #2a2626 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 25px 25px 0 0;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: rgba(255, 95, 7, 0.2);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--light-atmosphere);
    margin-bottom: 1rem;
}

.modal-body {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--martian-orange);
    border-radius: 4px;
    opacity: 0.7;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #ff7b3d;
    opacity: 1;
}

.mockup-section {
    margin-bottom: 3rem;
}

.mockup-title {
    font-size: 1.5rem;
    color: var(--deep-space);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mockup-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed var(--dark-grey);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mockup-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 95, 7, 0.1), transparent);
    animation: shimmer 2s infinite;
}

.mockup-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.mockup-placeholder-text {
    font-size: 1.1rem;
    color: var(--dark-grey);
    font-weight: 500;
    margin-bottom: 1rem;
}

.mockup-placeholder-subtitle {
    font-size: 0.9rem;
    color: var(--dark-grey);
    opacity: 0.6;
    font-style: italic;
}

.feature-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item-detailed {
    background: var(--background-grey);
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid var(--martian-orange);
    transition: var(--transition-smooth);
}

.feature-item-detailed:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-item-detailed h4 {
    color: var(--deep-space);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item-detailed p {
    color: var(--deep-space);
    font-size: 0.9rem;
    line-height: 1.5;
}

.technical-specs {
    background: var(--deep-space);
    color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.technical-specs h4 {
    color: var(--martian-orange);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.spec-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    transition: var(--transition-smooth);
}

.spec-item:hover {
    background: rgba(255, 95, 7, 0.1);
    transform: translateY(-2px);
}

.spec-label {
    color: var(--light-atmosphere);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.spec-value {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

/* Interactive Elements for Future Mockups */
.mockup-interface {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    margin: 1rem 0;
}

.mockup-interface.loading {
    opacity: 0.6;
    pointer-events: none;
}

.interactive-demo {
    border: 2px solid var(--martian-orange);
    border-radius: 15px;
    padding: 2rem;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(255, 95, 7, 0.1);
}

.demo-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.demo-button {
    background: var(--martian-orange);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.demo-button:hover {
    background: var(--martian-dark-orange);
    transform: translateY(-2px);
}

.demo-button.secondary {
    background: var(--light-atmosphere);
}

.demo-button.secondary:hover {
    background: var(--dark-atmosphere);
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .feature-breakdown {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .mockup-placeholder {
        padding: 2rem 1rem;
        min-height: 150px;
    }
    
    .mockup-placeholder-icon {
        font-size: 3rem;
    }
    
    .demo-controls {
        flex-direction: column;
    }
    
    .demo-button {
        width: 100%;
        text-align: center;
    }
}

/* Technical Specs - Back to Original Simple Style */
.technical-specs {
    background: var(--deep-space);
    color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.technical-specs h4 {
    color: var(--martian-orange);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.spec-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-item:hover {
    background: rgba(255, 95, 7, 0.1);
    transform: translateY(-2px);
}

.spec-label {
    color: var(--light-atmosphere);
    font-size: 0.9rem;
    font-weight: 600;
}

.spec-value {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

/* ===== ENHANCED MODAL STYLES - SPLASH SCREEN & CAROUSEL ===== */

/* Modal Splash Screen */
.modal-splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--deep-space);
    border-radius: 25px;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.modal-splash-overlay.hidden {
    display: none;
}

.modal-splash-overlay.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.splash-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.splash-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) blur(1px);
}

.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(31, 27, 27, 0.8) 0%, 
        rgba(255, 95, 7, 0.2) 50%, 
        rgba(31, 27, 27, 0.9) 100%);
}

.splash-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.splash-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(255, 95, 7, 0.5));
}

.splash-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--martian-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.splash-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 500px;
    line-height: 1.4;
}

.splash-metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}

.splash-metric {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 95, 7, 0.3);
    flex: 1;
    max-width: 140px;
    min-width: 100px;
}

.metric-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--martian-orange);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.splash-metric .metric-label {
    font-size: 0.8rem;
    color: var(--white);
    opacity: 1;
    line-height: 1.2;
}

.splash-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.splash-cta {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
    white-space: nowrap;
}

.splash-cta.primary {
    background: linear-gradient(135deg, var(--martian-orange) 0%, #ff7b3d 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(255, 95, 7, 0.4);
}

.splash-cta.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 95, 7, 0.6);
}

.splash-cta.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.splash-cta.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--martian-orange);
}

.splash-progress {
    align-self: center;
}

.progress-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.progress-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.progress-dots .dot.active {
    background: var(--martian-orange);
    transform: scale(1.2);
}

/* Modal Carousel */
.modal-carousel {
    position: relative;
    flex: 1;
    overflow: hidden;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
}

.modal-carousel.hidden {
    display: none;
}

.modal-carousel.fade-in {
    animation: fadeInUp 0.5s ease;
}

.carousel-slide {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem 0.5rem 2rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideInEnhanced 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-content {
    max-width: 100%;
    margin: 0 auto;
    min-height: 100%;
    padding-bottom: 1rem;
}

.slide-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--martian-orange);
    flex-shrink: 0;
}

.slide-header h2 {
    color: var(--deep-space);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.slide-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.slide-body {
    padding: 0;
    flex: 1;
}

/* Problem-Solution Grid */
.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.problem-side, .solution-side {
    padding: 1.25rem;
    border-radius: 15px;
}

.problem-side {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffe6e6 100%);
    border-left: 4px solid #dc3545;
}

.solution-side {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    border-left: 4px solid var(--martian-orange);
}

.problem-side h3, .solution-side h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.problem-side ul, .solution-side ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.problem-side li, .solution-side li {
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.problem-side li::before {
    content: '❌';
    position: absolute;
    left: 0;
}

.solution-side li::before {
    content: '✅';
    position: absolute;
    left: 0;
}

/* Features Showcase */
.features-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.feature-showcase-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--background-grey);
    border-radius: 15px;
    border-left: 4px solid var(--martian-orange);
    transition: all 0.3s ease;
}

.feature-showcase-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 95, 7, 0.15);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--martian-orange);
}

.feature-content h4 {
    margin: 0 0 0.4rem 0;
    color: var(--deep-space);
    font-size: 1rem;
}

.feature-content p {
    margin: 0;
    color: #666;
    line-height: 1.4;
    font-size: 0.9rem;
}

.feature-preview {
    padding: 0.5rem 1rem;
    background: var(--martian-orange);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-preview:hover {
    background: #ff7b3d;
}

/* Demo Container Enhanced */
.demo-container-enhanced {
    background: var(--background-grey);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid var(--martian-orange);
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
}

/* Impact Dashboard */
.impact-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* ROI Calculator Enhanced */
.roi-calculator {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #2196f3;
    max-height: 500px;
    overflow-y: auto;
}

.roi-calculator h3 {
    margin-bottom: 1.5rem;
    color: #1976d2;
}

.roi-inputs {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1976d2;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #2196f3;
}

.roi-results {
    border-top: 2px solid #2196f3;
    padding-top: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.result-value {
    color: #2196f3;
    font-size: 1.1rem;
}

.savings-amount {
    color: #2196f3;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.savings-calculation {
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.3;
    font-style: italic;
}

.roi-calculate {
    background: var(--martian-orange);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.roi-calculate:hover {
    background: #ff7b3d;
    transform: translateY(-2px);
}

/* Impact Benefits Section */
.impact-benefits {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--martian-orange);
    max-height: 500px;
    overflow-y: auto;
}

.impact-benefits h3 {
    margin-bottom: 1.5rem;
    color: var(--deep-space);
    font-size: 1.3rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefit-item2 {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.benefit-item2:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(255, 95, 7, 0.15);
}

.benefit-icon {
    font-size: 1.2rem;
    color: var(--martian-orange);
    flex-shrink: 0;
}

.benefit-text {
    color: var(--deep-space);
    font-weight: 500;
    line-height: 1.4;
}

.technical-specs-enhanced {
    background: var(--deep-space);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
}

.technical-specs-enhanced h3 {
    color: var(--martian-orange);
    margin-bottom: 1.5rem;
}

.specs-grid-enhanced {
    display: grid;
    gap: 1rem;
}

.spec-item-enhanced {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Carousel Navigation */
.carousel-navigation {
    background: linear-gradient(135deg, var(--deep-space) 0%, #2a2626 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 25px 25px;
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 80px;
}

.carousel-nav-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    justify-content: space-between;
}

.nav-progress {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    position: absolute;
    top: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
}

.nav-btn {
    background: var(--martian-orange);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 10px rgba(255, 95, 7, 0.3);
}

.nav-btn:hover:not(:disabled) {
    background: #ff7b3d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 95, 7, 0.4);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.slide-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.slide-indicators .indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.slide-indicators .indicator:before {
    content: attr(data-slide-num);
}

.slide-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.slide-indicators .indicator.active {
    background: var(--martian-orange);
    color: var(--white);
    transform: scale(1.2);
    border-color: var(--martian-orange);
    box-shadow: 0 0 20px rgba(255, 95, 7, 0.4);
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInEnhanced {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: translateX(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Progress indicator pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Tablet Responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
    .modal-content {
        max-width: 92vw;
        max-height: 90vh;
        width: 850px;
        min-height: 700px;
    }
    
    .carousel-navigation {
        padding: 0.9rem 1.5rem;
        min-height: 75px;
    }
    
    .slide-indicators .indicator {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .nav-btn {
        padding: 0.65rem 1.4rem;
        font-size: 0.85rem;
    }
}

/* Mobile Responsiveness for Enhanced Modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        width: 100%;
        height: 100%;
        min-height: 600px;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 1.5rem;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-title {
        font-size: 1.6rem;
    }
    
    .modal-subtitle {
        font-size: 1rem;
    }
    
    .carousel-navigation {
        padding: 0.75rem 1rem;
        border-radius: 0 0 15px 15px;
        min-height: 70px;
        position: relative;
    }
    
    .carousel-nav-section {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .slide-indicators {
        gap: 0.4rem;
    }
    
    .slide-indicators .indicator {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .nav-progress {
        position: absolute;
        top: 0.25rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.7rem;
    }
    
    .splash-content {
        padding: 1.5rem 1rem;
    }
    
    .splash-title {
        font-size: 1.6rem;
    }
    
    .splash-subtitle {
        font-size: 0.9rem;
    }
    
    .splash-metrics {
        flex-direction: row;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .splash-metric {
        padding: 0.5rem;
        min-width: 80px;
    }
    
    .metric-number {
        font-size: 1.2rem;
    }
    
    .metric-label {
        font-size: 0.7rem;
    }
    
    .splash-actions {
        flex-direction: row;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .splash-cta {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .problem-solution-grid {
        grid-template-columns: 1fr;
    }
    
    .features-showcase {
        grid-template-columns: 1fr;
    }
    
    .feature-showcase-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .impact-dashboard {
        grid-template-columns: 1fr;
    }
    
    .carousel-navigation {
        padding: 0.75rem 1rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Chat Demo Specific Styles */
.chat-message-ai {
    background: #e3f2fd;
    padding: 0.75rem;
    border-radius: 12px 12px 12px 4px;
    margin-bottom: 0.75rem;
    max-width: 85%;
    animation: fadeInUp 0.3s ease;
}

.chat-message-user {
    background: var(--martian-orange);
    color: white;
    padding: 0.75rem;
    border-radius: 12px 12px 4px 12px;
    margin-bottom: 0.75rem;
    max-width: 85%;
    margin-left: auto;
    animation: fadeInUp 0.3s ease;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
}

.chat-send-btn {
    background: var(--martian-orange);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.chat-send-btn:hover {
    background: #ff7b3d;
}

.chat-demo-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.ai-assistant-header {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--martian-orange);
}

.ai-status-indicator {
    margin-left: auto;
    background: #28a745;
    color: white;
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
}

@media (max-width: 480px) {
    .splash-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .splash-metric {
        max-width: none;
    }
    
    .splash-actions {
        flex-direction: column;
    }
    
    .splash-cta {
        width: 100%;
        min-width: unset;
    }
}

/* ===== TECHNICAL ARCHITECTURE STYLES ===== */
.technical-architecture {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-height: 450px;
    overflow-y: auto;
}

.architecture-overview h3,
.implementation-timeline h3,
.integration-notes h3 {
    color: var(--deep-space);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-stack-diagram {
    background: var(--background-grey);
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid var(--martian-orange);
}

.architecture-layers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.tech-component {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.tech-component:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 95, 7, 0.15);
    border-color: var(--martian-orange);
}

.component-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.component-details h4 {
    color: var(--deep-space);
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
}

.component-type {
    background: var(--martian-orange);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.component-details p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.implementation-timeline {
    background: var(--deep-space);
    color: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
}

.implementation-timeline h3 {
    color: var(--martian-orange);
}

.timeline-phases {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-phase {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    border-left: 4px solid var(--martian-orange);
    transition: all 0.3s ease;
}

.timeline-phase:hover {
    background: rgba(255, 95, 7, 0.1);
    transform: translateX(5px);
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.phase-number {
    background: var(--martian-orange);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.phase-header h4 {
    color: var(--white);
    margin: 0;
    font-size: 1rem;
}

.phase-duration-mod {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.phase-tasks {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    padding-left: 2.75rem;
}

.integration-notes {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid #2196f3;
}

.integration-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.integration-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.integration-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.integration-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.integration-item span:last-child {
    color: var(--deep-space);
    font-weight: 500;
    line-height: 1.3;
    font-size: 0.9rem;
}

/* Mobile Responsive for Technical Architecture */
@media (max-width: 768px) {
    .technical-architecture {
        max-height: 400px;
    }
    
    .architecture-layers {
        grid-template-columns: 1fr;
    }
    
    .integration-points {
        grid-template-columns: 1fr;
    }
    
    .phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .phase-duration {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .phase-tasks {
        padding-left: 0;
    }
    
    .tech-component {
        flex-direction: column;
        text-align: center;
    }
    
    .component-icon {
        align-self: center;
        margin-top: 0;
    }
}
