/* Enhanced Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal.closing .modal-content {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
}

.modal-header {
    position: absolute;
    top: 0;
    right: 0;
    padding: 20px;
    z-index: 10;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.modal-hero {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 60px 40px 40px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.modal-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 60%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.modal-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.modal-icon i {
    font-size: 2.5rem;
    color: white;
}

.modal-title-section {
    flex: 1;
}

.modal-title-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-title-section h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.modal-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.modal-description {
    padding: 30px 40px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.modal-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 40px;
}

.modal-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    border-right: none;
    /* Removed from original, now handled by grid gap */
    border-bottom: none;
    /* Removed from original, now handled by grid gap */
}

.modal.active .modal-section {
    opacity: 1;
    transform: translateY(0);
}

.modal.active .modal-section:nth-child(1) {
    transition-delay: 0.2s;
}

.modal.active .modal-section:nth-child(2) {
    transition-delay: 0.3s;
}

.modal.active .modal-section:nth-child(3) {
    transition-delay: 0.4s;
}

.modal.active .modal-section:nth-child(4) {
    transition-delay: 0.5s;
}

/* New class for full-width section */
.modal-section.full-width {
    grid-column: 1 / -1;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    /* Optional separator from top sections */
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff !important;
    /* Force white for visibility */
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Add shadow for better readability */
}

.section-title i {
    color: var(--secondary-color);
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
    /* Glow for icon */
}

.feature-list,
.use-case-list,
.benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li,
.use-case-list li,
.benefit-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #cbd5e1;
    padding: 8px 0;
    /* Remove horizontal padding, keep vertical */
    background: transparent;
    /* Remove background */
    border-radius: 0;
    border: none;
    /* Remove border */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separator */
    transition: all 0.3s ease;
}

.feature-list li:last-child,
.use-case-list li:last-child,
.benefit-list li:last-child {
    border-bottom: none;
}

.feature-list li:hover,
.use-case-list li:hover,
.benefit-list li:hover {
    background: transparent;
    transform: translateX(10px);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-list li i,
.use-case-list li i,
.benefit-list li i {
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
    /* Glow effect */
    transition: all 0.3s ease;
}

.feature-list li:hover i,
.use-case-list li:hover i,
.benefit-list li:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Reduced gap since borders are gone */
    list-style: none;
    padding: 0;
}

.specs-list li {
    background: transparent;
    border: none !important;
    /* Remove all borders */
    padding: 0;
    /* Remove padding */
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
    transition: all 0.3s ease;
    box-shadow: none;
}

.specs-list li:hover {
    transform: translateX(5px);
    color: #ffffff;
    /* Highlight text on hover */
}

.specs-list li strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 4px;
    font-size: 1.1rem;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    /* Bright white-ish */
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.tech-tag:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.modal-actions {
    padding: 0 40px 40px;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 180px;
    justify-content: center;
}

.modal-btn i {
    font-size: 1.1rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        max-height: 95vh;
    }

    .modal-hero {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
    }

    .modal-icon i {
        font-size: 2rem;
    }

    .modal-title-section h2 {
        font-size: 2rem;
    }

    .modal-content-grid {
        grid-template-columns: 1fr;
    }

    .modal-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .modal-section:nth-last-child(1) {
        border-bottom: none;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}

/* BI Modal Specifics */
.modal-iframe-container {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
}

.modal-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.bi-modal-content {
    max-width: 90vw;
    height: 90vh;
    padding: 0;
    background: #1a1a1a;
}

.modal-external-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 20;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-external-link:hover {
    color: white;
    background: rgba(59, 130, 246, 0.5);
    border-color: rgba(59, 130, 246, 0.5);
}

.modal-header-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

.modal-external-link {
    position: static;
    /* Reset absolute positioning */
}

.modal-help-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-style: italic;
}