/* Industries Modal Styles */
.industry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium) ease;
}

.industry-modal.active {
    opacity: 1;
    visibility: visible;
}

.industry-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.industry-modal .modal-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    background-color: var(--bg-light-dark);
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    padding: 40px;
    transform: translateY(20px);
    transition: all var(--transition-medium) ease;
    opacity: 0;
    overflow-y: auto;
    border: 1px solid rgba(111, 66, 193, 0.3);
}

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

.industry-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    z-index: 3;
}

.industry-modal .modal-close:hover {
    background-color: var(--primary-color);
    transform: rotate(90deg);
}

.industry-modal .modal-close i {
    font-size: 1.2rem;
    color: var(--text-light);
}

.industry-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.industry-header i {
    font-size: 3rem;
    color: var(--primary-color);
}

.industry-header h2 {
    font-size: 2.2rem;
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.industry-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.industry-services {
    margin-bottom: 30px;
}

.industry-services h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.industry-services h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.industry-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.industry-services li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.industry-services li:last-child {
    border-bottom: none;
}

.industry-services li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.industry-example {
    background: rgba(111, 66, 193, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.industry-example h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.industry-example h4::before {
    content: '🧠';
    font-size: 1.5rem;
}

.industry-example p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Enhanced dropdown for industries */
.dropdown-menu {
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .industry-modal .modal-container {
        padding: 30px;
        width: 95%;
    }
    
    .industry-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .industry-header i {
        font-size: 2.5rem;
    }
    
    .industry-header h2 {
        font-size: 1.8rem;
    }
    
    .industry-description {
        font-size: 1rem;
    }
    
    .dropdown-menu {
        max-height: 50vh;
    }
}

@media screen and (max-width: 480px) {
    .industry-modal .modal-container {
        padding: 20px;
    }
    
    .industry-header i {
        font-size: 2rem;
    }
    
    .industry-header h2 {
        font-size: 1.6rem;
    }
    
    .industry-services h4,
    .industry-example h4 {
        font-size: 1.1rem;
    }
    
    .industry-modal .modal-close {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }
}
